body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    background: linear-gradient(135deg, #d9ecff 0%, #ffe8d6 100%);
    color: #333;
}
/* ================= HEADER / NAV ================= */
/* 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 */
}
.logo {
    height: 65px;
}

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

.navbar a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.2s ease;
    padding: 6px 12px;
    border-radius: 6px;
}

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

.sign-btn {
    padding: 6px 14px;
    border-radius: 6px;
    background-color: #007bff;
    color: #fff !important;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.sign-btn:hover {
    background-color: #0056b3;
}
/* =========================================================
   MAIN CONTENT
   ========================================================= */
.resource-header {
    text-align: center;
    padding: 2rem 1rem;
}

.resource-header h1 {
    font-size: 2.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #ea7100;
}

.exam-article {
    display: flex;
    justify-content: center;
    padding: 1rem;
}

.article-card {
    background: white;
    padding: 2rem;
    max-width: 900px;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

.article-card h2 {
    color: #2a4fb8;
    margin-top: 1.5rem;
}

/*Video Section*/

.video-section {
    padding: 2rem 1rem 3rem;
    display: flex;
    justify-content: center;
}

.video-content {
    display: flex;
    align-items: center;
    gap: 2rem;
    max-width: 1100px;
    width: 100%;
}

.video-text {
    flex: 1;
}

.video-text h2 {
    margin-bottom: 0.5rem;
    font-size: 1.8rem;
}

.video-text p {
    font-size: 1rem;
    line-height: 1.6;
}

.video-box {
    flex: 1;
    display: flex;
    justify-content: center;
}

.exam-video {
    width: 100%;
    max-width: 500px; /* max width of video */
    aspect-ratio: 16 / 9; /* keeps standard rectangle shape */
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    object-fit: cover; /* ensures video fills the rectangle */
}

/* ================= 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 */
}

/*Mobile Responsiveness*/
@media (max-width: 768px) {
    .video-content {
        flex-direction: column;
        text-align: center;
    }

    .video-text {
        max-width: 600px;
    }

    .exam-video {
        max-width: 100%;
        aspect-ratio: 16 / 9; /* keeps rectangle on mobile too */
    }
}

/* Mobile Friendly */
@media (max-width: 700px) {
        .hamburger {
        display: block;      /* show hamburger */
        margin-left: auto;   /* push to right */
        font-size: 28px;
        cursor: pointer;
    }

    .navbar ul {
        display: none;       /* hide menu initially */
        flex-direction: column;
        gap: 10px;
        position: absolute;
        top: 100%;           /* dropdown below header */
        right: 0;            /* align to right */
        background: rgba(255, 255, 255, 0.82); /* glass effect */
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        padding: 10px 20px;
        border-radius: 0 0 12px 12px;
        z-index: 99;
    }

    .navbar ul.show {
        display: flex;       /* show menu when toggled */
    }

    .main-header {
        flex-direction: row;  /* logo left, hamburger right */
        align-items: center;
        padding: 15px 20px;
    }
    .contact-boxes {
        flex-direction: column;
        align-items: center;
    }

    .contact-card {
        width: 90%;
        max-width: 340px;
    }
}

/* =========================================================
   FOOTER
   ========================================================= */
footer {
    background-color: #f8f9fa;
    padding: 40px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
    border-top: 1px solid #e0e0e0;
}

footer img {
    height: 40px;
    margin-bottom: 10px;
}

.footer-left p {
    color: #555;
}

.footer-links,
.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    text-decoration: none;
    color: #007bff;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #0056b3;
}

.footer-contact p {
    color: #555;
    font-size: 0.9rem;
}

