@font-face {
    font-family: NotoSans;
    src: url("../fonts/NotoSans.ttf")
}

@font-face {
    font-family: LuxuriousRoman;
    src: url("../fonts/LuxuriousRoman.ttf")
}

:root {
    --background-color: #0d4f80;
    --light-background-color: #62a3d9;
    --text-color: white;

    /*--accent-background-color: #1D2D44;
    --hover-color: #1D2D44;*/
}

* {
    margin: 0;
    padding: 0;
}

a {
    color: var(--text-color);
    text-decoration: none;
    display: inline-block;
    padding: 5px 0;
    position: relative;
    font-family: LuxuriousRoman;
    font-size: 25px;
}

a:before{
    content: '';
    background: var(--text-color);
    display: block;
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    /* Styling the hover effect */
    transition: all 0.3s ease-in-out;
}

.modal-buttons {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.action-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.action-link {
    font-size: 1.25rem;
    cursor: pointer;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    max-width: 800px;
    margin: 40px auto;
}

.social-link {
    padding: 15px 30px;
    border-radius: 50px;
    transition: transform 0.3s ease;
}

.social-link:hover {
    transform: translateY(-3px);
}

.social-link:before {
    display: none;
}

.facebook {
    background: #1877f2;
}

.linkedin {
    background: #0077b5;
}

.x {
    background: #000;
}

.team-member {
    text-align: center;

    .team-member-img {
        width: 200px;
        height: 200px;
        margin: 0 auto 20px;
        border-radius: 50%;
        background-size: cover;
        background-position: center;
    }
}

form, .form-inputs {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    border-radius: 2rem;


    .form-floating {
        margin: 0;
        padding: 0;
        display: flex;
        flex-direction: column;
    }

    .form-floating > input, textarea {
        resize: vertical;
        padding: 10px 10px;
        min-height: 30px;
        max-height: 50vh;
        border-radius: 10px;
        background-color: var(--background-color);
        color: var(--text-color);
        font-size: 20px;
        font-family: NotoSans;
        border: 1px solid var(--text-color);
    }

    .form-floating > input::placeholder, textarea::placeholder {
        color: var(--text-color);
        opacity: 0.8;
    }

    .form-floating > label {
        font-family: NotoSans;
        color: var(--text-color);
        font-size: 20px;
        line-height: 1.2;
    }

    button {
        width: 100%;
        padding: 1rem;
        border-radius: 0.5rem;
        background-color: var(--text-color);
        color: var(--background-color);
        font-size: 1.25rem;
        font-family: NotoSans;
        border: none;
        cursor: pointer;
        transition: opacity 0.3s ease;
    }

    button:hover {
        opacity: 0.9;
    }
}

.google-map-embed {
    width: 100%;
    height: clamp(300px, 40vw, 500px);
    border: none;
    border-radius: 1rem;
}

a:hover::before{
    width: 100%;
}

.navigation {
    position: fixed;
    left: 0;
    right: 0;
    z-index: 1000;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    margin: 0 0 20px;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5));
    padding: 20px max(20px, 3.75%);

    .navigation-logo {
        display: flex;
        align-items: center;

        justify-content: center;
        transition: opacity 0.3s ease;
        height: 100%;

        img {
            max-height: 80px;
            width: auto;
            transition: all 0.3s ease;
        }
    }

    .navigation-toggle {
        display: none;
        font-size: 20px;
        color: var(--text-color);

        svg {
            cursor: pointer;
        }
    }

    .navigation-menu-outer {
        display: flex;
        align-items: center;
        justify-content: center;
        height: 100%;

        .navigation-menu-inner {
            display: flex;
            gap: 0 20px;
            padding: 0.5rem 1rem;
            border-radius: 10px;
            transition: all 0.3s ease;

            .navigation-item a {
                color: white;
                text-decoration: none;
                font-weight: 500;
                transition: color 0.3s ease;
            }

            .navigation-item.active a {
                font-weight: 700;
            }

            .navigation-item:hover a {
                color: #ffd700;
            }

            .navigation-item.active a {
                color: #ffd700;
            }

            .navigation-item a:before {
                background: #ffd700;
            }
        }


    }
}

h1, h2, h3, h4, th {
    font-family: LuxuriousRoman;
    color: var(--text-color);
    font-weight: 700;
    margin-bottom: clamp(5px, 1vw, 10px);
}

p, ul, tr {
    font-family: NotoSans;
    color: var(--text-color);
    font-size: 20px;
    line-height: 1.8;
}

.section-grid {
    display: flex;
    flex-direction: column;
    gap: 25px;

    > .section-grid-item:nth-child(odd) {
        display: flex;
        flex-direction: row;
        gap: 25px;
    }

    > .section-grid-item:nth-child(even) {
        display: flex;
        flex-direction: row-reverse;
        gap: 25px;
    }

    .section-grid-item > * {
        padding: 80px;
        flex: 1;
        border-radius: 1rem;
        overflow: auto;
        background: rgba(255, 255, 255, 0.05);
    }
}

section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    padding: 10px;
}

hr {
    margin: 5px 0;
    border: none;
    height: 1px;
    width: 100%;

    background-image: linear-gradient(
            to right,
            rgb(from var(--background-color) r g b / 100%),
            rgb(from var(--text-color) r g b / 25%),
            rgb(from var(--background-color) r g b / 100%)
    );
}

body {
    background-color: var(--light-background-color);
    display: flex;
    justify-content: center;
}

.table-container {
    overflow: auto;
}

table {
    width: 100%;
    margin-top: 1.5rem;
    border-collapse: separate;
    border-spacing: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border-radius: 1rem;
    overflow: hidden;

    th {
        background: rgba(0, 0, 0, 0.05);
        color: var(--text-color);
        padding: 1rem;
        text-align: left;
        font-weight: 600;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        position: sticky;
        top: 0;
        z-index: 1;
    }

    tr {
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        color: var(--text-color);
        background: rgba(255, 255, 255, 0.05);
    }

    td {
        padding: 1rem;
    }

    tr:hover {
        background-color: rgba(0, 0, 0, 0.03);
        transition: background-color 0.3s ease;
    }

    tr:last-child td {
        border-bottom: none;
    }

    /* Table header sticky positioning */
    th:first-child {
        border-radius: 0.5rem 0 0 0;
    }

    th:last-child {
        border-radius: 0 0.5rem 0 0;
    }
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-in-out;
}

.modal.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    position: relative;
    max-width: 800px;
    max-height: 90vh;
    margin: 2rem auto;
    background: var(--background-color);
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease-in-out;
}

.modal-content-padding {
    padding: 2rem;
}

.close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 4rem;
    height: 4rem;
    background: none;
    border: none;
    font-size: 3.5rem;
    color: white;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: #ff4444;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.gallery-item:hover .description {
    opacity: 1;
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 1rem;
}

.modal-content img {
    width: 100%;
    height: 100%;
    border-radius: 1rem;
    object-fit: contain;
}

.lightbox-description {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    border-radius: 0 0 1rem 1rem;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 1rem;
    text-align: center;
}

.gallery-item .description {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 1rem;
    text-align: center;
    border-radius: 0 0 1rem 1rem;
}


/* Add fade-in animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.heading {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/photographs/Derwent_Water_Rowing_Boats.jpg');
    background-size: cover;
    background-position: center;
    text-align: center;
    padding: 60px 20px;
    border-radius: 1rem;

    .heading-content {
        max-width: 800px;
        margin: 0 auto;

        h1 {
            font-size: 5em;
            margin-bottom: 20px;
        }

        h2 {
            font-size: 2em;
        }

        h1, h2 {
            transform: translateY(10px);
            animation: fadeIn 0.5s ease-out forwards;
        }
    }
}

.header-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: clamp(100px, 10vw, 150px);
    width: auto;
}

.body-container {
    width: min(100%, 1280px);
    background-color: var(--background-color);
    min-height: 85vh;
    margin: 300px 20px 20px 20px;
    padding: 20px;
    border-radius: 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

@media (min-width: 769px) {
    .navigation {
        .navigation-menu-inner {
            background: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(10px);
        }
    }

    .navigation.highlight {
        background: rgba(0, 0, 0, 0.7);

        .navigation-menu-inner {
            background: rgba(255, 255, 255, 0.05);
        }

        img {
            max-height: 160px;
        }
    }
}

@media (max-width: 768px) {
    .body-container {
        margin: 0;
        padding: 130px 20px 20px 20px;
        border-radius: 0;
    }

    .section-grid {
        > .section-grid-item:nth-child(odd) {
            flex-direction: column;
        }

        > .section-grid-item:nth-child(even) {
            flex-direction: column;
        }

        .section-grid-item > * {
            min-height: 200px;
            padding: 40px;
        }
    }

    .navigation {
        .navigation-header{
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0 2rem 0 2rem;
        }

        .navigation-menu-outer {
            visibility: hidden;
            max-height: 0;
            transition: max-height .3s;
            justify-content: flex-start;
            overflow: hidden;
        }

        .navigation-menu-inner {
            flex-direction: column;
            margin: 0 0 0 2rem;
        }

        .navigation-toggle {
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 1rem;
        }

        .navigation-toggle svg {
            width: 48px;
            height: 48px;
            cursor: pointer;
        }
    }

    .navigation.shown {
        .navigation-menu-outer {
            visibility: visible;
            max-height: 100vh;
        }
    }
}