/* Base Styles and Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --primary-color: #1a73e8;
    --secondary-color: #4285f4;
    --accent-color: #fbbc05;
    --text-color: #333;
    --light-text: #666;
    --bg-light: #f9f9f9;
    --white: #ffffff;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --hover-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    --border-radius: 8px;
    --transition: all 0.3s ease;
    --success-color: #34a853;
    --error-color: #ea4335;
}

body {
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--bg-light);
}

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

a:hover {
    color: var(--secondary-color);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

section {
    padding: 60px 0;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 20px;
    color: var(--text-color);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.2rem;
}

p {
    margin-bottom: 15px;
    color: var(--light-text);
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
}

.subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--light-text);
    margin-bottom: 40px;
}

/* Header and Navigation */
header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Base navbar styles */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    min-height: 60px;
    width: 100%;
    box-sizing: border-box;
}

.logo h1 {
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    margin: 0;
    color: #357FF0;
    white-space: nowrap;
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: clamp(15px, 3vw, 30px);
    align-items: center;
}

.nav-links li a {
    color: var(--text-color, #333);
    font-weight: 500;
    padding: 10px 16px;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-size: clamp(0.9rem, 1.8vw, 1rem);
}

.nav-links li a:hover,
.nav-links li a.active {
    color: var(--primary-color, #1a73e8);
    background-color: rgba(26, 115, 232, 0.1);
    transform: translateY(-1px);
}

#menu-toggle {
    display: none;
}

.menu-icon {
    display: none;
    cursor: pointer;
    font-size: 1.8rem;
    color: #333;
    padding: 5px;
    border: none;
    background: none;
    transition: transform 0.3s ease;
}

.menu-icon:hover {
    transform: scale(1.1);
}


/* Hero Section */
.hero {
    background: linear-gradient(135deg, #1a73e8, #4285f4);
    color: white;
    text-align: center;
    padding: 100px 0;
    position: relative;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    opacity: 0.1;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    color: white;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.9);
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cta-btn {
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    display: inline-block;
}

.cta-btn.primary {
    background-color: var(--accent-color);
    color: var(--text-color);
    box-shadow: var(--box-shadow);
}

.cta-btn.primary:hover {
    background-color: #f9a602;
    transform: translateY(-3px);
    box-shadow: var(--hover-shadow);
}

.cta-btn.secondary {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.cta-btn.secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

/* About Hero, Notes Hero, PYQs Hero Sections */
.about-hero,
.notes-hero,
.pyqs-hero {
    background: linear-gradient(135deg, #1a73e8, #4285f4);
    color: white;
    text-align: center;
    padding: 80px 0;
    position: relative;
}

.about-hero::before,
.notes-hero::before,
.pyqs-hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    opacity: 0.1;
}

.about-hero h1,
.notes-hero h1,
.pyqs-hero h1 {
    color: white;
}

.about-hero .subtitle,
.notes-hero .subtitle,
.pyqs-hero .subtitle {
    color: rgba(255, 255, 255, 0.9);
}

/* Features Section */
.features {
    background-color: white;
}

.feature-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 30px 25px;
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--hover-shadow);
}

.card-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.card h3 {
    margin-bottom: 15px;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #1a73e8, #4285f4);
    color: white;
    text-align: center;
    padding: 80px 0;
}

.cta-section h2 {
    color: white;
    margin-bottom: 20px;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
    font-size: 1.1rem;
}

/* Footer */
footer {
    background-color: #333;
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo h3 {
    color: white;
    margin-bottom: 15px;
}

.footer-logo p {
    color: rgba(255, 255, 255, 0.7);
}

.footer-links h4,
.footer-social h4 {
    color: white;
    margin-bottom: 20px;
}

.footer-social ul li,
.footer-links ul li {
    margin-bottom: 10px;
}

.footer-social ul li a,
.footer-links ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-social ul li a:hover,
.footer-links ul li a:hover {
    color: white;
    padding-left: 5px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    transition: var(--transition);
}

.social-icons a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* About Page Specific Styles */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    align-items: center;
}

.about-image img {
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    width: 100%;
}

.about-text h2 {
    margin-bottom: 20px;
}

.about-text p {
    margin-bottom: 15px;
}

.mission-vision-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.mission-box,
.vision-box {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: var(--transition);
}

.mission-box:hover,
.vision-box:hover {
    transform: translateY(-10px);
    box-shadow: var(--hover-shadow);
}

.mission-box .icon,
.vision-box .icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.connect-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.connect-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 25px;
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.connect-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
}

.connect-card i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* Notes Page Specific Styles */
.subjects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.subject-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.subject-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
}

.subject-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-align: center;
}

.subject-card h3 {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.chapter-list li {
    padding: 10px 0;
    border-bottom: 1px dashed #eee;
}

.chapter-list li:last-child {
    border-bottom: none;
}

.chapter-list li a {
    display: block;
    color: var(--light-text);
    transition: var(--transition);
}

.chapter-list li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.tip-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.tip-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
}

.tip-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    text-align: center;
}

.tip-card h3 {
    text-align: center;
    margin-bottom: 15px;
}

/* PYQs Page Specific Styles */
.pyqs-intro {
    background-color: var(--white);
}

.intro-content {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 40px;
    align-items: center;
}

.intro-text h2 {
    margin-bottom: 20px;
}

.intro-text ul {
    list-style: disc;
    padding-left: 20px;
}

.intro-text ul li {
    margin-bottom: 10px;
    color: var(--light-text);
}

.intro-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.intro-image i {
    font-size: 8rem;
    color: var(--primary-color);
    opacity: 0.7;
}

.papers-list li {
    padding: 10px 0;
    border-bottom: 1px dashed #eee;
}

.papers-list li:last-child {
    border-bottom: none;
}

.papers-list li a {
    display: flex;
    align-items: center;
    color: var(--light-text);
    transition: var(--transition);
}

.papers-list li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.papers-list li a i {
    margin-right: 10px;
    color: #e74c3c;
}

.sample-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.sample-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 30px;
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.sample-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
}

.sample-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.sample-card h3 {
    margin-bottom: 15px;
}

.sample-card p {
    margin-bottom: 25px;
}

.sample-btn {
    display: inline-block;
    padding: 10px 25px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 20px;
    transition: var(--transition);
}

.sample-btn:hover {
    background-color: var(--secondary-color);
    color: white;
}

.tips-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.tip-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.tip-number {
    background-color: var(--primary-color);
    color: white;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 700;
    flex-shrink: 0;
}

.tip-details h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

/* Responsive Styles */
@media (max-width: 992px) {
    h1 {
        font-size: 2.2rem;
    }
    .logo h1 {
        font-size: larger;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .intro-content {
        grid-template-columns: 1fr;
    }
    
    .intro-image {
        display: none;
    }
}

@media (max-width: 768px) {
    .menu-icon {
        display: block;
    }
    
    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        background: white;
        height: 100vh;
        width: 100%;
        flex-direction: column;
        align-items: center;
        transition: all 0.5s ease;
        gap: clamp(0px, 0vw, 0px);
    }
    
    #menu-toggle:checked ~ .nav-links {
        left: 0;
    }
    
    .nav-links li {
        margin: 15px 0;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        max-width: 280px;
        margin: 0 auto;
    }
    
    .testimonial-slider {
        grid-template-columns: 1fr;
    }
    
    .tip-item {
        flex-direction: column;
    }
    
    .tip-number {
        margin-bottom: 10px;
    }
}

@media (max-width: 576px) {
    section {
        padding: 40px 0;
    }
    
    .container {
        width: 95%;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.3rem;
    }
    
    .hero, 
    .about-hero,
    .notes-hero,
    .pyqs-hero {
        padding: 60px 0;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-icons {
        justify-content: center;
    }
}
.chapter-header {
    background-color: #2c7dfa;
    color: white;
    text-align: center;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
}
.chapter-header h1 {
    margin: 0;
    font-size: 2.5em;
    color: white;
}
.chapter-header p {
    margin: 0;
    font-size: 1em;
    color: white;
}
.section {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    padding: 25px;
    margin-bottom: 20px;
}
.section ul li {
    list-style-type: circle;
    list-style-position: inside;
}
.section ol li {
    padding: 5px;
    margin-left: 20px;
}
.section h2 {
    color: #2c7dfa;
    border-bottom: 2px solid #2c7dfa;
    padding-bottom: 10px;
}
.activity {
    background-color: #f9f9f9;
    border-left: 4px solid #2c7dfa;
    padding: 15px;
    margin: 15px 0;
}
.activity-title {
    font-weight: bold;
    color: #2c7dfa;
}
.key-points {
    background-color: #e6f2ff;
    padding: 15px;
    border-radius: 5px;
}
.chemical-equation {
    background-color: #f0f0f0;
    padding: 10px;
    border-radius: 5px;
    font-family: monospace;
    margin: 10px 0;
}
.note {
    background-color: #fffbe6;
    border-left: 4px solid #ffd700;
    padding: 10px;
    margin: 15px 0;
}
/* Contact Page Styles */

/* Container */

/* Contact Hero Section */
.contact-hero {
    background: #2C7DFA;
    color: white;
    padding: 80px 0;
    text-align: center;
}

.contact-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.subtitle {
    color: white;
    font-size: 1.25rem;
    font-weight: 300;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Contact Info Section */
.contact-info {
    background: #f8f9fa;
    padding: 60px 0;
}

.contact-info h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 3rem;
    font-weight: 600;
}

.info-item {
    display: flex;
    align-items: center;
    background: white;
    padding: 2rem;
    margin-bottom: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.info-icon {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.5rem;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.info-content h3 {
    color: #333;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.info-content p {
    color: #666;
    font-size: 1rem;
    margin: 0;
}

.info-content a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.info-content a:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* Response Info */
.response-info {
    background: #e8f4f8;
    padding: 2rem;
    border-radius: 12px;
    margin-top: 2rem;
    border-left: 4px solid #667eea;
}

.response-info h3 {
    color: #333;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.response-info p {
    color: #555;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

/* FAQ Section */
.faq-section {
    background: white;
    padding: 80px 0;
}

.faq-section h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 3rem;
    font-weight: 600;
}

.faq-grid {
    display: grid;
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: #f8f9fa;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.faq-question {
    background: white;
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e9ecef;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background: #f8f9fa;
}

.faq-question h3 {
    color: #333;
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
    flex: 1;
}

.faq-question i {
    color: #667eea;
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding: 1.5rem;
}

.faq-answer p {
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .contact-hero {
        padding: 60px 0;
    }
    
    .contact-hero h1 {
        font-size: 2.5rem;
    }
    
    .subtitle {
        font-size: 1.1rem;
    }
    
    .contact-info {
        padding: 40px 0;
    }
    
    .info-item {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }
    
    .info-icon {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .faq-section {
        padding: 60px 0;
    }
    
    .faq-section h2,
    .contact-info h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .contact-hero h1 {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .info-item {
        padding: 1rem;
    }
    
    .faq-question {
        padding: 1rem;
    }
    
    .faq-answer {
        padding: 0 1rem;
    }
    
    .faq-item.active .faq-answer {
        padding: 1rem;
    }
}
#topBtn {
    position: fixed;
    bottom: 40px;
    right: 30px;
    z-index: 99;
    border: none;
    outline: none;
    background-color: #4CAF50;
    color: white;
    cursor: pointer;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 16px;
    display: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}
  
#topBtn:hover {
    background-color: #45a049;
}
.test-button {
    background: #4285f4;
    color: var(--white);
    border: none;
    padding: 10px 20px;
    margin: 5px 8px;
    border-radius: var(--border-radius);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: var(--box-shadow);
    position: relative;
    overflow: hidden;
    font-family: inherit;
}

/* Chapter Container Styles */
.chapter-section {
    margin-bottom: 30px;
    padding: 20px;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.subject-title {
    color: var(--text-color);
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--primary-color);
}

.chapter-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #e9ecef;
}

.chapter-item:last-child {
    border-bottom: none;
}

.chapter-name {
    flex: 1;
    font-size: 16px;
    color: var(--light-text);
    font-weight: 500;
}

.button-group {
    display: flex;
    gap: 5px;
}

.sub-title {
    color: var(--primary-color);
    margin: 20px 0 15px 0;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    .chapter-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .button-group {
        width: 100%;
        justify-content: center;
    }
}
.header {
    background: var(--white);
    padding: 30px;
    margin-bottom: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
}

.header h1 {
    color: var(--primary-color);
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.header p {
    color: var(--light-text);
    font-size: 1.1rem;
}

.quiz-info {
    background: var(--white);
    padding: 20px;
    margin-bottom: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.quiz-info div {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-color);
    font-weight: 500;
}

.quiz-info .icon {
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
}

.question-card {
    background: var(--white);
    padding: 30px;
    margin-bottom: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.question-card:hover {
    box-shadow: var(--hover-shadow);
}

.question-header {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

.question-number {
    background: var(--primary-color);
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    flex-shrink: 0;
}

.question-text {
    color: var(--text-color);
    font-size: 1.1rem;
    line-height: 1.6;
    font-weight: 500;
}

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

.option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    background: var(--bg-light);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.option:hover {
    background: #e8f0fe;
    border-color: var(--secondary-color);
}

.option input[type="radio"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.option label {
    cursor: pointer;
    color: var(--text-color);
    font-size: 1rem;
    line-height: 1.5;
    flex: 1;
}

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

.option.incorrect {
    background: #fce8e6;
    border-color: var(--error-color);
    color: var(--error-color);
}

.option.selected {
    background: #e8f0fe;
    border-color: var(--primary-color);
}

.submit-btn {
    background: var(--primary-color);
    color: white;
    padding: 15px 40px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: block;
    margin: 40px auto;
    box-shadow: var(--box-shadow);
}

.submit-btn:hover {
    background: var(--secondary-color);
    box-shadow: var(--hover-shadow);
    transform: translateY(-2px);
}

.submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.result-card {
    background: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    margin-bottom: 30px;
    display: none;
}

.result-card.show {
    display: block;
}

.score-display {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.score-text {
    font-size: 1.3rem;
    color: var(--text-color);
    margin-bottom: 20px;
}

.performance {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 25px;
}

.performance div {
    text-align: center;
}

.performance .number {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.performance .correct .number {
    color: var(--success-color);
}

.performance .incorrect .number {
    color: var(--error-color);
}

.performance .label {
    color: var(--light-text);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .header {
        padding: 20px;
    }

    .header h1 {
        font-size: 2rem;
    }

    .quiz-info {
        flex-direction: column;
        text-align: center;
    }

    .question-card {
        padding: 20px;
    }

    .question-header {
        gap: 10px;
    }

    .question-number {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }

    .question-text {
        font-size: 1rem;
    }

    .option {
        padding: 12px 15px;
    }

    .option label {
        font-size: 0.9rem;
    }

    .performance {
        gap: 20px;
    }

    .result-card {
        padding: 25px;
    }

    .score-display {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 1.8rem;
    }

    .question-text {
        font-size: 0.95rem;
    }

    .performance {
        flex-direction: column;
        gap: 15px;
    }
}
/* Add this CSS */
.quiz-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.retry-btn {
    background: linear-gradient(135deg, var(--light-text), #757575);
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--box-shadow);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.retry-btn:hover {
    background: linear-gradient(135deg, #757575, #616161);
    box-shadow: var(--hover-shadow);
    transform: translateY(-2px);
}

.next-quiz-btn {
    background: linear-gradient(135deg, var(--accent-color), #ff9800);
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--box-shadow);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.next-quiz-btn:hover {
    background: linear-gradient(135deg, #ff9800, #f57c00);
    box-shadow: var(--hover-shadow);
    transform: translateY(-2px);
}

/* Mobile responsive */
@media (max-width: 480px) {
    .quiz-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .retry-btn, .next-quiz-btn {
        width: 100%;
        justify-content: center;
    }
}
