/* SaveOnDeals Drive - Main Stylesheet */
:root {
    --asphalt: #111827;
    --asphalt-2: #1f2937;
    --road: #374151;
    --yellow: #facc15;
    --yellow-dark: #eab308;
    --red: #ef4444;
    --green: #22c55e;
    --blue: #2563eb;
    --white: #ffffff;
    --surface: #f8fafc;
    --surface-2: #f1f5f9;
    --border: #e2e8f0;
    --text: #111827;
    --muted: #64748b;
    --shadow: 0 10px 30px rgba(15, 23, 42, .08);
    --radius: 18px;
    --container: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: Arial, Helvetica, sans-serif;
    background: var(--surface);
    color: var(--text);
    line-height: 1.6;
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

.container {
    width: min(100% - 32px, var(--container));
    margin-inline: auto;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--asphalt);
    color: var(--white);
    border-bottom: 3px solid var(--yellow);
}

.header-inner {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
}

.brand-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    background: var(--yellow);
    color: var(--asphalt);
    border-radius: 10px;
    font-size: 23px;
}

.brand-text {
    display: flex;
    align-items: baseline;
    gap: 5px;
}

.brand-name { font-size: 20px; }
.brand-product { color: var(--yellow); font-size: 21px; }

.main-navigation {
    display: flex;
    align-items: center;
    gap: 26px;
    font-size: 14px;
    font-weight: 700;
}

.main-navigation a {
    padding: 25px 0;
    position: relative;
    color: #e5e7eb;
}

.main-navigation a:hover { color: var(--yellow); }

.main-navigation a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 100%;
    bottom: 17px;
    height: 2px;
    background: var(--yellow);
    transition: right .2s ease;
}

.main-navigation a:hover::after { right: 0; }

.mobile-menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid #4b5563;
    border-radius: 10px;
    background: transparent;
    cursor: pointer;
}

.mobile-menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    margin: 5px auto;
    background: var(--white);
}

/* Hero */
.hero {
    position: relative;
    overflow: hidden;
    color: var(--white);
    background:
        radial-gradient(circle at 80% 20%, rgba(250, 204, 21, .16), transparent 30%),
        linear-gradient(135deg, #111827 0%, #1f2937 100%);
}

.hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 8px;
    background: repeating-linear-gradient(
        90deg,
        var(--yellow) 0 70px,
        transparent 70px 105px
    );
    opacity: .9;
}

.hero-grid {
    min-height: 560px;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    align-items: center;
    gap: 50px;
    padding-block: 70px 80px;
}

.hero-label,
.section-label {
    display: inline-block;
    color: var(--yellow-dark);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.hero-label {
    color: var(--yellow);
    background: rgba(250, 204, 21, .1);
    border: 1px solid rgba(250, 204, 21, .3);
    padding: 7px 11px;
    border-radius: 999px;
}

.hero h1 {
    max-width: 650px;
    font-size: clamp(42px, 6vw, 70px);
    line-height: 1.02;
    letter-spacing: -2px;
    margin-bottom: 22px;
}

.hero h1 span { color: var(--yellow); }

.hero-description {
    max-width: 610px;
    color: #d1d5db;
    font-size: 18px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 20px;
    border-radius: 10px;
    font-weight: 800;
    border: 2px solid transparent;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,.18);
}

.btn-primary {
    background: var(--yellow);
    color: var(--asphalt);
}

.btn-primary:hover { background: #fde047; }

.btn-secondary {
    background: transparent;
    border-color: #64748b;
    color: var(--white);
}

.btn-secondary:hover {
    border-color: var(--yellow);
    color: var(--yellow);
}

.hero-trust {
    display: flex;
    gap: 30px;
    margin-top: 34px;
}

.trust-item {
    display: flex;
    flex-direction: column;
    border-left: 2px solid var(--yellow);
    padding-left: 10px;
}

.trust-item strong { font-size: 15px; }
.trust-item span { color: #9ca3af; font-size: 12px; }

.hero-visual { display: flex; justify-content: center; }

.road-card {
    position: relative;
    width: min(100%, 500px);
    height: 330px;
    overflow: hidden;
    border: 1px solid #4b5563;
    border-radius: 24px;
    background: #0f172a;
    box-shadow: 0 25px 60px rgba(0,0,0,.3);
}

.road-sky {
    height: 42%;
    background:
        radial-gradient(circle at 75% 35%, rgba(250,204,21,.35), transparent 12%),
        linear-gradient(#334155, #64748b);
}

.road {
    position: absolute;
    inset: 35% -15% -20%;
    transform: rotate(-7deg);
    background: #1f2937;
}

.road::before,
.road::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 8px;
    background: var(--yellow);
}

.road::before { left: 14%; }
.road::after { right: 14%; }

.road-line {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 6px;
    background: #f8fafc;
    opacity: .85;
}

.road-line:nth-child(1) { left: 35%; }
.road-line:nth-child(2) { left: 50%; }
.road-line:nth-child(3) { left: 65%; }

.road-car {
    position: absolute;
    left: 50%;
    bottom: 38px;
    transform: translateX(-50%);
    font-size: 70px;
    filter: drop-shadow(0 12px 8px rgba(0,0,0,.45));
}

.road-sign {
    position: absolute;
    top: 25px;
    right: 45px;
    font-size: 58px;
}

/* Ads */
.ad-section { padding: 18px 0; }

.ad-slot {
    min-height: 90px;
    display: grid;
    place-items: center;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    background: #eef2f7;
    color: #94a3b8;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.ad-native { min-height: 120px; }

/* Sections */
.section { padding: 78px 0; }

.section-heading {
    max-width: 720px;
    margin-bottom: 36px;
}

.section-heading h2 {
    font-size: clamp(30px, 4vw, 42px);
    line-height: 1.1;
    letter-spacing: -1px;
    margin-bottom: 12px;
}

.section-heading p {
    color: var(--muted);
    font-size: 16px;
}

.section-label { color: #b77900; }

.tools-section { background: var(--white); }

.tools-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.tool-card {
    position: relative;
    display: flex;
    gap: 16px;
    padding: 24px;
    min-height: 190px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.tool-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background: var(--blue);
}

.tool-card:nth-child(1)::before { background: var(--yellow); }
.tool-card:nth-child(2)::before { background: var(--green); }
.tool-card:nth-child(3)::before { background: var(--red); }
.tool-card:nth-child(4)::before { background: var(--yellow); }
.tool-card:nth-child(5)::before { background: var(--blue); }
.tool-card:nth-child(6)::before { background: var(--green); }

.tool-card:hover {
    transform: translateY(-4px);
    border-color: #cbd5e1;
    box-shadow: 0 16px 35px rgba(15,23,42,.12);
}

.tool-icon {
    flex: 0 0 50px;
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: var(--surface-2);
    font-size: 26px;
}

.tool-content h3 { font-size: 19px; margin-bottom: 7px; }

.tool-content p {
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 12px;
}

.tool-link,
.text-button {
    color: var(--blue);
    font-weight: 800;
    font-size: 13px;
}

/* Feature panel */
.test-section { background: var(--surface-2); }

.feature-panel {
    display: grid;
    grid-template-columns: 1fr .85fr;
    gap: 50px;
    align-items: center;
    padding: 50px;
    border-radius: 24px;
    color: var(--white);
    background: var(--asphalt);
    border-top: 5px solid var(--yellow);
    box-shadow: var(--shadow);
}

.feature-content h2 {
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.08;
    margin-bottom: 16px;
}

.feature-content p {
    color: #cbd5e1;
    max-width: 600px;
    margin-bottom: 22px;
}

.feature-list {
    list-style: none;
    display: grid;
    gap: 8px;
    margin-bottom: 28px;
}

.feature-list li { color: #e5e7eb; }

.test-preview {
    padding: 12px;
    border-radius: 18px;
    background: #374151;
}

.test-window {
    overflow: hidden;
    border-radius: 12px;
    background: var(--white);
    color: var(--text);
}

.test-window-header {
    display: flex;
    justify-content: space-between;
    padding: 13px 16px;
    background: var(--yellow);
    font-size: 12px;
    font-weight: 800;
}

.test-question { padding: 20px; }

.question-number {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.test-question p {
    color: var(--text);
    margin: 7px 0 12px;
    font-weight: 800;
}

.question-sign {
    width: 70px;
    height: 70px;
    display: grid;
    place-items: center;
    margin-bottom: 14px;
    border-radius: 12px;
    background: #fef2f2;
    font-size: 38px;
}

.answer-option {
    width: 100%;
    display: block;
    margin-top: 0;
    padding: 15px 17px;

    border: 2px solid #e2e8f0;
    border-radius: 11px;

    background: #ffffff;
    color: #111827;

    text-align: left;
    font-family: inherit;
    font-size: 15px;
    line-height: 1.4;

    cursor: pointer;

    transition:
        border-color 0.2s ease,
        background-color 0.2s ease,
        transform 0.15s ease,
        box-shadow 0.15s ease;
}

.answer-option:hover:not(:disabled) {
    border-color: #2563eb;
    background: #eff6ff;
    transform: translateX(2px);
    box-shadow: 0 3px 10px rgba(37, 99, 235, 0.08);
}

.answer-option:disabled {
    cursor: default;
}

.answer-option.correct {
    border-color: #22c55e;
    background: #f0fdf4;
    color: #166534;
}

.answer-option.incorrect {
    border-color: #ef4444;
    background: #fef2f2;
    color: #991b1b;
}

/* Signs */
.signs-section { background: var(--white); }

.sign-categories {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.sign-category {
    padding: 30px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--surface);
    transition: transform .2s ease, box-shadow .2s ease;
}

.sign-category:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.sign-category:nth-child(1) { border-top: 5px solid var(--red); }
.sign-category:nth-child(2) { border-top: 5px solid var(--blue); }
.sign-category:nth-child(3) { border-top: 5px solid var(--green); }

.sign-category-icon {
    font-size: 38px;
    margin-bottom: 15px;
}

.sign-category h3 { margin-bottom: 7px; }

.sign-category p {
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 16px;
}

.sign-category span {
    color: var(--blue);
    font-size: 13px;
    font-weight: 800;
}

/* Fines */
.fines-section { background: var(--surface-2); }

.state-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.state-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: border-color .2s ease, transform .2s ease;
}

.state-card:hover {
    border-color: var(--yellow-dark);
    transform: translateY(-2px);
}

.state-card span {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: var(--asphalt);
    color: var(--yellow);
    font-size: 11px;
    font-weight: 900;
}

.state-card strong { font-size: 14px; }

.section-action { margin-top: 25px; }

/* Calculators */
.calculators-section { background: var(--white); }

.calculator-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.calculator-card {
    position: relative;
    padding: 25px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    transition: transform .2s ease, box-shadow .2s ease;
}

.calculator-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.calculator-icon {
    display: block;
    font-size: 30px;
    margin-bottom: 14px;
}

.calculator-card h3 { margin-bottom: 6px; }

.calculator-card p {
    color: var(--muted);
    font-size: 14px;
    padding-right: 15px;
}

.calculator-arrow {
    position: absolute;
    right: 20px;
    bottom: 18px;
    color: var(--yellow-dark);
    font-size: 20px;
    font-weight: 900;
}

/* States */
.states-section {
    color: var(--white);
    background: var(--asphalt);
}

.states-section .section-heading p { color: #cbd5e1; }
.states-section .section-label { color: var(--yellow); }

.india-states {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.india-states a {
    padding: 10px 15px;
    border: 1px solid #475569;
    border-radius: 999px;
    color: #e5e7eb;
    background: #1f2937;
    font-size: 13px;
    font-weight: 700;
}

.india-states a:hover {
    color: var(--asphalt);
    background: var(--yellow);
    border-color: var(--yellow);
}

.states-section .text-button { color: var(--yellow); }

/* Guides */
.guides-section { background: var(--surface); }

.section-heading-row {
    max-width: none;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
}

.guides-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.guide-card {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: 0 5px 20px rgba(15,23,42,.05);
}

.guide-image {
    height: 150px;
    display: grid;
    place-items: center;
    background: var(--asphalt);
    font-size: 60px;
    border-bottom: 5px solid var(--yellow);
}

.guide-content { padding: 22px; }

.guide-category {
    color: var(--red);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.guide-content h3 {
    font-size: 18px;
    line-height: 1.3;
    margin: 8px 0 15px;
}

.guide-link {
    color: var(--blue);
    font-size: 13px;
    font-weight: 800;
}

/* FAQ */
.faq-section { background: var(--white); }

.faq-container { max-width: 850px; }

.faq-list {
    display: grid;
    gap: 10px;
}

.faq-item {
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
}

.faq-item summary {
    cursor: pointer;
    list-style: none;
    padding: 19px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    font-weight: 800;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary span {
    color: var(--yellow-dark);
    font-size: 22px;
    transition: transform .2s ease;
}

.faq-item[open] summary span { transform: rotate(45deg); }

.faq-answer {
    padding: 0 20px 20px;
    color: var(--muted);
    font-size: 14px;
}

/* Footer */
.site-footer {
    color: #cbd5e1;
    background: #0b1120;
    border-top: 4px solid var(--yellow);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 45px;
    padding: 55px 0;
}

.footer-brand p {
    max-width: 260px;
    margin-top: 15px;
    color: #94a3b8;
    font-size: 14px;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.footer-column h3 {
    color: var(--white);
    font-size: 14px;
    margin-bottom: 6px;
}

.footer-column a {
    color: #94a3b8;
    font-size: 13px;
}

.footer-column a:hover { color: var(--yellow); }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 0;
    border-top: 1px solid #263244;
    color: #64748b;
    font-size: 12px;
}

.footer-legal {
    display: flex;
    gap: 18px;
}

.footer-legal a:hover { color: var(--yellow); }

/* Focus */
a:focus-visible,
button:focus-visible,
summary:focus-visible {
    outline: 3px solid var(--yellow);
    outline-offset: 3px;
}

/* Responsive */
@media (max-width: 1000px) {
    .main-navigation { gap: 16px; }

    .hero-grid,
    .feature-panel {
        grid-template-columns: 1fr;
    }

    .hero-grid { padding-top: 55px; }

    .hero-visual { order: -1; }

    .road-card { max-width: 560px; }

    .tools-grid { grid-template-columns: repeat(2, 1fr); }

    .calculator-grid { grid-template-columns: repeat(2, 1fr); }

    .state-grid { grid-template-columns: repeat(2, 1fr); }

    .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; }
}

@media (max-width: 760px) {
    .container { width: min(100% - 24px, var(--container)); }

    .header-inner { min-height: 64px; }

    .mobile-menu-toggle { display: block; }

    .main-navigation {
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 8px 12px 15px;
        background: var(--asphalt);
        border-top: 1px solid #374151;
        box-shadow: 0 15px 25px rgba(0,0,0,.25);
    }

    .main-navigation.is-open { display: flex; }

    .main-navigation a {
        padding: 13px 10px;
        border-bottom: 1px solid #263244;
    }

    .main-navigation a::after { display: none; }

    .hero-grid {
        min-height: auto;
        padding: 45px 0 55px;
        gap: 32px;
    }

    .hero h1 { font-size: clamp(40px, 12vw, 58px); }

    .hero-description { font-size: 16px; }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-actions .btn { width: 100%; }

    .hero-trust { gap: 18px; }

    .road-card { height: 260px; }

    .road-car { font-size: 58px; }

    .road-sign { right: 25px; font-size: 45px; }

    .section { padding: 58px 0; }

    .tools-grid,
    .sign-categories,
    .guides-grid {
        grid-template-columns: 1fr;
    }

    .tool-card { min-height: auto; }

    .feature-panel { padding: 30px 22px; }

    .state-grid { grid-template-columns: 1fr 1fr; }

    .calculator-grid { grid-template-columns: 1fr 1fr; }

    .section-heading-row {
        align-items: start;
        flex-direction: column;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .footer-brand { grid-column: 1 / -1; }

    .footer-bottom {
        flex-direction: column;
    }

    .footer-legal { flex-wrap: wrap; }
}

@media (max-width: 480px) {
    .brand-name { font-size: 17px; }
    .brand-product { font-size: 18px; }
    .brand-icon { width: 38px; height: 38px; font-size: 20px; }

    .hero-trust { justify-content: space-between; }

    .state-grid,
    .calculator-grid {
        grid-template-columns: 1fr;
    }

    .road-card { height: 220px; }

    .ad-slot { min-height: 70px; }
}

/* =========================================
   RTO MOCK TEST
========================================= */

.page-hero {
    padding: 65px 0;
    color: var(--white);
    background:
        linear-gradient(
            135deg,
            var(--asphalt),
            var(--asphalt-2)
        );
    border-bottom: 6px solid var(--yellow);
}

.page-hero h1 {
    max-width: 800px;
    font-size: clamp(38px, 5vw, 58px);
    line-height: 1.05;
    letter-spacing: -1.5px;
    margin-bottom: 15px;
}

.page-hero p {
    max-width: 680px;
    color: #cbd5e1;
    font-size: 17px;
}

.mock-test-section {
    background: var(--surface-2);
}

.mock-test-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 24px;
    align-items: start;
}

.mock-test-card {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--white);
    box-shadow: var(--shadow);
}

.test-progress {
    padding: 22px 24px;
    background: var(--asphalt);
    color: var(--white);
}

.progress-info {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 12px;
    font-size: 13px;
}

.progress-info strong {
    color: var(--yellow);
}

.progress-bar {
    width: 100%;
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: #374151;
}

.progress-fill {
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: var(--yellow);
    transition: width .3s ease;
}

.question-area {
    padding: 34px;
}

.question-label {
    display: block;
    margin-bottom: 10px;
    color: var(--red);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.question-area h2 {
    max-width: 760px;
    font-size: clamp(22px, 3vw, 30px);
    line-height: 1.25;
    margin-bottom: 22px;
}

.question-image {
    width: 105px;
    height: 105px;
    display: grid;
    place-items: center;
    margin-bottom: 24px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #fefce8;
    font-size: 58px;
}

.answer-options {
    display: grid;
    gap: 10px;
}

.answer-option {
    width: 100%;
    padding: 15px 17px;
    border: 2px solid var(--border);
    border-radius: 11px;
    background: var(--white);
    color: var(--text);
    text-align: left;
    font: inherit;
    font-size: 15px;
    cursor: pointer;
    transition:
        border-color .2s ease,
        background .2s ease,
        transform .15s ease;
}

.answer-option:hover:not(:disabled) {
    border-color: var(--blue);
    background: #eff6ff;
    transform: translateX(2px);
}

.answer-option:disabled {
    cursor: default;
}

.answer-option.correct {
    border-color: var(--green);
    background: #f0fdf4;
    color: #166534;
}

.answer-option.incorrect {
    border-color: var(--red);
    background: #fef2f2;
    color: #991b1b;
}

.answer-feedback {
    margin-top: 18px;
    padding: 0;
    border-radius: 12px;
    font-size: 14px;
}

.answer-feedback.correct,
.answer-feedback.incorrect {
    padding: 15px 17px;
}

.answer-feedback.correct {
    background: #f0fdf4;
    border: 1px solid #86efac;
    color: #166534;
}

.answer-feedback.incorrect {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    color: #991b1b;
}

.answer-feedback strong {
    display: block;
    margin-bottom: 4px;
    font-size: 15px;
}

.answer-feedback p {
    margin: 0;
}

.test-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 20px 24px;
    border-top: 1px solid var(--border);
    background: var(--surface);
}

.test-controls .btn-secondary {
    color: var(--text);
    border-color: var(--border);
}

.test-controls .btn-secondary:hover {
    border-color: var(--red);
    color: var(--red);
}

.test-controls .btn:disabled {
    opacity: .45;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Test info */
.test-info-card {
    position: sticky;
    top: 95px;
    padding: 25px;
    border-radius: 18px;
    background: var(--asphalt);
    color: var(--white);
    border-top: 5px solid var(--yellow);
    box-shadow: var(--shadow);
}

.info-icon {
    font-size: 38px;
    margin-bottom: 10px;
}

.test-info-card h2 {
    font-size: 21px;
    margin-bottom: 8px;
}

.test-info-card > p {
    color: #cbd5e1;
    font-size: 14px;
    margin-bottom: 22px;
}

.test-stat {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 13px 0;
    border-top: 1px solid #374151;
    font-size: 13px;
}

.test-stat strong {
    color: var(--yellow);
    text-align: right;
}

.test-stat .free-label {
    color: var(--green);
}

.info-warning {
    margin-top: 18px;
    padding: 14px;
    border-radius: 10px;
    background: rgba(250, 204, 21, .1);
    border: 1px solid rgba(250, 204, 21, .25);
}

.info-warning strong {
    color: var(--yellow);
    font-size: 13px;
}

.info-warning p {
    margin-top: 5px;
    color: #cbd5e1;
    font-size: 12px;
}

/* Test information */
.test-information {
    background: var(--white);
}

.narrow-container {
    width: min(100% - 32px, 820px);
    margin-inline: auto;
}

.test-information h2 {
    margin-bottom: 15px;
    font-size: 30px;
}

.test-information h2:not(:first-child) {
    margin-top: 40px;
}

.test-information p {
    color: var(--muted);
    margin-bottom: 15px;
}

.topic-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px 25px;
    padding-left: 20px;
    color: var(--muted);
}

/* Results */
.result-score {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.result-number {
    color: var(--asphalt);
    font-size: 32px;
    font-weight: 900;
}

.result-percentage {
    padding: 5px 10px;
    border-radius: 999px;
    background: #fef3c7;
    color: #92400e;
    font-size: 13px;
    font-weight: 900;
}

.result-message {
    max-width: 650px;
    color: var(--muted);
    margin-bottom: 20px;
}

.result-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.result-home {
    color: var(--text);
    border-color: var(--border);
}

/* Mock test mobile */
@media (max-width: 850px) {

    .mock-test-layout {
        grid-template-columns: 1fr;
    }

    .test-info-card {
        position: static;
    }

}

@media (max-width: 600px) {

    .page-hero {
        padding: 45px 0;
    }

    .page-hero h1 {
        font-size: 38px;
    }

    .question-area {
        padding: 24px 18px;
    }

    .test-progress {
        padding: 18px;
    }

    .test-controls {
        padding: 16px 18px;
    }

    .test-controls .btn {
        min-height: 46px;
        padding-inline: 14px;
    }

    .topic-list {
        grid-template-columns: 1fr;
    }

}

/* =========================================
   RTO ANSWER BUTTONS - FINAL
========================================= */

#answer-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

#answer-options .rto-answer-btn {
    appearance: none;
    -webkit-appearance: none;

    display: block;
    width: 100%;

    min-height: 56px;

    margin: 0;
    padding: 15px 18px;

    border: 2px solid #cbd5e1 !important;
    border-radius: 12px !important;

    background: #ffffff !important;
    color: #111827 !important;

    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;

    text-align: left;

    cursor: pointer;

    box-shadow: 0 2px 5px rgba(15, 23, 42, 0.06);

    transition:
        border-color 0.2s ease,
        background-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.15s ease;
}

#answer-options .rto-answer-btn:hover:not(:disabled) {
    border-color: #2563eb !important;
    background: #eff6ff !important;

    box-shadow:
        0 4px 12px rgba(37, 99, 235, 0.12);

    transform: translateX(3px);
}

#answer-options .rto-answer-btn:focus {
    outline: 3px solid rgba(37, 99, 235, 0.2);
    outline-offset: 2px;
}

#answer-options .rto-answer-btn:disabled {
    cursor: default;
    opacity: 1;
}

/* Correct answer */

#answer-options .rto-answer-btn.correct {
    border: 2px solid #22c55e !important;
    background: #f0fdf4 !important;
    color: #166534 !important;

    box-shadow:
        0 4px 12px rgba(34, 197, 94, 0.12);
}

/* Wrong answer */

#answer-options .rto-answer-btn.incorrect {
    border: 2px solid #ef4444 !important;
    background: #fef2f2 !important;
    color: #991b1b !important;

    box-shadow:
        0 4px 12px rgba(239, 68, 68, 0.12);
}

/* =========================================================
   TRAFFIC SIGNS PAGE
========================================================= */

.traffic-signs-hero {
    position: relative;
    overflow: hidden;
}

.traffic-signs-hero::before {
    content: "";
    position: absolute;
    width: 260px;
    height: 260px;
    right: 8%;
    top: -100px;
    border-radius: 50%;
    border: 35px solid rgba(239, 68, 68, 0.12);
}

.traffic-signs-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}


/* =========================================================
   INTRO
========================================================= */

.signs-intro {
    background: var(--white);
}

.signs-intro-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 60px;
    align-items: center;
}

.signs-intro h2 {
    max-width: 650px;
    font-size: clamp(30px, 4vw, 42px);
    line-height: 1.1;
    margin-bottom: 18px;
}

.signs-intro p {
    max-width: 680px;
    color: var(--muted);
    margin-bottom: 14px;
}


/* =========================================================
   TRAFFIC LIGHT VISUAL
========================================================= */

.traffic-light-card {
    position: relative;
    min-height: 310px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 24px;
    background:
        linear-gradient(
            160deg,
            #111827,
            #1f2937
        );
    border: 1px solid #374151;
    box-shadow: var(--shadow);
}

.traffic-light {
    position: relative;
    z-index: 2;
    width: 105px;
    padding: 16px 15px;
    border-radius: 24px;
    background: #080c14;
    border: 5px solid #374151;
    box-shadow: 0 15px 30px rgba(0,0,0,.35);
}

.traffic-light span {
    display: block;
    width: 55px;
    height: 55px;
    margin: 8px auto;
    border-radius: 50%;
    border: 4px solid #1f2937;
}

.traffic-light-red {
    background: var(--red);
    box-shadow: 0 0 22px rgba(239,68,68,.35);
}

.traffic-light-yellow {
    background: var(--yellow);
    box-shadow: 0 0 22px rgba(250,204,21,.25);
}

.traffic-light-green {
    background: var(--green);
    box-shadow: 0 0 22px rgba(34,197,94,.3);
}

.traffic-light-road {
    position: absolute;
    left: -10%;
    right: -10%;
    bottom: -60px;
    height: 130px;
    transform: perspective(200px) rotateX(30deg);
    background: #111827;
}

.traffic-light-road::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 15px;
    width: 7px;
    height: 100px;
    transform: translateX(-50%);
    background:
        repeating-linear-gradient(
            to bottom,
            var(--yellow) 0 25px,
            transparent 25px 45px
        );
}

.traffic-light-card p {
    position: relative;
    z-index: 2;
    margin-top: 18px;
    color: #cbd5e1;
    text-align: center;
    font-size: 14px;
}

.traffic-light-card p strong {
    color: var(--yellow);
}


/* =========================================================
   SIGN CATEGORIES
========================================================= */

.traffic-sign-category-section {
    background: var(--surface-2);
}

.traffic-sign-category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.traffic-sign-category-card {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 20px;
    align-items: center;
    padding: 25px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--white);
    box-shadow: 0 5px 20px rgba(15,23,42,.05);
    transition:
        transform .2s ease,
        box-shadow .2s ease,
        border-color .2s ease;
}

.traffic-sign-category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.mandatory-category {
    border-top: 5px solid var(--red);
}

.warning-category {
    border-top: 5px solid var(--yellow-dark);
}

.information-category {
    border-top: 5px solid var(--blue);
}


/* Category sign previews */

.category-sign-preview {
    display: grid;
    place-items: center;
    min-height: 100px;
}

.category-circle {
    width: 82px;
    height: 82px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--red);
    border: 6px solid var(--white);
    outline: 5px solid var(--red);
    color: var(--white);
    font-size: 34px;
    font-weight: 900;
}

.category-triangle {
    width: 0;
    height: 0;
    position: relative;
    display: grid;
    place-items: center;
    border-left: 48px solid transparent;
    border-right: 48px solid transparent;
    border-bottom: 85px solid var(--yellow);
    color: var(--asphalt);
    font-size: 27px;
    font-weight: 900;
}

.category-triangle::after {
    content: "";
    position: absolute;
    left: -40px;
    top: 8px;
    width: 80px;
    height: 65px;
    border: 4px solid var(--red);
    border-radius: 50%;
}

.category-square {
    width: 82px;
    height: 82px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: var(--blue);
    color: var(--white);
    font-size: 42px;
    font-weight: 900;
}

.category-tag {
    display: inline-block;
    margin-bottom: 7px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .08em;
}

.category-content h3 {
    font-size: 19px;
    line-height: 1.25;
    margin-bottom: 8px;
}

.category-content p {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 12px;
}

.category-link {
    color: var(--blue);
    font-size: 12px;
    font-weight: 900;
}


/* =========================================================
   POPULAR TRAFFIC SIGNS
========================================================= */

.popular-signs-section {
    background: var(--white);
}

.traffic-sign-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}


/* Individual sign card */

.traffic-sign-card {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--white);
    box-shadow: 0 5px 20px rgba(15,23,42,.06);
    transition:
        transform .2s ease,
        box-shadow .2s ease;
}

.traffic-sign-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 35px rgba(15,23,42,.12);
}


/* Sign display area */

.sign-image {
    height: 190px;
    display: grid;
    place-items: center;
    position: relative;
    background:
        linear-gradient(
            135deg,
            #f1f5f9,
            #e2e8f0
        );
}


/* STOP */

.sign-stop {
    width: 110px;
    height: 110px;
    margin: auto;
    background: var(--red);
    color: var(--white);
    border: 7px solid var(--white);
    outline: 5px solid var(--red);
    clip-path: polygon(
        30% 0,
        70% 0,
        100% 30%,
        100% 70%,
        70% 100%,
        30% 100%,
        0 70%,
        0 30%
    );
    font-size: 19px;
    font-weight: 900;
}


/* NO ENTRY */

.sign-no-entry {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: var(--red);
    border: 8px solid var(--white);
    outline: 5px solid var(--red);
    color: transparent;
    position: relative;
}

.sign-no-entry::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    top: 50%;
    height: 13px;
    transform: translateY(-50%);
    border-radius: 4px;
    background: var(--white);
}


/* NO PARKING */

.sign-no-parking {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: #2563eb;
    border: 7px solid var(--white);
    outline: 5px solid var(--red);
    color: var(--white);
    font-size: 55px;
    font-weight: 700;
    position: relative;
}

.sign-no-parking::after {
    content: "";
    position: absolute;
    width: 8px;
    height: 105%;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    background: var(--red);
}


/* SPEED LIMIT */

.sign-speed {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: var(--white);
    color: var(--asphalt);
    border: 8px solid var(--red);
    font-size: 35px;
    font-weight: 900;
}


/* WARNING */

.sign-warning {
    width: 110px;
    height: 110px;
    margin: auto;
    background: var(--yellow);
    color: var(--asphalt);
    border: 5px solid var(--red);
    clip-path: polygon(
        50% 0,
        100% 100%,
        0 100%
    );
    font-size: 50px;
    font-weight: 900;
}


/* Sign card content */

.traffic-sign-card-content {
    padding: 22px;
}

.sign-type {
    display: inline-block;
    margin-bottom: 7px;
    color: var(--red);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .08em;
}

.warning-type {
    color: #b77900;
}

.traffic-sign-card-content h3 {
    font-size: 20px;
    margin-bottom: 8px;
}

.traffic-sign-card-content p {
    min-height: 65px;
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 14px;
}

.sign-card-link {
    color: var(--blue);
    font-size: 13px;
    font-weight: 900;
}


/* =========================================================
   QUIZ CTA
========================================================= */

.signs-quiz-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    margin-top: 35px;
    padding: 35px 40px;
    border-radius: 20px;
    color: var(--white);
    background:
        linear-gradient(
            135deg,
            var(--asphalt),
            var(--asphalt-2)
        );
    border-left: 6px solid var(--yellow);
}

.signs-quiz-cta .section-label {
    margin-bottom: 7px;
    color: var(--yellow);
}

.signs-quiz-cta h2 {
    font-size: 27px;
    margin-bottom: 5px;
}

.signs-quiz-cta p {
    color: #cbd5e1;
}


/* =========================================================
   INFORMATION
========================================================= */

.signs-information-section {
    background: var(--surface-2);
}

.signs-information-section h2 {
    font-size: 30px;
    margin-bottom: 15px;
}

.signs-information-section h2:not(:first-of-type) {
    margin-top: 40px;
}

.signs-information-section p {
    color: var(--muted);
    margin-bottom: 15px;
}

.signs-important-note {
    display: flex;
    gap: 10px;
    margin-top: 25px;
    padding: 17px 20px;
    border-left: 4px solid var(--yellow-dark);
    border-radius: 8px;
    background: #fefce8;
    color: #713f12;
    font-size: 14px;
}

.signs-important-note strong {
    white-space: nowrap;
}


/* =========================================================
   TRAFFIC SIGNS RESPONSIVE
========================================================= */

@media (max-width: 1050px) {

    .traffic-sign-category-grid {
        grid-template-columns: 1fr;
    }

    .traffic-sign-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .signs-intro-grid {
        grid-template-columns: 1fr 320px;
        gap: 35px;
    }

}


@media (max-width: 760px) {

    .signs-intro-grid {
        grid-template-columns: 1fr;
    }

    .traffic-light-card {
        min-height: 280px;
    }

    .traffic-sign-category-card {
        grid-template-columns: 90px 1fr;
        padding: 20px;
    }

    .traffic-sign-grid {
        grid-template-columns: 1fr;
    }

    .signs-quiz-cta {
        flex-direction: column;
        align-items: flex-start;
        padding: 28px 24px;
    }

    .signs-quiz-cta .btn {
        width: 100%;
    }

}


@media (max-width: 480px) {

    .traffic-signs-actions {
        flex-direction: column;
    }

    .traffic-signs-actions .btn {
        width: 100%;
    }

    .traffic-sign-category-card {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .category-sign-preview {
        min-height: 90px;
    }

    .category-content p {
        font-size: 14px;
    }

    .sign-image {
        height: 175px;
    }

    .signs-important-note {
        flex-direction: column;
    }

}
/* Additional Traffic Sign Types */

.sign-regulatory {
    width: 110px;
    height: 110px;
    margin: auto;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #ffffff;
    color: #111827;
    border: 8px solid #ef4444;
    font-size: 34px;
    font-weight: 900;
}

.sign-information {
    width: 110px;
    height: 110px;
    margin: auto;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: #2563eb;
    color: #ffffff;
    border: 5px solid #ffffff;
    outline: 4px solid #2563eb;
    font-size: 38px;
    font-weight: 900;
}

.information-type {
    color: #2563eb;
}

/* =========================================================
   INDIVIDUAL TRAFFIC SIGN PAGE
========================================================= */

.sign-breadcrumb-section {
    background: #f8fafc;
    border-bottom: 1px solid var(--border);
}

.sign-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 14px 0;
    font-size: 13px;
    color: var(--muted);
}

.sign-breadcrumb a {
    color: var(--blue);
    font-weight: 700;
}

.sign-detail-hero {
    padding: 65px 0;
    color: var(--white);
    background:
        linear-gradient(
            135deg,
            var(--asphalt),
            var(--asphalt-2)
        );
    border-bottom: 6px solid var(--yellow);
}

.sign-detail-grid {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 70px;
    align-items: center;
}

.sign-detail-visual {
    min-height: 330px;
    display: grid;
    place-items: center;
    border-radius: 24px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
}

.large-traffic-sign {
    transform: scale(1.55);
}

.sign-detail-content h1 {
    font-size: clamp(38px, 5vw, 58px);
    line-height: 1.05;
    margin-bottom: 18px;
}

.sign-lead {
    max-width: 720px;
    color: #cbd5e1;
    font-size: 18px;
    line-height: 1.7;
}

.sign-quick-facts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 30px;
}

.sign-fact {
    padding: 15px;
    border: 1px solid #374151;
    border-radius: 12px;
    background: rgba(255,255,255,.04);
}

.sign-fact span {
    display: block;
    margin-bottom: 5px;
    color: #94a3b8;
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 800;
}

.sign-fact strong {
    color: var(--yellow);
    font-size: 14px;
}

.sign-detail-section {
    background: var(--white);
}

.sign-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 290px;
    gap: 45px;
    align-items: start;
}

.sign-article {
    max-width: 820px;
}

.sign-article h2 {
    margin-bottom: 15px;
    font-size: 29px;
}

.sign-article h2:not(:first-child) {
    margin-top: 42px;
}

.sign-article > p {
    color: var(--muted);
    line-height: 1.75;
    margin-bottom: 15px;
}

.driver-action-box {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    margin: 25px 0;
    padding: 22px;
    border-left: 5px solid var(--green);
    border-radius: 12px;
    background: #f0fdf4;
}

.action-icon {
    font-size: 35px;
}

.driver-action-box h3 {
    margin-bottom: 5px;
}

.driver-action-box p {
    color: #166534;
    font-size: 14px;
}

.sign-practice-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    margin-top: 35px;
    padding: 28px;
    border-radius: 18px;
    background:
        linear-gradient(
            135deg,
            var(--asphalt),
            var(--asphalt-2)
        );
    border-left: 5px solid var(--yellow);
    color: var(--white);
}

.sign-practice-box h3 {
    font-size: 21px;
    margin-bottom: 5px;
}

.sign-practice-box p {
    color: #cbd5e1;
    font-size: 13px;
}


/* Sidebar */

.sign-sidebar {
    position: sticky;
    top: 95px;
}

.ad-sidebar {
    min-height: 250px;
    margin-bottom: 20px;
}

.related-signs-card {
    padding: 23px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--surface);
}

.related-signs-card h2 {
    margin-bottom: 15px;
    font-size: 21px;
}

.related-signs-card a {
    display: block;
    padding: 12px 0;
    border-top: 1px solid var(--border);
    color: var(--blue);
    font-size: 13px;
    font-weight: 800;
}


/* Responsive */

@media (max-width: 900px) {

    .sign-detail-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .sign-detail-visual {
        min-height: 280px;
    }

    .sign-detail-layout {
        grid-template-columns: 1fr;
    }

    .sign-sidebar {
        position: static;
    }

}


@media (max-width: 600px) {

    .sign-detail-hero {
        padding: 45px 0;
    }

    .large-traffic-sign {
        transform: scale(1.15);
    }

    .sign-quick-facts {
        grid-template-columns: 1fr;
    }

    .sign-practice-box {
        flex-direction: column;
        align-items: flex-start;
    }

    .sign-practice-box .btn {
        width: 100%;
    }

}

/* =========================================================
   INDIVIDUAL TRAFFIC SIGN VISUALS
========================================================= */


/* Common warning sign */

.sign-pedestrian,
.sign-school,
.sign-narrow-bridge,
.sign-road-work,
.sign-slippery-road,
.sign-railway {

    width: 110px;
    height: 110px;

    margin: auto;

    display: grid;
    place-items: center;

    background: #facc15;

    color: #111827;

    border: 6px solid #111827;

    clip-path: polygon(
        50% 0,
        100% 100%,
        0 100%
    );

    font-size: 36px;
    font-weight: 900;

}


/* Pedestrian crossing */

.sign-pedestrian {
    font-size: 40px;
}

.sign-pedestrian::after {
    content: "🚶";
}


/* School ahead */

.sign-school {
    font-size: 0;
}

.sign-school::after {
    content: "🏫";
    font-size: 34px;
}


/* Narrow bridge */

.sign-narrow-bridge {
    font-size: 0;
}

.sign-narrow-bridge::after {
    content: "↔";
    font-size: 40px;
    font-weight: 900;
}


/* Road work */

.sign-road-work {
    font-size: 0;
}

.sign-road-work::after {
    content: "🚧";
    font-size: 35px;
}


/* Slippery road */

.sign-slippery-road {
    font-size: 0;
}

.sign-slippery-road::after {
    content: "〰";
    font-size: 50px;
    font-weight: 900;
}


/* Railway crossing */

.sign-railway {
    font-size: 0;
}

.sign-railway::after {
    content: "🚆";
    font-size: 34px;
}


/* =========================================================
   REGULATORY SIGNS
========================================================= */

.sign-give-way {

    width: 110px;
    height: 110px;

    margin: auto;

    display: grid;
    place-items: center;

    background: #ffffff;

    border: 8px solid #ef4444;

    color: #111827;

    clip-path: polygon(
        50% 100%,
        0 0,
        100% 0
    );

    font-size: 0;
}

.sign-give-way::after {
    content: "";
}


.sign-no-overtaking {

    width: 110px;
    height: 110px;

    margin: auto;

    display: grid;
    place-items: center;

    border-radius: 50%;

    background: #ffffff;

    border: 8px solid #ef4444;

    position: relative;

    font-size: 0;
}

.sign-no-overtaking::before {
    content: "🚗";
    font-size: 25px;
}

.sign-no-overtaking::after {
    content: "🚙";

    position: absolute;

    right: 15px;
    bottom: 35px;

    font-size: 22px;
}


/* =========================================================
   INFORMATION SIGNS
========================================================= */

.sign-hospital,
.sign-parking,
.sign-petrol,
.sign-first-aid,
.sign-telephone {

    width: 110px;
    height: 110px;

    margin: auto;

    display: grid;
    place-items: center;

    background: #2563eb;

    color: #ffffff;

    border: 6px solid #ffffff;

    outline: 5px solid #2563eb;

    border-radius: 8px;

    font-size: 0;
}


/* Hospital */

.sign-hospital::after {
    content: "H";
    font-size: 45px;
    font-weight: 900;
}


/* Parking */

.sign-parking::after {
    content: "P";
    font-size: 45px;
    font-weight: 900;
}


/* Petrol pump */

.sign-petrol::after {
    content: "⛽";
    font-size: 35px;
}


/* First aid */

.sign-first-aid::after {
    content: "+";
    font-size: 50px;
    font-weight: 900;
}


/* Telephone */

.sign-telephone::after {
    content: "☎";
    font-size: 38px;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    .sign-pedestrian,
    .sign-school,
    .sign-narrow-bridge,
    .sign-road-work,
    .sign-slippery-road,
    .sign-railway,
    .sign-give-way,
    .sign-no-overtaking,
    .sign-hospital,
    .sign-parking,
    .sign-petrol,
    .sign-first-aid,
    .sign-telephone {

        width: 100px;
        height: 100px;

    }

}

/* =========================================================
   TRAFFIC SIGN QUIZ
========================================================= */

.quiz-hero {
    padding: 55px 0;
    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            var(--asphalt),
            var(--asphalt-2)
        );

    border-bottom: 6px solid var(--yellow);
}

.quiz-hero h1 {
    margin-bottom: 12px;
    font-size: clamp(38px, 5vw, 58px);
}

.quiz-hero p {
    max-width: 700px;
    color: #cbd5e1;
    font-size: 17px;
    line-height: 1.6;
}

.traffic-quiz-section {
    background: #f8fafc;
}

.quiz-container {
    max-width: 850px;
    margin: auto;
}

.traffic-quiz-card,
.traffic-quiz-result {
    padding: 35px;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.quiz-topbar {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.quiz-progress-track {
    height: 7px;
    margin: 14px 0 35px;
    overflow: hidden;
    border-radius: 10px;
    background: #e5e7eb;
}

.quiz-progress-bar {
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: var(--yellow);
    transition: width .3s ease;
}

.traffic-quiz-question {
    text-align: center;
}

.question-label {
    display: block;
    margin-bottom: 20px;
    color: var(--red);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .1em;
}

.quiz-sign-display {
    width: 150px;
    height: 150px;
    margin: 0 auto 28px;
    display: grid;
    place-items: center;
}

.traffic-quiz-question h2 {
    font-size: 23px;
    margin-bottom: 28px;
}

.traffic-quiz-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 13px;
}

.traffic-quiz-answer {
    width: 100%;
    min-height: 58px;
    padding: 14px 18px;
    border: 2px solid #cbd5e1;
    border-radius: 12px;
    background: #ffffff;
    color: #111827;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
    transition:
        border-color .2s ease,
        background .2s ease,
        transform .15s ease;
}

.traffic-quiz-answer:hover:not(:disabled) {
    border-color: #2563eb;
    background: #eff6ff;
    transform: translateY(-2px);
}

.traffic-quiz-answer:disabled {
    cursor: default;
}

.traffic-quiz-answer.quiz-correct {
    border-color: #22c55e;
    background: #f0fdf4;
    color: #166534;
}

.traffic-quiz-answer.quiz-incorrect {
    border-color: #ef4444;
    background: #fef2f2;
    color: #991b1b;
}

.quiz-feedback {
    margin-top: 20px;
    padding: 15px 17px;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.5;
}

.quiz-feedback-correct {
    background: #f0fdf4;
    border-left: 4px solid #22c55e;
    color: #166534;
}

.quiz-feedback-incorrect {
    background: #fef2f2;
    border-left: 4px solid #ef4444;
    color: #991b1b;
}

.quiz-next-area {
    display: flex;
    justify-content: flex-end;
    margin-top: 25px;
}

.traffic-quiz-result {
    text-align: center;
}

.traffic-quiz-result h2 {
    margin-bottom: 20px;
    font-size: 30px;
}

.quiz-result-score {
    margin: 20px 0;
    color: var(--red);
    font-size: 58px;
    font-weight: 900;
}

.quiz-result-message {
    color: var(--muted);
    font-size: 16px;
}

.quiz-result-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.quiz-info-section {
    background: #ffffff;
}


/* Mobile */

@media (max-width: 650px) {

    .traffic-quiz-card,
    .traffic-quiz-result {
        padding: 22px;
    }

    .traffic-quiz-options {
        grid-template-columns: 1fr;
    }

    .quiz-sign-display {
        width: 125px;
        height: 125px;
    }

    .quiz-topbar {
        font-size: 12px;
    }

    .quiz-next-area .btn {
        width: 100%;
    }

}

/* =========================================================
   RTO TEST TIP
========================================================= */

.sign-test-tip {
    display: flex;
    align-items: flex-start;
    gap: 18px;

    margin: 30px 0;
    padding: 24px;

    border-left: 5px solid var(--yellow);

    border-radius: 14px;

    background:
        #fffbeb;
}

.test-tip-icon {
    flex: 0 0 auto;

    width: 45px;
    height: 45px;

    display: grid;
    place-items: center;

    border-radius: 10px;

    background: var(--yellow);

    font-size: 22px;
}

.sign-test-tip .section-label {
    margin-bottom: 5px;

    color: #92400e;
}

.sign-test-tip h3 {
    margin-bottom: 7px;

    font-size: 19px;
}

.sign-test-tip p {
    margin: 0;

    color: #78350f;

    font-size: 14px;
    line-height: 1.6;
}


/* Mobile */

@media (max-width: 600px) {

    .sign-test-tip {
        gap: 13px;
        padding: 20px;
    }

}

/* =========================================================
   NEW WARNING SIGNS
   Triangular warning-sign appearance
========================================================= */

.sign-traffic-signals,
.sign-hump,
.sign-dangerous-dip,
.sign-roundabout,
.sign-cycle-crossing,
.sign-cattle,
.sign-falling-rocks,
.sign-men-at-work,
.sign-road-narrows,
.sign-cross-road {
    width: 150px;
    height: 150px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 0 auto;

    background: #facc15;

    border: 6px solid #dc2626;

    color: #111827;

    font-size: 42px;
    font-weight: 800;

    text-align: center;

    box-sizing: border-box;

    clip-path: polygon(
        50% 2%,
        98% 96%,
        2% 96%
    );
}


/* Keep the symbol away from the edges */

.sign-traffic-signals,
.sign-hump,
.sign-dangerous-dip,
.sign-roundabout,
.sign-cycle-crossing,
.sign-cattle,
.sign-falling-rocks,
.sign-men-at-work,
.sign-road-narrows,
.sign-cross-road {
    padding: 25px;
}

/* =========================================================
   TRAFFIC SIGNALS AHEAD
========================================================= */

.sign-traffic-signals {
    position: relative;
    font-size: 0;
}

.sign-traffic-signals::before {
    content: "";

    position: absolute;

    left: 50%;
    top: 58%;

    transform: translate(-50%, -50%);

    width: 42px;
    height: 82px;

    background:
        radial-gradient(
            circle at 50% 18%,
            #dc2626 0 8px,
            transparent 9px
        ),
        radial-gradient(
            circle at 50% 50%,
            #facc15 0 8px,
            transparent 9px
        ),
        radial-gradient(
            circle at 50% 82%,
            #16a34a 0 8px,
            transparent 9px
        );

    background-color: #111827;

    border: 3px solid #111827;
    border-radius: 8px;

    box-sizing: border-box;
}

/* =========================================================
   HUMP / SPEED BREAKER
========================================================= */

.sign-hump {
    position: relative;
    font-size: 0;
}

.sign-hump::before {
    content: "";

    position: absolute;

    left: 50%;
    top: 58%;

    transform: translate(-50%, -50%);

    width: 76px;
    height: 34px;

    border-top: 9px solid #111827;
    border-radius: 50% 50% 0 0;

    box-sizing: border-box;
}

.sign-hump::after {
    content: "";

    position: absolute;

    left: 50%;
    top: 70%;

    transform: translateX(-50%);

    width: 64px;
    height: 9px;

    background: #111827;

    border-radius: 4px;
}
/* =========================================================
   DANGEROUS DIP
========================================================= */

.sign-dangerous-dip {
    position: relative;
    font-size: 0;
}

.sign-dangerous-dip::before {
    content: "";

    position: absolute;

    left: 50%;
    top: 58%;

    transform: translate(-50%, -50%);

    width: 82px;
    height: 48px;

    border-bottom: 10px solid #111827;

    border-radius: 0 0 50% 50%;

    box-sizing: border-box;
}

.sign-dangerous-dip::after {
    content: "";

    position: absolute;

    left: 50%;
    top: 48%;

    transform: translateX(-50%);

    width: 82px;
    height: 10px;

    background: #111827;

    border-radius: 50%;
}

/* =========================================================
   ROUNDABOUT
========================================================= */

.sign-roundabout {
    position: relative;
    font-size: 0;
}

.sign-roundabout::before {
    content: "";

    position: absolute;

    left: 50%;
    top: 58%;

    width: 62px;
    height: 62px;

    transform: translate(-50%, -50%);

    border: 9px solid #111827;

    border-radius: 50%;

    box-sizing: border-box;
}

.sign-roundabout::after {
    content: "↻";

    position: absolute;

    left: 50%;
    top: 58%;

    transform: translate(-50%, -50%);

    color: #111827;

    font-size: 48px;
    font-weight: 900;

    line-height: 1;
}

/* =========================================================
   CYCLE CROSSING
========================================================= */

.sign-cycle-crossing {
    position: relative;
    font-size: 0;
}

.sign-cycle-crossing::before {
    content: "🚲";

    position: absolute;

    left: 50%;
    top: 58%;

    transform: translate(-50%, -50%);

    font-size: 48px;

    line-height: 1;

    filter: grayscale(1);
}

/* =========================================================
   CATTLE
========================================================= */

.sign-cattle {
    position: relative;
    font-size: 0;
}

.sign-cattle::before {
    content: "🐄";

    position: absolute;

    left: 50%;
    top: 58%;

    transform: translate(-50%, -50%);

    font-size: 48px;

    line-height: 1;

    filter: grayscale(1);
}

/* =========================================================
   FALLING ROCKS
========================================================= */

.sign-falling-rocks {
    position: relative;
    font-size: 0;
}

.sign-falling-rocks::before {
    content: "◆";

    position: absolute;

    left: 42%;
    top: 58%;

    transform: translate(-50%, -50%) rotate(25deg);

    color: #111827;

    font-size: 38px;

    line-height: 1;
}

.sign-falling-rocks::after {
    content: "◆";

    position: absolute;

    left: 62%;
    top: 65%;

    transform: translate(-50%, -50%) rotate(25deg);

    color: #111827;

    font-size: 25px;

    line-height: 1;
}

/* =========================================================
   MEN AT WORK
========================================================= */

.sign-men-at-work {
    position: relative;
    font-size: 0;
}

.sign-men-at-work::before {
    content: "⚒";

    position: absolute;

    left: 50%;
    top: 58%;

    transform: translate(-50%, -50%);

    color: #111827;

    font-size: 58px;

    line-height: 1;
}

/* =========================================================
   ROAD NARROWS
========================================================= */

.sign-road-narrows {
    position: relative;
    font-size: 0;
}

.sign-road-narrows::before {
    content: "";

    position: absolute;

    left: 50%;
    top: 58%;

    transform: translate(-50%, -50%);

    width: 76px;
    height: 70px;

    background:
        linear-gradient(
            70deg,
            transparent 43%,
            #111827 44%,
            #111827 53%,
            transparent 54%
        ),
        linear-gradient(
            -70deg,
            transparent 43%,
            #111827 44%,
            #111827 53%,
            transparent 54%
        );

    box-sizing: border-box;
}

/* =========================================================
   CROSS ROAD
========================================================= */

.sign-cross-road {
    position: relative;
    font-size: 0;
}

.sign-cross-road::before {
    content: "";

    position: absolute;

    left: 50%;
    top: 58%;

    transform: translate(-50%, -50%);

    width: 12px;
    height: 72px;

    background: #111827;

    border-radius: 3px;
}

.sign-cross-road::after {
    content: "";

    position: absolute;

    left: 50%;
    top: 58%;

    transform: translate(-50%, -50%);

    width: 72px;
    height: 12px;

    background: #111827;

    border-radius: 3px;
}

/* =========================================================
   TRAFFIC FINES
========================================================= */


/* ---------------------------------------------------------
   INTRO CARDS
--------------------------------------------------------- */

.traffic-fines-intro-grid {

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 24px;

    margin-top: 40px;
}


.traffic-fines-intro-card {

    background: #ffffff;

    border: 1px solid #e5e7eb;

    border-top: 5px solid #facc15;

    border-radius: 14px;

    padding: 28px;

    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.06);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}


.traffic-fines-intro-card:hover {

    transform: translateY(-4px);

    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.10);
}


.traffic-fines-icon {

    width: 58px;
    height: 58px;

    display: flex;

    align-items: center;
    justify-content: center;

    margin-bottom: 18px;

    border-radius: 12px;

    background: #111827;

    font-size: 28px;
}


.traffic-fines-intro-card h2 {

    margin-bottom: 10px;

}


.traffic-fines-intro-card p {

    margin: 0;

    line-height: 1.7;

}


/* ---------------------------------------------------------
   STATE GRID
--------------------------------------------------------- */

.traffic-fines-state-grid {

    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 20px;

    margin-top: 40px;
}


.traffic-fine-state-card {

    display: block;

    padding: 24px;

    background: #ffffff;

    border: 1px solid #e5e7eb;

    border-radius: 14px;

    text-decoration: none;

    color: #111827;

    box-shadow:
        0 6px 20px rgba(0, 0, 0, 0.05);

    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}


.traffic-fine-state-card:hover {

    transform: translateY(-4px);

    border-color: #facc15;

    box-shadow:
        0 12px 28px rgba(0, 0, 0, 0.10);
}


.traffic-fine-state-card > span {

    display: inline-flex;

    align-items: center;
    justify-content: center;

    width: 48px;
    height: 48px;

    margin-bottom: 16px;

    background: #111827;

    color: #facc15;

    border-radius: 10px;

    font-weight: 800;

    font-size: 14px;
}


.traffic-fine-state-card h3 {

    margin-bottom: 8px;

}


.traffic-fine-state-card p {

    margin: 0;

    font-size: 14px;

    line-height: 1.6;

    color: #6b7280;
}


/* ---------------------------------------------------------
   COMMON OFFENCES
--------------------------------------------------------- */

.traffic-offence-list {

    display: grid;

    gap: 16px;

    margin-top: 35px;
}


.traffic-offence-item {

    display: flex;

    align-items: flex-start;

    gap: 20px;

    padding: 22px;

    background: #ffffff;

    border-left: 5px solid #dc2626;

    border-radius: 10px;

    box-shadow:
        0 5px 18px rgba(0, 0, 0, 0.05);
}


.traffic-offence-item > span {

    flex-shrink: 0;

    font-size: 14px;

    font-weight: 800;

    color: #dc2626;
}


.traffic-offence-item h3 {

    margin-bottom: 6px;

}


.traffic-offence-item p {

    margin: 0;

    color: #6b7280;

    line-height: 1.6;
}


/* ---------------------------------------------------------
   MOBILE
--------------------------------------------------------- */

@media (max-width: 900px) {

    .traffic-fines-intro-grid {

        grid-template-columns:
            repeat(2, 1fr);

    }


    .traffic-fines-state-grid {

        grid-template-columns:
            repeat(2, 1fr);

    }

}


@media (max-width: 600px) {

    .traffic-fines-intro-grid {

        grid-template-columns: 1fr;

    }


    .traffic-fines-state-grid {

        grid-template-columns: 1fr;

    }


    .traffic-fines-intro-card {

        padding: 22px;

    }


    .traffic-fine-state-card {

        padding: 20px;

    }


    .traffic-offence-item {

        gap: 14px;

        padding: 18px;

    }

}

/* =========================================================
   TRAFFIC FINE TABLE
========================================================= */

.traffic-fine-table-wrapper {
    width: 100%;
    overflow-x: auto;
    margin-top: 35px;
}

.traffic-fine-table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
}

.traffic-fine-table th,
.traffic-fine-table td {
    padding: 16px 18px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.traffic-fine-table th {
    background: #111827;
    color: #ffffff;
    font-weight: 700;
}

.traffic-fine-table td:last-child {
    font-weight: 700;
}

.traffic-fine-table tr:last-child td {
    border-bottom: none;
}

.traffic-fine-source-note {
    margin-top: 16px;
    font-size: 14px;
    line-height: 1.7;
    color: #6b7280;
}


/* =========================================================
   TRAFFIC FINE STEPS
========================================================= */

.traffic-fine-steps {
    margin: 30px 0 0;
    padding-left: 28px;
}

.traffic-fine-steps li {
    margin-bottom: 16px;
    padding-left: 8px;
    line-height: 1.7;
}

.traffic-fine-steps li::marker {
    font-weight: 800;
}

/* =========================================================
   CALCULATORS LANDING PAGE
========================================================= */

.calculator-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin-top: 35px;
}

.calculator-card {
    display: block;
    padding: 28px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    text-decoration: none;
    color: inherit;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

.calculator-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    border-color: #d1d5db;
}

.calculator-card-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    border-radius: 12px;
    background: #f3f4f6;
    font-size: 26px;
}

.calculator-card h2 {
    margin: 0 0 10px;
    font-size: 21px;
    line-height: 1.3;
}

.calculator-card p {
    margin: 0 0 18px;
    color: #6b7280;
    line-height: 1.7;
}

.calculator-card-link {
    display: inline-block;
    font-weight: 700;
    line-height: 1.5;
}


/* =========================================================
   CALCULATOR PAGE MOBILE
========================================================= */

@media (max-width: 700px) {

    .calculator-card-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .calculator-card {
        padding: 22px;
    }

}

/* =========================================================
   CALCULATOR SECONDARY BUTTON
========================================================= */

.calculator-button-row .btn-secondary {
    color: #111827;
    background: #ffffff;
    border: 1px solid #d1d5db;
}

.calculator-button-row .btn-secondary:hover {
    background: #f3f4f6;
}

/* =========================================================
   FUEL COST CALCULATOR
========================================================= */

.fuel-calculator-card {
    max-width: 720px;
    margin: 35px auto 0;
    padding: 32px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.calculator-input-group {
    margin-bottom: 22px;
}

.calculator-input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
}

.calculator-input-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.calculator-input-row input {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    box-sizing: border-box;
}

.calculator-input-row input:focus {
    outline: none;
    border-color: #111827;
}

.calculator-input-row span {
    min-width: 70px;
    color: #6b7280;
    font-size: 14px;
}

.calculator-button-row {
    display: flex;
    gap: 12px;
    margin-top: 28px;
}

.calculator-button-row .btn {
    cursor: pointer;
}

.fuel-calculator-result {
    margin-top: 28px;
    padding: 24px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
}

.calculator-result-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.calculator-result-item {
    padding: 18px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
}

.calculator-result-item span {
    display: block;
    margin-bottom: 8px;
    color: #6b7280;
    font-size: 14px;
}

.calculator-result-item strong {
    display: block;
    font-size: 24px;
    line-height: 1.3;
}

.calculator-error {
    margin-top: 18px;
    padding: 12px 14px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    color: #991b1b;
    font-size: 14px;
    line-height: 1.5;
}


/* =========================================================
   FUEL CALCULATOR MOBILE
========================================================= */

@media (max-width: 700px) {

    .fuel-calculator-card {
        padding: 22px;
    }

    .calculator-button-row {
        flex-direction: column;
    }

    .calculator-button-row .btn {
        width: 100%;
    }

    .calculator-result-grid {
        grid-template-columns: 1fr;
    }

}

/* =====================================================
   ADSTERRA AD CONTAINERS
===================================================== */

.ad-container {
    width: 100%;
    max-width: 1200px;
    margin: 30px auto;
    padding: 10px 15px;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
}


/* Native Banner */

.ad-native {
    min-height: 100px;
}


/* 320 x 50 Banner */

.ad-banner-320 {
    min-height: 70px;
}


/* Mobile */

@media (max-width: 600px) {

    .ad-container {
        margin: 24px auto;
        padding: 8px 10px;
    }

    .ad-native {
        min-height: 90px;
    }

    .ad-banner-320 {
        min-height: 65px;
    }

}