/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, #ffffff 0%, #a2b2d4 35%, #465586 80%, #303d66 100%);
    background-attachment: fixed;
    color: #ffffff;
    overflow-x: hidden;
}

/* Header Navbar Styling */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #ffffff;
    padding: 12px 5%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-logo {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.brand-title {
    color: #0d1e56;
    font-size: 1.2rem;
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: -0.5px;
}

.hamburger-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #0d1e56;
    cursor: pointer;
}

.nav-right-group {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 20px;
}

.nav-links a {
    text-decoration: none;
    color: #333333;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
    color: #fae407;
}

.login-btn {
    background-color: #0d1e56;
    color: #ffffff;
    border: none;
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    white-space: nowrap;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.login-btn:hover {
    background-color: #fae407;
    color: #0d1e56;
}

/* Main Content Area */
.hero-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 30px 20px 60px 20px;
    gap: 35px;
    width: 100%;
}

.crest-container {
    text-align: center;
}

.center-crest {
    width: 170px;
    max-width: 40vw;
    height: auto;
    filter: drop-shadow(0px 8px 16px rgba(0, 0, 0, 0.25));
}

/* Search Card Wrapper */
.search-card {
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    padding: 35px 40px;
    width: 100%;
    max-width: 920px;
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.search-subtitle {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #e2e8f0;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.search-title {
    font-size: clamp(1.4rem, 4vw, 2.2rem);
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 8px;
}

.search-description {
    font-size: clamp(0.8rem, 2vw, 0.95rem);
    color: #e2e8f0;
    margin-bottom: 25px;
    font-weight: 400;
}

/* Search Bar */
.search-bar {
    display: flex;
    align-items: center;
    background-color: #ffffff;
    border-radius: 50px;
    padding: 6px 8px 6px 18px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
    width: 100%;
}

.search-icon {
    color: #333333;
    font-size: 1.1rem;
    margin-right: 10px;
}

.search-bar input {
    border: none;
    outline: none;
    width: 100%;
    font-size: 0.95rem;
    color: #333333;
    background: transparent;
}

.clear-btn {
    background: none;
    border: none;
    color: #666666;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 0 8px;
    display: none;
}

.search-submit-btn {
    background-color: #0d1e56;
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    border-radius: 40px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.2s ease;
}

.search-submit-btn:hover {
    background-color: #fae407;
    color: #0d1e56;
}

/* Video Section */
.video-section {
    width: 100%;
    max-width: 920px;
}

.video-wrapper {
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: #d9d9d9;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-wrapper video {
    width: 100%;
    height: 100%;
    border: none;
    object-fit: cover;
}

/* Footer Styling */
.site-footer {
    background-color: #000000;
    color: #ffffff;
    padding: 30px 20px 25px 20px;
    width: 100%;
}

.footer-content {
    max-width: 920px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-crest {
    width: 45px;
    height: auto;
    margin-bottom: 12px;
}

.footer-school-title {
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 14px;
}

.footer-contact-info {
    font-size: 0.7rem;
    color: #ffffff;
    font-weight: 400;
    margin-bottom: 20px;
    word-break: break-word;
}

.footer-contact-info span {
    font-weight: 800;
    margin: 0 6px;
}

.footer-divider {
    width: 100%;
    border: none;
    border-top: 1px solid #ffffff;
    opacity: 0.7;
    margin-bottom: 18px;
}

.footer-copyright {
    font-size: 0.7rem;
    color: #ffffff;
}

/* Media Queries for Tablet and Mobile Responsiveness */
@media (max-width: 1024px) {
    .nav-right-group {
        gap: 15px;
    }

    .nav-links {
        gap: 12px;
    }
}

@media (max-width: 820px) {
    .navbar {
        position: relative;
    }

    .hamburger-btn {
        display: block;
    }

    .nav-right-group {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #ffffff;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
        gap: 20px;
    }

    .nav-right-group.active {
        display: flex;
    }

    .nav-links {
        flex-direction: column;
        align-items: center;
        width: 100%;
        gap: 15px;
    }

    .login-btn {
        width: 100%;
        max-width: 200px;
    }

    .search-card {
        padding: 25px 20px;
        border-radius: 16px;
    }

    .search-bar {
        flex-wrap: wrap;
        border-radius: 20px;
        padding: 10px;
        gap: 10px;
    }

    .search-bar input {
        order: 1;
        width: calc(100% - 60px);
    }

    .search-icon {
        order: 0;
    }

    .clear-btn {
        order: 2;
    }

    .search-submit-btn {
        order: 3;
        width: 100%;
        border-radius: 12px;
    }

    .video-wrapper {
        border-radius: 16px;
    }
}

@media (max-width: 480px) {
    .footer-contact-info span {
        display: block;
        height: 0;
        visibility: hidden;
    }

    .footer-contact-info {
        display: flex;
        flex-direction: column;
        gap: 5px;
    }
}
