/* 
   Theme: Premium Driving School (Blue & Gold)
   Font: Outfit (Modern Sans Serif)
*/

:root {
    --primary-color: #0F172A;
    /* Deep Blue/Slate */
    --secondary-color: #F59E0B;
    /* Amber/Gold */
    --accent-color: #3B82F6;
    /* Bright Blue */
    --text-color: #334155;
    /* Slate Gray */
    --light-bg: #F8FAFC;
    /* Very Light Gray */
    --white: #FFFFFF;
    --transition: all 0.3s ease;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--light-bg);
}

a,
button,
.feature-card,
.pricing-card,
.info-item {
    cursor: pointer;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--primary-color);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--secondary-color);
    margin: 10px auto 0;
    border-radius: 2px;
}

.section-header p {
    font-size: 1.1rem;
    color: #64748B;
}

/* Buttons */
.btn-primary,
.btn-secondary,
.btn-outline {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background: var(--secondary-color);
    color: var(--primary-color);
    border: 2px solid var(--secondary-color);
}

.btn-primary:hover {
    background: transparent;
    color: var(--secondary-color);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-color);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    z-index: 1000;
    padding: 15px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: -0.5px;
}

.logo span {
    color: var(--secondary-color);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links a {
    font-weight: 500;
    color: var(--primary-color);
    font-size: 0.95rem;
    position: relative;
}

.nav-links a.active,
.nav-links a:hover {
    color: var(--secondary-color);
}

.nav-links .btn-primary {
    padding: 10px 25px;
    color: var(--primary-color);
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 100vh;
    background-image: url('https://images.unsplash.com/photo-1449965408869-eaa3f722e40d?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80');
    /* Professional Driving Image */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    position: relative;
    color: var(--white);
    margin-top: 0;
    /* Override if needed */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.6));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    text-align: center;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    color: var(--white);
}

.hero-content .highlight {
    color: var(--secondary-color);
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 30px;
    color: #CBD5E1;
}

.hero-btns {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* Features Section */
.features {
    padding: 100px 0;
    background: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--light-bg);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    background: var(--white);
}

.icon-box {
    width: 70px;
    height: 70px;
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    margin: 0 auto 20px;
    transition: var(--transition);
}

.feature-card:hover .icon-box {
    background: var(--secondary-color);
    color: var(--primary-color);
}

.feature-card h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

/* Pricing Section */
.pricing {
    padding: 100px 0;
    background: var(--light-bg);
}

.pricing-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--white);
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 380px;
}

.pricing-card:hover {
    transform: translateY(-15px);
    box-shadow: var(--shadow-hover);
}

.pricing-card.popular {
    border: 2px solid var(--secondary-color);
    transform: scale(1.05);
    /* Slightly larger */
}

.pricing-card.popular:hover {
    transform: scale(1.05) translateY(-10px);
}

.tag {
    position: absolute;
    top: 20px;
    right: -30px;
    background: var(--secondary-color);
    color: var(--primary-color);
    padding: 5px 40px;
    transform: rotate(45deg);
    font-weight: 700;
    font-size: 0.8rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.card-header {
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 1px solid #E2E8F0;
    padding-bottom: 20px;
}

.card-header h3 {
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
}

.currency {
    font-size: 1rem;
    font-weight: 500;
    color: #94A3B8;
}

.features-list {
    margin-bottom: 30px;
    flex-grow: 1;
    /* Pushes button to bottom */
}

.features-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    color: #64748B;
}

.features-list li i {
    color: #22C55E;
    /* Green Check */
    margin-right: 10px;
    font-size: 0.9rem;
}

.pricing-card .btn-primary,
.pricing-card .btn-outline {
    width: 100%;
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background: var(--white);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.contact-info>p {
    margin-bottom: 40px;
    font-size: 1.1rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}

.info-item i {
    width: 50px;
    height: 50px;
    background: var(--light-bg);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 20px;
    font-size: 1.2rem;
    transition: var(--transition);
}

.info-item:hover i {
    background: var(--secondary-color);
}

.info-item h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.contact-form {
    background: var(--light-bg);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    background: var(--white);
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

.contact-form button {
    width: 100%;
    border: none;
    font-size: 1rem;
}

/* Footer */
footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo h3 {
    color: var(--white);
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.footer-logo span {
    color: var(--secondary-color);
}

.footer-logo p {
    color: #94A3B8;
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--secondary-color);
    color: var(--primary-color);
}

.copyright {
    text-align: center;
    color: #64748B;
    font-size: 0.9rem;
}

/* Mobile Responsiveness */
@media (max-width: 1024px) {
    .container {
        padding: 0 40px;
    }

    .hero-content h1 {
        font-size: 3.5rem;
    }
}

@media (max-width: 991px) {
    .section-header h2 {
        font-size: 2.2rem;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .lessons-list-container {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {

    /* Improve Container Padding for Mobile */
    .container {
        padding: 0 20px;
    }

    /* Navbar Mobile Styles */
    .navbar {
        padding: 15px 0;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 20px 0;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        /* Hidden */
        transition: 0.4s ease-in-out;
        gap: 0;
    }

    .nav-links.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }

    .nav-links a {
        display: block;
        width: 100%;
        text-align: center;
        padding: 15px 0;
        margin: 0;
        border-bottom: 1px solid #f1f5f9;
    }

    .nav-links .btn-primary {
        margin: 20px auto;
        display: inline-block;
        width: auto;
    }

    .menu-toggle {
        display: block;
    }

    /* Hero Section Fixes */
    .hero {
        min-height: 100vh;
        /* Use min-height instead of fixed height */
        height: auto;
        padding: 120px 0 60px;
        /* Add top padding for navbar */
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .hero-btns {
        flex-direction: column;
        gap: 15px;
        padding: 0 20px;
    }

    .hero-btns .btn-primary,
    .hero-btns .btn-secondary {
        width: 100%;
    }

    /* General Section Padding */
    .features,
    .pricing,
    .contact {
        padding: 60px 0;
    }

    /* Stack Grids */
    .features-grid,
    .pricing-grid,
    .lessons-list-container {
        grid-template-columns: 1fr;
        display: grid;
    }

    .pricing-grid {
        flex-direction: column;
        align-items: center;
    }

    .pricing-card {
        max-width: 100%;
    }

    /* Contact Form Fixes */
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-form {
        padding: 30px 20px;
    }

    /* Footer Stack */
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .social-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .section-header h2 {
        font-size: 1.8rem;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    /* Mobile Tabs Stack */
    .course-tabs {
        flex-direction: column;
        width: 100%;
        gap: 15px;
    }

    .tab-btn {
        width: 100%;
        justify-content: center;
        padding: 15px;
    }

    /* Quiz Mobile Layout Polish */
    .exam-image-container {
        height: auto;
        /* Allow auto height */
        min-height: 250px;
        padding: 10px;
        border-radius: 10px;
        overflow: hidden;
    }

    .exam-image-container img,
    .exam-image-container canvas {
        border-radius: 10px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        width: 100%;
        height: auto;
    }

    /* Question Typography */
    .exam-question-box h3 {
        font-size: 1.3rem;
        font-weight: 700;
        line-height: 1.4;
    }

    /* Answer Buttons - Bigger Touch Targets */
    .numpad-grid {
        gap: 15px;
        justify-content: center;
    }

    .num-btn {
        width: 65px;
        height: 65px;
        border-radius: 20px;
        /* Rounded Square/Circle hybrid */
        font-size: 1.5rem;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    .num-btn:active {
        transform: scale(0.90);
        /* Press Animation */
    }

    /* Container Spacing */
    .container {
        padding: 0 25px;
        /* More whitespace */
    }
}

/* Map Container */
.map-container {
    margin-top: 30px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
    width: 100%;
    height: 300px;
    border: none;
    display: block;
}

/* --------------------------
   NEW STYLES FOR LESSONS 
   -------------------------- */

/* Lesson Tabs */
.course-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.tab-btn {
    padding: 15px 30px;
    border: none;
    background: var(--white);
    color: var(--text-color);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 50px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 10px;
}

.tab-btn.active,
.tab-btn:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
}

/* Lessons List Container */
.lessons-list-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 20px;
}

@media (max-width: 600px) {
    .lessons-list-container {
        grid-template-columns: 1fr;
    }
}

/* Individual Lesson Item */
.lesson-item {
    background: var(--white);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
}

.lesson-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    border-color: var(--secondary-color);
}

.lesson-item .icon {
    width: 50px;
    height: 50px;
    background: var(--light-bg);
    color: var(--accent-color);
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.lesson-item:hover .icon {
    background: var(--secondary-color);
    color: var(--primary-color);
}

.sign-icon {
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.sign-icon svg {
    width: 100%;
    height: 100%;
    /* Filter shadow for realism */
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.1));
}

.lesson-item .info {
    flex-grow: 1;
}

.lesson-item h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.lesson-item p {
    font-size: 0.9rem;
    color: #64748B;
    margin: 0;
}

.lesson-item .arrow {
    color: #CBD5E1;
    transition: var(--transition);
}

.lesson-item:hover .arrow {
    color: var(--secondary-color);
    transform: translateX(5px);
}

/* Lesson Viewer Container */
.lesson-viewer-container {
    background: var(--white);
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow);
}

.viewer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    border-bottom: 1px solid #E2E8F0;
    padding-bottom: 15px;
}

.viewer-header h3 {
    font-size: 1.5rem;
}

.btn-back {
    padding: 8px 20px;
    border-radius: 30px;
    background: var(--light-bg);
    color: var(--text-color);
    border: 1px solid #CBD5E1;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-back:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.iframe-container {
    width: 100%;
    height: 80vh;
    /* Responsive height */
    border-radius: 10px;
    overflow: hidden;
    background: #f1f5f9;
}

.iframe-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Series Selection Grid */
.series-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    max-width: 800px;
    margin: 0 auto;
}

.series-btn {
    background: white;
    border: 2px solid #E2E8F0;
    padding: 20px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-family: 'Cairo', sans-serif;
}

.series-btn i {
    font-size: 2rem;
    color: var(--primary-color);
}

.series-btn:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Exam Interface Styles */
.exam-interface {
    display: flex;
    gap: 20px;
    background: #f8fafc;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    min-height: 500px;
}

/* Main Content (Left) */
.exam-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #fff;
    /* White bg */
    padding: 10px;
}

.exam-image-container {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    /* White bg */
    position: relative;
    height: 50vh;
    /* Fixed height for consistency */
    overflow: hidden;
}

.exam-image-container img {
    width: 100%;
    height: 100%;
    object-fit: fill;
    /* Forces fit to the frame as requested */
}

.exam-question-box {
    background: white;
    padding: 15px;
    text-align: right;
    border-top: 4px solid var(--primary-color);
}

.exam-question-box h3 {
    font-family: 'Cairo', sans-serif;
    font-size: 1.2rem;
    color: var(--text-color);
}

.exam-footer {
    padding: 10px;
    background: #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.counter-box {
    font-weight: bold;
    font-family: 'Outfit', sans-serif;
}

/* Sidebar (Right) */
.exam-sidebar {
    width: 250px;
    background: #8B5CF6;
    /* Purple/Blueish base from screenshot */
    background: linear-gradient(180deg, #A78BFA 0%, #7C3AED 100%);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    color: white;
    flex-shrink: 0;
}

/* Top Indicators */
.answer-indicators-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.2);
    padding: 10px;
    border-radius: 8px;
}

.ans-ind {
    width: 40px;
    height: 40px;
    background: #fff;
    border: 2px solid #ddd;
    border-radius: 4px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    color: #333;
    font-size: 1.2rem;
}

.ans-ind.active {
    background: #FBBF24;
    /* Highlight color */
    border-color: #F59E0B;
}

/* Controls */
.btn-control {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 50px;
    /* Oval */
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    transition: transform 0.1s;
    font-family: 'Outfit', sans-serif;
}

.btn-control:active {
    transform: scale(0.98);
}

.btn-correction {
    background: #DC2626;
    /* Red */
    color: white;
    margin-bottom: 10px;
}

.btn-validate {
    background: #10B981;
    /* Green */
    color: white;
    margin-top: auto;
    /* Push to bottom */
}

/* Numpad */
.numpad-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.num-btn {
    width: 100%;
    padding: 12px;
    border-radius: 50px;
    border: 2px solid white;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
}

.num-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.num-btn.selected {
    background: #FBBF24;
    /* Amber selection */
    color: #111;
    border-color: #F59E0B;
}

/* Responsive */
@media (max-width: 768px) {
    .exam-interface {
        flex-direction: column;
    }

    .exam-sidebar {
        width: 100%;
        flex-direction: column;
        /* Keep vertical stack of sections */
        gap: 15px;
    }

    /* Force Indicators Horizontal */
    .answer-indicators-row {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 10px !important;
        width: 100% !important;
        height: auto !important;
        padding: 10px !important;
    }

    .numpad-grid {
        flex-direction: row;
    }

    .num-btn {
        width: 60px;
        height: 60px;
    }
}

/* Result Grid */
.result-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
    /* 5 columns roughly */
    gap: 15px;
    /* Spacing */
    margin-top: 30px;
    max-width: 800px;
    /* Centered width */
    margin-left: auto;
    margin-right: auto;
}

.result-item {
    width: 60px;
    height: 60px;
    background: #e2e8f0;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.result-item:hover {
    transform: scale(1.1);
}

.result-item.correct {
    background: #4ade80;
    /* Green */
    color: #14532d;
    border-color: #22c55e;
}

.result-item.wrong {
    background: #f87171;
    /* Red */
    color: #7f1d1d;
    border-color: #ef4444;
}

/* Canvas Sizing */
#question-canvas {
    max-width: 100%;
    max-height: 100%;
    width: auto !important;
    height: auto !important;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    border-radius: 8px;
    background-color: white !important;
}

/* Ensure container has white background */
.exam-image-container {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff !important;
    position: relative;
    height: 100%;
    /* Fill the parent flex space */
    min-height: 400px;
    overflow: hidden;
    padding: 10px;
    /* Add some padding so it doesn't touch edges */
}

/* Ensure image placeholder also respects this */
.exam-image-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Review Interface Improvements */
.review-controls {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

/* User vs Correct Answer Styles in Review */
.num-btn.user-selected {
    border: 3px solid #f87171 !important;
    /* Red border for user choice if wrong */
    background: #fecaca !important;
}

.num-btn.correct-answer {
    background: #4ade80 !important;
    /* Green background for correct */
    color: white !important;
    border: 3px solid #22c55e !important;
    box-shadow: 0 0 10px #4ade80;
}

.num-btn.user-selected.correct-answer {
    /* If user selected correct */
    border: 3px solid #22c55e !important;
    background: #4ade80 !important;
}
/* Contact Method Styles */
.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.contact-card {
    display: flex;
    align-items: center;
    padding: 20px;
    border-radius: 15px;
    background: var(--light-bg);
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
    border: 1px solid transparent;
}

.contact-card:hover {
    background: var(--white);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    border-color: #e2e8f0;
}

/* Icon Styles */
.contact-card .icon-wrapper {
    width: 50px;
    height: 50px;
    background: var(--white);
    color: var(--secondary-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-right: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    flex-shrink: 0;
}

.btn-contact.whatsapp .icon-wrapper {
    color: #25D366;
}

.btn-contact.facebook .icon-wrapper {
    color: #1877F2;
}

/* Text Styles */
.contact-card .text-wrapper {
    flex-grow: 1;
}

.contact-card h4 {
    margin: 0 0 5px;
    font-size: 1rem;
    color: var(--primary-color);
}

.contact-card p {
    margin: 0;
    font-size: 0.95rem;
    color: #64748B;
}

/* Arrow Icon */
.arrow-icon {
    color: #94A3B8;
    margin-left: 15px;
    transition: var(--transition);
}

.contact-card:hover .arrow-icon {
    color: var(--secondary-color);
    transform: translateX(5px);
}

/* Address Card Specifics */
.address-card {
    cursor: default; /* Address isn't clickable like buttons */
}

.address-card:hover {
    transform: none;
    box-shadow: none;
    background: var(--light-bg);
    border-color: transparent;
}

@media (max-width: 768px) {
    .contact-card {
        padding: 15px;
    }
    
    .contact-card .icon-wrapper {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
        margin-right: 15px;
    }
}
