:root {
    --primary-blue: #00529B;
    --primary-blue-hover: #2c69af;
    --primary-blue-dark: #15467a;
    --accent-yellow: #FFD700;
    --accent-yellow-dark: #f4b02a;
    --success-green: #198754;
    --white: #ffffff;
    --bg-light: #f8f9fa;
    --text-main: #333333;
    --form-purple: var(--primary-blue-dark);
    --accent-pink: var(--accent-yellow);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body,
html {
    overflow-x: hidden !important;
}

#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;
    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);
}

.menu-btn {
    font-size: 28px;
    color: var(--primary-blue);
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    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: "School";
    }

    20%,
    39% {
        content: "Students";
    }

    60%,
    79% {
        content: "Opportunities";
    }

    80%,
    100% {
        content: "Achievements";
    }
}

@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;
}

.uxh12 {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 25px;
    margin-top: 20px;
    margin-left: 40px;
}

.uxdiv2 {
    position: relative;
    background-color: var(--form-purple);
    padding: 30px;
    border-radius: 12px;
    width: 500px;
    margin-left: 40px;
    margin-top: 30px;
    overflow: visible;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.uxdiv2::before {
    content: "";
    position: absolute;
    top: 15px;
    right: -45px;
    width: 80px;
    height: 100px;
    background-image: radial-gradient(#ccc 2px, transparent 2px);
    background-size: 10px 10px;
    z-index: -2;
}

.uxdiv2::after {
    content: "";
    position: absolute;
    bottom: -35px;
    left: -40px;
    width: 80px;
    height: 100px;
    background-image: radial-gradient(#ccc 2px, transparent 2px);
    background-size: 10px 10px;
    z-index: -1;
}

.uxcorner {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 80px;
    height: 80px;
    background-color: var(--accent-pink);
    border-bottom-left-radius: 100%;
    z-index: -1;
}

.uxlabel1 {
    color: white;
    display: block;
    margin-bottom: 5px;
    font-family: sans-serif;
    font-size: 14px;
}

.uxinput1,
.uxtextarea1 {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: none;
    border-radius: 5px;
    box-sizing: border-box;
    font-family: sans-serif;
}

.uxinput2 {
    width: 100%;
    background-color: var(--accent-pink);
    color: var(--primary-blue-dark);
    border: none;
    padding: 15px;
    border-radius: 5px;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.uxinput2:hover {
    transform: scale(1.02);
    background-color: var(--accent-yellow-dark);
}

.hex-b{
    margin-bottom: -10rem !important;
}

.hex-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hex-row {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.mt-n4 {
    margin-top: -45px;
}

.hexagon {
    width: 200px;
    height: 235px;
    background-color: #333;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hexagon::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 40, 80, 0.6);
}

.hex-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    font-family: sans-serif;
}

.hex-content span {
    display: block;
    font-weight: bold;
    font-size: 12px;
    margin-top: 20px;
    margin-bottom: 10px;
}

.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-end {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.bv-footer-bottom {
    padding-top: 25px;
    text-align: center;
    font-size: 0.95rem;
    color: #94a3b8;
}

.bv-footer-bottom a{
    text-decoration: none;
    color: #94a3b8;
}

.hex-grid,
.uxdiv2 {
    max-width: 100%;
    box-sizing: border-box;
}

@media (max-width: 576px) {
    .hex-grid {
        transform: scale(0.65);
        transform-origin: top center;
    }

    .uxdiv2 {
        width: 100% !important;
        margin-left: 0 !important;
        padding: 20px;
    }

    .uxh12 {
        text-align: center;
    }
}