:root {
    --sc-navy: #0b1f3a;
    --sc-blue: #12355b;
    --sc-navy-soft: #1a3a63;
    --sc-orange: #f26522;
    --sc-orange-dark: #d35400;
    --sc-gold: #f4a261;
    --sc-white: #ffffff;
    --sc-page: #f4f7fb;
    --sc-text: #0b1f3a;
    --sc-muted: #5b6b80;
    --sc-radius: 18px;
    --sc-shadow: 0 12px 28px rgba(11, 31, 58, 0.14);
}

.sc-logo {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    object-fit: contain;
    background: #fff;
    border: 2px solid rgba(242, 101, 34, 0.45);
}

.sc-logo-lg {
    width: 128px;
    height: 128px;
    border-radius: 50%;
    object-fit: contain;
    background: #fff;
    border: 3px solid #f26522;
    box-shadow: 0 8px 20px rgba(242, 101, 34, 0.25);
}

.sc-login-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin: 28px auto 8px;
    max-width: 1100px;
}

.sc-login-card {
    background: #fff;
    border-radius: 22px;
    padding: 22px 18px 20px;
    text-align: center;
    box-shadow: var(--sc-shadow);
    border: 1px solid rgba(18, 53, 91, 0.08);
    text-decoration: none !important;
    color: var(--sc-navy) !important;
    display: block;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sc-login-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 36px rgba(11, 31, 58, 0.18);
}

.sc-login-card h3 {
    font-size: 1.15rem;
    font-weight: 800;
    margin: 12px 0 6px;
}

.sc-login-card p {
    color: var(--sc-muted);
    font-size: 0.9rem;
    margin: 0 0 14px;
    min-height: 42px;
}

.sc-btn-orange {
    display: inline-block;
    background: linear-gradient(135deg, #f26522, #e67e22);
    color: #fff !important;
    border: none;
    border-radius: 40px;
    padding: 10px 18px;
    font-weight: 700;
    text-decoration: none !important;
}

.sc-btn-navy {
    display: inline-block;
    background: linear-gradient(135deg, #0b1f3a, #1a3a63);
    color: #fff !important;
    border: none;
    border-radius: 40px;
    padding: 10px 18px;
    font-weight: 700;
    text-decoration: none !important;
}

.sc-panel-header {
    background: linear-gradient(135deg, #0b1f3a 0%, #12355b 70%, #1a3a63 100%);
    color: #fff;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.sc-panel-header a {
    color: #fff;
    text-decoration: none;
}

.sc-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
}

.sc-feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

.sc-feature-card {
    background: #fff;
    border-radius: 18px;
    padding: 22px 16px;
    text-align: center;
    box-shadow: var(--sc-shadow);
    border-top: 4px solid #f26522;
}

.sc-feature-card a {
    color: inherit;
    text-decoration: none;
    display: block;
}

.sc-feature-card i {
    font-size: 1.8rem;
    color: #f26522;
    margin-bottom: 10px;
}

.sc-course-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--sc-shadow);
    text-decoration: none !important;
    color: var(--sc-navy) !important;
    display: block;
    height: 100%;
}

.sc-course-card img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    background: #12355b;
}

.sc-course-card h4 {
    font-size: 1rem;
    padding: 12px 14px 4px;
    margin: 0;
}

.sc-course-card p {
    padding: 0 14px 14px;
    margin: 0;
    color: var(--sc-muted);
    font-size: 0.85rem;
}

@media (max-width: 992px) {
    .sc-login-grid {
        grid-template-columns: 1fr;
    }
}

.sc-study-hero {
    background: linear-gradient(135deg, #0b1f3a 0%, #12355b 70%, #1a3a63 100%);
    color: #fff;
    border-radius: 22px;
    padding: 22px 20px;
    margin-bottom: 18px;
    box-shadow: var(--sc-shadow);
}

.sc-study-hero h1 {
    font-size: 1.45rem;
    font-weight: 800;
    margin: 8px 0 6px;
}

.sc-crumb a { color: #f4a261; text-decoration: none; font-weight: 600; }
.sc-crumb span { color: rgba(255,255,255,.75); }

.sc-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 14px 0 0;
}

.sc-notes-card, .sc-mock-card, .sc-audio-card {
    background: #fff;
    border-radius: 18px;
    padding: 18px;
    box-shadow: var(--sc-shadow);
    margin-bottom: 16px;
}

.sc-notes-body {
    line-height: 1.75;
    color: #1b2a3d;
    font-size: 1.02rem;
}

.sc-notes-body h2, .sc-notes-body h3 {
    color: #0b1f3a;
    margin-top: 1.1em;
}

.sc-mock-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 12px;
}

.sc-mock-card-item {
    border: 1px solid rgba(18,53,91,.12);
    border-radius: 16px;
    padding: 16px 12px;
    text-align: center;
    text-decoration: none !important;
    color: var(--sc-navy) !important;
    display: block;
    background: #fff;
}

.sc-mock-card-item strong { display: block; font-size: 1.05rem; margin-bottom: 4px; }
.sc-mock-card-item span { color: var(--sc-muted); font-size: 0.85rem; }
.sc-mock-card-item .sc-badge {
    display: inline-block;
    margin-top: 8px;
    background: #f26522;
    color: #fff;
    border-radius: 20px;
    padding: 4px 10px;
    font-size: 0.78rem;
    font-weight: 700;
}
.sc-mock-card-item.attempt-today {
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
    border-color: #fb923c;
}
.sc-mock-card-item .sc-badge.attempt {
    background: #059669;
}

.sc-audio-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.sc-status { font-size: 0.88rem; color: rgba(255,255,255,.85); margin-top: 8px; }

.sc-q-card { background: #fff; border-radius: 16px; padding: 16px; margin-bottom: 12px; box-shadow: var(--sc-shadow); }
.sc-opt {
    display: block;
    border: 1px solid #d7deea;
    border-radius: 12px;
    padding: 10px 12px;
    margin: 8px 0;
    cursor: pointer;
}
.sc-opt input { margin-right: 8px; }
.sc-opt.correct { border-color: #198754; background: #eaf8ef; }
.sc-opt.wrong { border-color: #dc3545; background: #fdecee; }

/* Ads after content only — never sticky overlay on notes */
.sc-ad-after-content { margin: 20px 0; min-height: 0; }
ins.adsbygoogle, .google-auto-placed { position: static !important; float: none !important; max-width: 100%; }
ins.adsbygoogle[data-anchor-status] { display: none !important; }

@media print {
    nav.navbar, .sc-toolbar, .sc-audio-card, .sc-mock-card, footer, .sc-ad-after-content, .sc-no-print {
        display: none !important;
    }
    .sc-notes-card, .sc-study-hero, .sc-q-card {
        box-shadow: none !important;
        border: none !important;
    }
    body { background: #fff !important; }
}
