/* --- Background Rotation --- */
@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;
}

/* --- Navigation & Transparency --- */
.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-scrolled {
    background-color: #fff;
}

/* --- Mobile Burger Menu --- */
.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;
}

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

    .menu-items {
        display: none;
        flex-direction: column;
        width: 100%;
        padding: 1rem 0 1.5rem;
        background-color: #fff;
        position: absolute;
        top: 125%;
        left: 0;
    }

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

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

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

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

.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 (Matching original) --- */
.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;
    }
}
