/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #0066CC;
    --secondary-blue: #1F7FE3;
    --accent-yellow: #FFC200;
    --light-blue: #E3F2FD;
    --dark-text: #1A202C;
    --light-text: #4A5568;
    --light-bg: #F8FAFC;
    --white: #FFFFFF;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 10px 32px rgba(0, 0, 0, 0.15);
}

body {
    font-family: 'Segoe UI', 'Helvetica Neue', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--dark-text);
    background-color: var(--light-bg);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    background: transparent;
    padding: 1.2rem 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    box-shadow: none;
    backdrop-filter: none;
    border-bottom: none;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.navbar.scrolled {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(135deg, rgba(0,102,204,0.95) 0%, rgba(31,127,227,0.95) 100%);
    box-shadow: 0 10px 30px rgba(0,0,0,0.18);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    transition: background 220ms ease, box-shadow 220ms ease, backdrop-filter 220ms ease;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Navbar over hero video: make logo and links visible */
.navbar .logo h1,
.navbar .logo p,
.navbar .nav-links a {
    color: white;
}

.navbar .nav-links a {
    transition: color 0.2s ease;
}

.navbar .nav-links a:hover {
    color: var(--accent-yellow);
}

/* When navbar has scrolled state (fixed on top), use light text over blue background */
.navbar.scrolled .logo h1,
.navbar.scrolled .logo p,
.navbar.scrolled .nav-links a {
    color: var(--white);
}

.navbar.scrolled .nav-links a:hover {
    color: var(--accent-yellow);
}

.logo h1 {
    color: var(--primary-blue);
    font-size: 1.8rem;
    margin: 0;
    font-weight: 700;
    letter-spacing: -0.5px;
    transition: color 0.3s ease;
}

/* Keep logo color consistent on scroll (no override) */

.logo p {
    color: rgba(0, 102, 204, 0.7);
    font-size: 0.85rem;
    margin: 0;
    font-weight: 500;
    transition: color 0.3s ease;
}

/* Keep logo subtext color consistent on scroll (no override) */

.logo-icon {
    font-size: 2.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 50px;
    height: 50px;
    transition: transform 0.3s ease;
}

.logo-image {
    width: 50px;
    height: 50px;
    display: block;
    transition: transform 0.3s ease;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.navbar.scrolled .nav-links a {
    color: rgba(255, 255, 255, 0.9);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-yellow);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--white);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Dropdown Menu */
.nav-links li {
    position: relative;
}

.dropdown {
    position: relative;
}

.dropdown-toggle::after {
    content: '▼';
    font-size: 0.7rem;
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-toggle::after {
    transform: rotate(-180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(31, 127, 227, 0.98);
    backdrop-filter: blur(12px);
    border-radius: 12px;
    min-width: 240px;
    padding: 0.8rem 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 1000;
    margin-top: 0.5rem;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    display: block;
    padding: 0.9rem 1.8rem;
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.dropdown-menu a:hover {
    background: rgba(255, 255, 255, 0.2);
    padding-left: 2.2rem;
}

/* Hero Section */
.hero {
    position: relative;
    color: white;
    padding: 80px 20px;
    text-align: center;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* reduced overlay opacity for better video visibility while maintaining text readability */
    background: linear-gradient(180deg, rgba(0, 51, 102, 0.35) 0%, rgba(0, 102, 204, 0.40) 100%);
    z-index: 2;
    backdrop-filter: blur(2px);
}

.hero-divider {
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 140px;
    z-index: 4;
    fill: url(#heroWaveGradient);
    filter: drop-shadow(0 -5px 12px rgba(0, 0, 0, 0.15));
}

.hero-content {
    position: relative;
    z-index: 3;
    animation: fadeInUp 0.8s ease-out;
}

.hero-content h2 {
    font-size: 4rem;
    margin-bottom: 1rem;
    text-shadow: 3px 3px 12px rgba(0, 0, 0, 0.4);
    font-weight: 800;
    letter-spacing: -1.5px;
    animation: slideDown 1s ease-out 0.2s both;
}

.hero-content p {
    font-size: 1.4rem;
    margin-bottom: 2.5rem;
    opacity: 0.97;
    font-weight: 500;
    animation: slideDown 1s ease-out 0.4s both;
}

.hero-content .btn {
    animation: slideUp 1s ease-out 0.6s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Buttons */
.btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent-yellow) 0%, #FFB300 100%);
    color: var(--primary-blue);
    padding: 13px 32px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    box-shadow: var(--shadow-md);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, #FFD700 0%, #FFC200 100%);
}

/* News Section */
.news-section {
    padding: 100px 20px;
    background: linear-gradient(180deg, var(--white) 0%, var(--light-blue) 100%);
    position: relative;
    z-index: 10;
    margin-top: 40px;
}

.news-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0, 102, 204, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.news-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.news-header h2 {
    font-size: 2.2rem;
    color: var(--primary-blue);
    font-weight: 700;
}

.view-all {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.view-all:hover {
    color: var(--secondary-blue);
    transform: translateX(5px);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    position: relative;
    z-index: 1;
}

.news-card {
    background-color: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid #E2E8F0;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.news-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--accent-yellow));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.news-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 102, 204, 0.15);
    border-color: var(--secondary-blue);
}

.news-card:hover::before {
    opacity: 1;
}

.news-card-image-wrapper {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
}

.news-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-color: var(--light-blue);
    transition: transform 0.4s ease;
}

.news-card:hover .news-image {
    transform: scale(1.08);
}

.news-content {
    padding: 2rem 1.8rem;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.news-date {
    color: var(--secondary-blue);
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-title {
    color: var(--dark-text);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    line-height: 1.4;
    font-weight: 700;
    transition: color 0.3s ease;
}

.news-card:hover .news-title {
    color: var(--primary-blue);
}

.news-excerpt {
    color: var(--light-text);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.news-link {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    align-self: flex-start;
}

.news-link:hover {
    color: var(--accent-yellow);
    transform: translateX(3px);
}

/* About Section */
.about {
    padding: 140px 20px;
    background-color: var(--white);
    position: relative;
    background-image: url('../images/about-bg.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.about-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* translucent white overlay so photo remains visible but lighter */
    background: rgba(255,255,255,0.55);
    z-index: 1;
}

.about .container {
    position: relative;
    z-index: 2;
}

.about .container h2 {
    text-align: center;
    font-size: 2.4rem;
    margin-bottom: 2.2rem;
    color: var(--dark-text);
    font-weight: 700;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    line-height: 1.8;
}

.about-content p {
    font-size: 1.02rem;
    margin-bottom: 1.2rem;
    color: var(--dark-text);
}

/* Programs Section */
.programs {
    padding: 80px 20px;
    background: linear-gradient(180deg, var(--light-bg) 0%, var(--white) 100%);
}

.programs .container h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary-blue);
    font-weight: 700;
}

.program-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 2rem;
}

.program-card {
    background-color: var(--white);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border-left: 4px solid var(--primary-blue);
    border: 1px solid #E2E8F0;
    border-left: 4px solid var(--secondary-blue);
}

.program-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-left-color: var(--accent-yellow);
}

.program-card h3 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: 600;
}

.program-card p {
    color: var(--light-text);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Statistics Section */
.stats {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    padding: 80px 20px;
    color: white;
}

.stats .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-box {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-box h3 {
    margin: 0 0 0.75rem 0;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    font-weight: 500;
}

.stat-box p {
    font-size: 1.1rem;
    margin: 0;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-yellow);
    margin: 0;
    letter-spacing: -1px;
}

.stat-status {
    color: #fff;
    font-weight: 500;
    margin: 0;
}

/* Contact Section */
.contact {
    padding: 80px 20px;
    background-color: var(--light-bg);
}

.contact .container h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary-blue);
    font-weight: 700;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1000px;
    margin: 2rem auto;
}

.contact-info h3 {
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.contact-info p {
    color: var(--light-text);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    padding: 12px;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    color: var(--dark-text);
    transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    color: white;
    padding: 2.5rem 20px;
    text-align: center;
}

.footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer p {
    font-size: 0.95rem;
    opacity: 0.9;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    color: var(--accent-yellow);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.social-links a:hover {
    color: white;
    transform: translateY(-2px);
}

/* Hide admin login menu */
.nav-links li:last-child {
    display: none !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero {
        min-height: 60vh;
        padding: 60px 20px;
    }

    .hero-content h2 {
        font-size: 2.2rem;
    }

    .hero-content p {
        font-size: 1.05rem;
    }

    .nav-links {
        gap: 1.5rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-links a {
        font-size: 0.95rem;
    }

    .dropdown-menu {
        position: static;
        opacity: 0;
        max-height: 0;
        overflow: hidden;
        visibility: hidden;
        transform: none;
        transition: all 0.3s ease;
        background: none;
        box-shadow: none;
        border: none;
        padding: 0;
        min-width: auto;
    }

    .dropdown:hover .dropdown-menu {
        opacity: 1;
        visibility: visible;
        max-height: 400px;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .footer .container {
        flex-direction: column;
        gap: 1rem;
    }

    .program-grid {
        grid-template-columns: 1fr;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .news-section {
        padding: 60px 20px;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: 55vh;
        padding: 50px 20px;
    }

    .hero-content h2 {
        font-size: 1.6rem;
        margin-bottom: 0.6rem;
    }

    .hero-content p {
        font-size: 0.9rem;
        margin-bottom: 1.2rem;
    }

    .btn {
        padding: 11px 24px;
        font-size: 0.9rem;
    }

    .about .container h2,
    .programs .container h2,
    .contact .container h2 {
        font-size: 1.8rem;
    }

    .nav-links {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-links a {
        font-size: 0.85rem;
    }

    .news-header {
        flex-direction: column;
        gap: 1rem;
    }

    .news-card-image-wrapper {
        height: 180px;
    }

    .news-content {
        padding: 1.5rem 1.2rem;
    }

    .news-title {
        font-size: 1.1rem;
    }
}
