﻿:root {
    --primary: #2563eb;
    --primary-dark: #1e40af;
    --accent: #f59e0b;
    --success: #16a34a;
    --danger: #dc2626;
    --dark: #0f172a;
    --muted: #64748b;
    --light: #f8fafc;
    --card: #ffffff;
    --border: #e2e8f0;
    --shadow: 0 18px 45px rgba(15, 23, 42, .12);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Segoe UI', Arial, sans-serif;
    background: var(--light);
    color: var(--dark);
    padding-top: 76px;
}

a {
    transition: .2s ease;
}

img {
    max-width: 100%;
}

.app-navbar {
    background: rgba(15, 23, 42, .95);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    min-width: max-content;
}

.logo {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    object-fit: cover;
    background: #fff;
    padding: 3px;
}

.brand-text {
    line-height: 1.05;
    font-weight: 800;
    font-size: 1.12rem;
}

.brand-main {
    color: #fff;
}

.brand-highlight {
    color: var(--accent);
    display: block;
}

.navbar .nav-link {
    color: rgba(255,255,255,.86) !important;
    font-weight: 600;
    padding: .7rem .9rem !important;
    border-radius: 12px;
}

    .navbar .nav-link:hover,
    .navbar .dropdown-item:hover {
        background: rgba(255,255,255,.1);
        color: #fff !important;
    }

.dropdown-menu {
    border-radius: 16px;
    padding: 10px;
    min-width: 220px;
}

.dropdown-item {
    border-radius: 10px;
    padding: .65rem .8rem;
    font-weight: 600;
}

.nav-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.nav-btn {
    border-radius: 999px;
    padding: .45rem .9rem;
}

.icon-btn {
    width: 38px;
    height: 38px;
    padding: 0;
}

.hero-section {
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at top left, #3b82f6 0, #1d4ed8 34%, #0f172a 100%);
    color: #fff;
    padding: 90px 0 110px;
}

.hero-bg-shape {
    position: absolute;
    border-radius: 999px;
    filter: blur(4px);
    opacity: .22;
    background: #fff;
}

.shape-one {
    width: 240px;
    height: 240px;
    right: -70px;
    top: 60px;
}

.shape-two {
    width: 160px;
    height: 160px;
    left: -50px;
    bottom: 30px;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    padding: 9px 16px;
    border-radius: 999px;
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.22);
    font-weight: 700;
    margin-bottom: 18px;
}

.hero-title {
    font-size: clamp(2.15rem, 5vw, 4.25rem);
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -1px;
    margin-bottom: 18px;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: rgba(255,255,255,.84);
    max-width: 650px;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 28px;
}

    .hero-actions .btn {
        border-radius: 999px;
        padding: .85rem 1.35rem;
    }

.hero-preview-card {
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.25);
    box-shadow: 0 28px 70px rgba(0,0,0,.28);
    border-radius: 28px;
    padding: 24px;
    backdrop-filter: blur(16px);
}

.preview-topbar {
    display: flex;
    gap: 8px;
    margin-bottom: 22px;
}

    .preview-topbar span {
        width: 12px;
        height: 12px;
        border-radius: 50%;
        background: rgba(255,255,255,.65);
    }

.preview-question {
    font-weight: 800;
    font-size: 1.2rem;
    margin-bottom: 16px;
}

.preview-option {
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 16px;
    padding: 13px 14px;
    margin-bottom: 10px;
    font-weight: 650;
}

    .preview-option i {
        margin-right: 9px;
        color: #fde68a;
    }

    .preview-option.active {
        background: rgba(34,197,94,.22);
    }

.preview-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,.16);
}

.counter-section {
    margin-top: -52px;
    position: relative;
    z-index: 2;
    padding-bottom: 65px;
}

.counter-box,
.feature-card,
.testimonial-card,
.search-practice-box,
.news-card,
.mcq-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.counter-box {
    padding: 24px;
    text-align: center;
    height: 100%;
}

.counter-icon {
    width: 48px;
    height: 48px;
    display: inline-grid;
    place-items: center;
    border-radius: 15px;
    color: var(--primary);
    background: #dbeafe;
    margin-bottom: 12px;
}

.counter-box h2 {
    font-size: 2rem;
    font-weight: 900;
    margin: 0;
}

.counter-box p {
    color: var(--muted);
    margin: 4px 0 0;
    font-weight: 650;
}

.section-heading {
    max-width: 760px;
    margin: 0 auto 38px;
}

.section-kicker {
    color: var(--primary);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: .78rem;
}

.section-heading h2 {
    font-weight: 900;
    margin-top: 8px;
}

.section-heading p {
    color: var(--muted);
    font-size: 1.05rem;
}

.mcq-section, .why-section, .testimonial-section {
    padding: 75px 0;
}

.mcq-section {
    background: linear-gradient(180deg, #f8fafc, #eef2ff);
}

.search-practice-box {
    padding: 26px;
    margin-bottom: 28px;
}

.search-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}

    .search-header h4 {
        margin: 0;
        font-weight: 900;
    }

    .search-header p {
        margin: 4px 0 0;
        color: var(--muted);
    }

.search-icon-badge {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--primary), #60a5fa);
    color: #fff;
    flex: 0 0 auto;
}

.question-search-group {
    display: flex;
    gap: 10px;
}

.question-search-input {
    min-height: 52px;
    border-radius: 16px;
    border-color: var(--border);
    padding-left: 18px;
}

.btn-search-question, .load-more-btn {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    border-radius: 16px;
    font-weight: 800;
    white-space: nowrap;
    padding-left: 22px;
    padding-right: 22px;
}

    .btn-search-question:hover, .load-more-btn:hover {
        background: var(--primary-dark);
        color: #fff;
    }

.btn-clear-search {
    border-radius: 16px;
    font-weight: 700;
}

.search-status {
    color: var(--muted);
    font-weight: 650;
    margin-top: 12px;
}

.mcq-card {
    padding: 22px;
    margin-bottom: 18px;
}

.mcq-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.mcq-chip {
    background: #eef2ff;
    color: var(--primary-dark);
    padding: 5px 10px;
    border-radius: 999px;
    font-size: .82rem;
    font-weight: 800;
}

.mcq-question {
    font-weight: 850;
    font-size: 1.06rem;
    margin-bottom: 14px;
}

.mcq-option {
    padding: 11px 13px;
    border: 1px solid var(--border);
    border-radius: 14px;
    margin-bottom: 8px;
    background: #fff;
}

.mcq-answer {
    display: none;
    margin-top: 12px;
    padding: 12px;
    border-radius: 14px;
    background: #ecfdf5;
    color: #166534;
    font-weight: 750;
}

.show-answer-btn {
    border-radius: 999px;
    font-weight: 800;
    margin-top: 10px;
}

.sidebar-sticky {
    position: sticky;
    top: 96px;
    z-index: 20;
    max-height: calc(100vh - 115px);
    overflow-y: auto;
    overscroll-behavior: contain;
    transition: transform .22s ease, top .22s ease;
    scrollbar-width: thin;
}

    .sidebar-sticky.is-scrolling-down {
        transform: translateY(8px);
    }

    .sidebar-sticky.is-scrolling-up {
        transform: translateY(0);
    }

.news-card {
    overflow: hidden;
}

    .news-card .card-header {
        background: var(--dark);
        color: #fff;
        font-weight: 900;
        padding: 16px 18px;
    }

.news-item {
    padding: 16px 18px;
    border-bottom: 1px solid var(--border);
}

    .news-item:last-child {
        border-bottom: 0;
    }

.news-link {
    display: block;
    color: var(--dark);
    text-decoration: none;
    font-weight: 800;
    line-height: 1.35;
}

    .news-link:hover {
        color: var(--primary);
    }

.feature-card, .testimonial-card {
    height: 100%;
    padding: 28px;
}

.feature-icon {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), #60a5fa);
    font-size: 1.35rem;
    margin-bottom: 18px;
}

.feature-card h5 {
    font-weight: 900;
}

.feature-card p, .testimonial-card p {
    color: var(--muted);
}

.testimonial-section {
    background: #fff;
}

.testimonial-card p {
    font-style: italic;
}

.testimonial-card h6 {
    font-weight: 900;
    color: var(--primary-dark);
}

.final-cta {
    padding: 75px 0;
    color: #fff;
    background: linear-gradient(135deg, #0f172a, #1d4ed8);
}

    .final-cta h2 {
        font-weight: 900;
    }

    .final-cta p {
        color: rgba(255,255,255,.78);
        font-size: 1.08rem;
    }

body.dark-mode {
    --light: #020617;
    --card: #0f172a;
    --border: #1e293b;
    --dark: #e5e7eb;
    --muted: #94a3b8;
    background: #020617;
}

    body.dark-mode .mcq-section {
        background: linear-gradient(180deg, #020617, #0f172a);
    }

    body.dark-mode .testimonial-section {
        background: #020617;
    }

    body.dark-mode .mcq-option {
        background: #111827;
    }

    body.dark-mode .news-card .card-header {
        background: #111827;
    }

@media (min-width: 992px) {
    .dropdown-submenu {
        position: relative;
    }

        .dropdown-submenu > .dropdown-menu {
            top: 0;
            left: 100%;
            margin-left: .25rem;
        }

        .dropdown-submenu:hover > .dropdown-menu {
            display: block;
        }
}

@media (max-width: 991.98px) {
    body {
        padding-top: 70px;
    }

    .navbar-collapse {
        padding: 16px 0 8px;
    }

    .nav-actions {
        width: 100%;
    }

        .nav-actions .nav-btn {
            flex: 1;
        }

    .hero-section {
        padding: 64px 0 86px;
    }

    .hero-actions {
        justify-content: center;
    }

    .question-search-group {
        flex-direction: column;
    }

    .btn-search-question, .btn-clear-search {
        width: 100%;
        min-height: 50px;
    }

    .sidebar-sticky {
        position: static;
    }
}

@media (max-width: 575.98px) {
    .logo {
        width: 40px;
        height: 40px;
    }

    .brand-text {
        font-size: 1rem;
    }

    .counter-section {
        margin-top: -36px;
    }

    .counter-box {
        padding: 18px 10px;
    }

        .counter-box h2 {
            font-size: 1.55rem;
        }

    .search-practice-box, .mcq-card, .feature-card, .testimonial-card {
        padding: 18px;
        border-radius: 18px;
    }

    .search-header {
        align-items: flex-start;
    }

    .hero-preview-card {
        padding: 18px;
    }
}

.mcq-option {
    cursor: pointer;
    transition: 0.25s;
}

    .mcq-option.correct-answer {
        background: #d1fae5 !important;
        border-color: #16a34a !important;
        color: #065f46 !important;
    }

    .mcq-option.wrong-answer {
        background: #fee2e2 !important;
        border-color: #dc2626 !important;
        color: #991b1b !important;
    }

.mcq-card.answered .mcq-option {
    pointer-events: none;
}

@media (max-width: 991.98px) {
    .sidebar-sticky {
        position: static;
        max-height: none;
        overflow: visible;
        transform: none !important;
    }
}

/* =========================================================
   TOPIC SOCIAL CHIP UNDER MCQ EXPLANATION
   Updated: social media icons only
========================================================= */

.topic-social-chip {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    column-gap: 12px; /* spacing between icons */
    row-gap: 8px; /* spacing if icons move to next line */
    padding: 9px 13px;
    border-radius: 999px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    box-shadow: 0 8px 18px rgba(15, 23, 42, .05);
}

.topic-social-label {
    font-size: .78rem;
    font-weight: 850;
    color: #475569;
    margin-right: 6px; /* spacing after Topic Links text */
}

/* Common icon style for Topic links and community social buttons */
.topic-social-icon,
.social-community-btn {
    width: 34px;
    height: 34px;
    min-width: 34px;
    padding: 0 !important;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    text-decoration: none;
    font-size: 0; /* hides raw text like Facebook Page / YouTube Channel */
    line-height: 1;
    color: #ffffff;
    border: 0;
    box-shadow: 0 8px 18px rgba(15, 23, 42, .12);
    transition: all .22s ease;
}

    .topic-social-icon i,
    .social-community-btn i {
        font-size: 1rem;
        line-height: 1;
        margin: 0 !important;
    }

    .topic-social-icon span,
    .social-community-btn span {
        display: none;
    }

    .topic-social-icon.is-enabled,
    .social-community-btn {
        color: #ffffff;
        cursor: pointer;
    }

        .topic-social-icon.is-enabled:hover,
        .social-community-btn:hover {
            color: #ffffff;
            transform: translateY(-2px) scale(1.05);
            box-shadow: 0 10px 20px rgba(15, 23, 42, .18);
        }

        /* Disabled social icon */
        .topic-social-icon.is-disabled,
        .social-community-btn.is-disabled {
            color: #94a3b8;
            background: #e5e7eb;
            border: 1px solid #cbd5e1;
            cursor: not-allowed;
            opacity: .65;
            box-shadow: none;
            pointer-events: none;
        }

        /* Platform colors */
        .topic-social-icon.facebook.is-enabled,
        .topic-social-icon.facebook-page.is-enabled,
        .topic-social-icon.group.is-enabled,
        .social-community-btn.facebook,
        .social-community-btn.facebook-page,
        .social-community-btn.group {
            background: linear-gradient(135deg, #1877f2, #0f5bd8);
        }

        .topic-social-icon.instagram.is-enabled,
        .social-community-btn.instagram {
            background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af);
        }

        .topic-social-icon.whatsapp.is-enabled,
        .social-community-btn.whatsapp {
            background: linear-gradient(135deg, #25d366, #128c7e);
        }

        .topic-social-icon.youtube.is-enabled,
        .social-community-btn.youtube {
            background: linear-gradient(135deg, #ff0000, #c1121f);
        }

body.dark-mode .topic-social-chip {
    background: #111827;
    border-color: #334155;
}

body.dark-mode .topic-social-label {
    color: #cbd5e1;
}

body.dark-mode .topic-social-icon.is-disabled,
body.dark-mode .social-community-btn.is-disabled {
    background: #1e293b;
    border-color: #334155;
    color: #64748b;
}

@media (max-width: 576px) {
    .topic-social-chip {
        border-radius: 18px;
        column-gap: 10px;
        row-gap: 8px;
        padding: 9px 11px;
    }

    .topic-social-label {
        width: 100%;
        margin-bottom: 2px;
        margin-right: 0;
    }

    .topic-social-icon,
    .social-community-btn {
        width: 34px;
        height: 34px;
        min-width: 34px;
    }
}

/* =========================================================
   FINAL OVERRIDE: COMMUNITY SOCIAL ICONS - SINGLE HORIZONTAL ROW
   Use for: <div class="social-community-links"> ... </div>
========================================================= */

.social-community-links {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
    flex-wrap: nowrap !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    white-space: nowrap !important;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
}

    .social-community-links .social-community-btn {
        width: 42px !important;
        height: 42px !important;
        min-width: 42px !important;
        max-width: 42px !important;
        flex: 0 0 42px !important;
        padding: 0 !important;
        margin: 0 !important;
        border-radius: 50% !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        text-decoration: none !important;
        color: #ffffff !important;
        font-size: 0 !important;
        line-height: 1 !important;
        float: none !important;
        clear: none !important;
        box-shadow: 0 8px 18px rgba(15, 23, 42, .12);
        transition: all .22s ease;
    }

        .social-community-links .social-community-btn i {
            display: inline-flex !important;
            align-items: center !important;
            justify-content: center !important;
            margin: 0 !important;
            padding: 0 !important;
            font-size: 18px !important;
            line-height: 1 !important;
        }

        .social-community-links .social-community-btn span,
        .social-community-links .social-community-btn small,
        .social-community-links .social-community-btn strong {
            display: none !important;
        }

        .social-community-links .social-community-btn:hover {
            color: #ffffff !important;
            transform: translateY(-2px) scale(1.06);
            box-shadow: 0 10px 20px rgba(15, 23, 42, .18);
        }

        .social-community-links .social-community-btn.facebook {
            background: #1877f2 !important;
        }

        .social-community-links .social-community-btn.instagram {
            background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af) !important;
        }

        .social-community-links .social-community-btn.whatsapp {
            background: #25d366 !important;
        }

        .social-community-links .social-community-btn.youtube {
            background: #ff0000 !important;
        }

@media (max-width: 576px) {
    .social-community-links {
        justify-content: center !important;
        gap: 10px !important;
    }

        .social-community-links .social-community-btn {
            width: 40px !important;
            height: 40px !important;
            min-width: 40px !important;
            max-width: 40px !important;
            flex-basis: 40px !important;
        }

            .social-community-links .social-community-btn i {
                font-size: 17px !important;
            }
}
