* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Poppins', sans-serif; background: #f4f7fb; color: #1d2939; overflow-x: hidden; }

/* Navigation */
.topbar { display: flex; justify-content: space-between; align-items: center; padding: 10px 5%; background: #ffffff; color: #1e293b; position: sticky; top: 0; z-index: 100; box-shadow: 0 4px 20px rgba(0,0,0,0.07); border-bottom: 1px solid #e2e8f0; }
.logo { display: flex; align-items: center; }
.logo-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.site-logo-img { height: 62px; width: auto; object-fit: contain; vertical-align: middle; transition: transform 0.2s ease; }
.logo-brand:hover .site-logo-img { transform: scale(1.03); }
.logo-title { font-size: clamp(20px, 3.2vw, 26px); font-weight: 800; color: #0b2d67; letter-spacing: -0.5px; line-height: 1; }
.logo-title span { color: #f59e0b; }

nav ul { display: flex; gap: 24px; list-style: none; align-items: center; }
nav a { text-decoration: none; color: #334155; font-weight: 600; font-size: 15px; transition: all 0.25s ease; padding: 6px 4px; }
nav a:hover, nav a.active { color: #0b2d67; }
nav a.nav-admin-btn { background: #0b2d67; color: #ffffff !important; padding: 8px 20px; border-radius: 30px; font-size: 14px; font-weight: 700; transition: all 0.25s ease; }
nav a.nav-admin-btn:hover { background: #1e3a8a; box-shadow: 0 4px 14px rgba(11,45,103,0.25); transform: translateY(-1px); }

.menu-toggle { display: none; background: none; border: none; color: #0b2d67; font-size: 28px; cursor: pointer; }

/* Email Verification Alert Banner for Public & Member Pages */
.verification-alert-banner {
    background: #fffbeb;
    border: 1px solid #fef3c7;
    border-left: 5px solid #f59e0b;
    padding: 14px 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    color: #92400e;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.08);
}
.verification-alert-banner .banner-content {
    display: flex;
    align-items: center;
    gap: 10px;
}
.verification-alert-banner .banner-icon {
    font-size: 20px;
}
.btn-warning {
    background: #f59e0b;
    color: #ffffff;
    border: none;
    padding: 8px 18px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.btn-warning:hover {
    background: #d97706;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

/* Hero Carousel Section */
.hero-carousel-container { position: relative; width: 100%; min-height: 85vh; overflow: hidden; background: #04173a; }
.hero-carousel { display: flex; width: 100%; height: 100%; min-height: 85vh; transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1); }
.carousel-slide { position: relative; flex: 0 0 100%; width: 100%; min-height: 85vh; display: flex; align-items: center; padding: 60px 5%; background-size: cover; background-position: center; background-repeat: no-repeat; }
.carousel-slide .overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(4,23,58,.92) 0%, rgba(4,23,58,.65) 60%, rgba(4,23,58,.3) 100%); }
.hero-content { position: relative; z-index: 2; color: #fff; width: 100%; max-width: 820px; }
.badge { display: inline-block; background: #ffb400; color: #111; padding: 8px 16px; border-radius: 40px; font-weight: 700; margin-bottom: 20px; font-size: 14px; }
.hero-btns { display: flex; gap: 15px; flex-wrap: wrap; }
.hero-content h1 { font-size: clamp(2.5rem, 5vw + 1rem, 68px); line-height: 1.1; font-weight: 800; margin-bottom: 25px; }
.hero-content p { font-size: clamp(16px, 2vw, 22px); line-height: 1.7; margin-bottom: 35px; }

/* Carousel Controls */
.carousel-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 10; background: rgba(11, 45, 103, 0.6); color: #fff; border: 2px solid rgba(255, 255, 255, 0.3); width: 48px; height: 48px; border-radius: 50%; font-size: 22px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.3s ease; backdrop-filter: blur(4px); }
.carousel-arrow:hover { background: #ffb400; color: #111; border-color: #ffb400; transform: translateY(-50%) scale(1.1); }
.carousel-prev { left: 24px; }
.carousel-next { right: 24px; }

.carousel-dots { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 10; display: flex; gap: 10px; }
.dot { width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,0.4); cursor: pointer; transition: all 0.3s ease; border: 2px solid transparent; }
.dot.active { background: #ffb400; width: 32px; border-radius: 20px; }

/* Testimonials Section */
.testimonials-section { padding: 70px 5%; background: #f8fafc; border-top: 1px solid #e2e8f0; text-align: center; }
.testimonials-section h2 { font-size: clamp(28px, 4vw, 42px); color: #0b2d67; font-weight: 800; margin-bottom: 8px; }
.testimonials-subtitle { font-size: 16px; color: #64748b; margin-bottom: 45px; }
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); gap: 30px; text-align: left; }
.testimonial-card { background: #fff; border-radius: 20px; padding: 28px; box-shadow: 0 10px 30px rgba(11, 45, 103, 0.07); border: 1px solid #e2e8f0; display: flex; flex-direction: column; justify-content: space-between; transition: all 0.3s ease; }
.testimonial-card:hover { transform: translateY(-5px); box-shadow: 0 16px 36px rgba(11, 45, 103, 0.12); border-color: #ffb400; }
.testimonial-body { font-size: 14.5px; color: #334155; line-height: 1.7; margin-bottom: 20px; font-style: italic; }
.testimonial-footer { display: flex; align-items: center; gap: 14px; margin-top: auto; border-top: 1px solid #f1f5f9; padding-top: 16px; }
.testimonial-avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 2px solid #ffb400; background: #0b2d67; color: #ffb400; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 18px; flex-shrink: 0; }
.testimonial-info h4 { font-size: 15px; font-weight: 700; color: #0b2d67; margin-bottom: 2px; }
.testimonial-info small { font-size: 12px; color: #64748b; font-weight: 500; }
.star-rating { color: #f59e0b; font-size: 14px; margin-bottom: 12px; }

/* Buttons */
.btn { display: inline-block; padding: 12px 26px; border-radius: 50px; text-decoration: none; font-weight: 700; border: none; cursor: pointer; text-align: center; transition: all 0.2s ease; line-height: 1.3; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.15); }
.primary { background: #ffb400; color: #111; }
.secondary { background: #fff; color: #0b2d67; }
.btn-dark { background: #0b2d67; color: #fff; }
.btn-dark:hover { background: #163b7e; color: #fff; }

/* Ticker */
.ticker { background: #0b2d67; color: #fff; padding: 14px; overflow: hidden; white-space: nowrap; }
.track { display: inline-block; animation: move 20s linear infinite; }
.track span { margin-right: 80px; font-weight: 500; }
@keyframes move { from { transform: translateX(100%); } to { transform: translateX(-100%); } }

/* Stats (Auto-fit Grid) */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 25px; padding: 60px 5%; text-align: center; }
.stats h2 { font-size: clamp(36px, 5vw, 52px); color: #0b2d67; }
.stats p { font-size: clamp(16px, 2vw, 22px); font-weight: 600; }

/* Cards (Auto-fit Grid) */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; padding: 0 5% 70px; }
.card { background: #fff; border-radius: 18px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,.08); transition: transform 0.3s ease; display: flex; flex-direction: column; }
.card:hover { transform: translateY(-5px); }
.card img { width: 100%; height: 240px; object-fit: cover; }
.card h3 { font-size: clamp(20px, 2.5vw, 26px); padding: 20px 20px 10px; color: #0b2d67; }
.card p { padding: 0 20px 20px; font-size: 15px; color: #555; flex-grow: 1; }

/* Quiz Box Styling */
.quiz-card {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 8px 24px rgba(11, 45, 103, 0.08);
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s ease;
}
.quiz-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(11, 45, 103, 0.15);
    border-color: #ffb400;
}
.quiz-card-header {
    margin-bottom: 12px;
}
.quiz-card-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: #0b2d67;
    margin-bottom: 8px;
    padding: 0;
}
.quiz-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: #64748b;
    margin-bottom: 14px;
}
.quiz-date {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.quiz-badge {
    background: #e0e7ff;
    color: #3730a3;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}
.quiz-desc {
    font-size: 14px;
    color: #475569;
    line-height: 1.6;
    margin-bottom: 20px;
    padding: 0;
}

/* Quiz Section & Interactive Interface */
.quiz-section { padding: 60px 5%; text-align: center; }
.quiz-section h2 { font-size: clamp(28px, 4vw, 42px); margin-bottom: 30px; color: #0b2d67; }

#quiz-interface {
    max-width: 780px;
    margin: 0 auto;
    background: #fff;
    border-radius: 20px;
    padding: 36px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.09);
    text-align: left;
    display: none;
}

/* Name Step */
.quiz-step-card {
    text-align: center;
    padding: 20px 10px;
}
.quiz-step-card h3 {
    font-size: 24px;
    color: #0b2d67;
    margin-bottom: 12px;
}
.quiz-step-card p {
    color: #64748b;
    margin-bottom: 24px;
}
.input-group {
    max-width: 400px;
    margin: 0 auto 24px;
    text-align: left;
}
.input-group label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
    text-transform: uppercase;
}
.input-group input {
    width: 100%;
    padding: 14px 18px;
    font-size: 16px;
    border: 2px solid #cbd5e1;
    border-radius: 12px;
    outline: none;
    transition: border-color 0.2s;
    font-family: inherit;
}
.input-group input:focus {
    border-color: #0b2d67;
}

/* Progress Header */
.quiz-progress-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 16px;
    border-bottom: 2px solid #f1f5f9;
    margin-bottom: 24px;
    font-size: 14px;
    color: #64748b;
    font-weight: 600;
}
.quiz-progress-bar span strong {
    color: #0b2d67;
}

/* Options Container */
.options-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 24px 0 30px;
}
.option-card {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 16px;
    font-weight: 500;
    color: #334155;
}
.option-card:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}
.option-card.selected {
    background: #eff6ff;
    border-color: #2563eb;
    color: #1e40af;
    font-weight: 600;
}
.option-card input[type="radio"] {
    margin-right: 14px;
    width: 20px;
    height: 20px;
    accent-color: #0b2d67;
}

/* Score Screen */
.score-card {
    text-align: center;
    padding: 20px 0;
}
.score-badge-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0b2d67, #1e40af);
    color: #ffb400;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    box-shadow: 0 10px 25px rgba(11, 45, 103, 0.3);
}
.score-badge-circle .num {
    font-size: 32px;
    font-weight: 800;
    line-height: 1;
}
.score-badge-circle .total {
    font-size: 13px;
    color: #e0e7ff;
    font-weight: 600;
}
.score-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 30px;
}

/* Review Answers View */
.review-container {
    margin-top: 30px;
    border-top: 2px dashed #e2e8f0;
    padding-top: 24px;
}
.review-item {
    background: #f8fafc;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 18px;
    border-left: 5px solid #cbd5e1;
}
.review-item.is-correct {
    border-left-color: #10b981;
    background: #f0fdf4;
}
.review-item.is-wrong {
    border-left-color: #ef4444;
    background: #fef2f2;
}
.review-q-title {
    font-weight: 700;
    font-size: 16px;
    color: #1e293b;
    margin-bottom: 10px;
}
.review-ans-info {
    font-size: 14px;
    margin-bottom: 6px;
}
.correct-ans { color: #047857; font-weight: 700; }
.wrong-ans { color: #b91c1c; font-weight: 700; }
.explanation-box {
    margin-top: 10px;
    padding: 10px 14px;
    background: rgba(255,255,255,0.7);
    border-radius: 8px;
    font-size: 13px;
    color: #475569;
    font-style: italic;
}

footer { background: #0b2d67; color: #fff; padding: 80px 5%; text-align: center; }
footer h2 { color: #ffb400; margin-bottom: 15px; font-size: clamp(28px, 4vw, 42px); }

/* Media Queries */
@media(max-width: 900px) {
    .menu-toggle { display: block; }
    nav { position: absolute; top: 100%; left: 0; width: 100%; background: #ffffff; box-shadow: 0 12px 25px rgba(0,0,0,0.1); padding: 0; max-height: 0; overflow: hidden; transition: max-height 0.3s ease-in-out; }
    nav.active { max-height: 420px; padding: 16px 0; border-top: 1px solid #e2e8f0; }
    nav ul { flex-direction: column; gap: 0; text-align: center; }
    nav ul li a { display: block; padding: 14px 0; border-bottom: 1px solid #f1f5f9; color: #334155; }
    nav a.nav-admin-btn { display: inline-block; margin-top: 10px; }

    .hero { min-height: auto; padding: 80px 5%; }
    #quiz-interface { padding: 24px; }
}

@media(max-width: 480px) {
    .btn { width: 100%; }
    .cards { grid-template-columns: 1fr; }
    .score-actions { flex-direction: column; }
}

/* Inner Page Headers */
.page-header { background: #0b2d67; color: #fff; padding: 60px 5%; text-align: center; }
.page-header h1 { font-size: clamp(32px, 5vw, 48px); font-weight: 800; color: #ffb400; }
.page-header p { font-size: 18px; margin-top: 10px; }

/* Downloads Table */
.data-table-container { overflow-x: auto; padding: 40px 5%; }
.data-table { width: 100%; border-collapse: collapse; background: #fff; box-shadow: 0 4px 10px rgba(0,0,0,0.05); border-radius: 8px; overflow: hidden; }
.data-table th, .data-table td { padding: 15px; text-align: left; border-bottom: 1px solid #eee; }
.data-table th { background: #0b2d67; color: #fff; }
.data-table tr:hover { background: #f9f9f9; }

/* Filter Form */
.filter-bar { padding: 20px 5%; display: flex; gap: 15px; align-items: center; justify-content: center; }
.filter-bar select { padding: 10px 16px; border: 1px solid #ccc; border-radius: 8px; font-family: 'Poppins', sans-serif; font-size: 14px; outline: none; }

.comsys-btn {
    display: inline-block;
    padding: 4px 10px;
    margin-left: 4px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.25s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.comsys-btn:hover {
    background: linear-gradient(135deg, #764ba2, #667eea);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}