:root {
    --navy: #0b1f3a;
    --navy-light: #123a5e;
    --teal: #22c1a4;
    --teal-dark: #1aa38a;
    --bg: #f7f9fc;
    --danger: #e5484d;
    --warning: #f5a623;
    --text-muted: #6b7688;
}

body {
    background: var(--bg);
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: #1c2536;
}

a { text-decoration: none; }

/* ===================== HEADER ===================== */
.site-header {
    background: var(--navy);
    position: sticky;
    top: 0;
    z-index: 1040;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}
.site-header .navbar-brand {
    color: #fff;
    font-weight: 800;
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.site-header .navbar-brand img { height: 32px; }
.site-header .nav-link {
    color: rgba(255,255,255,0.8);
    font-weight: 500;
    font-size: 14.5px;
    padding: 8px 14px !important;
}
.site-header .nav-link:hover { color: var(--teal); }
.site-header .search-box {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 24px;
    color: #fff;
}
.site-header .search-box::placeholder { color: rgba(255,255,255,0.5); }
.site-header .search-box:focus {
    background: rgba(255,255,255,0.15);
    color: #fff;
    box-shadow: none;
    border-color: var(--teal);
}
.hamburger-btn {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 22px;
}
.mobile-search-icon {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 19px;
}

/* ===================== MOBILE SIDEBAR ===================== */
.mobile-sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1049;
    display: none;
}
.mobile-sidebar-overlay.show { display: block; }
.mobile-sidebar {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: 78%;
    max-width: 320px;
    background: #fff;
    z-index: 1050;
    transform: translateX(-100%);
    transition: transform 0.28s ease;
    overflow-y: auto;
    box-shadow: 4px 0 20px rgba(0,0,0,0.2);
}
.mobile-sidebar.show { transform: translateX(0); }
.mobile-sidebar .sidebar-brand {
    background: var(--navy);
    color: #fff;
    padding: 20px;
    font-weight: 700;
    font-size: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.mobile-sidebar .sidebar-close { background: none; border: none; color: #fff; font-size: 20px; }
.mobile-sidebar .nav-link {
    color: #1c2536;
    padding: 13px 20px;
    font-size: 15px;
    font-weight: 500;
    border-bottom: 1px solid #f0f2f6;
    display: flex; align-items: center; justify-content: space-between;
}
.mobile-sidebar .nav-link:hover { background: #f7f9fc; color: var(--teal-dark); }

/* ===================== BREAKING NEWS TICKER ===================== */
.breaking-news-bar {
    background: #fff;
    border-bottom: 1px solid #e9edf3;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 8px 0;
}
.breaking-badge {
    background: var(--danger);
    color: #fff;
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: 0.04em;
    padding: 4px 12px;
    border-radius: 4px;
    white-space: nowrap;
    margin-left: 12px;
    margin-right: 12px;
    flex-shrink: 0;
}
.breaking-news-track-wrapper {
    overflow: hidden;
    flex: 1;
    white-space: nowrap;
}
.breaking-news-track {
    display: inline-block;
    white-space: nowrap;
    animation: scroll-left var(--scroll-speed, 30s) linear infinite;
}
.breaking-news-track span {
    display: inline-block;
    padding-right: 60px;
    font-size: 13.5px;
    color: #333;
}
.breaking-news-track span a { color: inherit; }
@keyframes scroll-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ===================== SECTIONS ===================== */
.section-title {
    font-weight: 800;
    font-size: 20px;
    color: var(--navy);
    margin-bottom: 4px;
}
.section-subtitle { color: var(--text-muted); font-size: 13.5px; margin-bottom: 20px; }

/* ===================== EXAM CATEGORY CARDS ===================== */
.exam-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #eef1f6;
    box-shadow: 0 3px 14px rgba(15,35,65,0.05);
    padding: 18px;
    height: 100%;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    position: relative;
    display: block;
    color: inherit;
}
.exam-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(15,35,65,0.1);
    color: inherit;
}
.exam-card .exam-icon {
    width: 52px; height: 52px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--navy), var(--navy-light));
    color: var(--teal);
    display: flex; align-items: center; justify-content: center;
    font-size: 22px;
    margin-bottom: 12px;
}
.exam-card .exam-name { font-weight: 700; font-size: 15px; color: var(--navy); margin-bottom: 4px; }
.exam-card .exam-desc { font-size: 12.5px; color: var(--text-muted); }
.exam-card .new-badge {
    position: absolute;
    top: 12px; right: 12px;
    background: var(--warning);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 20px;
}

/* ===================== MOCK TEST CARDS ===================== */
.test-card {
    background: #fff;
    border-radius: 14px;
    border: 1px solid #eef1f6;
    box-shadow: 0 2px 10px rgba(15,35,65,0.05);
    padding: 16px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}
.test-card .test-title { font-weight: 700; font-size: 15px; color: var(--navy); margin-bottom: 3px; }
.test-card .test-meta { font-size: 12px; color: var(--text-muted); }
.test-card .test-meta i { margin-right: 4px; }
.btn-teal {
    background: var(--teal);
    border: none;
    color: #fff;
    font-weight: 600;
    padding: 8px 20px;
    border-radius: 8px;
    font-size: 13.5px;
    white-space: nowrap;
}
.btn-teal:hover { background: var(--teal-dark); color: #fff; }
.btn-navy {
    background: var(--navy);
    border: none;
    color: #fff;
    font-weight: 600;
    border-radius: 8px;
}
.btn-navy:hover { background: var(--navy-light); color: var(--teal); }
.badge-free { background: rgba(34,193,164,0.12); color: var(--teal-dark); font-weight: 700; }
.badge-paid { background: rgba(245,166,35,0.12); color: #b9791a; font-weight: 700; }

/* ===================== PREMIUM POPUP ===================== */
.premium-popup .modal-content { border-radius: 18px; border: none; overflow: hidden; }
.premium-popup .popup-header {
    background: linear-gradient(135deg, var(--navy), var(--navy-light));
    color: #fff;
    padding: 28px 24px 20px;
    text-align: center;
}
.premium-popup .popup-header i { font-size: 34px; color: var(--teal); margin-bottom: 8px; }
.premium-popup .offer-badge {
    background: var(--danger);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 10px;
}
.premium-popup .price-row { display: flex; align-items: baseline; justify-content: center; gap: 10px; margin: 14px 0; }
.premium-popup .price-old { text-decoration: line-through; color: rgba(255,255,255,0.5); font-size: 18px; }
.premium-popup .price-new { font-size: 34px; font-weight: 800; color: #fff; }
.premium-popup .popup-body { padding: 20px 24px; }

/* ===================== POSTS ===================== */
.post-card {
    background: #fff;
    border-radius: 14px;
    border: 1px solid #eef1f6;
    overflow: hidden;
    height: 100%;
    box-shadow: 0 2px 10px rgba(15,35,65,0.05);
}
.post-card img { width: 100%; height: 150px; object-fit: cover; }
.post-card .post-body { padding: 14px; }
.post-card .post-title { font-weight: 700; font-size: 14.5px; color: var(--navy); }
.post-card .post-meta { font-size: 11.5px; color: var(--text-muted); }

/* ===================== FOOTER ===================== */
.site-footer { background: var(--navy); color: rgba(255,255,255,0.7); padding: 36px 0 20px; margin-top: 40px; }
.site-footer h6 { color: #fff; font-weight: 700; margin-bottom: 14px; font-size: 14px; }
.site-footer a { color: rgba(255,255,255,0.65); font-size: 13.5px; display: block; margin-bottom: 8px; }
.site-footer a:hover { color: var(--teal); }
.social-btn {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(255,255,255,0.08);
    color: #fff;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    margin: 4px 6px 4px 0;
}
.social-btn:hover { background: var(--teal); color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); margin-top: 24px; padding-top: 16px; font-size: 12.5px; text-align: center; }

@media (max-width: 767.98px) {
    .section-title { font-size: 17px; }
}
