:root {
    --primary-blue-hover: #2c69af;
    --primary-blue-dark: #15467a;
    --accent-yellow-dark: #f4b02a;
    --success-green: #198754;
    --white: #ffffff;
    --bg-light: #f8f9fa;
    --bg-section: #fcfcfc;
    --text-main: #333333;
    --text-muted: #666666;
    --border-light: #eeeeee;
    --nav-bg-scrolled: rgba(248, 249, 250, 0.8);
    --overlay-color: rgba(0, 0, 0, 0.5);
    --primary-blue: #00529B;
    --accent-yellow: #FFD700;
    --light-green: #4ECDC4;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

#scrollBtn {
    position: fixed;
    right: 30px;
    bottom: 40px;
    width: 60px;
    height: 60px;
    border-radius: 12px;
    color: var(--white);
    cursor: pointer;
    font-size: 22px;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: 0.4s;
    border: 2px solid transparent;
    z-index: 100;
}

#scrollBtn::before {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: 14px;
    background: linear-gradient(270deg,
            var(--accent-yellow),
            var(--success-green),
            var(--accent-yellow));
    background-size: 400% 400%;
    z-index: -1;
    animation: borderMove 4s linear infinite;
}

#scrollBtn::after {
    content: "";
    position: absolute;
    background: var(--primary-blue);
    width: 53px;
    height: 53px;
    border-radius: 14px;
}

#scrollBtn i {
    z-index: 1;
}

@keyframes borderMove {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 400% 50%;
    }
}

#scrollBtn.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.custom-navbar {
    background: var(--bg-light);
    padding: 8px 0;
    transition: all 0.4s ease-in-out;
}

.custom-navbar.scrolled {
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(3px);
    padding: 8px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.logo-box img {
    width: 55px;
    border-radius: 50%;
}

.nav-link {
    color: var(--text-main) !important;
    position: relative;
    margin: 0 10px;
    padding-bottom: 5px;
    cursor: pointer;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 0%;
    height: 2px;
    background: var(--primary-blue);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 100%;
}

.dropdown-container {
    position: relative;
}

.dropdown-menu-custom {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 220px;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    list-style: none;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.dropdown-menu-custom li a {
    display: block;
    padding: 8px 20px;
    color: var(--text-main);
    text-decoration: none;
    transition: background 0.2s;
}

.dropdown-menu-custom li a:hover {
    color: var(--primary-blue);
}

.dropdown-container:hover .dropdown-menu-custom {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.apply-btn {
    background: var(--primary-blue);
    color: var(--white);
    border-radius: 8px;
    padding: 11px 16px;
    transition: transform 0.2s ease;
}

.apply-btn:hover {
    background: var(--primary-blue-hover);
    color: var(--white);
    transform: scale(1.1);
}

.add-event-btn {
    background: var(--accent-yellow);
    color: var(--primary-blue-dark);
    border-radius: 8px;
    font-weight: 600;
    padding: 8px 16px;
    transition: all 0.3s ease;
    border: none;
}

.add-event-btn:hover {
    background: var(--accent-yellow-dark);
    color: var(--primary-blue-dark);
    transform: scale(1.05);
}

.mobile-add-btn {
    background: rgba(255, 215, 0, 0.2);
    border-left: 4px solid var(--accent-yellow) !important;
    font-weight: bold;
    margin-bottom: 15px !important;
}

.custom-navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.menu-btn {
    font-size: 28px;
    color: var(--primary-blue);
    background: none;
    border: none;
    cursor: pointer;
    margin-left: 200px;
    transition: transform 0.2s ease;
}

.menu-btn:hover {
    transform: scale(1.1);
}

.side-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 280px;
    height: 100vh;
    background: var(--primary-blue);
    transition: left 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 9999;
    padding: 80px 20px 20px;
    box-shadow: 4px 0 15px rgba(0, 0, 0, 0.2);
    overflow-y: auto;
}

.side-menu a {
    display: block;
    color: var(--white);
    padding: 16px 20px;
    text-decoration: none;
    font-size: 1.1rem;
    margin-bottom: 8px;
    transition: border-left 0.3s ease-in;
}

.side-menu div {
    margin-top: -32px;
}

.side-menu span {
    font-size: 20px;
    color: var(--bg-section);
}

.side-menu a:hover {
    border-left: 3px solid var(--border-light);
}

.side-menu::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--overlay-color);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    z-index: -1;
}

.side-menu.open::before {
    opacity: 1;
    visibility: visible;
}

.mobile-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    background: rgba(0, 0, 0, 0.1);
}

.mobile-submenu.open {
    max-height: 200px;
}

.mobile-submenu a {
    padding-left: 50px !important;
    font-size: 0.95rem !important;
}

.side-nav-dropdown {
    display: flex;
    align-items: center;
    margin-bottom: 2.5rem !important;
}

.side-nav-dropdown.active i.fa-chevron-down {
    transform: rotate(180deg);
    transition: transform 0.3s;
}

.about-hero {
    background: var(--primary-blue);
    color: white;
    min-height: 110vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.about-hero .container {
    margin-top: 100px;
}

.bv-about {
    font-size: 50px;
    font-weight: 600;
}

.typing {
    position: relative;
    font-size: 50px;
    font-weight: 600;
}

.typing::before {
    content: "School";
    color: white;
    animation: words 20s infinite;
}

.typing::after {
    content: "";
    position: absolute;
    width: calc(100% + 8px);
    height: 100%;
    background-color: var(--primary-blue);
    border-left: 2px solid var(--accent-yellow);
    right: -8px;
    animation: cursor .8s infinite, typing 20s steps(14) infinite;
}

@keyframes cursor {
    to {
        border-left: 2px solid transparent;
    }
}

@keyframes words {

    0%,
    19% {
        content: "Students";
    }

    20%,
    39% {
        content: "English";
    }

    60%,
    79% {
        content: "Classes";
    }

    80%,
    100% {
        content: "IGCSE";
    }
}

@keyframes typing {

    0%,
    5%,
    20%,
    25%,
    40%,
    45%,
    60%,
    65%,
    80%,
    85% {
        width: calc(100% + 8px);
    }

    10%,
    15%,
    30%,
    35%,
    50%,
    55%,
    70%,
    75%,
    90%,
    95%,
    100% {
        width: 0;
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(50px);
    animation: fadeInUp 1.3s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.principal-container {
    text-align: center;
}

.principal-img {
    width: 340px;
    height: 340px;
    object-fit: cover;
    border: 12px solid rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
    transition: transform 0.5s ease;
}

.principal-img:hover {
    transform: scale(1.05);
}

.principal-name {
    margin-top: 20px;
    font-size: 1.65rem;
    font-weight: 600;
    color: white;
}

.principal-title {
    font-size: 1.15rem;
    opacity: 0.9;
    color: #ddd;
}

.side-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 280px;
    height: 100vh;
    background: var(--primary-blue);
    transition: left 0.4s ease;
    z-index: 9999;
    padding: 90px 20px 20px;
}

.side-menu a {
    display: block;
    color: white;
    padding: 16px 20px;
    text-decoration: none;
    font-size: 1.1rem;
}

.section-title {
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    font-weight: 800;
    color: var(--primary-blue-dark);
    margin-bottom: 10px;
    text-align: center;
}

.session-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
}

.session-pill {
    font-size: 0.8rem;
    font-weight: 800;
    padding: 6px 20px;
    border-top-left-radius: 50px;
    border-top-right-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pill-morning {
    background: #e0f2fe;
    color: #0369a1;
    border: 1px solid #bae6fd;
}

.pill-afternoon {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

.program-heading-container {
    text-align: center;
    margin-bottom: 30px;
}

.program-heading {
    font-size: 1rem;
    font-weight: 700;
    color: var(--white);
    background: var(--primary-blue);
    padding: 12px 40px;
    border-radius: 50px;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    box-shadow: 0 8px 20px rgba(0, 82, 155, 0.15);
}

.program-container {
    margin-bottom: 80px;
    max-width: 950px;
    margin-left: auto;
    margin-right: auto;
}

.accordion-group {
    background: var(--white);
    border-radius: 24px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    border: 1px solid var(--border-light);
}

.class-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 35px;
    cursor: pointer;
    transition: 0.3s ease;
    border-bottom: 1px solid var(--border-light);
}

.class-header:hover {
    background: #fcfcfc;
}

.class-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-blue-dark);
    margin: 0;
}

.plus-btn {
    width: 40px;
    height: 40px;
    background: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.open-header .plus-btn {
    background: var(--accent-yellow);
    border-color: var(--accent-yellow-dark);
    color: var(--primary-blue-dark);
    transform: rotate(135deg);
}

.class-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.6s ease;
    background: #fafafa;
}

.class-content.open {
    max-height: 1000px;
}

.class-info {
    padding: 40px;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
}

.image-wrapper {
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.class-image {
    width: 100%;
    height: 320px;
    object-fit: cover;
}

.subject-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
    margin-top: 15px;
}

.subject-item {
    background: var(--white);
    border: 1px solid var(--border-light);
    padding: 10px 15px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: 600;
}

.subject-item i {
    color: var(--accent-yellow-dark);
    font-size: 0.8rem;
}

@media (max-width: 992px) {
    .class-info {
        grid-template-columns: 1fr;
        padding: 25px;
    }

    .class-image {
        height: 220px;
    }
    
    .apply-btn{
        display: none;
    }
}

.bv-footer {
    background: #0f172a;
    color: #cbd5e1;
    padding: 80px 0 30px;
}

.bv-footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.bv-logo {
    background: var(--primary-blue);
    color: var(--white);
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.4rem;
}

.bv-footer-heading {
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 12px;
}

.bv-footer-link {
    color: #cbd5e1;
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.bv-footer-link:hover {
    color: #60a5fa;
}

.bv-contact-info i {
    width: 20px;
    margin-right: 10px;
}

.bv-social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    border-radius: 50%;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.bv-social-icons a:hover {
    background: var(--primary-blue);
    color: var(--white);
    transform: translateY(-4px);
}

.bv-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 25px;
    margin-top: 50px;
    font-size: 0.95rem;
    color: #94a3b8;
    display: flex;
    justify-content: space-between;
}

.bv-footer-bottom a{
    text-decoration: none;
    color: #94a3b8;
}