:root {
    --primary: #2fb3c8;
    --primary-dark: #249aad;

    --bg-light: #f5f7fb;
    --card-bg: #ffffff;

    --text-dark: #1f2d3d;
    --text-muted: #6b7c93;

    --success: #22c55e;
    --danger: #ef4444;
    --warning: #f59e0b;

    /* NEW */
    --radius: 14px;
    --shadow-sm: 0 2px 6px rgba(0,0,0,0.06);
    --shadow-md: 0 8px 24px rgba(0,0,0,0.08);
    --shadow-lg: 0 14px 40px rgba(0,0,0,0.12);
}

/* =========================
   DESIGN SYSTEM
========================= */

:root {
    --primary: #2fb3c8;
    --primary-dark: #249aad;
    --secondary: #4f46e5;
    --bg-light: #f4f6f8;
    --card-bg: #ffffff;
    --text-dark: #1f2d3d;
    --text-muted: #6b7c93;
    --success: #2ecc71;
    --danger: #e74c3c;
    --warning: #f59e0b;
}

/* =========================
   BASE RESET
========================= */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    background: var(--bg-light);
    color: var(--text-dark);
}

a {
    color: var(--primary);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

h1, h2, h3 {
    margin-top: 0;
}

/* =========================
   BASE
========================= */
body{
    margin:0;
    font-family:'Inter','Segoe UI',sans-serif;
    background:#f5f7fb;
}

/* =========================
   NAVBAR
========================= */
.navbar{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:12px 20px;
    background:linear-gradient(90deg,#1e3c72,#2a5298);
    color:white;
    position:sticky;
    top:0;
    z-index:1000;
}

.logo-area{
    display:flex;
    align-items:center;
    gap:10px;
    flex:1;
}

.logo{
    font-size:26px;       /* bigger */
    font-weight:700;
    letter-spacing:0.5px;
}

.menu-toggle{
    font-size:22px;
    background:none;
    border:none;
    color:white;
    cursor:pointer;
    display:none;
}

.search-container{
    flex:2;
    display:flex;
    justify-content:center;
}

.search-form{
    display:flex;
    width:100%;
    max-width:500px;
    background:white;
    border-radius:10px;
    overflow:hidden;              /* 🔥 key */
    box-shadow:0 2px 6px rgba(0,0,0,0.15);
}

.search-input{
    flex:1;
    padding:12px 14px;
    border:none;
    outline:none;
    font-size:14px;
}

.search-btn{
    background:#ff9800;
    color:white;
    border:none;
    padding:12px 18px;
    cursor:pointer;
    font-weight:600;
    transition:0.2s ease;
}

.search-btn:hover{
    background:#e68900;
}

.nav-links{
    display:flex;
    align-items:center;
    justify-content:flex-end;
    gap:20px;
    flex:1;
}

.nav-links a{
    color:white;
    text-decoration:none;
    font-weight:500;
}

.nav-btn{
    background:transparent;
    border:1px solid white;
    color:white;
    padding:6px 12px;
    border-radius:6px;
    cursor:pointer;
    display:inline-flex;
    align-items:center;
}

.nav-links form{
    margin:0;
    display:inline;
}

/* =========================
   MOBILE
========================= */
@media (max-width:900px){

    .menu-toggle{
        display:block;
    }

    .search-container{
        display:none;
    }

    .nav-links{
        position:absolute;
        top:60px;
        right:0;
        background:#1e3c72;
        flex-direction:column;
        align-items:flex-start;
        width:220px;
        padding:15px;
        gap:15px;
        display:none;
    }

    .nav-links.active{
        display:flex;
    }
}

/* =========================
   PAGE LAYOUT
========================= */
.page-layout{
    display:grid;
    grid-template-columns:1fr 3fr;
    gap:25px;
    max-width:1600px;
    margin:auto;
    padding:25px 60px;
}

.sidebar{
    height:fit-content;
}

.content{
    background:white;
    padding:20px;
    border-radius:10px;
}

@media (max-width:900px){
    .page-layout{
        grid-template-columns:1fr;
        padding:20px;
    }
}

/* =========================
   CARD
========================= */

.card {
    background: var(--card-bg);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    margin-bottom: 20px;
}


/* =========================
   BUTTONS
========================= */

.btn {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 10px rgba(47,179,200,0.3);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.btn-secondary {
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-secondary:hover {
    background: #e6f7fa;
}

/* =========================
   TITLES
========================= */

.page-title {
    margin-bottom: 5px;
}

.subtitle {
    color: var(--text-muted);
    margin-bottom: 20px;
}

/* =========================
   FORMS
========================= */

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

input {
    width: 100%;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
}

.errorlist {
    color: var(--danger);
    font-size: 0.9rem;
    margin-top: 5px;
    list-style: none;
    padding: 0;
}

/* =========================
   QUIZ SYSTEM
========================= */

.question-text {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.options {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.option {
    width: 100%;
    max-width: none;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    background: #fff;
    display: flex;
    align-items: center;
    transition: all 0.2s ease;
}

.option input {
    margin-right: 10px;
}

.option:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
    background: #f8fbff;
}

.option.correct {
    background: #e7f6ec;
    border-color: var(--success);
}

.option.incorrect {
    background: #fdecea;
    border-color: var(--danger);
}

.feedback {
    margin-top: 15px;
    padding: 12px;
    border-radius: 6px;
}

.feedback.correct {
    background: #e7f6ec;
    border-left: 4px solid var(--success);
}

.feedback.incorrect {
    background: #fdecea;
    border-left: 4px solid var(--danger);
}

.explanation {
    margin-top: 10px;
    font-style: italic;
    color: #555;
}

/* =========================
   TOPICS GRID
========================= */

.more-indicator {
    margin-top: 20px;
    text-align: center;
    color: var(--text-muted);
}

/* =========================
   STUDY PAGE
========================= */

.selection-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.selection-box {
    background: #f8fbff;
    padding: 20px;
    border-radius: 12px;
}

.checkbox-item {
    display: block;
    margin-bottom: 8px;
}

/* =========================
   DASHBOARD
========================= */

.dashboard-row {
    display: flex;
    gap: 20px;
}

/* Battery */

.battery {
    width: 80px;
    height: 200px;
    border-radius: 12px;
    background: #e5e7eb;
    position: relative;
    overflow: hidden;
    margin: auto;
}

.battery-level {
    position: absolute;
    bottom: 0;
    width: 100%;
    text-align: center;
    color: white;
    font-weight: bold;
    transition: height 0.5s ease;
}

.low { background: var(--danger); }
.mid { background: var(--warning); }
.high { background: var(--success); }

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 900px) {
    .page-layout {
        flex-direction: column;
    }

    .topic-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .topic-grid {
        grid-template-columns: 1fr;
    }

    .selection-grid {
        grid-template-columns: 1fr;
    }
}
.card {
    background: var(--card-bg);
    padding: 25px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: all 0.25s ease;
    margin-bottom: 20px;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}
.page-title {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 5px;
}

.subtitle {
    font-size: 15px;
    color: var(--text-muted);
    margin-bottom: 20px;
}
.dashboard-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.dashboard-row .card {
    flex: 1;
}
.topic-card {
    display: block;
    background: white;
    padding: 25px;
    border-radius: 14px;
    text-align: center;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
    transition: all 0.25s ease;
}

.topic-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    animation: fadeUp 0.4s ease;
}
.chart-card {
    background: #fff;
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    margin-bottom: 20px;
}

.chart-container {
    width: 100%;
    max-width: none;
    height: 300px;
}
/* =========================
   DASHBOARD LAYOUT
========================= */

.stats-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

/* =========================
   CARD DESIGN (PREMIUM)
========================= */

.card {
    flex: 1;
    min-width: 280px;
    padding: 20px;
    border-radius: 16px;
    background: #ffffff;

    /* Soft shadow */
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);

    /* Smooth hover */
    transition: all 0.25s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.card h3 {
    margin-bottom: 10px;
    font-size: 18px;
    color: #333;
}

/* =========================
   🔋 BATTERY (CONFIDENCE)
========================= */

.battery {
    width: 100%;
    height: 32px;
    border-radius: 10px;
    border: 2px solid #e0e0e0;
    overflow: hidden;
    margin-top: 10px;
    background: #f5f5f5;
}

.battery-level {
    height: 100%;
    width: 0%;
    border-radius: 8px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: white;
    font-weight: 600;
    font-size: 14px;

    transition: width 0.6s ease;
}

/* Color states */
.low {
    background: linear-gradient(90deg, #e74c3c, #ff6b6b);
}

.mid {
    background: linear-gradient(90deg, #f39c12, #f1c40f);
}

.high {
    background: linear-gradient(90deg, #2ecc71, #27ae60);
}

.confidence-text {
    margin-top: 10px;
    text-align: center;
    font-weight: 600;
    color: #555;
}

/* =========================
   📈 CIRCULAR PROGRESS
========================= */

.progress-circle {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;

    /* Will be controlled by JS */
    background: conic-gradient(#2ecc71 0%, #eee 0%);

    display: flex;
    align-items: center;
    justify-content: center;

    position: relative;
}

/* Inner circle (cut-out effect) */
.circle::before {
    content: "";
    position: absolute;

    width: 90px;
    height: 90px;
    border-radius: 50%;

    background: white;
}

/* Text inside circle */
#progressText {
    position: relative;
    font-weight: 700;
    font-size: 18px;
    color: #333;
}

/* =========================
   TREND TEXT
========================= */

.trend-text {
    text-align: center;
    margin-top: 10px;
    font-weight: 600;
    color: #555;
}

/* =========================
   RESPONSIVE DESIGN
========================= */

@media (max-width: 768px) {
    .stats-row {
        flex-direction: column;
    }
}
.logo {
    font-size: 22px;
    font-weight: bold;
    color: white;
    text-decoration: none;
}

.logo:hover {
    opacity: 0.8;
}

.card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
.stats-row {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.stats-row .card {
    flex: 1;
}
.stats-grid {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.stats-grid .card {
    flex: 1;
}
@media (max-width: 768px) {
    .stats-row,
    .stats-grid {
        flex-direction: column;
    }
}
.dashboard-actions-row {
    display: block;   /* stack vertically */
    margin-bottom: 25px;
}

.action-panel {
    margin-bottom: 20px;
}

.adaptive-panel {
    width: 100%;
}

.adaptive-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.adaptive-card:last-child {
    border-bottom: none;
}

.adaptive-query {
    font-weight: 600;
}

.adaptive-meta {
    font-size: 12px;
    color: #777;
}

.adaptive-score {
    font-size: 13px;
    margin-top: 4px;
}

.status-complete {
    color: green;
    font-size: 12px;
    font-weight: 600;
}

.status-progress {
    color: orange;
    font-size: 12px;
    font-weight: 600;
}

.btn-small {
    font-size: 12px;
    padding: 6px 10px;
}
/* 🔥 BUTTON BASE */
.btn {
    display: inline-block;
    padding: 12px 20px;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.25s ease;
    border: none;
}

/* 🔵 PRIMARY BUTTON */
.btn-primary {
    background: linear-gradient(135deg, #4facfe, #00c6ff);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 150, 255, 0.3);
}

/* ⚪ SECONDARY BUTTON */
.btn-secondary {
    background: transparent;
    color: #4facfe;
    border: 2px solid #4facfe;
}

.btn-secondary:hover {
    background: #4facfe;
    color: white;
}

/* 📦 ACTION ROW LAYOUT */
.action-row {
    display: flex;
    gap: 15px;
    align-items: center;
}

/* HERO */
.hero {
    padding: 40px;
    text-align: left;
    margin-bottom: 30px;
}

.hero h1 {
    font-size: 32px;
    margin-bottom: 10px;
}

.subtitle {
    color: #555;
    margin-bottom: 20px;
}

/* CTA */
.cta-group {
    display: flex;
    gap: 15px;
}

/* GRID */
.grid {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

/* QUIZ GRID */
.quiz-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.quiz-tile {
    background: #f0f4ff;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
}

/* PRICING */
.pricing-grid {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.price-card {
    flex: 1;
    padding: 20px;
    border-radius: 12px;
    background: #f9f9f9;
}

.price-card.highlight {
    background: #3498db;
    color: white;
}

/* FOOTER */
.footer {
    text-align: center;
    margin-top: 40px;
    color: #777;
}

/* QUESTION */
.question-box {
    background: #f8fbff;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 25px;
}

.question-text {
    font-size: 18px;
    line-height: 1.5;
}

/* OPTIONS (THIS WAS YOUR MAIN PROBLEM) */
.options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* FULL WIDTH OPTION BUTTON */
.option {
    display: flex;
    align-items: center;
    gap: 10px;

    width: 100%;
    padding: 16px;

    border-radius: 10px;
    border: 2px solid #e6e9ef;

    cursor: pointer;
    transition: all 0.2s ease;
}

/* RADIO */
.option input {
    transform: scale(1.2);
}

/* HOVER */
.option:hover {
    border-color: #3498db;
    background: #f3f8ff;
}

/* CORRECT */
.option.correct {
    background: #eafaf1;
    border-color: #2ecc71;
}

/* WRONG */
.option.incorrect {
    background: #fdecea;
    border-color: #e74c3c;
}

/* BUTTON */
.submit-btn {
    margin-top: 20px;
}

/* FEEDBACK */
.feedback {
    margin-top: 20px;
    padding: 15px;
    border-radius: 10px;
}

.feedback.correct {
    background: #eafaf1;
    border: 1px solid #2ecc71;
}

.feedback.incorrect {
    background: #fdecea;
    border: 1px solid #e74c3c;
}

/* =========================
   SECTION CARDS
========================= */

.study-sections {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.section {
    flex: 1;
    background: #f8fafc;
    padding: 15px;
    border-radius: 10px;
}


/* =========================
   OPTIONS (CHECKBOX LIST)
========================= */

.options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Each option row */
.option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease;
}

/* Hover effect */
.option:hover {
    background: #eef3f8;
}

/* Checkbox */
.option input {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Text */
.option span {
    flex: 1;
}


/* =========================
   SIDEBAR
========================= */

.sidebar h3 {
    margin-bottom: 10px;
}

.sidebar ul {
    list-style: none;
    padding: 0;
}

.sidebar li {
    margin-bottom: 10px;
}

.sidebar a {
    text-decoration: none;
    color: #2a5298;
}

.sidebar a:hover {
    text-decoration: underline;
}


/* =========================
   BUTTON
========================= */

.study-container button {
    margin-top: 20px;
}


/* =========================
   RESPONSIVE (Mobile)
========================= */

@media (max-width: 768px) {
    .page-layout {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
    }

    .study-container {
        width: 100%;
    }

    .study-sections {
        flex-direction: column;
    }
}
/* ========================= */
/* HORIZONTAL SCROLL STYLE */
/* ========================= */

.adaptive-scroll {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding-bottom: 10px;
    scroll-behavior: smooth;
}

/* Hide scrollbar (optional clean look) */
.adaptive-scroll::-webkit-scrollbar {
    height: 6px;
}

.adaptive-scroll::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}

.adaptive-scroll::-webkit-scrollbar-track {
    background: transparent;
}

/* Each tile */
.adaptive-tile-horizontal {
    min-width: 180px;
    background: #f8f9fa;
    padding: 14px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: 0.2s ease;
    flex-shrink: 0; /* 🔥 important */
}

.adaptive-tile-horizontal:hover {
    background: #eef2f7;
    transform: translateY(-3px);
}

.tile-title {
    font-weight: 600;
    font-size: 14px;
}

.tile-score {
    font-size: 13px;
    color: #333;
}

.tile-meta {
    font-size: 11px;
    color: #888;
}

.tile-btn {
    font-size: 12px;
    text-decoration: none;
    background: #007bff;
    color: white;
    padding: 4px 8px;
    border-radius: 6px;
    align-self: flex-start;
}

.tile-btn:hover {
    background: #0056b3;
}
/* FORCE horizontal layout */
/* ============================= */
/* ADAPTIVE HORIZONTAL SCROLL */
/* ============================= */

.adaptive-scroll {
    display: flex;
    flex-wrap: nowrap;
    gap: 16px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 10px;
    width: 100%;
}

.adaptive-tile-horizontal {
    min-width: 220px;
    flex: 0 0 auto;
}
/* ===================================================== */
/* 🔥 FINAL DASHBOARD + ADAPTIVE FIX (PASTE AT BOTTOM) */
/* ===================================================== */

/* ---- 1️⃣ Ensure stats row behaves normally ---- */
.stats-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

/* ---- 2️⃣ Force Adaptive Card to Full Width ---- */
.adaptive-panel {
    flex: 0 0 100% !important;
    width: 100% !important;
    order: 99; /* pushes it below other flex cards */
}

/* ---- 3️⃣ Stack Action Buttons Properly ---- */
.dashboard-actions-row {
    display: block !important;
}

.action-panel {
    margin-bottom: 20px;
}

/* ---- 4️⃣ FORCE TRUE HORIZONTAL SCROLL ---- */
.adaptive-scroll {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;

    overflow-x: auto !important;
    overflow-y: hidden !important;

    gap: 18px;
    width: 100%;

    scroll-behavior: smooth;
}

/* Optional subtle scrollbar */
.adaptive-scroll::-webkit-scrollbar {
    height: 6px;
}

.adaptive-scroll::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}

/* ---- 5️⃣ Lock Tiles So They NEVER Wrap ---- */
.adaptive-tile-horizontal {
    min-width: 240px;
    flex: 0 0 auto !important;
}

/* ---- 6️⃣ Remove any vertical adaptive styles ---- */
.adaptive-card {
    display: none; /* old vertical layout disabled */
}
.results-container{
width:100%;
max-width:none;
margin:0;
padding-bottom:60px;
}

.score-card{
background:#f8f9fa;
padding:30px;
text-align:center;
margin-bottom:35px;
border-radius:8px;
}

.score-number{
font-size:40px;
font-weight:bold;
}

.question-card{
background:white;
border:1px solid #ddd;
border-radius:8px;
padding:25px;
margin-bottom:25px;
}

.question-header{
display:flex;
justify-content:space-between;
margin-bottom:10px;
font-weight:bold;
}

.badge-correct{
color:#1a7f37;
}

.badge-wrong{
color:#cf222e;
}

.question-text{
font-size:18px;
margin-bottom:15px;
}

.choices{
list-style:none;
padding:0;
}

.choices li{
padding:12px;
margin-bottom:8px;
border:1px solid #eee;
border-radius:6px;
}

.correct-choice{
background:#e6f4ea;
border-color:#1a7f37;
}

.wrong-choice{
background:#fde8e8;
border-color:#cf222e;
}

.explanation{
background:#f6f8fa;
padding:15px;
border-radius:6px;
margin-top:15px;
}

.exp-title{
font-weight:bold;
margin-bottom:5px;
}

.results-buttons{
display:flex;
justify-content:space-between;
margin-top:40px;
}

.btn-repeat{
background:#444;
color:white;
padding:12px 20px;
border-radius:6px;
text-decoration:none;
}

.btn-next{
background:#2e7d32;
color:white;
padding:12px 20px;
border-radius:6px;
text-decoration:none;
}


/* =========================
   TOPIC GRID
========================= */

.topic-grid{
    display:grid;

    /* exactly 4 topics per row */
    grid-template-columns:repeat(4, 1fr);

    gap:25px;

    margin-top:20px;
}


/* =========================
   TOPIC CARD (≈2cm)
========================= */

.topic-card{

    width:120px;   /* ~3cm */
    height:120px;  /* ~3cm */

    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;

    border-radius:12px;
    background:#fff;

    padding:10px;

    box-shadow:0 4px 10px rgba(0,0,0,0.08);

    transition:all 0.25s ease;
}


/* ICON SIZE */

.topic-icon img{
    width:32px;
    height:32px;
    object-fit:contain;
}


/* TEXT */

.topic-name{
    font-size:8px;
    font-weight:600;
    text-align:center;
    line-height:1.1;
    margin-top:4px;
}


.topic-grid{
    display:grid;
    grid-template-columns:repeat(4, 1fr);
    gap:25px;
    justify-content:start;
}


/* topic cards ~2cm */
.topic-card{
    width:80px !important;
    height:80px !important;

    padding:4px !important;

    display:flex !important;
    flex-direction:column !important;
    align-items:center !important;
    justify-content:center !important;
}


/* icon */
.topic-icon img{
    width:48px !important;
    height:48px !important;
}


/* topic text */
.topic-name{
    font-size:9px !important;
    line-height:1.1 !important;
    text-align:center !important;
}
/* ================================= */
/* GLOBAL PAGE LAYOUT (FINAL FIX)    */
/* ================================= */

.page-layout{
    display:grid;
    grid-template-columns:1fr 3fr;   /* 25% : 75% */
    gap:40px;
    padding-left:30px;
    padding-right:30px;
    align-items:start;
}

/* sidebar width */
.sidebar{
    display:flex;
    flex-direction:column;
    gap:20px;
}
.sidebar .card{
    width:100%;
}

/* content expands */
.content{
    width:100%;
}

/* mobile */
@media (max-width:900px){

    .page-layout{
        grid-template-columns:260px 1fr;
        padding:20px;
    }

}
.quiz-progress{
    margin-bottom:25px;
}

.progress-text{
    font-weight:600;
    margin-bottom:6px;
}

.progress-bar{
    width:100%;
    height:8px;
    background:#e6e9ef;
    border-radius:10px;
    overflow:hidden;
}

.progress-fill{
    height:100%;
    background:#2fb3c8;
    transition:width 0.4s ease;
}
/* =========================
   QUIZ PROGRESS BAR
========================= */

.quiz-progress{
    margin-bottom:20px;
}

.progress-text{
    font-weight:600;
    margin-bottom:6px;
}

.progress-bar{
    width:100%;
    height:8px;
    background:#e6e9ef;
    border-radius:10px;
    overflow:hidden;
}

.progress-fill{
    height:100%;
    background:#2fb3c8;
    transition:width 0.4s ease;
}
/* =========================
   SIDEBAR ADVERT
========================= */

.advert-card{
    margin-top:20px;
}

.advert-card p{
    font-size:14px;
    line-height:1.5;
    margin-bottom:12px;
}

.whatsapp-link{
    display:inline-block;
    background:#25D366;
    color:white;
    padding:10px 14px;
    border-radius:8px;
    text-decoration:none;
    font-weight:600;
}

.whatsapp-link:hover{
    background:#1ebe5d;
}
/* =========================
   EMAIL CONTACT BUTTON
========================= */

.email-link{
    display:block;
    margin-top:10px;
    text-align:center;

    background:#4285F4;
    color:white;

    padding:10px 14px;
    border-radius:8px;
    text-decoration:none;
    font-weight:600;
}

.email-link:hover{
    background:#2f6ad9;
}
/* =========================
   HAMBURGER MENU
========================= */

.logo-area{
display:flex;
align-items:center;
gap:12px;
}

.menu-toggle{
font-size:22px;
background:none;
border:none;
cursor:pointer;
color:white;
}

/* mobile behavior */

@media (max-width:900px){

.menu-toggle{
display:block;
}

.sidebar{
position:fixed;
top:70px;
left:-260px;
height:100%;
transition:left .3s ease;
z-index:1000;
background:white;
}

.sidebar.active{
left:0;
}

}
/* HAMBURGER BUTTON */
.menu-toggle{
    font-size:22px;
    background:none;
    border:none;
    color:white;
    cursor:pointer;
    margin-right:10px;
}

/* SIDEBAR */
.sidebar{
    padding:0;
    height:fit-content;
    transition:transform 0.3s ease;
}

/* when sidebar is closed */
.sidebar.active{
    transform:translateX(-280px);
}

/* MOBILE */
@media (max-width:900px){

    .page-layout{
        grid-template-columns:1fr;
        padding:20px;
    }

    /* sidebar becomes overlay */
    .sidebar{
        position:fixed;
        left:0;
        top:0;
        width:260px;
        height:100%;
        z-index:1000;
        border-radius:0;
        box-shadow:0 0 10px rgba(0,0,0,0.2);
        background:white;
    }

    /* hidden by default on mobile */
    .sidebar.active{
        transform:translateX(-100%);
    }

    .navbar{
        flex-direction:column;
        gap:10px;
    }

    .nav-links{
        justify-content:center;
        flex-wrap:wrap;
    }

}
    .navbar{
        height:60px;
    }
.trial-banner{
    background:#fff3cd;
    color:#856404;
    font-weight:600;
    text-align:center;
}

.countdown-text{
    text-align:center;
    margin-bottom:10px;
    color:#444;
}

.locked{
    opacity:0.6;
    cursor:pointer;
}

.modal{
    display:none;
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,0.6);
    justify-content:center;
    align-items:center;
}

.modal-content{
    background:white;
    padding:25px;
    border-radius:10px;
    max-width:400px;
    text-align:center;
}
