/* ==================== ROOT VARIABLES ==================== */
:root {
    --primary: #0f4c75;
    --primary-dark: #1b262c;
    --primary-light: #1e3a5f;
    --accent: #3282b8;
    --accent-light: #bbe1fa;
    --gold: #f0b429;
    --bg: #f4f7f6;
    --card: #ffffff;
    --text: #333333;
    --text-muted: #666666;
    --success: #28a745;
    --warning: #ffc107;
    --danger: #e53e3e;
    --border-radius: 12px;
}

/* ==================== RESET ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

/* ==================== ANNOUNCEMENT BAR ==================== */
.announcement-bar {
    background: linear-gradient(135deg, #1b262c, #0f4c75);
    color: white;
    padding: 8px 0;
    overflow: hidden;
    white-space: nowrap;
    position: sticky;
    top: 0;
    z-index: 2000;
    font-size: 0.9rem;
}
.announcement-text {
    display: inline-block;
    animation: scrollText 30s linear infinite;
}
.announcement-text span {
    padding-right: 80px;
}
.announcement-text a {
    color: #ffd700;
    text-decoration: none;
    font-weight: 700;
}
@keyframes scrollText {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ==================== NAVBAR ==================== */
.navbar {
    background: var(--primary);
    color: white;
    padding: 12px 0;
    position: sticky;
    top: 32px;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}
.nav-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
}
.nav-logo i {
    margin-right: 8px;
    color: var(--gold);
}
.nav-links a {
    color: white;
    text-decoration: none;
    margin-left: 20px;
    font-weight: 500;
    transition: color 0.3s;
}
.nav-links a:hover {
    color: var(--gold);
}
.btn-admin {
    background: var(--gold);
    color: var(--primary) !important;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
}

/* ==================== HERO ==================== */
.hero {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    padding: 80px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}
.hero-content {
    max-width: 500px;
}
.hero-content h1 {
    font-size: 2.8rem;
    margin-bottom: 10px;
}
.hero-content p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 8px;
}
.hero-btn {
    background: var(--gold);
    color: var(--primary);
    padding: 14px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    display: inline-block;
    margin-top: 20px;
    transition: transform 0.3s;
}
.hero-btn:hover {
    transform: translateY(-2px);
}
.hero-image i {
    color: var(--gold);
    opacity: 0.8;
}

/* ==================== CONTAINER ==================== */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ==================== INFO CARDS ==================== */
.mept-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin: -40px auto 40px;
    position: relative;
    z-index: 10;
}
.info-card {
    background: var(--card);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 8px 25px rgba(0,0,0,0.05);
    text-align: center;
    transition: transform 0.3s;
}
.info-card:hover {
    transform: translateY(-5px);
}
.info-card i {
    color: var(--accent);
    margin-bottom: 15px;
}
.info-card h3 {
    color: var(--primary);
    margin-bottom: 10px;
}
.info-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ==================== MOCK TEST CARDS ==================== */
.fullset-bar {
    background: var(--card);
    padding: 40px;
    border-radius: var(--border-radius);
    margin-bottom: 40px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0,0,0,0.05);
}
.fullset-bar h2 {
    color: var(--primary);
    font-size: 1.8rem;
    margin-bottom: 5px;
}
.mock-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-top: 25px;
}
.mock-card {
    background: var(--bg);
    padding: 25px;
    border-radius: var(--border-radius);
    text-decoration: none;
    color: var(--text);
    border: 2px solid transparent;
    transition: all 0.3s;
}
.mock-card:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,168,204,0.1);
}
.mock-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
}
.mock-card h4 {
    margin: 10px 0 5px;
    color: var(--primary);
}
.mock-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ==================== PRACTICE PREVIEW CARDS ==================== */
.practice-preview-section {
    background: var(--card);
    padding: 40px;
    border-radius: var(--border-radius);
    margin-bottom: 40px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.05);
    text-align: center;
}
.practice-preview-section h2 {
    color: var(--primary);
    font-size: 1.8rem;
}
.practice-subtitle {
    color: var(--text-muted);
    margin-bottom: 30px;
}
.preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
}
.preview-card {
    background: var(--bg);
    padding: 25px;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
    text-align: left;
}
.preview-card:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
}
.preview-icon {
    text-align: center;
    color: var(--accent);
    margin-bottom: 15px;
}
.preview-card h3 {
    color: var(--primary);
    text-align: center;
    margin-bottom: 8px;
}
.preview-card > p {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-align: center;
    margin-bottom: 15px;
}
.preview-sample {
    background: var(--card);
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 0.9rem;
}
.preview-btn {
    width: 100%;
    background: var(--primary);
    color: white;
    border: none;
    padding: 10px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}
.preview-btn:hover {
    background: var(--primary-light);
}

/* ==================== CERTIFICATE PREVIEW ==================== */
.cert-preview-section {
    margin: 50px 0;
    text-align: center;
}
.certificate-wrapper {
    max-width: 650px;
    margin: 30px auto;
}
.certificate-border {
    background: linear-gradient(135deg, #1a3a5c, #0f4c75);
    padding: 8px;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(15, 76, 117, 0.3);
    position: relative;
}
.certificate-border::before {
    content: '';
    position: absolute;
    top: 4px; left: 4px; right: 4px; bottom: 4px;
    border: 2px solid #f0b429;
    border-radius: 16px;
    pointer-events: none;
}
.certificate-inner {
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 14px;
    padding: 40px 30px;
    position: relative;
    overflow: hidden;
}
.certificate-inner::before {
    content: '⚓';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    font-size: 15rem;
    color: rgba(15, 76, 117, 0.03);
    pointer-events: none;
}
.cert-seal {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #f0b429, #e67e22);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 5px 15px rgba(240, 180, 41, 0.3);
}
.cert-seal i {
    font-size: 2rem;
    color: white;
}
.cert-head {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e2e8f0;
}
.cert-head h3 {
    font-size: 1.8rem;
    color: #0f4c75;
    font-weight: 700;
    margin-bottom: 5px;
}
.cert-head p {
    color: #718096;
    font-size: 1rem;
}
.cert-body {
    text-align: center;
}
.cert-body > p {
    color: #555;
    font-size: 1rem;
    margin-bottom: 8px;
}
.cert-name {
    font-size: 2rem;
    color: #0f4c75;
    font-weight: 700;
    margin: 10px 0;
    text-transform: uppercase;
}
.cert-test {
    font-size: 1.3rem;
    font-weight: 700;
    color: #f0b429;
    margin-bottom: 15px !important;
}
.cert-score-circle {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0f4c75, #3282b8);
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 20px auto;
    box-shadow: 0 10px 25px rgba(15, 76, 117, 0.4);
    border: 4px solid #f0b429;
}
.cert-score-value {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
}
.cert-score-label {
    font-size: 0.85rem;
    opacity: 0.9;
    margin-top: 3px;
}
.cert-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 25px 0;
}
.cert-detail-item {
    background: #f8f9fa;
    padding: 12px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid #e2e8f0;
}
.cert-detail-label {
    display: block;
    font-size: 0.8rem;
    color: #718096;
    margin-bottom: 5px;
}
.cert-detail-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f4c75;
}
.grade-a {
    font-size: 1.5rem !important;
    color: #f0b429 !important;
}
.pass {
    color: #38a169 !important;
}
.cert-qr {
    margin: 20px 0 10px;
}
.cert-qr img {
    width: 100px;
    height: 100px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 5px;
    background: white;
}
.cert-foot {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 2px solid #e2e8f0;
}
.cert-foot p {
    font-size: 0.8rem;
    color: #999;
    font-style: italic;
}

/* ==================== DEMO SECTION ==================== */
.demo-section {
    background: var(--card);
    padding: 30px;
    border-radius: var(--border-radius);
    margin-bottom: 40px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.05);
}
.demo-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}
.demo-header h2 {
    color: var(--primary);
    font-size: 1.5rem;
    margin: 0;
}
.premium-banner {
    background: linear-gradient(135deg, #1b262c, #0f4c75);
    color: white;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    margin-top: 20px;
}
.premium-banner h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}
.premium-btn {
    display: inline-block;
    background: linear-gradient(135deg, #f39c12, #e74c3c);
    color: white;
    padding: 12px 24px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    margin-top: 10px;
}

/* ==================== LOGIN SECTION ==================== */
.login-section {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}
.login-card {
    background: var(--card);
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    max-width: 420px;
    width: 100%;
    text-align: center;
}
.login-card h3 {
    color: var(--primary);
    margin-bottom: 10px;
    font-size: 1.3rem;
}
.input-group {
    text-align: left;
    margin-bottom: 15px;
}
.input-group label {
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 5px;
}
.login-input {
    display: block;
    width: 100%;
    padding: 12px 15px;
    border-radius: 10px;
    border: 2px solid #e1e1e1;
    font-size: 1rem;
    outline: none;
    transition: border 0.3s;
}
.login-input:focus {
    border-color: var(--accent);
}
.login-btn {
    width: 100%;
    background: linear-gradient(135deg, #0f4c75, #3282b8);
    color: white;
    border: none;
    padding: 14px;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.3s;
}
.login-btn:hover {
    background: #0f4c75;
    transform: translateY(-2px);
}

/* ==================== PRACTICE SECTION ==================== */
.user-info-bar {
    background: var(--primary);
    color: white;
    padding: 12px 20px;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 0.9rem;
}
.logout-btn {
    background: var(--danger);
    color: white;
    border: none;
    padding: 6px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
}
.premium-unlocked-msg {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 20px;
}
.tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
    position: sticky;
    top: 60px;
    z-index: 100;
}
.tab-btn {
    background: var(--card);
    border: 2px solid transparent;
    color: var(--text-muted);
    padding: 10px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    font-size: 0.95rem;
}
.tab-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}
.content-wrapper {
    background: var(--card);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    margin-bottom: 40px;
    min-height: 400px;
}
.set-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 15px;
}
.set-btn {
    display: flex;
    justify-content: space-between;
    padding: 15px 20px;
    border-radius: 12px;
    border: 2px solid #e1e1e1;
    background: white;
    cursor: pointer;
    transition: all 0.3s;
}
.set-btn:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--bg);
    padding-bottom: 10px;
}
.section-header h2 {
    color: var(--primary-dark);
    font-size: 1.5rem;
}
.badge {
    background: var(--accent-light);
    color: var(--primary-dark);
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
}
.question {
    background: var(--bg);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    border-left: 4px solid var(--accent);
}
.question p {
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--primary-dark);
}
.options label {
    display: block;
    background: var(--card);
    padding: 10px 15px;
    margin-bottom: 8px;
    border-radius: 6px;
    border: 1px solid #e1e1e1;
    cursor: pointer;
    transition: 0.2s;
}
.options label:hover {
    border-color: var(--accent);
    background: #f8fbff;
}
.options input[type="radio"] {
    margin-right: 10px;
    accent-color: var(--primary);
}
.reading-passage {
    background: var(--bg);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    border-left: 4px solid var(--accent);
}
.reading-passage h4 {
    color: var(--primary);
    margin-bottom: 10px;
}
.audio-container {
    background: #eef5fa;
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
    border: 1px solid var(--accent-light);
}
.audio-container audio {
    width: 100%;
    margin-top: 10px;
}
textarea {
    width: 100%;
    padding: 12px;
    margin-top: 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 0.95rem;
    resize: vertical;
    outline: none;
}
textarea:focus {
    border-color: var(--accent);
}
.submit-btn {
    width: 100%;
    background: var(--success);
    color: white;
    border: none;
    padding: 15px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    margin-top: 20px;
    transition: 0.3s;
}
.submit-btn:hover {
    background: #218838;
}
.back-btn {
    display: block;
    margin: 15px auto;
    background: #666;
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}
.back-btn:hover {
    background: #444;
}

/* ==================== RESULT CARD ==================== */
.result-card {
    background: white;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-align: center;
    margin-top: 20px;
}
.result-score-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0f4c75, #3282b8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 15px auto;
    color: white;
}
.result-grade {
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 700;
    margin: 10px 0;
    display: inline-block;
}
.grade-excellent { background: #d4edda; color: #155724; }
.grade-good { background: #d1ecf1; color: #0c5460; }
.grade-fair { background: #fff3cd; color: #856404; }
.grade-poor { background: #f8d7da; color: #721c24; }

/* ==================== WRITING OPTIONS ==================== */
.writing-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 15px;
}
.option-card {
    background: white;
    border: 1px solid #eee;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

/* ==================== FOOTER ==================== */
footer {
    text-align: center;
    padding: 2rem;
    background: var(--primary-dark);
    color: #aaa;
    font-size: 0.9rem;
}
footer a {
    color: #3282b8;
    text-decoration: none;
}
.disclaimer-banner {
    background: #fff3cd;
    border: 1px solid #ffc107;
    padding: 12px 20px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: #856404;
}
.tab-content {
    display: none;
}
.tab-content.active {
    display: block;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 50px 20px;
    }
    .hero-content h1 {
        font-size: 2rem;
    }
    .nav-links a {
        margin-left: 10px;
        font-size: 0.85rem;
    }
    .writing-options {
        grid-template-columns: 1fr;
    }
    .content-wrapper {
        padding: 20px;
    }
    .mock-grid {
        grid-template-columns: 1fr 1fr;
    }
    .certificate-inner {
        padding: 25px 15px;
    }
    .cert-details-grid {
        grid-template-columns: 1fr;
    }
}

