/* GENERAL */

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #ffffff;
    color: #17231d;
}

a {
    color: inherit;
}

button {
    font-family: inherit;
}


/* HEADER */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #ffffff;
    border-bottom: 1px solid #188834;
}

.navbar {
    width: 90%;
    max-width: 1280px;
    min-height: 78px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    width: 150px;
    height: auto;
    display: block;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-links > a,
.dropdown-toggle {
    text-decoration: none;
    color: #17231d;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.nav-links > a:hover,
.dropdown-toggle:hover {
    color: #188834;
}

.nav-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 24px);
    left: 50%;
    width: 270px;
    transform: translateX(-50%) translateY(10px);
    visibility: hidden;
    opacity: 0;
    background: #ffffff;
    border-top: 3px solid #188834;
    box-shadow: 0 12px 30px rgba(23, 35, 29, 0.12);
    transition: 0.25s ease;
}

.nav-dropdown:hover .dropdown-menu {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 12px 16px;
    text-decoration: none;
    color: #17231d;
    font-size: 13px;
    line-height: 1.4;
}

.dropdown-menu a:hover {
    background: #ebf5ee;
    color: #188834;
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    padding: 8px;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    margin: 5px auto;
    background: #17231d;
}

/* HERO */

.programme-hero {
    position: relative;
    min-height: 570px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: #17231d;
}

.programme-hero-slides {
    position: absolute;
    inset: 0;
}

.programme-hero-slides img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    animation: programmeSlide 32s infinite;
}

.programme-hero-slides img:nth-child(1) {
    animation-delay: 0s;
}

.programme-hero-slides img:nth-child(2) {
    animation-delay: 4s;
}

.programme-hero-slides img:nth-child(3) {
    animation-delay: 8s;
}

.programme-hero-slides img:nth-child(4) {
    animation-delay: 12s;
}

.programme-hero-slides img:nth-child(5) {
    animation-delay: 16s;
}

.programme-hero-slides img:nth-child(6) {
    animation-delay: 20s;
}

.programme-hero-slides img:nth-child(7) {
    animation-delay: 24s;
}

.programme-hero-slides img:nth-child(8) {
    animation-delay: 28s;
}

@keyframes programmeSlide {

    0% {
        opacity: 0;
    }

    4% {
        opacity: 1;
    }

    12.5% {
        opacity: 1;
    }

    16.5% {
        opacity: 0;
    }

    100% {
        opacity: 0;
    }
}

.programme-hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 35, 20, 0.18);
    z-index: 1;
}

.programme-hero-content {
    position: relative;
    z-index: 2;
    max-width: 850px;
    padding: 40px 30px;
    color: #ffffff;
}

.programme-hero-content .section-label {
    color: #dff2e4;
}

.programme-hero-content h1 {
    margin: 0 0 18px;
    color: #ffffff;
    font-size: 44px;
    line-height: 1.12;
}

.programme-hero-content p:not(.section-label) {
    max-width: 680px;
    margin: auto;
    color: #f0f5f1;
    font-size: 17px;
    line-height: 1.7;
}


/* INTRO */

.programme-intro {
    padding: 70px 0;
    background: #ffffff;
    text-align: center;
}

.programme-intro .section-container {
    max-width: 850px;
}

.programme-intro h2 {
    margin: 0 0 15px;
    font-size: 30px;
    line-height: 1.2;
}

.programme-intro p:not(.section-label) {
    max-width: 720px;
    margin: auto;
    color: #59645e;
    font-size: 16px;
}


/* PROGRAMMES */

.programme-list {
    padding: 75px 0;
    background: #f3f7f4;
}

.programme-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.programme-card {
    min-height: 570px;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    overflow: hidden;
    scroll-margin-top: 100px;
    transition: transform 0.3s ease,
        box-shadow 0.3s ease;
}

.programme-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(23, 35, 29, 0.10);
}

.programme-image {
    height: 250px;
    overflow: hidden;
    flex-shrink: 0;
}

.programme-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.programme-card:hover .programme-image img {
    transform: scale(1.04);
}

.programme-content {
    flex: 1;
    padding: 30px;
    display: flex;
    flex-direction: column;
}

.programme-label {
    margin: 0 0 8px;
    color: #188834;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.programme-content h2 {
    margin: 0 0 13px;
    font-size: 21px;
    line-height: 1.3;
}

.programme-content p:not(.programme-label) {
    margin: 0 0 18px;
    color: #59645e;
    font-size: 13px;
    line-height: 1.7;
}

.programme-content ul {
    margin: auto 0 0;
    padding: 0;
    list-style: none;
}

.programme-content li {
    position: relative;
    margin-bottom: 8px;
    padding-left: 18px;
    color: #3f4b44;
    font-size: 13px;
}

.programme-content li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #188834;
    font-size: 17px;
    line-height: 1;
}


/* CTA */

.programmes-cta {
    padding: 100px 0;
    background: #ffffff;
    text-align: center;
}

.programmes-cta > div {
    width: 90%;
    max-width: 850px;
    margin: auto;
}

.programmes-cta .section-label {
    margin: 0 0 12px;
    color: #176b31;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 2px;
}

.programmes-cta h2 {
    margin: 0;
    font-size: 40px;
    line-height: 1.2;
    color: #17231d;
}

.programmes-cta p:not(.section-label) {
    margin: 25px auto 30px;
    max-width: 700px;
    color: #17231d;
    font-size: 17px;
    line-height: 1.7;
}

.programmes-cta .btn {
    background: #176b31;
    color: #ffffff;
}

.programmes-cta .btn:hover {
    background: #125625;
}

/* FOOTER */

.site-footer {
    background: #17231d;
    color: #ffffff;
    padding: 32px 0 12px;
}

.footer-content {
    width: 90%;
    max-width: 900px;
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.site-footer h4 {
    margin: 0 0 10px;
    font-size: 15px;
}

.site-footer p {
    margin: 0;
    line-height: 1.45;
    color: #dce5df;
    font-size: 13px;
}

.office-row,
.contact-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.office-row strong,
.contact-row strong {
    display: block;
    margin-bottom: 4px;
    font-size: 13px;
}

.contact-row a {
    color: #dce5df;
    text-decoration: none;
}

.contact-row a:hover {
    color: #8fcf9b;
}

.footer-bottom {
    width: 90%;
    max-width: 1180px;
    margin: 20px auto 0;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    text-align: center;
    color: #dce5df;
    font-size: 11px;
}


/* MOBILE */

@media (max-width: 650px) {

    .footer-content {
        width: 90%;
    }

    .office-row,
    .contact-row {
        gap: 20px;
    }
}

@media (max-width: 420px) {

    .office-row,
    .contact-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}


/* TABLET */

@media (max-width: 900px) {

    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: 78px;
        left: 0;
        right: 0;
        display: none;
        padding: 20px 5%;
        box-sizing: border-box;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: #ffffff;
        border-bottom: 1px solid #188834;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links > a,
    .dropdown-toggle {
        display: block;
        padding: 14px 0;
    }

    .nav-dropdown {
        width: 100%;
    }

    .dropdown-menu {
        position: static;
        width: 100%;
        transform: none;
        visibility: visible;
        opacity: 1;
        display: none;
        border-top: 1px solid #d8e4db;
        box-shadow: none;
    }

    .nav-dropdown.open .dropdown-menu {
        display: block;
    }

    .dropdown-menu a {
        padding: 11px 15px;
    }

    .programme-hero {
        min-height: 430px;
    }

    .programme-hero h1 {
        font-size: 38px;
    }

    .programme-intro {
        padding: 60px 0;
    }

    .programme-intro h2 {
        font-size: 28px;
    }

    .programme-grid {
        gap: 20px;
    }

    .programme-card {
        min-height: 540px;
    }

    .programme-image {
        height: 220px;
    }

    .programme-content {
        padding: 25px;
    }

    .programme-content h2 {
        font-size: 21px;
    }

}


/* MOBILE */

@media (max-width: 650px) {

    .navbar {
        min-height: 70px;
    }

    .nav-links {
        top: 70px;
    }

    .programme-hero {
        min-height: 420px;
        padding: 60px 20px;
    }

    .programme-hero h1 {
        font-size: 30px;
    }

    .programme-hero p:not(.section-label) {
        font-size: 15px;
    }

    .programme-intro {
        padding: 60px 0;
    }

    .programme-intro h2 {
        font-size: 26px;
    }

    .programme-list {
        padding: 60px 0;
    }

    .programme-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .programme-card {
        min-height: auto;
    }

    .programme-image {
        height: 250px;
    }

    .programme-content {
        padding: 30px 25px;
    }

    .programme-content h2 {
        font-size: 20px;
    }

    .programme-content p:not(.programme-label) {
        font-size: 13px;
    }

    .programme-content ul {
        margin-top: 5px;
    }

    .programmes-cta {
        padding: 60px 5%;
    }

    .programmes-cta h2 {
        font-size: 27px;
    }

    .footer-content {
        flex-direction: column;
        padding: 40px 0;
    }

}