/* ===== PAGE STYLES ===== */

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    background: linear-gradient(135deg, #d9ecff 0%, #ffe8d6 100%);
    color: #333;
}

/* Header */
.main-header {
    position: sticky;               /* stays at the top */
    top: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 40px;

    background: rgba(255, 255, 255, 0.4);  /* semi-transparent for glass effect */
    backdrop-filter: blur(10px);           /* frosted glass effect */
    -webkit-backdrop-filter: blur(10px);   /* Safari support */

    border-bottom: 1px solid rgba(255, 255, 255, 0.3); /* subtle border */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);         /* gentle shadow */
    
    z-index: 100; /* stays above content */
}

/* Ensure nav links are readable on glass */
.navbar a {
 color: #333;
    font-weight: 500;
    text-decoration: none;
    transition: 0.2s;
    padding: 6px 12px;
    border-radius: 6px;
}

.navbar a:hover,
.navbar a.active {
    color: #0077ff;
    background-color: rgba(0, 119, 255, 0.1);

}
.logo {
    height: 60px;
}

.navbar ul {
    display: flex;
    gap: 20px;
    list-style: none;
}

.sign-btn {
    background: #0077ff;
    padding: 6px 14px;
    border-radius: 6px;
    color: #fff !important;
}

/* ================= HAMBURGER - HIDDEN ON DESKTOP ================= */
.hamburger {
    display: none;          /* Hidden on desktop by default */
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #333;
    margin-left: auto;      /* Push to right when shown */
}

/* ================= RESPONSIVE ================= */
/* ================= MOBILE HAMBURGER MENU ================= */
@media (max-width: 700px) {
    /* Header layout - logo left, hamburger right */
    .main-header {
        flex-direction: row;
        justify-content: space-between; /* Logo left, hamburger right */
        align-items: center;
        padding: 12px 20px;
    }
    
    /* Logo stays on left */
    .logo {
        height: 50px;
        order: 1; /* First item (left) */
    }
    
    /* Hamburger button - show on mobile */
    .hamburger {
        display: block;          /* Show hamburger on mobile */
        margin-left: 0;          /* Don't push - controlled by order */
        font-size: 28px;
        cursor: pointer;
        background: none;
        border: none;
        color: #333;
        padding: 5px;
        order: 3;               /* Last item (far right) */
        z-index: 101;           /* Above everything */
    }
    
    /* Hide the regular navigation menu on mobile */
    .navbar {
        order: 2; /* This keeps nav in middle if needed, but it will be hidden */
        width: 100%;
        margin-top: 10px;
    }
    
    .navbar ul {
        display: none;          /* Hide menu initially */
        flex-direction: column;
        gap: 0;
        position: absolute;
        top: 100%;              /* Dropdown below header */
        right: 0;               /* Align to right edge */
        left: 0;                /* Full width dropdown */
        background: rgba(255, 255, 255, 0.95); /* Solid white with slight transparency */
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        padding: 15px 0;
        margin: 0 15px;         /* Add some margin on sides */
        border-radius: 0 0 12px 12px;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
        z-index: 100;           /* Below hamburger but above content */
    }
    
    /* Show menu when toggled */
    .navbar ul.show {
        display: flex;
    }
    
    /* Menu items styling */
    .navbar li {
        width: 100%;
        text-align: center;
    }
    
    .navbar a {
        display: block;
        padding: 14px 20px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        font-size: 1rem;
        width: 100%;
        box-sizing: border-box;
    }
    
    .navbar li:last-child a {
        border-bottom: none;
    }
    
    /* Active state for mobile menu */
    .navbar a.active {
        background: rgba(0, 119, 255, 0.1);
        color: #0077ff;
        font-weight: 600;
    }
}

/* ===== ENHANCED RESOURCES PAGE ===== */

/* Keep your existing header styles */
/* ... your existing header CSS ... */

/* ===== ENHANCED HEADER SECTION ===== */
.resource-header {
    text-align: center;
    padding: 80px 40px 60px;
    background: linear-gradient(135deg, rgba(217, 236, 255, 0.9) 0%, rgba(255, 232, 214, 0.9) 100%);
    position: relative;
    overflow: hidden;
    margin-bottom: 40px;
}

.resource-header:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path fill="rgba(255,255,255,0.4)" d="M0,60 Q25,40 50,60 T100,60 L100,100 L0,100 Z"/></svg>');
    background-size: cover;
    z-index: 0;
}

.resource-header h1 {
    font-size: 3.2rem;
    color: #003f88;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
    font-weight: 700;
}

.resource-header p {
    font-size: 1.2rem;
    color: #555;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

.resource-header p + p {
    margin-top: 10px;
}

/* ===== RESOURCE GRID - ENHANCED ===== */
.resource-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    padding: 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.resource-card {
    background: linear-gradient(145deg, #ffffff, #f8fbff);
    padding: 35px;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 119, 204, 0.1);
}

.resource-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #0077cc, #ff7b00);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.resource-card h2 {
    margin-top: 0;
    color: #003f88;
    font-size: 1.6rem;
    margin-bottom: 15px;
    font-weight: 600;
    position: relative;
    padding-bottom: 15px;
}

.resource-card h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: #ff7b00;
    border-radius: 2px;
}

.resource-card > p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.resource-card ul {
    padding-left: 0;
    margin: 25px 0;
    list-style: none;
}

.resource-card li {
    padding: 12px 0 12px 35px;
    color: #555;
    line-height: 1.6;
    position: relative;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.resource-card li:last-child {
    border-bottom: none;
}

.resource-card li:before {
    content: '📌';
    position: absolute;
    left: 0;
    top: 12px;
    font-size: 1.1rem;
}

.resource-card a {
    text-decoration: none;
    color: #0077cc;
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
    display: inline-block;
}

.resource-card li a:hover {
    color: #ff7b00;
    padding-left: 5px;
}

.resource-card li a:hover:after {
    content: ' →';
    position: absolute;
    margin-left: 5px;
    font-weight: bold;
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    padding: 12px 28px;
    background: linear-gradient(135deg, #ff7b00, #ff9500);
    color: white !important;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 15px rgba(255, 123, 0, 0.2);
    width: 100%;
    text-align: center;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 123, 0, 0.3);
    background: linear-gradient(135deg, #ff9500, #ff7b00);
}

.btn:before {
    content: '🚀';
    font-size: 1.2rem;
}

/* ===== VIDEO SECTION - ENHANCED ===== */
.video-section {
    padding: 60px 40px;
    background: linear-gradient(135deg, rgba(255, 232, 214, 0.3) 0%, rgba(217, 236, 255, 0.3) 100%);
    margin: 60px auto;
    border-radius: 20px;
    max-width: 1400px;
}

.video-section h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #003f88;
    margin-bottom: 40px;
    font-weight: 700;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.video-grid video {
    width: 100%;
    height: 220px;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    object-fit: cover;
    transition: all 0.4s ease;
    border: 3px solid transparent;
}

.video-grid video:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    border-color: #ff7b00;
}

/* Video container with overlay */
.video-grid {
    position: relative;
}

.video-grid video::before {
    content: '▶';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 123, 0, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.video-grid video:hover::before {
    opacity: 1;
}

/* ===== FEATURED BANNER ===== */
.featured-banner {
    background: linear-gradient(135deg, #0077cc, #0056b3);
    color: white;
    padding: 40px;
    border-radius: 20px;
    margin: 40px auto;
    max-width: 1400px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.featured-banner:before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.3;
}

.featured-banner h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
    position: relative;
}

.featured-banner p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 25px;
    line-height: 1.6;
}

/* Footer */
footer {
    background: #001f4d;
   color: white;
    padding: 60px 40px 30px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
    max-width: 1400px;
    margin: 0 auto;
}

.footer-left img {
    height: 50px;
    margin-bottom: 20px;
}

.footer-left p {
    color: #b3b3cc;
    margin-bottom: 10px;
}

.footer-tagline {
    font-size: 0.9rem;
    opacity: 0.7;
}

.footer-middle h4, .footer-right h4 {
    color: white;
    margin-bottom: 25px;
    font-size: 1.2rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-links a {
    color: #b3b3cc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #FF6B00; /* Orange hover */
    padding-left: 5px;
}

.footer-contact p {
    color: #b3b3cc;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-social {
    display: flex;
    gap: 20px;
    margin-top: 25px;
}

.footer-social a {
    color: #b3b3cc;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.footer-social a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #666;
    font-size: 0.9rem;
}
/* Small mobile adjustments */
@media (max-width: 480px) {
    .resource-header h1 {
        font-size: 1.8rem;
    }
    
    .resource-grid {
        padding: 20px;
        gap: 20px;
    }
    
    .resource-card {
        padding: 20px;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.95rem;
    }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.resource-card {
    animation: fadeInUp 0.6s ease-out;
}

.resource-card:nth-child(2) {
    animation-delay: 0.1s;
}

.resource-card:nth-child(3) {
    animation-delay: 0.2s;
}

.resource-card:nth-child(4) {
    animation-delay: 0.3s;
}

/* ===== FOOTER STYLES ===== */
/* Footer 
footer {
    background: #001f4d;
   color: white;
    padding: 60px 40px 30px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
    max-width: 1400px;
    margin: 0 auto;
}

.footer-left img {
    height: 50px;
    margin-bottom: 20px;
}

.footer-left p {
    color: #b3b3cc;
    margin-bottom: 10px;
}

.footer-tagline {
    font-size: 0.9rem;
    opacity: 0.7;
}

.footer-middle h4, .footer-right h4 {
    color: white;
    margin-bottom: 25px;
    font-size: 1.2rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-links a {
    color: #b3b3cc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.footer-contact p {
    color: #b3b3cc;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-social {
    display: flex;
    gap: 20px;
    margin-top: 25px;
}

.footer-social a {
    color: #b3b3cc;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.footer-social a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #666;
    font-size: 0.9rem;
}*/
