@keyframes rotation {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(359.9999deg);
    }
}

.rotate-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    pointer-events: none;
}

.rotate-wrapper img {
    width: 300vh;
    height: auto;
    opacity: 0.75;
}

.rotate {
    animation: rotation 400s infinite linear;
}

.menu {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background-color: transparent;
    transition: transform 0.4s ease-in-out, background-color 0.3s ease;
}

.menu.nav-up {
    transform: translateY(-100%);
}

.menu.nav-up:has(.burger-menu.open) {
    transform: translateY(0) !important;
}

.menu.nav-scrolled {
    background-color: #fff;
}

.burger-menu {
    display: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.burger-bar {
    width: 25px;
    height: 2px;
    background-color: #222;
    margin: 6px 0;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-light-theme .menu-link {
    color: #ffffff;
}

.nav-light-theme #programmes-toggle {
    color: #ffffff;
}

.nav-light-theme .nav-dropdown__item {
    color: #ffffff;
}

.white-burger .burger-bar {
    background-color: #ffffff;
}

@media (max-width: 991px) {
    .burger-menu {
        display: block;
    }

    .menu-items {
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        height: 100vh;
        background-color: #ffffff;
        z-index: 1000;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transform: translateX(100%);
        transition: transform 0.4s ease-in-out;
    }

    .menu-items.is-open {
        display: flex;
    }

    .menu-items.active {
        transform: translateX(0);
    }

    .menu-items.active {
        transform: translateX(0);
    }

    .menu-link {
        font-size: 24px;
        margin: 15px 0;
        display: block;
    }

    #programmes-toggle {
        font-size: 24px;
        margin: 15px 0;
        text-decoration: none;
        cursor: pointer;
        display: block;
    }

    .burger-menu {
        z-index: 1001;
        cursor: pointer;
    }

    .burger-menu.open .burger-bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .burger-menu.open .burger-bar:nth-child(2) {
        opacity: 0;
    }

    .burger-menu.open .burger-bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .burger-bar {
        transition: 0.3s;
    }
}

.nav-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.nav-dropdown__toggle {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.nav-dropdown__caret {
    transition: transform 0.25s ease;
    flex-shrink: 0;
}

.nav-dropdown.is-open .nav-dropdown__caret {
    transform: rotate(180deg);
}

@media (min-width: 992px) {
    .nav-dropdown__menu {
        display: block;
        visibility: hidden;
        opacity: 0;
        pointer-events: none;
        transform: translateY(8px);
        transition: opacity 0.22s ease, transform 0.22s ease, visibility 0s linear 0.22s;
        position: absolute;
        top: calc(100% + 10px);
        left: 50%;
        translate: -50% 0;
        min-width: 240px;
        background: #fff;
        border-radius: 8px;
        box-shadow: 0 8px 30px rgba(0,0,0,0.13);
        list-style: none;
        margin: 0;
        padding: 8px 0;
        z-index: 9999;
    }

    .nav-dropdown.is-open .nav-dropdown__menu {
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
        transition: opacity 0.22s ease, transform 0.22s ease, visibility 0s linear 0s;
    }

    .nav-dropdown__item {
        display: block;
        padding: 10px 20px;
        white-space: nowrap;
        font-size: 1rem;
        text-decoration: none;
        transition: background 0.15s ease, color 0.15s ease;
        color: inherit;
    }

        .nav-dropdown__item:hover {
            background: rgba(0,0,0,0.08);
        }
}

@media (max-width: 991px) {
    .nav-dropdown {
        display: block;
        width: 100%;
        text-align: center;
    }

    .nav-dropdown__toggle {
        justify-content: center;
        font-size: 24px;
        margin: 15px 0;
    }

    .nav-dropdown__menu {
        display: none;
        list-style: none;
        margin: 0;
        padding: 0;
        background: transparent;
    }

    .nav-dropdown.is-open .nav-dropdown__menu {
        display: block;
    }

    .nav-dropdown__item {
        display: block;
        padding: 8px 0;
        font-size: 1.1rem;
        color: inherit;
        text-decoration: none;
        opacity: 0.85;
    }

    .nav-dropdown__item:hover {
        opacity: 1;
    }
}

.programme-link {
    overflow: hidden;
    display: block;
    position: relative;
    text-decoration: none;
}

.programme-item {
    padding-bottom: 0 !important;
}

.programme-image {
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
    width: 100%;
    display: block;
}

.programme-link:hover .programme-image {
    transform: scale(1.1);
}

.programme-text-wrapper {
    z-index: 3;
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 30px;
    width: 100%;
}

.programme-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0,0,0,0) 50%, rgba(0,0,0,0.8) 100%);
    z-index: 2;
}

.footer-section {
    background-color: #000;
    padding: 60px 0 30px;
    color: #fff;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
}

@media (max-width: 767px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

a {
    color: inherit;
}

.phone-grid .title-text-wrapper {
    order: inherit;
}

@media (min-width: 991px) {
    .phone-grid .title-text-wrapper {
        order: 2;
    }
}

.process-heading {
    text-align: left;
    background: transparent !important;
    color: #333 !important;
    border: none;
    border-bottom: 1px solid #eee;
    padding: 20px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.process-heading.active {
    color: #000 !important;
    border-left: 4px solid #000;
    padding-left: 25px;
}

.process-heading:hover {
    background-color: #f8f9fa !important;
}

.tab-pane {
    background: #fff;
    border-radius: 8px;
    min-height: 300px;
}

.contact-modal {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    visibility: hidden;
    z-index: 9999;
    transition: visibility 0.4s;
}

.contact-modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.4s;
}

.contact-modal__content {
    position: absolute;
    top: 0;
    right: -800px;
    width: 100%;
    max-width: 800px;
    height: 100%;
    background: #fff;
    padding: 40px 30px;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    transition: right 0.4s ease-in-out;
}

.contact-modal.is-active {
    visibility: visible;
}

    .contact-modal.is-active .contact-modal__overlay {
        opacity: 1;
    }

    .contact-modal.is-active .contact-modal__content {
        right: 0;
    }

.contact-modal__close {
    background: none;
    border: none;
    font-size: 2rem;
    position: absolute;
    top: 15px;
    right: 20px;
    cursor: pointer;
}

.tabs-container {
    display: flex;
    gap: 40px;
    margin-top: 40px;
}

.tabs-menu {
    display: flex;
    flex-direction: column;
    flex: 0 0 150px;
}

.tab-link {
    background: none;
    border: 1px solid transparent;
    padding: 15px 20px;
    text-align: left;
    font-size: 1.1rem;
    cursor: pointer;
    transition: 0.3s;
}

    .tab-link.active {
        border-color: #333;
        font-weight: bold;
    }

.tabs-content-wrapper {
    flex: 1;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.05);
    border-left: 1px solid;
}