:root {
    --primary-color: #2171B5;
    --secondary-color: #6BAED6;
    --accent-color: #BDD7E7;
    --background-color: #EFF3FF;
    --text-color: #2171B5;
    --button-hover: #6BAED6;
    --button-bg: #BDD7E7;
    --button-text: #2171B5;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

.navbar {
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--primary-color);
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.logo h1 {
    color: var(--background-color);
    font-size: 1.5rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--background-color);
    text-decoration: none;
    font-weight: 500;
    transition: color .3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent-color);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
    position: relative;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #fff;
    margin: 5px 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

.hero {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, var(--background-color), var(--accent-color), var(--secondary-color));
    color: var(--primary-color);
    text-align: center;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: var(--accent-color);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 5px;
    transition: background-color .3s, color .3s, box-shadow .3s;
    box-shadow: 0 4px 16px 0 rgba(33, 113, 181, 0.25), 0 1.5px 4px 0 rgba(33, 113, 181, 0.15);
}

.cta-button:hover {
    background-color: var(--secondary-color);
    color: #fff;
    box-shadow: 0 6px 24px 0 rgba(33, 113, 181, 0.30), 0 2px 8px 0 rgba(33, 113, 181, 0.18);
}

.featured-subjects {
    padding: 4rem 2rem;
    border: 2px solid var(--primary-color);
    border-radius: 15px;
    box-shadow: 0 8px 24px rgba(33, 113, 181, 0.15);
    background: linear-gradient(to bottom right, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7));
    backdrop-filter: blur(10px);
    margin: 2rem auto;
    max-width: 1200px;
    position: relative;
}

.featured-subjects::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border-radius: 17px;
    z-index: -1;
    opacity: 0.7;
}

.featured-subjects h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

.footer-section h3,
.subject-card i {
    margin-bottom: 1rem;
}

.footer-content,
.subject-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.subject-card {
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, .1);
    transition: transform .3s;
    text-align: center;
}

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

.subject-card i {
    font-size: 2.5rem;
    color: var(--secondary-color);
}

.subject-card h3 a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 1.4rem;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    padding-bottom: 0.3rem;
}

.subject-card h3 a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 0.3s ease;
}

.subject-card h3 a:hover {
    color: var(--secondary-color);
    transform: translateY(-2px);
}

.subject-card h3 a:hover::after {
    width: 100%;
}

footer {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #fff;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
    background-color: var(--primary-color);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
    gap: 2rem;
    padding: 0 1rem;
}

.footer-section {
    padding: 1rem;
    display: flex;
    flex-direction: column;
}

.footer-section h3 {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
    text-align: left;
    white-space: nowrap;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background: #4ecca3;
}

.about-section .main-description {
    line-height: 1.6;
    margin-bottom: 1rem;
    color: #e0e0e0;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: #e0e0e0;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.footer-links a:hover {
    color: #4ecca3;
}

.newsletter-form {
    margin-bottom: 1.5rem;
}

.newsletter-form input {
    width: 100%;
    padding: 0.8rem;
    border: none;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    margin-bottom: 0.5rem;
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.newsletter-form button {
    width: 100%;
    padding: 0.8rem;
    background: #4ecca3;
    color: #1a1a2e;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-weight: 600;
}

.newsletter-form button:hover {
    background: #45b392;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.social-icon {
    color: #e0e0e0;
    font-size: 1.5rem;
    transition: transform 0.3s ease, color 0.3s ease;
}

.social-icon:hover {
    color: #4ecca3;
    transform: translateY(-3px);
}

.contact-info {
    margin-top: 1rem;
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #e0e0e0;
}

.contact-info a {
    color: #e0e0e0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: #4ecca3;
}

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

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

.footer-section ul li {
    margin-bottom: .5rem;
}

.footer-section a {
    color: var(--background-color);
    text-decoration: none;
    transition: color .3s;
}

.social-links a {
    font-size: 1.5rem;
}

@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
    .about-section {
        grid-column: 1/-1;
    }
}

@media (max-width: 912px) {
    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        right: -300px;
        width: 280px;
        height: 100vh;
        background-color: var(--primary-color);
        padding: 5rem 1.5rem 2rem;
        flex-direction: column;
        gap: 1.5rem;
        z-index: 1000;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease-in-out;
        border-radius: 0 0 0 10px;
    }
    .nav-links.active {
        display: flex;
        right: 0;
    }
    .mobile-menu-btn {
        display: block;
        position: relative;
        z-index: 1001;
    }
    .mobile-menu-btn span {
        display: block;
        width: 25px;
        height: 3px;
        background-color: #fff;
        margin: 5px 0;
        transition: transform 0.3s ease;
        
    }
    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }
    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
    .nav-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 999;
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    .nav-overlay.active {
        display: block;
        opacity: 1;
    }
    .hero h2 {
        font-size: 2rem;
    }
    .hero p {
        font-size: 1rem;
    }
}

@media (width: 912px) and (height: 1368px) {
    body.tablet-portrait .nav-links {
        padding-top: 8rem;
    }
    body.tablet-portrait .hero {
        padding: 6rem 2rem;
    }
    body.tablet-portrait .hero h2 {
        font-size: 2.2rem;
    }
    body.tablet-portrait .hero p {
        font-size: 1.1rem;
    }
    body.tablet-portrait .featured-subjects {
        padding: 6rem 2rem;
    }
    body.tablet-portrait .subject-card {
        padding: 2.5rem;
    }
    body.tablet-portrait .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        padding-top: 5rem;
    }
    .hero h2 {
        font-size: 1.8rem;
    }
    .hero p {
        font-size: 0.9rem;
    }
}

.focus {
    outline: 3px solid var(--accent-color);
    outline-offset: 2px;
}

@media print {
    .cta-button,
    .navbar,
    footer {
        display: none;
    }
    body {
        background-color: #fff;
        color: #000;
    }
}

.text-center {
    text-align: center;
    margin-top: 3rem;
}

.text-center h1 {
    margin-bottom: 1rem;
}

/* About Wordestool Section */
.about-wordestool {
    padding: 5rem 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.about-wordestool::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
}

.about-wordestool h2 {
    color: #2c3e50;
    font-size: 2.8rem;
    text-align: center;
    margin-bottom: 1rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.about-wordestool h3 {
    color: #3498db;
    font-size: 1.6rem;
    text-align: center;
    margin-bottom: 3rem;
    font-weight: 500;
}

.about-content {
    max-width: 1000px;
    margin: 0 auto;
    background: #ffffff;
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #eef2f7;
}

.about-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.about-content p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #34495e;
    margin-bottom: 2rem;
    text-align: center;
}

.benefits-list {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.benefits-list li {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 12px;
    color: #2c3e50;
    font-size: 1.1rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #eef2f7;
    position: relative;
    overflow: hidden;
}

.benefits-list li::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: #3498db;
    transition: all 0.3s ease;
}

.benefits-list li:hover {
    transform: translateX(5px);
    background: #e3f2fd;
    border-color: #3498db;
}

.benefits-list li:hover::before {
    width: 100%;
    opacity: 0.1;
}

.target-users {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    padding: 2rem;
    border-radius: 12px;
    margin-top: 3rem;
    border: 1px solid #eef2f7;
    transition: all 0.3s ease;
}

.target-users:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.target-users h4 {
    color: #2c3e50;
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 600;
}

.target-users ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.target-users ul li {
    background: #ffffff;
    padding: 1.2rem;
    border-radius: 8px;
    color: #34495e;
    font-size: 1.1rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #eef2f7;
    position: relative;
}

.target-users ul li::before {
    content: "•";
    color: #3498db;
    position: absolute;
    left: 1rem;
    font-size: 1.2rem;
}

.target-users ul li:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border-color: #3498db;
}

/* Responsive Design for About Section */
@media (max-width: 1024px) {
    .benefits-list,
    .target-users ul {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .about-wordestool {
        padding: 3rem 1rem;
    }

    .about-wordestool h2 {
        font-size: 2.2rem;
    }

    .about-wordestool h3 {
        font-size: 1.4rem;
    }

    .about-content {
        padding: 1.5rem;
    }

    .about-content p {
        font-size: 1.1rem;
    }

    .benefits-list,
    .target-users ul {
        grid-template-columns: 1fr;
    }

    .benefits-list li,
    .target-users ul li {
        font-size: 1rem;
    }
}

/* Contact Section Styles */
.contact-section {
    padding: 4rem 2rem;
    background-color: #fff;
}

.contact-section h2 {
    text-align: center;
    color: #2c3e50;
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.contact-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info {
    padding: 2rem;
}

.contact-info h3 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.contact-info p {
    color: #34495e;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-item i {
    font-size: 1.5rem;
    color: #3498db;
    margin-top: 0.5rem;
}

.contact-item h4 {
    color: #2c3e50;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.contact-item p {
    color: #34495e;
    margin: 0;
}

.contact-item a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s;
}

.contact-item a:hover {
    color: #2980b9;
}

.contact-form {
    background-color: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.contact-form h3 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #3498db;
    outline: none;
}

.submit-btn {
    background-color: #3498db;
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.submit-btn:hover {
    background-color: #2980b9;
}

/* Responsive Design for Contact Section */
@media (max-width: 768px) {
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .contact-section {
        padding: 3rem 1rem;
    }
    .contact-section h2 {
        font-size: 2rem;
    }
    .contact-info h3,
    .contact-form h3 {
        font-size: 1.5rem;
    }
    .contact-info p {
        font-size: 1rem;
    }
}

/* Quiz Instructions Section Styles */
.quiz-instructions {
    padding: 2rem;
    background-color: #f8f9fa;
    border-radius: 10px;
    margin: 2rem 0;
}

.quiz-instructions h2 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 2rem;
    font-size: 2rem;
}

.instructions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.instruction-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.instruction-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.instruction-card i {
    font-size: 2rem;
    color: #3498db;
    margin-bottom: 1rem;
}

.instruction-card h3 {
    color: #2c3e50;
    margin-bottom: 0.8rem;
    font-size: 1.2rem;
}

.instruction-card p {
    color: #666;
    line-height: 1.5;
}

.instruction-card ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.instruction-card ul li {
    color: #666;
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.instruction-card ul li:before {
    content: "•";
    color: #3498db;
    position: absolute;
    left: 0;
}

.tip-card {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border: 2px solid #3498db;
}

.tip-card i {
    color: #f1c40f;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .instructions-grid {
        grid-template-columns: 1fr;
    }
    
    .quiz-instructions {
        padding: 1rem;
    }
    
    .instruction-card {
        padding: 1rem;
    }
}

/* Math Learning Content Section Styles */
.learning-content {
    padding: 3rem 2rem;
    background-color: #f8f9fa;
    margin: 2rem 0;
}

.learning-content h2 {
    text-align: center;
    color: #2c3e50;
    font-size: 2.2rem;
    margin-bottom: 2rem;
}

.content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}

.intro-text {
    font-size: 1.2em;
    line-height: 1.6;
    color: #555;
    margin-bottom: 30px;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Special styling for the final call-to-action paragraph */
.intro-text:last-of-type {
    text-align: center;
    font-size: 1.3rem;
    font-weight: 500;
    color: #2c3e50;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin: 2.5rem 0;
    border: 2px solid #3498db;
    position: relative;
    overflow: hidden;
}

.intro-text:last-of-type::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
}

.intro-text:last-of-type:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

/* Responsive adjustments for the styled paragraph */
@media (max-width: 768px) {
    .intro-text:last-of-type {
        font-size: 1.1rem;
        padding: 1.5rem;
        margin: 2rem 0;
    }
}

.features-section {
    margin-bottom: 3rem;
}

.features-section h3 {
    text-align: center;
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 2rem;
}

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

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.feature-card i {
    font-size: 2.5rem;
    color: #3498db;
    margin-bottom: 1rem;
}

.feature-card h4 {
    color: #2c3e50;
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.feature-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-card ul li {
    color: #666;
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
}

.feature-card ul li:before {
    content: "•";
    color: #3498db;
    position: absolute;
    left: 0;
}

.benefits-section {
    text-align: center;
    margin-top: 3rem;
}

.benefits-section p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #34495e;
    margin-bottom: 2rem;
}

.cta-box {
    background: linear-gradient(135deg, #3498db, #2980b9);
    padding: 2rem;
    border-radius: 10px;
    color: white;
}

.cta-text {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: white;
    color: #3498db;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .learning-content {
        padding: 2rem 1rem;
    }

    .learning-content h2 {
        font-size: 1.8rem;
    }

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

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .cta-box {
        padding: 1.5rem;
    }
}

/* Mathematics History Section Styles */
.math-history {
    padding: 4rem 2rem;
    background-color: #fff;
    margin: 2rem 0;
}

.math-history h2 {
    text-align: center;
    color: #2c3e50;
    font-size: 2.2rem;
    margin-bottom: 2rem;
}

.history-content {
    max-width: 1200px;
    margin: 0 auto;
}

.history-intro {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #34495e;
    margin-bottom: 3rem;
    text-align: center;
}

.history-timeline {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.timeline-item {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

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

.timeline-item::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background-color: #3498db;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.2);
}

.timeline-item h3 {
    color: #2c3e50;
    font-size: 1.4rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #3498db;
}

.timeline-item p {
    color: #666;
    line-height: 1.8;
    font-size: 1.1rem;
}

/* Responsive adjustments for history section */
@media (max-width: 768px) {
    .math-history {
        padding: 2rem 1rem;
    }

    .math-history h2 {
        font-size: 1.8rem;
    }

    .history-intro {
        font-size: 1.1rem;
    }

    .timeline-item {
        padding: 1.5rem;
    }

    .timeline-item h3 {
        font-size: 1.2rem;
    }

    .timeline-item p {
        font-size: 1rem;
    }

    .timeline-item::before {
        left: -15px;
        width: 15px;
        height: 15px;
    }
}

/* Quiz Container and Controls Styling */
#quiz-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

#quiz-section.quiz-active {
    background-color: #f8f9fa;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin: 2rem auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#quiz-container {
    display: none;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 2rem;
}

#quiz-container.active {
    display: block !important;
}

.quiz-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 2px solid #f0f0f0;
    width: 100%;
}

.skip-btn, .stop-btn {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    min-width: 150px;
    display: inline-block;
}

.skip-btn {
    background-color: #f8f9fa;
    color: #3498db;
    border: 2px solid #3498db;
}

.skip-btn:hover {
    background-color: #3498db;
    color: white;
}

.stop-btn {
    background-color: #e74c3c;
    color: white;
}

.stop-btn:hover {
    background-color: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(231, 76, 60, 0.2);
}

/* Quiz Active State Styles */
.quiz-section.quiz-active {
    animation: quizHighlight 2s ease-out;
    position: relative;
}

@keyframes quizHighlight {
    0% {
        box-shadow: 0 0 0 0 rgba(52, 152, 219, 0.4);
    }
    50% {
        box-shadow: 0 0 20px 10px rgba(52, 152, 219, 0.2);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(52, 152, 219, 0);
    }
}

.quiz-section.quiz-active #quiz-container {
    animation: quizContainerHighlight 2s ease-out;
}

@keyframes quizContainerHighlight {
    0% {
        transform: scale(1);
    }
    5% {
        transform: scale(1.02);
    }
    100% {
        transform: scale(1);
    }
}

/* Ensure smooth scrolling behavior for the entire page */
html {
    scroll-behavior: smooth;
}

/* Mobile-specific adjustments */
@media (max-width: 768px) {
    .quiz-section.quiz-active {
        margin: 1rem 0;
    }
    
    .quiz-section.quiz-active #quiz-container {
        margin: 0.5rem;
    }
}

/* Math Topics Detail Section Styling */
.math-topics-detail {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.topic-detail {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 2.5rem;
    padding: 2.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.topic-detail:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.topic-detail h2 {
    color: #2c3e50;
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.8rem;
}

.topic-detail h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: #3498db;
}

.topic-detail p {
    color: #34495e;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

/* Topic-specific styling */
.topic-detail.algebra h2::after {
    background: #e74c3c;
}

.topic-detail.calculus h2::after {
    background: #2ecc71;
}

.topic-detail.geometry h2::after {
    background: #f1c40f;
}

.topic-detail.statistics h2::after {
    background: #9b59b6;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .math-topics-detail {
        padding: 0 1rem;
        margin: 2rem auto;
    }

    .topic-detail {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .topic-detail h2 {
        font-size: 1.8rem;
    }

    .topic-detail p {
        font-size: 1rem;
    }
}

@media screen and (max-width: 480px) {
    .topic-detail {
        padding: 1.2rem;
    }

    .topic-detail h2 {
        font-size: 1.5rem;
    }
}

/* Geography Introduction Section Styles */
.geography-intro {
    padding: 3rem 2rem;
    background-color: #f8f9fa;
    margin: 2rem 0;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.geography-intro h2 {
    color: #2c3e50;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 700;
}

.intro-content {
    max-width: 1200px;
    margin: 0 auto;
}

.intro-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #34495e;
    margin-bottom: 1.5rem;
    text-align: justify;
}

.geography-topics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.topic-item {
    background-color: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.topic-item:hover {
    transform: translateY(-5px);
}

.topic-item h3 {
    color: #2c3e50;
    font-size: 1.4rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.topic-item p {
    color: #666;
    line-height: 1.6;
}

.benefits-section {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    margin: 2rem 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.benefits-section h3 {
    color: #2c3e50;
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

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

.benefits-list li {
    font-size: 1.1rem;
    color: #34495e;
    margin-bottom: 1rem;
    padding-left: 1rem;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .geography-intro {
        padding: 2rem 1rem;
    }

    .geography-intro h2 {
        font-size: 2rem;
    }

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

    .geography-topics {
        grid-template-columns: 1fr;
    }

    .topic-item {
        padding: 1.2rem;
    }
}

/* Geography History Section Styles */
.geography-history {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    margin: 3rem 0;
}

.geography-history h2 {
    color: #2c3e50;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 700;
}

.history-content {
    max-width: 1200px;
    margin: 0 auto;
}

.history-intro {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #34495e;
    text-align: center;
    margin-bottom: 3rem;
    padding: 0 2rem;
}

.geography-history h3 {
    color: #2c3e50;
    font-size: 1.8rem;
    text-align: center;
    margin: 3rem 0 2rem;
    position: relative;
}

.geography-history h3::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    margin: 1rem auto;
    border-radius: 2px;
}

.timeline-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.timeline-item {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.timeline-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.timeline-item h4 {
    color: #2c3e50;
    font-size: 1.4rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #3498db;
}

.timeline-item p {
    color: #34495e;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.timeline-details {
    list-style: none;
    padding: 0;
    margin: 0;
}

.timeline-details li {
    color: #666;
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
}

.timeline-details li::before {
    content: "•";
    color: #3498db;
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

.impact-section {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin: 3rem 0;
    text-align: center;
}

.impact-section h3 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.impact-list {
    list-style: none;
    padding: 0;
    display: inline-block;
    text-align: left;
}

.impact-list li {
    font-size: 1.1rem;
    color: #34495e;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.geography-quote {
    font-size: 1.4rem;
    color: #2c3e50;
    text-align: center;
    font-style: italic;
    margin: 3rem 0;
    padding: 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
}

.geography-quote::before,
.geography-quote::after {
    content: '"';
    font-size: 3rem;
    color: #3498db;
    position: absolute;
    opacity: 0.2;
}

.geography-quote::before {
    top: 0;
    left: 1rem;
}

.geography-quote::after {
    bottom: 0;
    right: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .geography-history {
        padding: 2rem 1rem;
    }

    .geography-history h2 {
        font-size: 2rem;
    }

    .history-intro {
        font-size: 1.1rem;
        padding: 0 1rem;
    }

    .timeline-container {
        grid-template-columns: 1fr;
    }

    .timeline-item {
    padding: 1.5rem;
    }

    .geography-quote {
        font-size: 1.2rem;
        padding: 1.5rem;
    }
}

/* Geography Topics Detail Section Styles */
.geography-topics-detail {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    margin: 3rem 0;
}

.topic-detail {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 3rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.topic-detail:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
}

.topic-detail h2 {
    color: #2c3e50;
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.8rem;
}

.topic-detail h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    border-radius: 2px;
}

.topic-detail p {
    color: #34495e;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.quiz-topics {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    margin: 2rem 0;
}

.quiz-topics h3 {
    color: #2c3e50;
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.topic-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.topic-list li {
    color: #34495e;
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
}

.topic-importance,
.topic-fact,
.topic-tip,
.topic-impact {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 1.5rem;
    border-radius: 10px;
    margin-top: 2rem;
    border-left: 4px solid #3498db;
}

.topic-importance h4,
.topic-fact h4,
.topic-tip h4,
.topic-impact h4 {
    color: #2c3e50;
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
}

.topic-importance p,
.topic-fact p,
.topic-tip p,
.topic-impact p {
    color: #34495e;
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0;
}

/* Topic-specific styling */
.topic-detail.world-geography h2::after {
    background: linear-gradient(90deg, #3498db, #2ecc71);
}

.topic-detail.countries h2::after {
    background: linear-gradient(90deg, #e74c3c, #f39c12);
}

.topic-detail.capitals h2::after {
    background: linear-gradient(90deg, #9b59b6, #3498db);
}

.topic-detail.physical h2::after {
    background: linear-gradient(90deg, #2ecc71, #27ae60);
}

/* Responsive Design */
@media (max-width: 768px) {
    .geography-topics-detail {
        padding: 2rem 1rem;
    }

    .topic-detail {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }

    .topic-detail h2 {
        font-size: 1.8rem;
    }

    .topic-detail p,
    .topic-list li {
        font-size: 1rem;
    }

    .quiz-topics h3 {
        font-size: 1.2rem;
    }

    .topic-importance h4,
    .topic-fact h4,
    .topic-tip h4,
    .topic-impact h4 {
        font-size: 1.1rem;
    }
}

/* History Introduction Section Styles */
.history-intro-section {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    margin: 3rem 0;
}

.history-intro-section h2 {
    color: #2c3e50;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 700;
}

.history-intro-content {
    max-width: 1200px;
    margin: 0 auto;
}

.history-intro-content .intro-text {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #34495e;
    margin-bottom: 2rem;
    text-align: justify;
}

.history-topics,
.history-importance,
.quiz-exploration {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin: 2rem 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.history-topics:hover,
.history-importance:hover,
.quiz-exploration:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.history-topics h3,
.history-importance h3,
.quiz-exploration h3 {
    color: #2c3e50;
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.8rem;
}

.history-topics h3::after,
.history-importance h3::after,
.quiz-exploration h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    border-radius: 2px;
}

.topic-list,
.importance-list,
.exploration-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.topic-list li,
.importance-list li,
.exploration-list li {
    color: #34495e;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
}

.topic-list li::before,
.importance-list li::before,
.exploration-list li::before {
    content: "•";
    color: #3498db;
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

.conclusion-text {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #34495e;
    text-align: center;
    margin-top: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.conclusion-text::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
}

/* Responsive Design for History Introduction Section */
@media (max-width: 768px) {
    .history-intro-section {
        padding: 2rem 1rem;
    }

    .history-intro-section h2 {
        font-size: 2rem;
    }

    .history-intro-content .intro-text {
        font-size: 1.1rem;
    }

    .history-topics,
    .history-importance,
    .quiz-exploration {
        padding: 1.5rem;
    }

    .history-topics h3,
    .history-importance h3,
    .quiz-exploration h3 {
        font-size: 1.4rem;
    }

    .topic-list li,
    .importance-list li,
    .exploration-list li {
        font-size: 1rem;
    }

    .conclusion-text {
        font-size: 1.1rem;
        padding: 1.5rem;
    }
}

/* History Evolution Section Styles */
.history-evolution-section {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    margin: 3rem 0;
}

.history-evolution-section h2 {
    color: #2c3e50;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 700;
}

.evolution-content {
    max-width: 1200px;
    margin: 0 auto;
}

.evolution-intro {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #34495e;
    margin-bottom: 3rem;
    text-align: justify;
}

.evolution-period {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin: 2rem 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.evolution-period:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.evolution-period h3 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.8rem;
}

.evolution-period h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    border-radius: 2px;
}

.evolution-period p {
    color: #34495e;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.period-list,
.achievement-list,
.importance-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
}

.period-list li,
.achievement-list li,
.importance-list li {
    color: #34495e;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
}

.period-list li::before,
.achievement-list li::before,
.importance-list li::before {
    content: "•";
    color: #3498db;
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

.evolution-importance {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem 0;
    border-left: 4px solid #3498db;
}

.evolution-importance h3 {
    color: #2c3e50;
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
}

.history-quote {
    font-size: 1.4rem;
    color: #2c3e50;
    text-align: center;
    font-style: italic;
    margin: 3rem 0;
    padding: 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
}

.history-quote::before,
.history-quote::after {
    content: '"';
    font-size: 3rem;
    color: #3498db;
    position: absolute;
    opacity: 0.2;
}

.history-quote::before {
    top: 0;
    left: 1rem;
}

.history-quote::after {
    bottom: 0;
    right: 1rem;
}

/* Period-specific styling */
.evolution-period.ancient h3::after {
    background: linear-gradient(90deg, #e74c3c, #f39c12);
}

.evolution-period.medieval h3::after {
    background: linear-gradient(90deg, #9b59b6, #3498db);
}

.evolution-period.scientific h3::after {
    background: linear-gradient(90deg, #2ecc71, #27ae60);
}

.evolution-period.modern h3::after {
    background: linear-gradient(90deg, #3498db, #2980b9);
}

/* Responsive Design for History Evolution Section */
@media (max-width: 768px) {
    .history-evolution-section {
        padding: 2rem 1rem;
    }

    .history-evolution-section h2 {
        font-size: 2rem;
    }

    .evolution-intro {
        font-size: 1.1rem;
    }

    .evolution-period {
        padding: 1.5rem;
    }

    .evolution-period h3 {
        font-size: 1.5rem;
    }

    .evolution-period p,
    .period-list li,
    .importance-list li {
        font-size: 1rem;
    }

    .history-quote {
        font-size: 1.2rem;
        padding: 1.5rem;
    }
}

/* Historical Periods Section Styles */
.historical-periods {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    margin: 3rem 0;
}

.periods-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.period-card {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.period-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.period-card h2 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.8rem;
}

.period-card h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    border-radius: 2px;
}

.period-card p {
    color: #34495e;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

:root {
    --primary-color: #2171B5;
    --secondary-color: #6BAED6;
    --accent-color: #BDD7E7;
    --background-color: #EFF3FF;
    --text-color: #2171B5;
    --button-hover: #6BAED6;
    --button-bg: #BDD7E7;
    --button-text: #2171B5;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

.navbar {
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--primary-color);
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.logo h1 {
    color: var(--background-color);
    font-size: 1.5rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--background-color);
    text-decoration: none;
    font-weight: 500;
    transition: color .3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent-color);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
    position: relative;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #fff;
    margin: 5px 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

.hero {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, var(--background-color), var(--accent-color), var(--secondary-color));
    color: var(--primary-color);
    text-align: center;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: var(--accent-color);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 5px;
    transition: background-color .3s, color .3s, box-shadow .3s;
    box-shadow: 0 4px 16px 0 rgba(33, 113, 181, 0.25), 0 1.5px 4px 0 rgba(33, 113, 181, 0.15);
}

.cta-button:hover {
    background-color: var(--secondary-color);
    color: #fff;
    box-shadow: 0 6px 24px 0 rgba(33, 113, 181, 0.30), 0 2px 8px 0 rgba(33, 113, 181, 0.18);
}

.featured-subjects {
    padding: 4rem 2rem;
    border: 2px solid var(--primary-color);
    border-radius: 15px;
    box-shadow: 0 8px 24px rgba(33, 113, 181, 0.15);
    background: linear-gradient(to bottom right, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7));
    backdrop-filter: blur(10px);
    margin: 2rem auto;
    max-width: 1200px;
    position: relative;
}

.featured-subjects::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border-radius: 17px;
    z-index: -1;
    opacity: 0.7;
}

.featured-subjects h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

.footer-section h3,
.subject-card i {
    margin-bottom: 1rem;
}

.footer-content,
.subject-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.subject-card {
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, .1);
    transition: transform .3s;
    text-align: center;
}

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

.subject-card i {
    font-size: 2.5rem;
    color: var(--secondary-color);
}

.subject-card h3 a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 1.4rem;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    padding-bottom: 0.3rem;
}

.subject-card h3 a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 0.3s ease;
}

.subject-card h3 a:hover {
    color: var(--secondary-color);
    transform: translateY(-2px);
}

.subject-card h3 a:hover::after {
    width: 100%;
}

footer {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #fff;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
    background-color: var(--primary-color);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
    gap: 2rem;
    padding: 0 1rem;
}

.footer-section {
    padding: 1rem;
    display: flex;
    flex-direction: column;
}

.footer-section h3 {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
    text-align: left;
    white-space: nowrap;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background: #4ecca3;
}

.about-section .main-description {
    line-height: 1.6;
    margin-bottom: 1rem;
    color: #e0e0e0;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: #e0e0e0;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.footer-links a:hover {
    color: #4ecca3;
}

.newsletter-form {
    margin-bottom: 1.5rem;
}

.newsletter-form input {
    width: 100%;
    padding: 0.8rem;
    border: none;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    margin-bottom: 0.5rem;
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.newsletter-form button {
    width: 100%;
    padding: 0.8rem;
    background: #4ecca3;
    color: #1a1a2e;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-weight: 600;
}

.newsletter-form button:hover {
    background: #45b392;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.social-icon {
    color: #e0e0e0;
    font-size: 1.5rem;
    transition: transform 0.3s ease, color 0.3s ease;
}

.social-icon:hover {
    color: #4ecca3;
    transform: translateY(-3px);
}

.contact-info {
    margin-top: 1rem;
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #e0e0e0;
}

.contact-info a {
    color: #e0e0e0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: #4ecca3;
}

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

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

.footer-section ul li {
    margin-bottom: .5rem;
}

.footer-section a {
    color: var(--background-color);
    text-decoration: none;
    transition: color .3s;
}

.social-links a {
    font-size: 1.5rem;
}

@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
    .about-section {
        grid-column: 1/-1;
    }
}

@media (max-width: 912px) {
    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        right: -300px;
        width: 280px;
        height: 100vh;
        background-color: var(--primary-color);
        padding: 5rem 1.5rem 2rem;
        flex-direction: column;
        gap: 1.5rem;
        z-index: 1000;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease-in-out;
        border-radius: 0 0 0 10px;
    }
    .nav-links.active {
        display: flex;
        right: 0;
    }
    .mobile-menu-btn {
        display: block;
        position: relative;
        z-index: 1001;
    }
    .mobile-menu-btn span {
        display: block;
        width: 25px;
        height: 3px;
        background-color: #fff;
        margin: 5px 0;
        transition: transform 0.3s ease;
        
    }
    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }
    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
    .nav-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 999;
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    .nav-overlay.active {
        display: block;
        opacity: 1;
    }
    .hero h2 {
        font-size: 2rem;
    }
    .hero p {
        font-size: 1rem;
    }
}

@media (width: 912px) and (height: 1368px) {
    body.tablet-portrait .nav-links {
        padding-top: 8rem;
    }
    body.tablet-portrait .hero {
        padding: 6rem 2rem;
    }
    body.tablet-portrait .hero h2 {
        font-size: 2.2rem;
    }
    body.tablet-portrait .hero p {
        font-size: 1.1rem;
    }
    body.tablet-portrait .featured-subjects {
        padding: 6rem 2rem;
    }
    body.tablet-portrait .subject-card {
        padding: 2.5rem;
    }
    body.tablet-portrait .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        padding-top: 5rem;
    }
    .hero h2 {
        font-size: 1.8rem;
    }
    .hero p {
        font-size: 0.9rem;
    }
}

.focus {
    outline: 3px solid var(--accent-color);
    outline-offset: 2px;
}

@media print {
    .cta-button,
    .navbar,
    footer {
        display: none;
    }
    body {
        background-color: #fff;
        color: #000;
    }
}

.text-center {
    text-align: center;
    margin-top: 3rem;
}

.text-center h1 {
    margin-bottom: 1rem;
}

/* About Wordestool Section */
.about-wordestool {
    padding: 5rem 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.about-wordestool::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
}

.about-wordestool h2 {
    color: #2c3e50;
    font-size: 2.8rem;
    text-align: center;
    margin-bottom: 1rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.about-wordestool h3 {
    color: #3498db;
    font-size: 1.6rem;
    text-align: center;
    margin-bottom: 3rem;
    font-weight: 500;
}

.about-content {
    max-width: 1000px;
    margin: 0 auto;
    background: #ffffff;
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #eef2f7;
}

.about-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.about-content p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #34495e;
    margin-bottom: 2rem;
    text-align: center;
}

.benefits-list {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.benefits-list li {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 12px;
    color: #2c3e50;
    font-size: 1.1rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #eef2f7;
    position: relative;
    overflow: hidden;
}

.benefits-list li::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: #3498db;
    transition: all 0.3s ease;
}

.benefits-list li:hover {
    transform: translateX(5px);
    background: #e3f2fd;
    border-color: #3498db;
}

.benefits-list li:hover::before {
    width: 100%;
    opacity: 0.1;
}

.target-users {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    padding: 2rem;
    border-radius: 12px;
    margin-top: 3rem;
    border: 1px solid #eef2f7;
    transition: all 0.3s ease;
}

.target-users:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.target-users h4 {
    color: #2c3e50;
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 600;
}

.target-users ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.target-users ul li {
    background: #ffffff;
    padding: 1.2rem;
    border-radius: 8px;
    color: #34495e;
    font-size: 1.1rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #eef2f7;
    position: relative;
}

.target-users ul li::before {
    content: "•";
    color: #3498db;
    position: absolute;
    left: 1rem;
    font-size: 1.2rem;
}

.target-users ul li:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border-color: #3498db;
}

/* Responsive Design for About Section */
@media (max-width: 1024px) {
    .benefits-list,
    .target-users ul {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .about-wordestool {
        padding: 3rem 1rem;
    }

    .about-wordestool h2 {
        font-size: 2.2rem;
    }

    .about-wordestool h3 {
        font-size: 1.4rem;
    }

    .about-content {
        padding: 1.5rem;
    }

    .about-content p {
        font-size: 1.1rem;
    }

    .benefits-list,
    .target-users ul {
        grid-template-columns: 1fr;
    }

    .benefits-list li,
    .target-users ul li {
        font-size: 1rem;
    }
}

/* Contact Section Styles */
.contact-section {
    padding: 4rem 2rem;
    background-color: #fff;
}

.contact-section h2 {
    text-align: center;
    color: #2c3e50;
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.contact-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info {
    padding: 2rem;
}

.contact-info h3 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.contact-info p {
    color: #34495e;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-item i {
    font-size: 1.5rem;
    color: #3498db;
    margin-top: 0.5rem;
}

.contact-item h4 {
    color: #2c3e50;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.contact-item p {
    color: #34495e;
    margin: 0;
}

.contact-item a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s;
}

.contact-item a:hover {
    color: #2980b9;
}

.contact-form {
    background-color: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.contact-form h3 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #3498db;
    outline: none;
}

.submit-btn {
    background-color: #3498db;
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.submit-btn:hover {
    background-color: #2980b9;
}

/* Responsive Design for Contact Section */
@media (max-width: 768px) {
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .contact-section {
        padding: 3rem 1rem;
    }
    .contact-section h2 {
        font-size: 2rem;
    }
    .contact-info h3,
    .contact-form h3 {
        font-size: 1.5rem;
    }
    .contact-info p {
        font-size: 1rem;
    }
}

/* Quiz Instructions Section Styles */
.quiz-instructions {
    padding: 2rem;
    background-color: #f8f9fa;
    border-radius: 10px;
    margin: 2rem 0;
}

.quiz-instructions h2 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 2rem;
    font-size: 2rem;
}

.instructions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.instruction-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.instruction-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.instruction-card i {
    font-size: 2rem;
    color: #3498db;
    margin-bottom: 1rem;
}

.instruction-card h3 {
    color: #2c3e50;
    margin-bottom: 0.8rem;
    font-size: 1.2rem;
}

.instruction-card p {
    color: #666;
    line-height: 1.5;
}

.instruction-card ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.instruction-card ul li {
    color: #666;
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.instruction-card ul li:before {
    content: "•";
    color: #3498db;
    position: absolute;
    left: 0;
}

.tip-card {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border: 2px solid #3498db;
}

.tip-card i {
    color: #f1c40f;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .instructions-grid {
        grid-template-columns: 1fr;
    }
    
    .quiz-instructions {
        padding: 1rem;
    }
    
    .instruction-card {
        padding: 1rem;
    }
}

/* Math Learning Content Section Styles */
.learning-content {
    padding: 3rem 2rem;
    background-color: #f8f9fa;
    margin: 2rem 0;
}

.learning-content h2 {
    text-align: center;
    color: #2c3e50;
    font-size: 2.2rem;
    margin-bottom: 2rem;
}

.content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}

.intro-text {
    font-size: 1.2em;
    line-height: 1.6;
    color: #555;
    margin-bottom: 30px;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Special styling for the final call-to-action paragraph */
.intro-text:last-of-type {
    text-align: center;
    font-size: 1.3rem;
    font-weight: 500;
    color: #2c3e50;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin: 2.5rem 0;
    border: 2px solid #3498db;
    position: relative;
    overflow: hidden;
}

.intro-text:last-of-type::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
}

.intro-text:last-of-type:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

/* Responsive adjustments for the styled paragraph */
@media (max-width: 768px) {
    .intro-text:last-of-type {
        font-size: 1.1rem;
        padding: 1.5rem;
        margin: 2rem 0;
    }
}

.features-section {
    margin-bottom: 3rem;
}

.features-section h3 {
    text-align: center;
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 2rem;
}

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

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.feature-card i {
    font-size: 2.5rem;
    color: #3498db;
    margin-bottom: 1rem;
}

.feature-card h4 {
    color: #2c3e50;
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.feature-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-card ul li {
    color: #666;
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
}

.feature-card ul li:before {
    content: "•";
    color: #3498db;
    position: absolute;
    left: 0;
}

.benefits-section {
    text-align: center;
    margin-top: 3rem;
}

.benefits-section p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #34495e;
    margin-bottom: 2rem;
}

.cta-box {
    background: linear-gradient(135deg, #3498db, #2980b9);
    padding: 2rem;
    border-radius: 10px;
    color: white;
}

.cta-text {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: white;
    color: #3498db;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .learning-content {
        padding: 2rem 1rem;
    }

    .learning-content h2 {
        font-size: 1.8rem;
    }

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

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .cta-box {
        padding: 1.5rem;
    }
}

/* Mathematics History Section Styles */
.math-history {
    padding: 4rem 2rem;
    background-color: #fff;
    margin: 2rem 0;
}

.math-history h2 {
    text-align: center;
    color: #2c3e50;
    font-size: 2.2rem;
    margin-bottom: 2rem;
}

.history-content {
    max-width: 1200px;
    margin: 0 auto;
}

.history-intro {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #34495e;
    margin-bottom: 3rem;
    text-align: center;
}

.history-timeline {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.timeline-item {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

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

.timeline-item::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background-color: #3498db;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.2);
}

.timeline-item h3 {
    color: #2c3e50;
    font-size: 1.4rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #3498db;
}

.timeline-item p {
    color: #666;
    line-height: 1.8;
    font-size: 1.1rem;
}

/* Responsive adjustments for history section */
@media (max-width: 768px) {
    .math-history {
        padding: 2rem 1rem;
    }

    .math-history h2 {
        font-size: 1.8rem;
    }

    .history-intro {
        font-size: 1.1rem;
    }

    .timeline-item {
        padding: 1.5rem;
    }

    .timeline-item h3 {
        font-size: 1.2rem;
    }

    .timeline-item p {
        font-size: 1rem;
    }

    .timeline-item::before {
        left: -15px;
        width: 15px;
        height: 15px;
    }
}

/* Quiz Container and Controls Styling */
#quiz-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

#quiz-section.quiz-active {
    background-color: #f8f9fa;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin: 2rem auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#quiz-container {
    display: none;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 2rem;
}

#quiz-container.active {
    display: block !important;
}

.quiz-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 2px solid #f0f0f0;
    width: 100%;
}

.skip-btn, .stop-btn {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    min-width: 150px;
    display: inline-block;
}

.skip-btn {
    background-color: #f8f9fa;
    color: #3498db;
    border: 2px solid #3498db;
}

.skip-btn:hover {
    background-color: #3498db;
    color: white;
}

.stop-btn {
    background-color: #e74c3c;
    color: white;
}

.stop-btn:hover {
    background-color: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(231, 76, 60, 0.2);
}

/* Quiz Active State Styles */
.quiz-section.quiz-active {
    animation: quizHighlight 2s ease-out;
    position: relative;
}

@keyframes quizHighlight {
    0% {
        box-shadow: 0 0 0 0 rgba(52, 152, 219, 0.4);
    }
    50% {
        box-shadow: 0 0 20px 10px rgba(52, 152, 219, 0.2);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(52, 152, 219, 0);
    }
}

.quiz-section.quiz-active #quiz-container {
    animation: quizContainerHighlight 2s ease-out;
}

@keyframes quizContainerHighlight {
    0% {
        transform: scale(1);
    }
    5% {
        transform: scale(1.02);
    }
    100% {
        transform: scale(1);
    }
}

/* Ensure smooth scrolling behavior for the entire page */
html {
    scroll-behavior: smooth;
}

/* Mobile-specific adjustments */
@media (max-width: 768px) {
    .quiz-section.quiz-active {
        margin: 1rem 0;
    }
    
    .quiz-section.quiz-active #quiz-container {
        margin: 0.5rem;
    }
}

/* Math Topics Detail Section Styling */
.math-topics-detail {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.topic-detail {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 2.5rem;
    padding: 2.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.topic-detail:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.topic-detail h2 {
    color: #2c3e50;
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.8rem;
}

.topic-detail h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: #3498db;
}

.topic-detail p {
    color: #34495e;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

/* Topic-specific styling */
.topic-detail.algebra h2::after {
    background: #e74c3c;
}

.topic-detail.calculus h2::after {
    background: #2ecc71;
}

.topic-detail.geometry h2::after {
    background: #f1c40f;
}

.topic-detail.statistics h2::after {
    background: #9b59b6;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .math-topics-detail {
        padding: 0 1rem;
        margin: 2rem auto;
    }

    .topic-detail {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .topic-detail h2 {
        font-size: 1.8rem;
    }

    .topic-detail p {
        font-size: 1rem;
    }
}

@media screen and (max-width: 480px) {
    .topic-detail {
        padding: 1.2rem;
    }

    .topic-detail h2 {
        font-size: 1.5rem;
    }
}

/* Geography Introduction Section Styles */
.geography-intro {
    padding: 3rem 2rem;
    background-color: #f8f9fa;
    margin: 2rem 0;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.geography-intro h2 {
    color: #2c3e50;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 700;
}

.intro-content {
    max-width: 1200px;
    margin: 0 auto;
}

.intro-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #34495e;
    margin-bottom: 1.5rem;
    text-align: justify;
}

.geography-topics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.topic-item {
    background-color: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.topic-item:hover {
    transform: translateY(-5px);
}

.topic-item h3 {
    color: #2c3e50;
    font-size: 1.4rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.topic-item p {
    color: #666;
    line-height: 1.6;
}

.benefits-section {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    margin: 2rem 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.benefits-section h3 {
    color: #2c3e50;
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

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

.benefits-list li {
    font-size: 1.1rem;
    color: #34495e;
    margin-bottom: 1rem;
    padding-left: 1rem;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .geography-intro {
        padding: 2rem 1rem;
    }

    .geography-intro h2 {
        font-size: 2rem;
    }

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

    .geography-topics {
        grid-template-columns: 1fr;
    }

    .topic-item {
        padding: 1.2rem;
    }
}

/* Geography History Section Styles */
.geography-history {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    margin: 3rem 0;
}

.geography-history h2 {
    color: #2c3e50;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 700;
}

.history-content {
    max-width: 1200px;
    margin: 0 auto;
}

.history-intro {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #34495e;
    text-align: center;
    margin-bottom: 3rem;
    padding: 0 2rem;
}

.geography-history h3 {
    color: #2c3e50;
    font-size: 1.8rem;
    text-align: center;
    margin: 3rem 0 2rem;
    position: relative;
}

.geography-history h3::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    margin: 1rem auto;
    border-radius: 2px;
}

.timeline-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.timeline-item {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.timeline-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.timeline-item h4 {
    color: #2c3e50;
    font-size: 1.4rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #3498db;
}

.timeline-item p {
    color: #34495e;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.timeline-details {
    list-style: none;
    padding: 0;
    margin: 0;
}

.timeline-details li {
    color: #666;
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
}

.timeline-details li::before {
    content: "•";
    color: #3498db;
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

.impact-section {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin: 3rem 0;
    text-align: center;
}

.impact-section h3 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.impact-list {
    list-style: none;
    padding: 0;
    display: inline-block;
    text-align: left;
}

.impact-list li {
    font-size: 1.1rem;
    color: #34495e;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.geography-quote {
    font-size: 1.4rem;
    color: #2c3e50;
    text-align: center;
    font-style: italic;
    margin: 3rem 0;
    padding: 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
}

.geography-quote::before,
.geography-quote::after {
    content: '"';
    font-size: 3rem;
    color: #3498db;
    position: absolute;
    opacity: 0.2;
}

.geography-quote::before {
    top: 0;
    left: 1rem;
}

.geography-quote::after {
    bottom: 0;
    right: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .geography-history {
        padding: 2rem 1rem;
    }

    .geography-history h2 {
        font-size: 2rem;
    }

    .history-intro {
        font-size: 1.1rem;
        padding: 0 1rem;
    }

    .timeline-container {
        grid-template-columns: 1fr;
    }

    .timeline-item {
    padding: 1.5rem;
    }

    .geography-quote {
        font-size: 1.2rem;
        padding: 1.5rem;
    }
}

/* Geography Topics Detail Section Styles */
.geography-topics-detail {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    margin: 3rem 0;
}

.topic-detail {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 3rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.topic-detail:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
}

.topic-detail h2 {
    color: #2c3e50;
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.8rem;
}

.topic-detail h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    border-radius: 2px;
}

.topic-detail p {
    color: #34495e;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.quiz-topics {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    margin: 2rem 0;
}

.quiz-topics h3 {
    color: #2c3e50;
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.topic-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.topic-list li {
    color: #34495e;
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
}

.topic-importance,
.topic-fact,
.topic-tip,
.topic-impact {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 1.5rem;
    border-radius: 10px;
    margin-top: 2rem;
    border-left: 4px solid #3498db;
}

.topic-importance h4,
.topic-fact h4,
.topic-tip h4,
.topic-impact h4 {
    color: #2c3e50;
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
}

.topic-importance p,
.topic-fact p,
.topic-tip p,
.topic-impact p {
    color: #34495e;
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0;
}

/* Topic-specific styling */
.topic-detail.world-geography h2::after {
    background: linear-gradient(90deg, #3498db, #2ecc71);
}

.topic-detail.countries h2::after {
    background: linear-gradient(90deg, #e74c3c, #f39c12);
}

.topic-detail.capitals h2::after {
    background: linear-gradient(90deg, #9b59b6, #3498db);
}

.topic-detail.physical h2::after {
    background: linear-gradient(90deg, #2ecc71, #27ae60);
}

/* Responsive Design */
@media (max-width: 768px) {
    .geography-topics-detail {
        padding: 2rem 1rem;
    }

    .topic-detail {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }

    .topic-detail h2 {
        font-size: 1.8rem;
    }

    .topic-detail p,
    .topic-list li {
        font-size: 1rem;
    }

    .quiz-topics h3 {
        font-size: 1.2rem;
    }

    .topic-importance h4,
    .topic-fact h4,
    .topic-tip h4,
    .topic-impact h4 {
        font-size: 1.1rem;
    }
}

/* History Introduction Section Styles */
.history-intro-section {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    margin: 3rem 0;
}

.history-intro-section h2 {
    color: #2c3e50;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 700;
}

.history-intro-content {
    max-width: 1200px;
    margin: 0 auto;
}

.history-intro-content .intro-text {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #34495e;
    margin-bottom: 2rem;
    text-align: justify;
}

.history-topics,
.history-importance,
.quiz-exploration {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin: 2rem 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.history-topics:hover,
.history-importance:hover,
.quiz-exploration:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.history-topics h3,
.history-importance h3,
.quiz-exploration h3 {
    color: #2c3e50;
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.8rem;
}

.history-topics h3::after,
.history-importance h3::after,
.quiz-exploration h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    border-radius: 2px;
}

.topic-list,
.importance-list,
.exploration-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.topic-list li,
.importance-list li,
.exploration-list li {
    color: #34495e;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
}

.topic-list li::before,
.importance-list li::before,
.exploration-list li::before {
    content: "•";
    color: #3498db;
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

.conclusion-text {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #34495e;
    text-align: center;
    margin-top: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.conclusion-text::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
}

/* Responsive Design for History Introduction Section */
@media (max-width: 768px) {
    .history-intro-section {
        padding: 2rem 1rem;
    }

    .history-intro-section h2 {
        font-size: 2rem;
    }

    .history-intro-content .intro-text {
        font-size: 1.1rem;
    }

    .history-topics,
    .history-importance,
    .quiz-exploration {
        padding: 1.5rem;
    }

    .history-topics h3,
    .history-importance h3,
    .quiz-exploration h3 {
        font-size: 1.4rem;
    }

    .topic-list li,
    .importance-list li,
    .exploration-list li {
        font-size: 1rem;
    }

    .conclusion-text {
        font-size: 1.1rem;
        padding: 1.5rem;
    }
}

/* History Evolution Section Styles */
.history-evolution-section {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    margin: 3rem 0;
}

.history-evolution-section h2 {
    color: #2c3e50;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 700;
}

.evolution-content {
    max-width: 1200px;
    margin: 0 auto;
}

.evolution-intro {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #34495e;
    margin-bottom: 3rem;
    text-align: justify;
}

.evolution-period {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin: 2rem 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.evolution-period:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.evolution-period h3 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.8rem;
}

.evolution-period h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    border-radius: 2px;
}

.evolution-period p {
    color: #34495e;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.period-list,
.achievement-list,
.importance-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
}

.period-list li,
.achievement-list li,
.importance-list li {
    color: #34495e;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
}

.period-list li::before,
.achievement-list li::before,
.importance-list li::before {
    content: "•";
    color: #3498db;
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

.evolution-importance {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem 0;
    border-left: 4px solid #3498db;
}

.evolution-importance h3 {
    color: #2c3e50;
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
}

.history-quote {
    font-size: 1.4rem;
    color: #2c3e50;
    text-align: center;
    font-style: italic;
    margin: 3rem 0;
    padding: 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
}

.history-quote::before,
.history-quote::after {
    content: '"';
    font-size: 3rem;
    color: #3498db;
    position: absolute;
    opacity: 0.2;
}

.history-quote::before {
    top: 0;
    left: 1rem;
}

.history-quote::after {
    bottom: 0;
    right: 1rem;
}

/* Period-specific styling */
.evolution-period.ancient h3::after {
    background: linear-gradient(90deg, #e74c3c, #f39c12);
}

.evolution-period.medieval h3::after {
    background: linear-gradient(90deg, #9b59b6, #3498db);
}

.evolution-period.scientific h3::after {
    background: linear-gradient(90deg, #2ecc71, #27ae60);
}

.evolution-period.modern h3::after {
    background: linear-gradient(90deg, #3498db, #2980b9);
}

/* Responsive Design for History Evolution Section */
@media (max-width: 768px) {
    .history-evolution-section {
        padding: 2rem 1rem;
    }

    .history-evolution-section h2 {
        font-size: 2rem;
    }

    .evolution-intro {
        font-size: 1.1rem;
    }

    .evolution-period {
        padding: 1.5rem;
    }

    .evolution-period h3 {
        font-size: 1.5rem;
    }

    .evolution-period p,
    .period-list li,
    .importance-list li {
        font-size: 1rem;
    }

    .history-quote {
        font-size: 1.2rem;
        padding: 1.5rem;
    }
}

/* Historical Periods Section Styles */
.historical-periods {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    margin: 3rem 0;
}

.periods-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.period-card {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.period-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.period-card h2 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.8rem;
}

.period-card h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    border-radius: 2px;
}

.period-card p {
    color: #34495e;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.period-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
}

.period-list li {
    color: #34495e;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
}

.period-list li::before {
    content: "•";
    color: #3498db;
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

/* Period-specific styling */
.period-card.ancient h2::after {
    background: linear-gradient(90deg, #e74c3c, #f39c12);
}

.period-card.medieval h2::after {
    background: linear-gradient(90deg, #9b59b6, #3498db);
}

.period-card.modern h2::after {
    background: linear-gradient(90deg, #2ecc71, #27ae60);
}

.period-card.world h2::after {
    background: linear-gradient(90deg, #3498db, #2980b9);
}

/* Responsive Design for Historical Periods Section */
@media (max-width: 768px) {
    .historical-periods {
        padding: 2rem 1rem;
    }

    .period-card {
        padding: 1.5rem;
    }

    .period-card h2 {
        font-size: 1.5rem;
    }

    .period-card p,
    .period-list li {
        font-size: 1rem;
    }
}

/* Science Introduction Section Styles */
.science-intro-section {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    margin: 3rem 0;
}

.science-intro-section h2 {
    color: #2c3e50;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 700;
}

.science-intro-content {
    max-width: 1200px;
    margin: 0 auto;
}

.science-intro-content .intro-text {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #34495e;
    margin-bottom: 2rem;
    text-align: justify;
}

.science-branches,
.scientific-revolution,
.science-importance,
.quiz-exploration {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin: 2rem 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.science-branches:hover,
.scientific-revolution:hover,
.science-importance:hover,
.quiz-exploration:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.science-branches h3,
.scientific-revolution h3,
.science-importance h3,
.quiz-exploration h3 {
    color: #2c3e50;
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.8rem;
}

.science-branches h3::after,
.scientific-revolution h3::after,
.science-importance h3::after,
.quiz-exploration h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    border-radius: 2px;
}

.branches-list,
.breakthroughs-list,
.importance-list,
.exploration-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.branches-list li,
.breakthroughs-list li,
.importance-list li,
.exploration-list li {
    color: #34495e;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
}

.branches-list li::before,
.breakthroughs-list li::before,
.importance-list li::before,
.exploration-list li::before {
    content: "•";
    color: #3498db;
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

.science-quote {
    font-size: 1.4rem;
    color: #2c3e50;
    text-align: center;
    font-style: italic;
    margin: 3rem 0;
    padding: 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
}

.science-quote::before,
.science-quote::after {
    content: '"';
    font-size: 3rem;
    color: #3498db;
    position: absolute;
    opacity: 0.2;
}

.science-quote::before {
    top: 0;
    left: 1rem;
}

.science-quote::after {
    bottom: 0;
    right: 1rem;
}

/* Responsive Design for Science Introduction Section */
@media (max-width: 768px) {
    .science-intro-section {
        padding: 2rem 1rem;
    }

    .science-intro-section h2 {
        font-size: 2rem;
    }

    .science-intro-content .intro-text {
        font-size: 1.1rem;
    }

    .science-branches,
    .scientific-revolution,
    .science-importance,
    .quiz-exploration {
        padding: 1.5rem;
    }

    .science-branches h3,
    .scientific-revolution h3,
    .science-importance h3,
    .quiz-exploration h3 {
        font-size: 1.4rem;
    }

    .branches-list li,
    .breakthroughs-list li,
    .importance-list li,
    .exploration-list li {
        font-size: 1rem;
    }

    .science-quote {
    font-size: 1.2rem;
        padding: 1.5rem;
    }
}

/* Science Evolution Section Styles */
.science-evolution-section {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    margin: 3rem 0;
}

.science-evolution-section h2 {
    color: #2c3e50;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 700;
}

.evolution-content {
    max-width: 1200px;
    margin: 0 auto;
}

.evolution-intro {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #34495e;
    margin-bottom: 3rem;
    text-align: justify;
}

.evolution-period {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin: 2rem 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.evolution-period:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.evolution-period h3 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.8rem;
}

.evolution-period h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    border-radius: 2px;
}

.evolution-period h4 {
    color: #2c3e50;
    font-size: 1.4rem;
    margin: 1.5rem 0 1rem;
}

.period-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
}

.period-list li {
    color: #34495e;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
}

.period-list li::before {
    content: "•";
    color: #3498db;
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

.period-list ul {
    list-style: none;
    padding-left: 1.5rem;
    margin-top: 0.5rem;
}

.period-list ul li {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.evolution-importance {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem 0;
    border-left: 4px solid #3498db;
}

.evolution-importance h3 {
    color: #2c3e50;
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
}

.importance-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.importance-list li {
    color: #34495e;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.timeline-container {
    margin: 3rem 0;
    overflow-x: auto;
    padding: 1rem 0;
}

.timeline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-width: 800px;
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    transform: translateY(-50%);
}

.timeline-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
}

.timeline-item .year {
    font-size: 1rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.timeline-item .event {
    font-size: 1.2rem;
    color: #3498db;
    background: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.discussion-prompt {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin: 2rem 0;
    text-align: center;
}

.discussion-prompt h3 {
    color: #2c3e50;
    font-size: 1.6rem;
    margin-bottom: 1rem;
}

.discussion-prompt p {
    color: #34495e;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.prompt-options {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.prompt-options li {
    color: #34495e;
    font-size: 1.1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.prompt-options li:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Period-specific styling */
.evolution-period.ancient h3::after {
    background: linear-gradient(90deg, #e74c3c, #f39c12);
}

.evolution-period.revolution h3::after {
    background: linear-gradient(90deg, #9b59b6, #3498db);
}

.evolution-period.nineteenth h3::after {
    background: linear-gradient(90deg, #2ecc71, #27ae60);
}

.evolution-period.modern h3::after {
    background: linear-gradient(90deg, #3498db, #2980b9);
}

/* Responsive Design for Science Evolution Section */
@media (max-width: 768px) {
    .science-evolution-section {
        padding: 2rem 1rem;
    }

    .science-evolution-section h2 {
        font-size: 2rem;
    }

    .evolution-intro {
        font-size: 1.1rem;
    }

    .evolution-period {
        padding: 1.5rem;
    }

    .evolution-period h3 {
        font-size: 1.5rem;
    }

    .evolution-period h4 {
        font-size: 1.2rem;
    }

    .evolution-period p,
    .period-list li,
    .importance-list li {
        font-size: 1rem;
    }

    .timeline {
        min-width: 600px;
    }

    .timeline-item .year {
        font-size: 0.9rem;
    }

    .timeline-item .event {
        font-size: 1rem;
    }

    .discussion-prompt {
        padding: 1.5rem;
    }

    .discussion-prompt h3 {
        font-size: 1.4rem;
    }

    .discussion-prompt p {
        font-size: 1.1rem;
    }

    .prompt-options li {
        font-size: 1rem;
    }
}

/* Quiz Modal Section */
#quiz-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

#quiz-modal-content {
    background-color: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    width: 90%;
}

#quiz-modal-content h2 {
    color: #2c3e50;
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

#quiz-modal-content p {
    color: #34495e;
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

#quiz-modal-content .quiz-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
}

#quiz-modal-content .skip-btn,
#quiz-modal-content .stop-btn {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    min-width: 150px;
}

#quiz-modal-content .skip-btn {
    background-color: #f8f9fa;
    color: #3498db;
    border: 2px solid #3498db;
}

#quiz-modal-content .skip-btn:hover {
    background-color: #3498db;
    color: white;
}

#quiz-modal-content .stop-btn {
    background-color: #e74c3c;
    color: white;
}

#quiz-modal-content .stop-btn:hover {
    background-color: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(231, 76, 60, 0.2);
}

/* Science Branches Section Styles */
.science-branches-section {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    margin: 3rem 0;
}

.branch-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 2rem;
}

.branch-card {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.branch-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.branch-card h2 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.8rem;
}

.branch-card h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    border-radius: 2px;
}

.branch-intro {
    color: #34495e;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.key-areas,
.core-concepts,
.focus-areas,
.research-frontiers {
    margin-bottom: 2rem;
}

.branch-card h3 {
    color: #2c3e50;
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.area-list,
.concept-list,
.frontier-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.area-list li,
.concept-list li,
.frontier-list li {
    color: #34495e;
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
}

.area-list li::before,
.concept-list li::before,
.frontier-list li::before {
    content: "•";
    color: #3498db;
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

.did-you-know,
.real-world-impact,
.fascinating-fact,
.observation-tip {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
        padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #3498db;
}

.did-you-know h3,
.real-world-impact h3,
.fascinating-fact h3,
.observation-tip h3 {
    color: #2c3e50;
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
}

.did-you-know p,
.real-world-impact p,
.fascinating-fact p,
.observation-tip p {
    color: #34495e;
        font-size: 1.1rem;
    line-height: 1.6;
    margin: 0;
}

/* Branch-specific styling */
.branch-card.physics h2::after {
    background: linear-gradient(90deg, #e74c3c, #f39c12);
}

.branch-card.chemistry h2::after {
    background: linear-gradient(90deg, #9b59b6, #3498db);
}

.branch-card.biology h2::after {
    background: linear-gradient(90deg, #2ecc71, #27ae60);
}

.branch-card.astronomy h2::after {
    background: linear-gradient(90deg, #3498db, #2980b9);
}

.branch-card.physics .did-you-know {
    border-left-color: #e74c3c;
}

.branch-card.chemistry .real-world-impact {
    border-left-color: #9b59b6;
}

.branch-card.biology .fascinating-fact {
    border-left-color: #2ecc71;
}

.branch-card.astronomy .observation-tip {
    border-left-color: #3498db;
}

/* Responsive Design for Science Branches Section */
@media (max-width: 768px) {
    .science-branches-section {
        padding: 2rem 1rem;
    }

    .branch-content {
        grid-template-columns: 1fr;
    }

    .branch-card {
        padding: 1.5rem;
    }

    .branch-card h2 {
        font-size: 1.5rem;
    }

    .branch-intro {
        font-size: 1rem;
    }

    .branch-card h3 {
        font-size: 1.2rem;
    }

    .area-list li,
    .concept-list li,
    .frontier-list li {
        font-size: 1rem;
    }

    .did-you-know,
    .real-world-impact,
    .fascinating-fact,
    .observation-tip {
        padding: 1.2rem;
    }

    .did-you-know h3,
    .real-world-impact h3,
    .fascinating-fact h3,
    .observation-tip h3 {
        font-size: 1.1rem;
    }

    .did-you-know p,
    .real-world-impact p,
    .fascinating-fact p,
    .observation-tip p {
        font-size: 1rem;
    }
}

/* Detailed Technology Topics Section Styles */
.detailed-tech-topics {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.detailed-tech-topics h2 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 2rem;
    font-size: 2.5rem;
}

.tech-topic {
    background: #ffffff;
    border-radius: 10px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.tech-topic:hover {
    transform: translateY(-5px);
}

.tech-topic h3 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid #3498db;
    padding-bottom: 0.5rem;
}

.tech-topic > p {
    color: #34495e;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.topic-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.detail-group {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #3498db;
}

.detail-group h4 {
    color: #2c3e50;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.detail-group p {
    color: #34495e;
    line-height: 1.5;
}

.detail-group ul {
    list-style-type: none;
    padding: 0;
}

.detail-group ul li {
    color: #34495e;
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.detail-group ul li:before {
    content: "•";
    color: #3498db;
    position: absolute;
    left: 0;
}

.topic-conclusion {
    font-style: italic;
    color: #7f8c8d;
    border-top: 1px solid #ecf0f1;
    padding-top: 1rem;
    margin-top: 1rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .detailed-tech-topics {
        padding: 1rem;
    }

    .tech-topic {
        padding: 1.5rem;
    }

    .topic-details {
        grid-template-columns: 1fr;
    }

    .detail-group {
        padding: 1rem;
    }
}

/* Terms of Service Page Styles */
.terms-section {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.terms-container {
    background: #ffffff;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.terms-container h1 {
    color: #2c3e50;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
}

.last-updated {
    text-align: center;
    color: #7f8c8d;
    font-style: italic;
    margin-bottom: 2rem;
}

.terms-intro {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    border-left: 4px solid #3498db;
}

.terms-intro p {
    color: #34495e;
    line-height: 1.6;
    margin: 0;
}

.terms-content {
    color: #2c3e50;
}

.terms-content .terms-section {
    margin-bottom: 2rem;
    padding: 0;
}

.terms-content h2 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid #3498db;
    padding-bottom: 0.5rem;
}

.terms-content h3 {
    color: #2c3e50;
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.permitted-use {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 1.5rem 0;
}

.allowed, .prohibited {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
}

.allowed {
    border-left: 4px solid #2ecc71;
}

.prohibited {
    border-left: 4px solid #e74c3c;
}

.check-list, .cross-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.check-list li, .cross-list li {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.check-list i {
    color: #2ecc71;
}

.cross-list i {
    color: #e74c3c;
}

.content-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.content-list li {
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
}

.content-list li:before {
    content: "•";
    color: #3498db;
    position: absolute;
    left: 0;
}

.contact-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.contact-list li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-list a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-list a:hover {
    color: #2980b9;
}

.key-features {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 2rem;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.feature-list i {
    color: #2ecc71;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .terms-section {
        padding: 1rem;
    }

    .terms-container {
        padding: 1.5rem;
    }

    .terms-container h1 {
        font-size: 2rem;
    }

    .permitted-use {
        grid-template-columns: 1fr;
    }

    .feature-list {
        grid-template-columns: 1fr;
    }
}

/* How It Works Section Styles */
.how-it-works {
    padding: 5rem 2rem;
    background: #ffffff;
    margin: 3rem 0;
    position: relative;
}

.how-it-works h2 {
    color: #2c3e50;
    font-size: 2.8rem;
    text-align: center;
    margin-bottom: 1rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.how-it-works h3 {
    color: #3498db;
    font-size: 1.6rem;
    text-align: center;
    margin-bottom: 4rem;
    font-weight: 500;
}

.steps-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.step-card {
    background: #ffffff;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #eef2f7;
    width: 100%;
}

.step-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.step-card h4 {
    color: #2c3e50;
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 1rem;
    font-weight: 700;
    text-align: center;
}

.step-card h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: #3498db;
    border-radius: 3px;
}

.subjects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 1.5rem 0;
}

.subject-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid #eef2f7;
}

.subject-item:hover {
    background: #e3f2fd;
    transform: translateX(5px);
    border-color: #3498db;
}

.subject-item i {
    font-size: 1.4rem;
    color: #3498db;
    background: #e3f2fd;
    padding: 0.8rem;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.subject-item:hover i {
    background: #3498db;
    color: #ffffff;
}

.subject-item span {
    color: #2c3e50;
    font-size: 0.95rem;
    font-weight: 500;
}

.level-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 1.5rem 0;
}

.level-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid #eef2f7;
}

.level-item:hover {
    background: #e3f2fd;
    transform: translateX(5px);
    border-color: #3498db;
}

.level-color {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.level-color.basic {
    background: #2ecc71;
}

.level-color.intermediate {
    background: #f1c40f;
}

.level-color.advanced {
    background: #e74c3c;
}

.level-info h5 {
    color: #2c3e50;
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
    font-weight: 600;
}

.level-info p {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin: 0;
}

.learning-features {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.learning-features li {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid #eef2f7;
}

.learning-features li:hover {
    background: #e3f2fd;
    transform: translateX(5px);
    border-color: #3498db;
}

.learning-features i {
    font-size: 1.4rem;
    color: #3498db;
    background: #e3f2fd;
    padding: 0.8rem;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.learning-features li:hover i {
    background: #3498db;
    color: #ffffff;
}

.learning-features span {
    color: #2c3e50;
    font-size: 1rem;
    font-weight: 500;
}

.level-note {
    color: #7f8c8d;
    font-size: 0.9rem;
    text-align: center;
    margin-top: 1rem;
    font-style: italic;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .subjects-grid,
    .level-options,
    .learning-features {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .how-it-works {
        padding: 3rem 1rem;
    }

    .how-it-works h2 {
        font-size: 2.2rem;
    }

    .how-it-works h3 {
        font-size: 1.4rem;
        margin-bottom: 3rem;
    }

    .subjects-grid,
    .level-options,
    .learning-features {
        grid-template-columns: 1fr;
    }

    .step-card {
        padding: 1.5rem;
    }

    .step-card h4 {
        font-size: 1.4rem;
    }
}

/* Key Features Section Styles */
.key-features-section {
    padding: 5rem 2rem;
    background: #ffffff;
    position: relative;
}

.features-container {
    max-width: 1200px;
    margin: 0 auto;
}

.key-features-section h2 {
    color: #2c3e50;
    font-size: 2.8rem;
    text-align: center;
    margin-bottom: 3rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

.feature-card {
    background: #ffffff;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #eef2f7;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: #e3f2fd;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    background: #3498db;
    transform: scale(1.1);
}

.feature-icon i {
    font-size: 1.8rem;
    color: #3498db;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon i {
    color: #ffffff;
}

.feature-card h3 {
    color: #2c3e50;
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    color: #34495e;
    font-size: 1rem;
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
}

.feature-list li:before {
    content: "•";
    color: #3498db;
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

.benefits-section {
    text-align: center;
    margin: 4rem 0;
}

.benefits-section h3 {
    color: #2c3e50;
    font-size: 2rem;
    margin-bottom: 3rem;
    font-weight: 700;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.benefit-item {
    background: #f8fafc;
    padding: 2rem;
    border-radius: 16px;
    transition: all 0.3s ease;
    border: 1px solid #eef2f7;
}

.benefit-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border-color: #3498db;
}

.benefit-item i {
    font-size: 2rem;
    color: #3498db;
    margin-bottom: 1rem;
}

.benefit-item h4 {
    color: #2c3e50;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.benefit-item p {
    color: #7f8c8d;
    font-size: 1rem;
    margin: 0;
}

.cta-section {
    text-align: center;
    margin-top: 4rem;
    padding: 3rem;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.cta-section h3 {
    color: #2c3e50;
    font-size: 2rem;
    margin-bottom: 2rem;
    font-weight: 700;
}

.cta-section .cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: #3498db;
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid #3498db;
}

.cta-section .cta-button:hover {
    background: #ffffff;
    color: #3498db;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(52, 152, 219, 0.2);
}

/* Responsive Design for Key Features Section */
@media (max-width: 1024px) {
    .features-grid,
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .key-features-section {
        padding: 3rem 1rem;
    }

    .key-features-section h2 {
        font-size: 2.2rem;
    }

    .features-grid,
    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .feature-card,
    .benefit-item {
        padding: 1.5rem;
    }

    .benefits-section h3,
    .cta-section h3 {
        font-size: 1.8rem;
    }

    .cta-section {
        padding: 2rem 1rem;
    }
}

/* FAQs Section Styles */
.faqs-section {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.faqs-container {
    max-width: 1200px;
    margin: 0 auto;
}

.faqs-container h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 3rem;
}

.faq-category {
    margin-bottom: 3rem;
}

.faq-category h3 {
    font-size: 1.8rem;
    color: #34495e;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #3498db;
}

.faq-item {
    margin-bottom: 1rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.faq-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.faq-question {
    width: 100%;
    padding: 1.2rem;
    text-align: left;
    background: none;
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.faq-question:hover {
    color: #3498db;
}

.faq-question i {
    transition: transform 0.3s ease;
}

.faq-question[aria-expanded="true"] i {
    transform: rotate(180deg);
}

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

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

.faq-item.active .faq-answer {
    max-height: 500px;
}

@media (max-width: 768px) {
    .faqs-section {
        padding: 3rem 1rem;
    }

    .faqs-container h2 {
        font-size: 2rem;
    }

    .faq-category h3 {
        font-size: 1.5rem;
    }

    .faq-question {
        font-size: 1rem;
        padding: 1rem;
    }
}

/* Terms and Conditions Page Styles */
.terms-header {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
}

.terms-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255,255,255,0.1) 25%, transparent 25%),
                linear-gradient(-45deg, rgba(255,255,255,0.1) 25%, transparent 25%);
    background-size: 60px 60px;
    opacity: 0.1;
}

.terms-header h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.terms-header p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.terms-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.table-of-contents {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin-bottom: 3rem;
    border: 1px solid rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.table-of-contents:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

:root {
    --primary-color: #2171B5;
    --secondary-color: #6BAED6;
    --accent-color: #BDD7E7;
    --background-color: #EFF3FF;
    --text-color: #2171B5;
    --button-hover: #6BAED6;
    --button-bg: #BDD7E7;
    --button-text: #2171B5;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

.navbar {
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--primary-color);
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.logo h1 {
    color: var(--background-color);
    font-size: 1.5rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--background-color);
    text-decoration: none;
    font-weight: 500;
    transition: color .3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent-color);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
    position: relative;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #fff;
    margin: 5px 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

.hero {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, var(--background-color), var(--accent-color), var(--secondary-color));
    color: var(--primary-color);
    text-align: center;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: var(--accent-color);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 5px;
    transition: background-color .3s, color .3s, box-shadow .3s;
    box-shadow: 0 4px 16px 0 rgba(33, 113, 181, 0.25), 0 1.5px 4px 0 rgba(33, 113, 181, 0.15);
}

.cta-button:hover {
    background-color: var(--secondary-color);
    color: #fff;
    box-shadow: 0 6px 24px 0 rgba(33, 113, 181, 0.30), 0 2px 8px 0 rgba(33, 113, 181, 0.18);
}

.featured-subjects {
    padding: 4rem 2rem;
    border: 2px solid var(--primary-color);
    border-radius: 15px;
    box-shadow: 0 8px 24px rgba(33, 113, 181, 0.15);
    background: linear-gradient(to bottom right, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7));
    backdrop-filter: blur(10px);
    margin: 2rem auto;
    max-width: 1200px;
    position: relative;
}

.featured-subjects::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border-radius: 17px;
    z-index: -1;
    opacity: 0.7;
}

.featured-subjects h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

.footer-section h3,
.subject-card i {
    margin-bottom: 1rem;
}

.footer-content,
.subject-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.subject-card {
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, .1);
    transition: transform .3s;
    text-align: center;
}

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

.subject-card i {
    font-size: 2.5rem;
    color: var(--secondary-color);
}

.subject-card h3 a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 1.4rem;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    padding-bottom: 0.3rem;
}

.subject-card h3 a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 0.3s ease;
}

.subject-card h3 a:hover {
    color: var(--secondary-color);
    transform: translateY(-2px);
}

.subject-card h3 a:hover::after {
    width: 100%;
}

footer {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #fff;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
    background-color: var(--primary-color);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
    gap: 2rem;
    padding: 0 1rem;
}

.footer-section {
    padding: 1rem;
    display: flex;
    flex-direction: column;
}

.footer-section h3 {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
    text-align: left;
    white-space: nowrap;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background: #4ecca3;
}

.about-section .main-description {
    line-height: 1.6;
    margin-bottom: 1rem;
    color: #e0e0e0;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: #e0e0e0;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.footer-links a:hover {
    color: #4ecca3;
}

.newsletter-form {
    margin-bottom: 1.5rem;
}

.newsletter-form input {
    width: 100%;
    padding: 0.8rem;
    border: none;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    margin-bottom: 0.5rem;
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.newsletter-form button {
    width: 100%;
    padding: 0.8rem;
    background: #4ecca3;
    color: #1a1a2e;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-weight: 600;
}

.newsletter-form button:hover {
    background: #45b392;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.social-icon {
    color: #e0e0e0;
    font-size: 1.5rem;
    transition: transform 0.3s ease, color 0.3s ease;
}

.social-icon:hover {
    color: #4ecca3;
    transform: translateY(-3px);
}

.contact-info {
    margin-top: 1rem;
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #e0e0e0;
}

.contact-info a {
    color: #e0e0e0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: #4ecca3;
}

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

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

.footer-section ul li {
    margin-bottom: .5rem;
}

.footer-section a {
    color: var(--background-color);
    text-decoration: none;
    transition: color .3s;
}

.social-links a {
    font-size: 1.5rem;
}

@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
    .about-section {
        grid-column: 1/-1;
    }
}

@media (max-width: 912px) {
    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        right: -300px;
        width: 280px;
        height: 100vh;
        background-color: var(--primary-color);
        padding: 5rem 1.5rem 2rem;
        flex-direction: column;
        gap: 1.5rem;
        z-index: 1000;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease-in-out;
        border-radius: 0 0 0 10px;
    }
    .nav-links.active {
        display: flex;
        right: 0;
    }
    .mobile-menu-btn {
        display: block;
        position: relative;
        z-index: 1001;
    }
    .mobile-menu-btn span {
        display: block;
        width: 25px;
        height: 3px;
        background-color: #fff;
        margin: 5px 0;
        transition: transform 0.3s ease;
        
    }
    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }
    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
    .nav-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 999;
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    .nav-overlay.active {
        display: block;
        opacity: 1;
    }
    .hero h2 {
        font-size: 2rem;
    }
    .hero p {
        font-size: 1rem;
    }
}

@media (width: 912px) and (height: 1368px) {
    body.tablet-portrait .nav-links {
        padding-top: 8rem;
    }
    body.tablet-portrait .hero {
        padding: 6rem 2rem;
    }
    body.tablet-portrait .hero h2 {
        font-size: 2.2rem;
    }
    body.tablet-portrait .hero p {
        font-size: 1.1rem;
    }
    body.tablet-portrait .featured-subjects {
        padding: 6rem 2rem;
    }
    body.tablet-portrait .subject-card {
        padding: 2.5rem;
    }
    body.tablet-portrait .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        padding-top: 5rem;
    }
    .hero h2 {
        font-size: 1.8rem;
    }
    .hero p {
        font-size: 0.9rem;
    }
}

.focus {
    outline: 3px solid var(--accent-color);
    outline-offset: 2px;
}

@media print {
    .cta-button,
    .navbar,
    footer {
        display: none;
    }
    body {
        background-color: #fff;
        color: #000;
    }
}

.text-center {
    text-align: center;
    margin-top: 3rem;
}

.text-center h1 {
    margin-bottom: 1rem;
}

/* About Wordestool Section */
.about-wordestool {
    padding: 5rem 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.about-wordestool::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
}

.about-wordestool h2 {
    color: #2c3e50;
    font-size: 2.8rem;
    text-align: center;
    margin-bottom: 1rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.about-wordestool h3 {
    color: #3498db;
    font-size: 1.6rem;
    text-align: center;
    margin-bottom: 3rem;
    font-weight: 500;
}

.about-content {
    max-width: 1000px;
    margin: 0 auto;
    background: #ffffff;
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #eef2f7;
}

.about-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.about-content p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #34495e;
    margin-bottom: 2rem;
    text-align: center;
}

.benefits-list {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.benefits-list li {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 12px;
    color: #2c3e50;
    font-size: 1.1rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #eef2f7;
    position: relative;
    overflow: hidden;
}

.benefits-list li::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: #3498db;
    transition: all 0.3s ease;
}

.benefits-list li:hover {
    transform: translateX(5px);
    background: #e3f2fd;
    border-color: #3498db;
}

.benefits-list li:hover::before {
    width: 100%;
    opacity: 0.1;
}

.target-users {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    padding: 2rem;
    border-radius: 12px;
    margin-top: 3rem;
    border: 1px solid #eef2f7;
    transition: all 0.3s ease;
}

.target-users:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.target-users h4 {
    color: #2c3e50;
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 600;
}

.target-users ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.target-users ul li {
    background: #ffffff;
    padding: 1.2rem;
    border-radius: 8px;
    color: #34495e;
    font-size: 1.1rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #eef2f7;
    position: relative;
}

.target-users ul li::before {
    content: "•";
    color: #3498db;
    position: absolute;
    left: 1rem;
    font-size: 1.2rem;
}

.target-users ul li:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border-color: #3498db;
}

/* Responsive Design for About Section */
@media (max-width: 1024px) {
    .benefits-list,
    .target-users ul {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .about-wordestool {
        padding: 3rem 1rem;
    }

    .about-wordestool h2 {
        font-size: 2.2rem;
    }

    .about-wordestool h3 {
        font-size: 1.4rem;
    }

    .about-content {
        padding: 1.5rem;
    }

    .about-content p {
        font-size: 1.1rem;
    }

    .benefits-list,
    .target-users ul {
        grid-template-columns: 1fr;
    }

    .benefits-list li,
    .target-users ul li {
        font-size: 1rem;
    }
}

/* Contact Section Styles */
.contact-section {
    padding: 4rem 2rem;
    background-color: #fff;
}

.contact-section h2 {
    text-align: center;
    color: #2c3e50;
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.contact-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info {
    padding: 2rem;
}

.contact-info h3 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.contact-info p {
    color: #34495e;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-item i {
    font-size: 1.5rem;
    color: #3498db;
    margin-top: 0.5rem;
}

.contact-item h4 {
    color: #2c3e50;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.contact-item p {
    color: #34495e;
    margin: 0;
}

.contact-item a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s;
}

.contact-item a:hover {
    color: #2980b9;
}

.contact-form {
    background-color: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.contact-form h3 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #3498db;
    outline: none;
}

.submit-btn {
    background-color: #3498db;
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.submit-btn:hover {
    background-color: #2980b9;
}

/* Responsive Design for Contact Section */
@media (max-width: 768px) {
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .contact-section {
        padding: 3rem 1rem;
    }
    .contact-section h2 {
        font-size: 2rem;
    }
    .contact-info h3,
    .contact-form h3 {
        font-size: 1.5rem;
    }
    .contact-info p {
        font-size: 1rem;
    }
}

/* Quiz Instructions Section Styles */
.quiz-instructions {
    padding: 2rem;
    background-color: #f8f9fa;
    border-radius: 10px;
    margin: 2rem 0;
}

.quiz-instructions h2 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 2rem;
    font-size: 2rem;
}

.instructions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.instruction-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.instruction-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.instruction-card i {
    font-size: 2rem;
    color: #3498db;
    margin-bottom: 1rem;
}

.instruction-card h3 {
    color: #2c3e50;
    margin-bottom: 0.8rem;
    font-size: 1.2rem;
}

.instruction-card p {
    color: #666;
    line-height: 1.5;
}

.instruction-card ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.instruction-card ul li {
    color: #666;
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.instruction-card ul li:before {
    content: "•";
    color: #3498db;
    position: absolute;
    left: 0;
}

.tip-card {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border: 2px solid #3498db;
}

.tip-card i {
    color: #f1c40f;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .instructions-grid {
        grid-template-columns: 1fr;
    }
    
    .quiz-instructions {
        padding: 1rem;
    }
    
    .instruction-card {
        padding: 1rem;
    }
}

/* Math Learning Content Section Styles */
.learning-content {
    padding: 3rem 2rem;
    background-color: #f8f9fa;
    margin: 2rem 0;
}

.learning-content h2 {
    text-align: center;
    color: #2c3e50;
    font-size: 2.2rem;
    margin-bottom: 2rem;
}

.content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}

.intro-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #34495e;
    margin-bottom: 1.5rem;
    text-align: justify;
}

/* Special styling for the final call-to-action paragraph */
.intro-text:last-of-type {
    text-align: center;
    font-size: 1.3rem;
    font-weight: 500;
    color: #2c3e50;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin: 2.5rem 0;
    border: 2px solid #3498db;
    position: relative;
    overflow: hidden;
}

.intro-text:last-of-type::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
}

.intro-text:last-of-type:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

/* Responsive adjustments for the styled paragraph */
@media (max-width: 768px) {
    .intro-text:last-of-type {
        font-size: 1.1rem;
        padding: 1.5rem;
        margin: 2rem 0;
    }
}

.features-section {
    margin-bottom: 3rem;
}

.features-section h3 {
    text-align: center;
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 2rem;
}

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

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.feature-card i {
    font-size: 2.5rem;
    color: #3498db;
    margin-bottom: 1rem;
}

.feature-card h4 {
    color: #2c3e50;
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.feature-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-card ul li {
    color: #666;
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
}

.feature-card ul li:before {
    content: "•";
    color: #3498db;
    position: absolute;
    left: 0;
}

.benefits-section {
    text-align: center;
    margin-top: 3rem;
}

.benefits-section p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #34495e;
    margin-bottom: 2rem;
}

.cta-box {
    background: linear-gradient(135deg, #3498db, #2980b9);
    padding: 2rem;
    border-radius: 10px;
    color: white;
}

.cta-text {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: white;
    color: #3498db;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .learning-content {
        padding: 2rem 1rem;
    }

    .learning-content h2 {
        font-size: 1.8rem;
    }

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

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .cta-box {
        padding: 1.5rem;
    }
}

/* Mathematics History Section Styles */
.math-history {
    padding: 4rem 2rem;
    background-color: #fff;
    margin: 2rem 0;
}

.math-history h2 {
    text-align: center;
    color: #2c3e50;
    font-size: 2.2rem;
    margin-bottom: 2rem;
}

.history-content {
    max-width: 1200px;
    margin: 0 auto;
}

.history-intro {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #34495e;
    margin-bottom: 3rem;
    text-align: center;
}

.history-timeline {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.timeline-item {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

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

.timeline-item::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background-color: #3498db;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.2);
}

.timeline-item h3 {
    color: #2c3e50;
    font-size: 1.4rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #3498db;
}

.timeline-item p {
    color: #666;
    line-height: 1.8;
    font-size: 1.1rem;
}

/* Responsive adjustments for history section */
@media (max-width: 768px) {
    .math-history {
        padding: 2rem 1rem;
    }

    .math-history h2 {
        font-size: 1.8rem;
    }

    .history-intro {
        font-size: 1.1rem;
    }

    .timeline-item {
        padding: 1.5rem;
    }

    .timeline-item h3 {
        font-size: 1.2rem;
    }

    .timeline-item p {
        font-size: 1rem;
    }

    .timeline-item::before {
        left: -15px;
        width: 15px;
        height: 15px;
    }
}

/* Quiz Container and Controls Styling */
#quiz-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

#quiz-section.quiz-active {
    background-color: #f8f9fa;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin: 2rem auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#quiz-container {
    display: none;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 2rem;
}

#quiz-container.active {
    display: block !important;
}

.quiz-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 2px solid #f0f0f0;
    width: 100%;
}

.skip-btn, .stop-btn {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    min-width: 150px;
    display: inline-block;
}

.skip-btn {
    background-color: #f8f9fa;
    color: #3498db;
    border: 2px solid #3498db;
}

.skip-btn:hover {
    background-color: #3498db;
    color: white;
}

.stop-btn {
    background-color: #e74c3c;
    color: white;
}

.stop-btn:hover {
    background-color: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(231, 76, 60, 0.2);
}

/* Quiz Active State Styles */
.quiz-section.quiz-active {
    animation: quizHighlight 2s ease-out;
    position: relative;
}

@keyframes quizHighlight {
    0% {
        box-shadow: 0 0 0 0 rgba(52, 152, 219, 0.4);
    }
    50% {
        box-shadow: 0 0 20px 10px rgba(52, 152, 219, 0.2);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(52, 152, 219, 0);
    }
}

.quiz-section.quiz-active #quiz-container {
    animation: quizContainerHighlight 2s ease-out;
}

@keyframes quizContainerHighlight {
    0% {
        transform: scale(1);
    }
    5% {
        transform: scale(1.02);
    }
    100% {
        transform: scale(1);
    }
}

/* Ensure smooth scrolling behavior for the entire page */
html {
    scroll-behavior: smooth;
}

/* Mobile-specific adjustments */
@media (max-width: 768px) {
    .quiz-section.quiz-active {
        margin: 1rem 0;
    }
    
    .quiz-section.quiz-active #quiz-container {
        margin: 0.5rem;
    }
}

/* Math Topics Detail Section Styling */
.math-topics-detail {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.topic-detail {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 2.5rem;
    padding: 2.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.topic-detail:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.topic-detail h2 {
    color: #2c3e50;
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.8rem;
}

.topic-detail h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: #3498db;
}

.topic-detail p {
    color: #34495e;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

/* Topic-specific styling */
.topic-detail.algebra h2::after {
    background: #e74c3c;
}

.topic-detail.calculus h2::after {
    background: #2ecc71;
}

.topic-detail.geometry h2::after {
    background: #f1c40f;
}

.topic-detail.statistics h2::after {
    background: #9b59b6;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .math-topics-detail {
        padding: 0 1rem;
        margin: 2rem auto;
    }

    .topic-detail {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .topic-detail h2 {
        font-size: 1.8rem;
    }

    .topic-detail p {
        font-size: 1rem;
    }
}

@media screen and (max-width: 480px) {
    .topic-detail {
        padding: 1.2rem;
    }

    .topic-detail h2 {
        font-size: 1.5rem;
    }
}

/* Geography Introduction Section Styles */
.geography-intro {
    padding: 3rem 2rem;
    background-color: #f8f9fa;
    margin: 2rem 0;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.geography-intro h2 {
    color: #2c3e50;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 700;
}

.intro-content {
    max-width: 1200px;
    margin: 0 auto;
}

.intro-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #34495e;
    margin-bottom: 1.5rem;
    text-align: justify;
}

.geography-topics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.topic-item {
    background-color: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.topic-item:hover {
    transform: translateY(-5px);
}

.topic-item h3 {
    color: #2c3e50;
    font-size: 1.4rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.topic-item p {
    color: #666;
    line-height: 1.6;
}

.benefits-section {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    margin: 2rem 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.benefits-section h3 {
    color: #2c3e50;
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

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

.benefits-list li {
    font-size: 1.1rem;
    color: #34495e;
    margin-bottom: 1rem;
    padding-left: 1rem;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .geography-intro {
        padding: 2rem 1rem;
    }

    .geography-intro h2 {
        font-size: 2rem;
    }

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

    .geography-topics {
        grid-template-columns: 1fr;
    }

    .topic-item {
        padding: 1.2rem;
    }
}

/* Geography History Section Styles */
.geography-history {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    margin: 3rem 0;
}

.geography-history h2 {
    color: #2c3e50;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 700;
}

.history-content {
    max-width: 1200px;
    margin: 0 auto;
}

.history-intro {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #34495e;
    text-align: center;
    margin-bottom: 3rem;
    padding: 0 2rem;
}

.geography-history h3 {
    color: #2c3e50;
    font-size: 1.8rem;
    text-align: center;
    margin: 3rem 0 2rem;
    position: relative;
}

.geography-history h3::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    margin: 1rem auto;
    border-radius: 2px;
}

.timeline-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.timeline-item {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.timeline-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.timeline-item h4 {
    color: #2c3e50;
    font-size: 1.4rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #3498db;
}

.timeline-item p {
    color: #34495e;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.timeline-details {
    list-style: none;
    padding: 0;
    margin: 0;
}

.timeline-details li {
    color: #666;
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
}

.timeline-details li::before {
    content: "•";
    color: #3498db;
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

.impact-section {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin: 3rem 0;
    text-align: center;
}

.impact-section h3 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.impact-list {
    list-style: none;
    padding: 0;
    display: inline-block;
    text-align: left;
}

.impact-list li {
    font-size: 1.1rem;
    color: #34495e;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.geography-quote {
    font-size: 1.4rem;
    color: #2c3e50;
    text-align: center;
    font-style: italic;
    margin: 3rem 0;
    padding: 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
}

.geography-quote::before,
.geography-quote::after {
    content: '"';
    font-size: 3rem;
    color: #3498db;
    position: absolute;
    opacity: 0.2;
}

.geography-quote::before {
    top: 0;
    left: 1rem;
}

.geography-quote::after {
    bottom: 0;
    right: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .geography-history {
        padding: 2rem 1rem;
    }

    .geography-history h2 {
        font-size: 2rem;
    }

    .history-intro {
        font-size: 1.1rem;
        padding: 0 1rem;
    }

    .timeline-container {
        grid-template-columns: 1fr;
    }

    .timeline-item {
    padding: 1.5rem;
    }

    .geography-quote {
        font-size: 1.2rem;
        padding: 1.5rem;
    }
}

/* Geography Topics Detail Section Styles */
.geography-topics-detail {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    margin: 3rem 0;
}

.topic-detail {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 3rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.topic-detail:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
}

.topic-detail h2 {
    color: #2c3e50;
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.8rem;
}

.topic-detail h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    border-radius: 2px;
}

.topic-detail p {
    color: #34495e;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.quiz-topics {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    margin: 2rem 0;
}

.quiz-topics h3 {
    color: #2c3e50;
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.topic-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.topic-list li {
    color: #34495e;
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
}

.topic-importance,
.topic-fact,
.topic-tip,
.topic-impact {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 1.5rem;
    border-radius: 10px;
    margin-top: 2rem;
    border-left: 4px solid #3498db;
}

.topic-importance h4,
.topic-fact h4,
.topic-tip h4,
.topic-impact h4 {
    color: #2c3e50;
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
}

.topic-importance p,
.topic-fact p,
.topic-tip p,
.topic-impact p {
    color: #34495e;
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0;
}

/* Topic-specific styling */
.topic-detail.world-geography h2::after {
    background: linear-gradient(90deg, #3498db, #2ecc71);
}

.topic-detail.countries h2::after {
    background: linear-gradient(90deg, #e74c3c, #f39c12);
}

.topic-detail.capitals h2::after {
    background: linear-gradient(90deg, #9b59b6, #3498db);
}

.topic-detail.physical h2::after {
    background: linear-gradient(90deg, #2ecc71, #27ae60);
}

/* Responsive Design */
@media (max-width: 768px) {
    .geography-topics-detail {
        padding: 2rem 1rem;
    }

    .topic-detail {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }

    .topic-detail h2 {
        font-size: 1.8rem;
    }

    .topic-detail p,
    .topic-list li {
        font-size: 1rem;
    }

    .quiz-topics h3 {
        font-size: 1.2rem;
    }

    .topic-importance h4,
    .topic-fact h4,
    .topic-tip h4,
    .topic-impact h4 {
        font-size: 1.1rem;
    }
}

/* History Introduction Section Styles */
.history-intro-section {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    margin: 3rem 0;
}

.history-intro-section h2 {
    color: #2c3e50;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 700;
}

.history-intro-content {
    max-width: 1200px;
    margin: 0 auto;
}

.history-intro-content .intro-text {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #34495e;
    margin-bottom: 2rem;
    text-align: justify;
}

.history-topics,
.history-importance,
.quiz-exploration {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin: 2rem 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.history-topics:hover,
.history-importance:hover,
.quiz-exploration:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.history-topics h3,
.history-importance h3,
.quiz-exploration h3 {
    color: #2c3e50;
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.8rem;
}

.history-topics h3::after,
.history-importance h3::after,
.quiz-exploration h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    border-radius: 2px;
}

.topic-list,
.importance-list,
.exploration-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.topic-list li,
.importance-list li,
.exploration-list li {
    color: #34495e;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
}

.topic-list li::before,
.importance-list li::before,
.exploration-list li::before {
    content: "•";
    color: #3498db;
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

.conclusion-text {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #34495e;
    text-align: center;
    margin-top: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.conclusion-text::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
}

/* Responsive Design for History Introduction Section */
@media (max-width: 768px) {
    .history-intro-section {
        padding: 2rem 1rem;
    }

    .history-intro-section h2 {
        font-size: 2rem;
    }

    .history-intro-content .intro-text {
        font-size: 1.1rem;
    }

    .history-topics,
    .history-importance,
    .quiz-exploration {
        padding: 1.5rem;
    }

    .history-topics h3,
    .history-importance h3,
    .quiz-exploration h3 {
        font-size: 1.4rem;
    }

    .topic-list li,
    .importance-list li,
    .exploration-list li {
        font-size: 1rem;
    }

    .conclusion-text {
        font-size: 1.1rem;
        padding: 1.5rem;
    }
}

/* History Evolution Section Styles */
.history-evolution-section {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    margin: 3rem 0;
}

.history-evolution-section h2 {
    color: #2c3e50;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 700;
}

.evolution-content {
    max-width: 1200px;
    margin: 0 auto;
}

.evolution-intro {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #34495e;
    margin-bottom: 3rem;
    text-align: justify;
}

.evolution-period {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin: 2rem 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.evolution-period:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.evolution-period h3 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.8rem;
}

.evolution-period h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    border-radius: 2px;
}

.evolution-period p {
    color: #34495e;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.period-list,
.achievement-list,
.importance-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
}

.period-list li,
.achievement-list li,
.importance-list li {
    color: #34495e;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
}

.period-list li::before,
.achievement-list li::before,
.importance-list li::before {
    content: "•";
    color: #3498db;
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

.evolution-importance {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem 0;
    border-left: 4px solid #3498db;
}

.evolution-importance h3 {
    color: #2c3e50;
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
}

.history-quote {
    font-size: 1.4rem;
    color: #2c3e50;
    text-align: center;
    font-style: italic;
    margin: 3rem 0;
    padding: 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
}

.history-quote::before,
.history-quote::after {
    content: '"';
    font-size: 3rem;
    color: #3498db;
    position: absolute;
    opacity: 0.2;
}

.history-quote::before {
    top: 0;
    left: 1rem;
}

.history-quote::after {
    bottom: 0;
    right: 1rem;
}

/* Period-specific styling */
.evolution-period.ancient h3::after {
    background: linear-gradient(90deg, #e74c3c, #f39c12);
}

.evolution-period.medieval h3::after {
    background: linear-gradient(90deg, #9b59b6, #3498db);
}

.evolution-period.scientific h3::after {
    background: linear-gradient(90deg, #2ecc71, #27ae60);
}

.evolution-period.modern h3::after {
    background: linear-gradient(90deg, #3498db, #2980b9);
}

/* Responsive Design for History Evolution Section */
@media (max-width: 768px) {
    .history-evolution-section {
        padding: 2rem 1rem;
    }

    .history-evolution-section h2 {
        font-size: 2rem;
    }

    .evolution-intro {
        font-size: 1.1rem;
    }

    .evolution-period {
        padding: 1.5rem;
    }

    .evolution-period h3 {
        font-size: 1.5rem;
    }

    .evolution-period p,
    .period-list li,
    .importance-list li {
        font-size: 1rem;
    }

    .history-quote {
        font-size: 1.2rem;
        padding: 1.5rem;
    }
}

/* Historical Periods Section Styles */
.historical-periods {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    margin: 3rem 0;
}

.periods-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.period-card {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.period-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.period-card h2 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.8rem;
}

.period-card h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    border-radius: 2px;
}

.period-card p {
    color: #34495e;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.period-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
}

.period-list li {
    color: #34495e;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
}

.period-list li::before {
    content: "•";
    color: #3498db;
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

/* Period-specific styling */
.period-card.ancient h2::after {
    background: linear-gradient(90deg, #e74c3c, #f39c12);
}

.period-card.medieval h2::after {
    background: linear-gradient(90deg, #9b59b6, #3498db);
}

.period-card.modern h2::after {
    background: linear-gradient(90deg, #2ecc71, #27ae60);
}

.period-card.world h2::after {
    background: linear-gradient(90deg, #3498db, #2980b9);
}

/* Responsive Design for Historical Periods Section */
@media (max-width: 768px) {
    .historical-periods {
        padding: 2rem 1rem;
    }

    .period-card {
        padding: 1.5rem;
    }

    .period-card h2 {
        font-size: 1.5rem;
    }

    .period-card p,
    .period-list li {
        font-size: 1rem;
    }
}

/* Science Introduction Section Styles */
.science-intro-section {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    margin: 3rem 0;
}

.science-intro-section h2 {
    color: #2c3e50;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 700;
}

.science-intro-content {
    max-width: 1200px;
    margin: 0 auto;
}

.science-intro-content .intro-text {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #34495e;
    margin-bottom: 2rem;
    text-align: justify;
}

.science-branches,
.scientific-revolution,
.science-importance,
.quiz-exploration {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin: 2rem 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.science-branches:hover,
.scientific-revolution:hover,
.science-importance:hover,
.quiz-exploration:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.science-branches h3,
.scientific-revolution h3,
.science-importance h3,
.quiz-exploration h3 {
    color: #2c3e50;
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.8rem;
}

.science-branches h3::after,
.scientific-revolution h3::after,
.science-importance h3::after,
.quiz-exploration h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    border-radius: 2px;
}

.branches-list,
.breakthroughs-list,
.importance-list,
.exploration-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.branches-list li,
.breakthroughs-list li,
.importance-list li,
.exploration-list li {
    color: #34495e;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
}

.branches-list li::before,
.breakthroughs-list li::before,
.importance-list li::before,
.exploration-list li::before {
    content: "•";
    color: #3498db;
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

.science-quote {
    font-size: 1.4rem;
    color: #2c3e50;
    text-align: center;
    font-style: italic;
    margin: 3rem 0;
    padding: 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
}

.science-quote::before,
.science-quote::after {
    content: '"';
    font-size: 3rem;
    color: #3498db;
    position: absolute;
    opacity: 0.2;
}

.science-quote::before {
    top: 0;
    left: 1rem;
}

.science-quote::after {
    bottom: 0;
    right: 1rem;
}

/* Responsive Design for Science Introduction Section */
@media (max-width: 768px) {
    .science-intro-section {
        padding: 2rem 1rem;
    }

    .science-intro-section h2 {
        font-size: 2rem;
    }

    .science-intro-content .intro-text {
        font-size: 1.1rem;
    }

    .science-branches,
    .scientific-revolution,
    .science-importance,
    .quiz-exploration {
        padding: 1.5rem;
    }

    .science-branches h3,
    .scientific-revolution h3,
    .science-importance h3,
    .quiz-exploration h3 {
        font-size: 1.4rem;
    }

    .branches-list li,
    .breakthroughs-list li,
    .importance-list li,
    .exploration-list li {
        font-size: 1rem;
    }

    .science-quote {
    font-size: 1.2rem;
        padding: 1.5rem;
    }
}

/* Science Evolution Section Styles */
.science-evolution-section {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    margin: 3rem 0;
}

.science-evolution-section h2 {
    color: #2c3e50;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 700;
}

.evolution-content {
    max-width: 1200px;
    margin: 0 auto;
}

.evolution-intro {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #34495e;
    margin-bottom: 3rem;
    text-align: justify;
}

.evolution-period {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin: 2rem 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.evolution-period:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.evolution-period h3 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.8rem;
}

.evolution-period h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    border-radius: 2px;
}

.evolution-period h4 {
    color: #2c3e50;
    font-size: 1.4rem;
    margin: 1.5rem 0 1rem;
}

.period-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
}

.period-list li {
    color: #34495e;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
}

.period-list li::before {
    content: "•";
    color: #3498db;
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

.period-list ul {
    list-style: none;
    padding-left: 1.5rem;
    margin-top: 0.5rem;
}

.period-list ul li {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.evolution-importance {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem 0;
    border-left: 4px solid #3498db;
}

.evolution-importance h3 {
    color: #2c3e50;
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
}

.importance-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.importance-list li {
    color: #34495e;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.timeline-container {
    margin: 3rem 0;
    overflow-x: auto;
    padding: 1rem 0;
}

.timeline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-width: 800px;
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    transform: translateY(-50%);
}

.timeline-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
}

.timeline-item .year {
    font-size: 1rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.timeline-item .event {
    font-size: 1.2rem;
    color: #3498db;
    background: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.discussion-prompt {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin: 2rem 0;
    text-align: center;
}

.discussion-prompt h3 {
    color: #2c3e50;
    font-size: 1.6rem;
    margin-bottom: 1rem;
}

.discussion-prompt p {
    color: #34495e;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.prompt-options {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.prompt-options li {
    color: #34495e;
    font-size: 1.1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.prompt-options li:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Period-specific styling */
.evolution-period.ancient h3::after {
    background: linear-gradient(90deg, #e74c3c, #f39c12);
}

.evolution-period.revolution h3::after {
    background: linear-gradient(90deg, #9b59b6, #3498db);
}

.evolution-period.nineteenth h3::after {
    background: linear-gradient(90deg, #2ecc71, #27ae60);
}

.evolution-period.modern h3::after {
    background: linear-gradient(90deg, #3498db, #2980b9);
}

/* Responsive Design for Science Evolution Section */
@media (max-width: 768px) {
    .science-evolution-section {
        padding: 2rem 1rem;
    }

    .science-evolution-section h2 {
        font-size: 2rem;
    }

    .evolution-intro {
        font-size: 1.1rem;
    }

    .evolution-period {
        padding: 1.5rem;
    }

    .evolution-period h3 {
        font-size: 1.5rem;
    }

    .evolution-period h4 {
        font-size: 1.2rem;
    }

    .evolution-period p,
    .period-list li,
    .importance-list li {
        font-size: 1rem;
    }

    .timeline {
        min-width: 600px;
    }

    .timeline-item .year {
        font-size: 0.9rem;
    }

    .timeline-item .event {
        font-size: 1rem;
    }

    .discussion-prompt {
        padding: 1.5rem;
    }

    .discussion-prompt h3 {
        font-size: 1.4rem;
    }

    .discussion-prompt p {
        font-size: 1.1rem;
    }

    .prompt-options li {
        font-size: 1rem;
    }
}

/* Quiz Modal Section */
#quiz-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

#quiz-modal-content {
    background-color: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    width: 90%;
}

#quiz-modal-content h2 {
    color: #2c3e50;
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

#quiz-modal-content p {
    color: #34495e;
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

#quiz-modal-content .quiz-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
}

#quiz-modal-content .skip-btn,
#quiz-modal-content .stop-btn {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    min-width: 150px;
}

#quiz-modal-content .skip-btn {
    background-color: #f8f9fa;
    color: #3498db;
    border: 2px solid #3498db;
}

#quiz-modal-content .skip-btn:hover {
    background-color: #3498db;
    color: white;
}

#quiz-modal-content .stop-btn {
    background-color: #e74c3c;
    color: white;
}

#quiz-modal-content .stop-btn:hover {
    background-color: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(231, 76, 60, 0.2);
}

/* Science Branches Section Styles */
.science-branches-section {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    margin: 3rem 0;
}

.branch-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 2rem;
}

.branch-card {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.branch-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.branch-card h2 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.8rem;
}

.branch-card h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    border-radius: 2px;
}

.branch-intro {
    color: #34495e;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.key-areas,
.core-concepts,
.focus-areas,
.research-frontiers {
    margin-bottom: 2rem;
}

.branch-card h3 {
    color: #2c3e50;
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.area-list,
.concept-list,
.frontier-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.area-list li,
.concept-list li,
.frontier-list li {
    color: #34495e;
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
}

.area-list li::before,
.concept-list li::before,
.frontier-list li::before {
    content: "•";
    color: #3498db;
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

.did-you-know,
.real-world-impact,
.fascinating-fact,
.observation-tip {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
        padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #3498db;
}

.did-you-know h3,
.real-world-impact h3,
.fascinating-fact h3,
.observation-tip h3 {
    color: #2c3e50;
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
}

.did-you-know p,
.real-world-impact p,
.fascinating-fact p,
.observation-tip p {
    color: #34495e;
        font-size: 1.1rem;
    line-height: 1.6;
    margin: 0;
}

/* Branch-specific styling */
.branch-card.physics h2::after {
    background: linear-gradient(90deg, #e74c3c, #f39c12);
}

.branch-card.chemistry h2::after {
    background: linear-gradient(90deg, #9b59b6, #3498db);
}

.branch-card.biology h2::after {
    background: linear-gradient(90deg, #2ecc71, #27ae60);
}

.branch-card.astronomy h2::after {
    background: linear-gradient(90deg, #3498db, #2980b9);
}

.branch-card.physics .did-you-know {
    border-left-color: #e74c3c;
}

.branch-card.chemistry .real-world-impact {
    border-left-color: #9b59b6;
}

.branch-card.biology .fascinating-fact {
    border-left-color: #2ecc71;
}

.branch-card.astronomy .observation-tip {
    border-left-color: #3498db;
}

/* Responsive Design for Science Branches Section */
@media (max-width: 768px) {
    .science-branches-section {
        padding: 2rem 1rem;
    }

    .branch-content {
        grid-template-columns: 1fr;
    }

    .branch-card {
        padding: 1.5rem;
    }

    .branch-card h2 {
        font-size: 1.5rem;
    }

    .branch-intro {
        font-size: 1rem;
    }

    .branch-card h3 {
        font-size: 1.2rem;
    }

    .area-list li,
    .concept-list li,
    .frontier-list li {
        font-size: 1rem;
    }

    .did-you-know,
    .real-world-impact,
    .fascinating-fact,
    .observation-tip {
        padding: 1.2rem;
    }

    .did-you-know h3,
    .real-world-impact h3,
    .fascinating-fact h3,
    .observation-tip h3 {
        font-size: 1.1rem;
    }

    .did-you-know p,
    .real-world-impact p,
    .fascinating-fact p,
    .observation-tip p {
        font-size: 1rem;
    }
}

/* Detailed Technology Topics Section Styles */
.detailed-tech-topics {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.detailed-tech-topics h2 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 2rem;
    font-size: 2.5rem;
}

.tech-topic {
    background: #ffffff;
    border-radius: 10px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.tech-topic:hover {
    transform: translateY(-5px);
}

.tech-topic h3 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid #3498db;
    padding-bottom: 0.5rem;
}

.tech-topic > p {
    color: #34495e;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.topic-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.detail-group {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #3498db;
}

.detail-group h4 {
    color: #2c3e50;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.detail-group p {
    color: #34495e;
    line-height: 1.5;
}

.detail-group ul {
    list-style-type: none;
    padding: 0;
}

.detail-group ul li {
    color: #34495e;
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.detail-group ul li:before {
    content: "•";
    color: #3498db;
    position: absolute;
    left: 0;
}

.topic-conclusion {
    font-style: italic;
    color: #7f8c8d;
    border-top: 1px solid #ecf0f1;
    padding-top: 1rem;
    margin-top: 1rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .detailed-tech-topics {
        padding: 1rem;
    }

    .tech-topic {
        padding: 1.5rem;
    }

    .topic-details {
        grid-template-columns: 1fr;
    }

    .detail-group {
        padding: 1rem;
    }
}

/* Terms of Service Page Styles */
.terms-section {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.terms-container {
    background: #ffffff;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.terms-container h1 {
    color: #2c3e50;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
}

.last-updated {
    text-align: center;
    color: #7f8c8d;
    font-style: italic;
    margin-bottom: 2rem;
}

.terms-intro {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    border-left: 4px solid #3498db;
}

.terms-intro p {
    color: #34495e;
    line-height: 1.6;
    margin: 0;
}

.terms-content {
    color: #2c3e50;
}

.terms-content .terms-section {
    margin-bottom: 2rem;
    padding: 0;
}

.terms-content h2 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid #3498db;
    padding-bottom: 0.5rem;
}

.terms-content h3 {
    color: #2c3e50;
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.permitted-use {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 1.5rem 0;
}

.allowed, .prohibited {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
}

.allowed {
    border-left: 4px solid #2ecc71;
}

.prohibited {
    border-left: 4px solid #e74c3c;
}

.check-list, .cross-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.check-list li, .cross-list li {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.check-list i {
    color: #2ecc71;
}

.cross-list i {
    color: #e74c3c;
}

.content-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.content-list li {
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
}

.content-list li:before {
    content: "•";
    color: #3498db;
    position: absolute;
    left: 0;
}

.contact-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.contact-list li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-list a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-list a:hover {
    color: #2980b9;
}

.key-features {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 2rem;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.feature-list i {
    color: #2ecc71;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .terms-section {
        padding: 1rem;
    }

    .terms-container {
        padding: 1.5rem;
    }

    .terms-container h1 {
        font-size: 2rem;
    }

    .permitted-use {
        grid-template-columns: 1fr;
    }

    .feature-list {
        grid-template-columns: 1fr;
    }
}

/* How It Works Section Styles */
.how-it-works {
    padding: 5rem 2rem;
    background: #ffffff;
    margin: 3rem 0;
    position: relative;
}

.how-it-works h2 {
    color: #2c3e50;
    font-size: 2.8rem;
    text-align: center;
    margin-bottom: 1rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.how-it-works h3 {
    color: #3498db;
    font-size: 1.6rem;
    text-align: center;
    margin-bottom: 4rem;
    font-weight: 500;
}

.steps-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.step-card {
    background: #ffffff;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #eef2f7;
    width: 100%;
}

.step-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.step-card h4 {
    color: #2c3e50;
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 1rem;
    font-weight: 700;
    text-align: center;
}

.step-card h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: #3498db;
    border-radius: 3px;
}

.subjects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 1.5rem 0;
}

.subject-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid #eef2f7;
}

.subject-item:hover {
    background: #e3f2fd;
    transform: translateX(5px);
    border-color: #3498db;
}

.subject-item i {
    font-size: 1.4rem;
    color: #3498db;
    background: #e3f2fd;
    padding: 0.8rem;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.subject-item:hover i {
    background: #3498db;
    color: #ffffff;
}

.subject-item span {
    color: #2c3e50;
    font-size: 0.95rem;
    font-weight: 500;
}

.level-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 1.5rem 0;
}

.level-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid #eef2f7;
}

.level-item:hover {
    background: #e3f2fd;
    transform: translateX(5px);
    border-color: #3498db;
}

.level-color {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.level-color.basic {
    background: #2ecc71;
}

.level-color.intermediate {
    background: #f1c40f;
}

.level-color.advanced {
    background: #e74c3c;
}

.level-info h5 {
    color: #2c3e50;
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
    font-weight: 600;
}

.level-info p {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin: 0;
}

.learning-features {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.learning-features li {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid #eef2f7;
}

.learning-features li:hover {
    background: #e3f2fd;
    transform: translateX(5px);
    border-color: #3498db;
}

.learning-features i {
    font-size: 1.4rem;
    color: #3498db;
    background: #e3f2fd;
    padding: 0.8rem;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.learning-features li:hover i {
    background: #3498db;
    color: #ffffff;
}

.learning-features span {
    color: #2c3e50;
    font-size: 1rem;
    font-weight: 500;
}

.level-note {
    color: #7f8c8d;
    font-size: 0.9rem;
    text-align: center;
    margin-top: 1rem;
    font-style: italic;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .subjects-grid,
    .level-options,
    .learning-features {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .how-it-works {
        padding: 3rem 1rem;
    }

    .how-it-works h2 {
        font-size: 2.2rem;
    }

    .how-it-works h3 {
        font-size: 1.4rem;
        margin-bottom: 3rem;
    }

    .subjects-grid,
    .level-options,
    .learning-features {
        grid-template-columns: 1fr;
    }

    .step-card {
        padding: 1.5rem;
    }

    .step-card h4 {
        font-size: 1.4rem;
    }
}

/* Key Features Section Styles */
.key-features-section {
    padding: 5rem 2rem;
    background: #ffffff;
    position: relative;
}

.features-container {
    max-width: 1200px;
    margin: 0 auto;
}

.key-features-section h2 {
    color: #2c3e50;
    font-size: 2.8rem;
    text-align: center;
    margin-bottom: 3rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

.feature-card {
    background: #ffffff;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #eef2f7;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: #e3f2fd;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    background: #3498db;
    transform: scale(1.1);
}

.feature-icon i {
    font-size: 1.8rem;
    color: #3498db;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon i {
    color: #ffffff;
}

.feature-card h3 {
    color: #2c3e50;
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    color: #34495e;
    font-size: 1rem;
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
}

.feature-list li:before {
    content: "•";
    color: #3498db;
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

.benefits-section {
    text-align: center;
    margin: 4rem 0;
}

.benefits-section h3 {
    color: #2c3e50;
    font-size: 2rem;
    margin-bottom: 3rem;
    font-weight: 700;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.benefit-item {
    background: #f8fafc;
    padding: 2rem;
    border-radius: 16px;
    transition: all 0.3s ease;
    border: 1px solid #eef2f7;
}

.benefit-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border-color: #3498db;
}

.benefit-item i {
    font-size: 2rem;
    color: #3498db;
    margin-bottom: 1rem;
}

.benefit-item h4 {
    color: #2c3e50;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.benefit-item p {
    color: #7f8c8d;
    font-size: 1rem;
    margin: 0;
}

.cta-section {
    text-align: center;
    margin-top: 4rem;
    padding: 3rem;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.cta-section h3 {
    color: #2c3e50;
    font-size: 2rem;
    margin-bottom: 2rem;
    font-weight: 700;
}

.cta-section .cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: #3498db;
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid #3498db;
}

.cta-section .cta-button:hover {
    background: #ffffff;
    color: #3498db;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(52, 152, 219, 0.2);
}

/* Responsive Design for Key Features Section */
@media (max-width: 1024px) {
    .features-grid,
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .key-features-section {
        padding: 3rem 1rem;
    }

    .key-features-section h2 {
        font-size: 2.2rem;
    }

    .features-grid,
    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .feature-card,
    .benefit-item {
        padding: 1.5rem;
    }

    .benefits-section h3,
    .cta-section h3 {
        font-size: 1.8rem;
    }

    .cta-section {
        padding: 2rem 1rem;
    }
}

/* FAQs Section Styles */
.faqs-section {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.faqs-container {
    max-width: 1200px;
    margin: 0 auto;
}

.faqs-container h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 3rem;
}

.faq-category {
    margin-bottom: 3rem;
}

.faq-category h3 {
    font-size: 1.8rem;
    color: #34495e;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #3498db;
}

.faq-item {
    margin-bottom: 1rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.faq-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.faq-question {
    width: 100%;
    padding: 1.2rem;
    text-align: left;
    background: none;
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.faq-question:hover {
    color: #3498db;
}

.faq-question i {
    transition: transform 0.3s ease;
}

.faq-question[aria-expanded="true"] i {
    transform: rotate(180deg);
}

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

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

.faq-item.active .faq-answer {
    max-height: 500px;
}

@media (max-width: 768px) {
    .faqs-section {
        padding: 3rem 1rem;
    }

    .faqs-container h2 {
        font-size: 2rem;
    }

    .faq-category h3 {
        font-size: 1.5rem;
    }

    .faq-question {
        font-size: 1rem;
        padding: 1rem;
    }
}

/* Terms and Conditions Page Styles */
.terms-header {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
}

.terms-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255,255,255,0.1) 25%, transparent 25%),
                linear-gradient(-45deg, rgba(255,255,255,0.1) 25%, transparent 25%);
    background-size: 60px 60px;
    opacity: 0.1;
}

.terms-header h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.terms-header p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.terms-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.table-of-contents {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin-bottom: 3rem;
    border: 1px solid rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.table-of-contents:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.table-of-contents h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    position: relative;
    padding-bottom: 0.8rem;
}

.table-of-contents h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.table-of-contents ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.table-of-contents li {
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.table-of-contents li:hover {
    transform: translateX(10px);
}

.table-of-contents a {
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    padding: 0.5rem 0;
    position: relative;
}

.table-of-contents a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 0.3s ease;
}

.table-of-contents a:hover {
    color: var(--primary-color);
}

.table-of-contents a:hover::after {
    width: 100%;
}

.terms-section {
    background: #ffffff;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin-bottom: 3rem;
    border: 1px solid rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.terms-section:hover {
    transform: translateY(-5px);
}

.terms-section h2 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.8rem;
    position: relative;
}

.terms-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.terms-section p {
    color: var(--text-color);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.terms-section ul {
    list-style-type: none;
    padding: 0;
    margin: 1.5rem 0;
}

.terms-section li {
    color: var(--text-color);
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
}

.terms-section li::before {
    content: "•";
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

.terms-section h2:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

@media (max-width: 768px) {
    .terms-header {
        padding: 3rem 1rem;
    }

    .terms-header h1 {
        font-size: 2.2rem;
    }

    .terms-content {
        padding: 0 1rem;
    }

    .table-of-contents,
    .terms-section {
        padding: 1.5rem;
    }

    .terms-section h2 {
        font-size: 1.6rem;
    }

    .terms-section p {
        font-size: 1rem;
    }
}

@media print {
    .table-of-contents,
    .terms-header {
        background: none;
    }

    .table-of-contents,
    .terms-section {
        box-shadow: none;
        border: 1px solid #ddd;
    }

    .terms-header {
        color: #000;
        padding: 1rem;
    }

    .terms-section {
        break-inside: avoid;
    }

    .social-links {
        display: none;
    }
}

.terms-section h1 {
    text-align: center;
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* Mathematics Content Styles */
.subject-content {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 2rem;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.subject-content h2 {
    color: #2c3e50;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.subject-intro {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #34495e;
    margin-bottom: 2rem;
    text-align: center;
}

.why-learn {
    margin: 2rem 0;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.why-learn h3 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

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

.benefits-list li {
    margin: 1rem 0;
    padding: 1rem;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.benefits-list strong {
    color: #3498db;
    display: block;
    margin-bottom: 0.5rem;
}

.explore-section {
    margin: 2rem 0;
}

.explore-section h3 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.topics-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.topics-list li {
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 6px;
    transition: transform 0.3s ease;
}

.topics-list li:hover {
    transform: translateY(-3px);
}

.math-quote {
    font-style: italic;
    font-size: 1.4rem;
    color: #7f8c8d;
    text-align: center;
    margin: 2rem 0;
    padding: 1.5rem;
    border-left: 4px solid #3498db;
    background: #f8f9fa;
}

.sample-question {
    margin: 2rem 0;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    text-align: center;
}

.sample-question h3 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.reveal-answer-btn {
    background: #3498db;
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1rem;
    margin: 1rem 0;
    transition: background 0.3s ease;
}

.reveal-answer-btn:hover {
    background: #2980b9;
}

.answer {
    font-size: 1.2rem;
    color: #27ae60;
    margin-top: 1rem;
    font-weight: bold;
}

@media (max-width: 768px) {
    .subject-content {
        padding: 1rem;
        margin: 1rem;
    }

    .subject-content h2 {
        font-size: 2rem;
    }

    .topics-list {
        grid-template-columns: 1fr;
    }

    .math-quote {
        font-size: 1.2rem;
    }
}

/* Study Guide Styles */
.study-guide {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 2rem;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.study-guide h2 {
    color: #2c3e50;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.study-guide h3 {
    color: #3498db;
    font-size: 1.8rem;
    margin: 2rem 0 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #3498db;
}

.study-guide h4 {
    color: #2c3e50;
    font-size: 1.4rem;
    margin: 1.5rem 0 1rem;
}

/* Study Strategies */
.study-strategies {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 15px;
    margin: 2rem 0;
}

:root {
    --primary-color: #2171B5;
    --secondary-color: #6BAED6;
    --accent-color: #BDD7E7;
    --background-color: #EFF3FF;
    --text-color: #2171B5;
    --button-hover: #6BAED6;
    --button-bg: #BDD7E7;
    --button-text: #2171B5;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

.navbar {
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--primary-color);
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.logo h1 {
    color: var(--background-color);
    font-size: 1.5rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--background-color);
    text-decoration: none;
    font-weight: 500;
    transition: color .3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent-color);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
    position: relative;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #fff;
    margin: 5px 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

.hero {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, var(--background-color), var(--accent-color), var(--secondary-color));
    color: var(--primary-color);
    text-align: center;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: var(--accent-color);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 5px;
    transition: background-color .3s, color .3s, box-shadow .3s;
    box-shadow: 0 4px 16px 0 rgba(33, 113, 181, 0.25), 0 1.5px 4px 0 rgba(33, 113, 181, 0.15);
}

.cta-button:hover {
    background-color: var(--secondary-color);
    color: #fff;
    box-shadow: 0 6px 24px 0 rgba(33, 113, 181, 0.30), 0 2px 8px 0 rgba(33, 113, 181, 0.18);
}

.featured-subjects {
    padding: 4rem 2rem;
    border: 2px solid var(--primary-color);
    border-radius: 15px;
    box-shadow: 0 8px 24px rgba(33, 113, 181, 0.15);
    background: linear-gradient(to bottom right, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7));
    backdrop-filter: blur(10px);
    margin: 2rem auto;
    max-width: 1200px;
    position: relative;
}

.featured-subjects::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border-radius: 17px;
    z-index: -1;
    opacity: 0.7;
}

.featured-subjects h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

.footer-section h3,
.subject-card i {
    margin-bottom: 1rem;
}

.footer-content,
.subject-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.subject-card {
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, .1);
    transition: transform .3s;
    text-align: center;
}

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

.subject-card i {
    font-size: 2.5rem;
    color: var(--secondary-color);
}

.subject-card h3 a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 1.4rem;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    padding-bottom: 0.3rem;
}

.subject-card h3 a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 0.3s ease;
}

.subject-card h3 a:hover {
    color: var(--secondary-color);
    transform: translateY(-2px);
}

.subject-card h3 a:hover::after {
    width: 100%;
}

footer {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #fff;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
    background-color: var(--primary-color);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
    gap: 2rem;
    padding: 0 1rem;
}

.footer-section {
    padding: 1rem;
    display: flex;
    flex-direction: column;
}

.footer-section h3 {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
    text-align: left;
    white-space: nowrap;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background: #4ecca3;
}

.about-section .main-description {
    line-height: 1.6;
    margin-bottom: 1rem;
    color: #e0e0e0;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: #e0e0e0;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.footer-links a:hover {
    color: #4ecca3;
}

.newsletter-form {
    margin-bottom: 1.5rem;
}

.newsletter-form input {
    width: 100%;
    padding: 0.8rem;
    border: none;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    margin-bottom: 0.5rem;
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.newsletter-form button {
    width: 100%;
    padding: 0.8rem;
    background: #4ecca3;
    color: #1a1a2e;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-weight: 600;
}

.newsletter-form button:hover {
    background: #45b392;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.social-icon {
    color: #e0e0e0;
    font-size: 1.5rem;
    transition: transform 0.3s ease, color 0.3s ease;
}

.social-icon:hover {
    color: #4ecca3;
    transform: translateY(-3px);
}

.contact-info {
    margin-top: 1rem;
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #e0e0e0;
}

.contact-info a {
    color: #e0e0e0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: #4ecca3;
}

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

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

.footer-section ul li {
    margin-bottom: .5rem;
}

.footer-section a {
    color: var(--background-color);
    text-decoration: none;
    transition: color .3s;
}

.social-links a {
    font-size: 1.5rem;
}

@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
    .about-section {
        grid-column: 1/-1;
    }
}

@media (max-width: 912px) {
    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        right: -300px;
        width: 280px;
        height: 100vh;
        background-color: var(--primary-color);
        padding: 5rem 1.5rem 2rem;
        flex-direction: column;
        gap: 1.5rem;
        z-index: 1000;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease-in-out;
        border-radius: 0 0 0 10px;
    }
    .nav-links.active {
        display: flex;
        right: 0;
    }
    .mobile-menu-btn {
        display: block;
        position: relative;
        z-index: 1001;
    }
    .mobile-menu-btn span {
        display: block;
        width: 25px;
        height: 3px;
        background-color: #fff;
        margin: 5px 0;
        transition: transform 0.3s ease;
        
    }
    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }
    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
    .nav-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 999;
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    .nav-overlay.active {
        display: block;
        opacity: 1;
    }
    .hero h2 {
        font-size: 2rem;
    }
    .hero p {
        font-size: 1rem;
    }
}

@media (width: 912px) and (height: 1368px) {
    body.tablet-portrait .nav-links {
        padding-top: 8rem;
    }
    body.tablet-portrait .hero {
        padding: 6rem 2rem;
    }
    body.tablet-portrait .hero h2 {
        font-size: 2.2rem;
    }
    body.tablet-portrait .hero p {
        font-size: 1.1rem;
    }
    body.tablet-portrait .featured-subjects {
        padding: 6rem 2rem;
    }
    body.tablet-portrait .subject-card {
        padding: 2.5rem;
    }
    body.tablet-portrait .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        padding-top: 5rem;
    }
    .hero h2 {
        font-size: 1.8rem;
    }
    .hero p {
        font-size: 0.9rem;
    }
}

.focus {
    outline: 3px solid var(--accent-color);
    outline-offset: 2px;
}

@media print {
    .cta-button,
    .navbar,
    footer {
        display: none;
    }
    body {
        background-color: #fff;
        color: #000;
    }
}

.text-center {
    text-align: center;
    margin-top: 3rem;
}

.text-center h1 {
    margin-bottom: 1rem;
}

/* About Wordestool Section */
.about-wordestool {
    padding: 5rem 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.about-wordestool::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
}

.about-wordestool h2 {
    color: #2c3e50;
    font-size: 2.8rem;
    text-align: center;
    margin-bottom: 1rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.about-wordestool h3 {
    color: #3498db;
    font-size: 1.6rem;
    text-align: center;
    margin-bottom: 3rem;
    font-weight: 500;
}

.about-content {
    max-width: 1000px;
    margin: 0 auto;
    background: #ffffff;
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #eef2f7;
}

.about-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.about-content p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #34495e;
    margin-bottom: 2rem;
    text-align: center;
}

.benefits-list {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.benefits-list li {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 12px;
    color: #2c3e50;
    font-size: 1.1rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #eef2f7;
    position: relative;
    overflow: hidden;
}

.benefits-list li::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: #3498db;
    transition: all 0.3s ease;
}

.benefits-list li:hover {
    transform: translateX(5px);
    background: #e3f2fd;
    border-color: #3498db;
}

.benefits-list li:hover::before {
    width: 100%;
    opacity: 0.1;
}

.target-users {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    padding: 2rem;
    border-radius: 12px;
    margin-top: 3rem;
    border: 1px solid #eef2f7;
    transition: all 0.3s ease;
}

.target-users:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.target-users h4 {
    color: #2c3e50;
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 600;
}

.target-users ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.target-users ul li {
    background: #ffffff;
    padding: 1.2rem;
    border-radius: 8px;
    color: #34495e;
    font-size: 1.1rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #eef2f7;
    position: relative;
}

.target-users ul li::before {
    content: "•";
    color: #3498db;
    position: absolute;
    left: 1rem;
    font-size: 1.2rem;
}

.target-users ul li:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border-color: #3498db;
}

/* Responsive Design for About Section */
@media (max-width: 1024px) {
    .benefits-list,
    .target-users ul {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .about-wordestool {
        padding: 3rem 1rem;
    }

    .about-wordestool h2 {
        font-size: 2.2rem;
    }

    .about-wordestool h3 {
        font-size: 1.4rem;
    }

    .about-content {
        padding: 1.5rem;
    }

    .about-content p {
        font-size: 1.1rem;
    }

    .benefits-list,
    .target-users ul {
        grid-template-columns: 1fr;
    }

    .benefits-list li,
    .target-users ul li {
        font-size: 1rem;
    }
}

/* Contact Section Styles */
.contact-section {
    padding: 4rem 2rem;
    background-color: #fff;
}

.contact-section h2 {
    text-align: center;
    color: #2c3e50;
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.contact-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info {
    padding: 2rem;
}

.contact-info h3 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.contact-info p {
    color: #34495e;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-item i {
    font-size: 1.5rem;
    color: #3498db;
    margin-top: 0.5rem;
}

.contact-item h4 {
    color: #2c3e50;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.contact-item p {
    color: #34495e;
    margin: 0;
}

.contact-item a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s;
}

.contact-item a:hover {
    color: #2980b9;
}

.contact-form {
    background-color: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.contact-form h3 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #3498db;
    outline: none;
}

.submit-btn {
    background-color: #3498db;
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.submit-btn:hover {
    background-color: #2980b9;
}

/* Responsive Design for Contact Section */
@media (max-width: 768px) {
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .contact-section {
        padding: 3rem 1rem;
    }
    .contact-section h2 {
        font-size: 2rem;
    }
    .contact-info h3,
    .contact-form h3 {
        font-size: 1.5rem;
    }
    .contact-info p {
        font-size: 1rem;
    }
}

/* Quiz Instructions Section Styles */
.quiz-instructions {
    padding: 2rem;
    background-color: #f8f9fa;
    border-radius: 10px;
    margin: 2rem 0;
}

.quiz-instructions h2 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 2rem;
    font-size: 2rem;
}

.instructions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.instruction-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.instruction-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.instruction-card i {
    font-size: 2rem;
    color: #3498db;
    margin-bottom: 1rem;
}

.instruction-card h3 {
    color: #2c3e50;
    margin-bottom: 0.8rem;
    font-size: 1.2rem;
}

.instruction-card p {
    color: #666;
    line-height: 1.5;
}

.instruction-card ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.instruction-card ul li {
    color: #666;
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.instruction-card ul li:before {
    content: "•";
    color: #3498db;
    position: absolute;
    left: 0;
}

.tip-card {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border: 2px solid #3498db;
}

.tip-card i {
    color: #f1c40f;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .instructions-grid {
        grid-template-columns: 1fr;
    }
    
    .quiz-instructions {
        padding: 1rem;
    }
    
    .instruction-card {
        padding: 1rem;
    }
}

/* Math Learning Content Section Styles */
.learning-content {
    padding: 3rem 2rem;
    background-color: #f8f9fa;
    margin: 2rem 0;
}

.learning-content h2 {
    text-align: center;
    color: #2c3e50;
    font-size: 2.2rem;
    margin-bottom: 2rem;
}

.content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}

.intro-text {
    font-size: 1.2em;
    line-height: 1.6;
    color: #555;
    margin-bottom: 30px;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Special styling for the final call-to-action paragraph */
.intro-text:last-of-type {
    text-align: center;
    font-size: 1.3rem;
    font-weight: 500;
    color: #2c3e50;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin: 2.5rem 0;
    border: 2px solid #3498db;
    position: relative;
    overflow: hidden;
}

.intro-text:last-of-type::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
}

.intro-text:last-of-type:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

/* Responsive adjustments for the styled paragraph */
@media (max-width: 768px) {
    .intro-text:last-of-type {
        font-size: 1.1rem;
        padding: 1.5rem;
        margin: 2rem 0;
    }
}

.features-section {
    margin-bottom: 3rem;
}

.features-section h3 {
    text-align: center;
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 2rem;
}

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

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.feature-card i {
    font-size: 2.5rem;
    color: #3498db;
    margin-bottom: 1rem;
}

.feature-card h4 {
    color: #2c3e50;
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.feature-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-card ul li {
    color: #666;
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
}

.feature-card ul li:before {
    content: "•";
    color: #3498db;
    position: absolute;
    left: 0;
}

.benefits-section {
    text-align: center;
    margin-top: 3rem;
}

.benefits-section p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #34495e;
    margin-bottom: 2rem;
}

.cta-box {
    background: linear-gradient(135deg, #3498db, #2980b9);
    padding: 2rem;
    border-radius: 10px;
    color: white;
}

.cta-text {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: white;
    color: #3498db;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .learning-content {
        padding: 2rem 1rem;
    }

    .learning-content h2 {
        font-size: 1.8rem;
    }

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

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .cta-box {
        padding: 1.5rem;
    }
}

/* Mathematics History Section Styles */
.math-history {
    padding: 4rem 2rem;
    background-color: #fff;
    margin: 2rem 0;
}

.math-history h2 {
    text-align: center;
    color: #2c3e50;
    font-size: 2.2rem;
    margin-bottom: 2rem;
}

.history-content {
    max-width: 1200px;
    margin: 0 auto;
}

.history-intro {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #34495e;
    margin-bottom: 3rem;
    text-align: center;
}

.history-timeline {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.timeline-item {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

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

.timeline-item::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background-color: #3498db;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.2);
}

.timeline-item h3 {
    color: #2c3e50;
    font-size: 1.4rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #3498db;
}

.timeline-item p {
    color: #666;
    line-height: 1.8;
    font-size: 1.1rem;
}

/* Responsive adjustments for history section */
@media (max-width: 768px) {
    .math-history {
        padding: 2rem 1rem;
    }

    .math-history h2 {
        font-size: 1.8rem;
    }

    .history-intro {
        font-size: 1.1rem;
    }

    .timeline-item {
        padding: 1.5rem;
    }

    .timeline-item h3 {
        font-size: 1.2rem;
    }

    .timeline-item p {
        font-size: 1rem;
    }

    .timeline-item::before {
        left: -15px;
        width: 15px;
        height: 15px;
    }
}

/* Quiz Container and Controls Styling */
#quiz-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

#quiz-section.quiz-active {
    background-color: #f8f9fa;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin: 2rem auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#quiz-container {
    display: none;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 2rem;
}

#quiz-container.active {
    display: block !important;
}

.quiz-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 2px solid #f0f0f0;
    width: 100%;
}

.skip-btn, .stop-btn {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    min-width: 150px;
    display: inline-block;
}

.skip-btn {
    background-color: #f8f9fa;
    color: #3498db;
    border: 2px solid #3498db;
}

.skip-btn:hover {
    background-color: #3498db;
    color: white;
}

.stop-btn {
    background-color: #e74c3c;
    color: white;
}

.stop-btn:hover {
    background-color: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(231, 76, 60, 0.2);
}

/* Quiz Active State Styles */
.quiz-section.quiz-active {
    animation: quizHighlight 2s ease-out;
    position: relative;
}

@keyframes quizHighlight {
    0% {
        box-shadow: 0 0 0 0 rgba(52, 152, 219, 0.4);
    }
    50% {
        box-shadow: 0 0 20px 10px rgba(52, 152, 219, 0.2);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(52, 152, 219, 0);
    }
}

.quiz-section.quiz-active #quiz-container {
    animation: quizContainerHighlight 2s ease-out;
}

@keyframes quizContainerHighlight {
    0% {
        transform: scale(1);
    }
    5% {
        transform: scale(1.02);
    }
    100% {
        transform: scale(1);
    }
}

/* Ensure smooth scrolling behavior for the entire page */
html {
    scroll-behavior: smooth;
}

/* Mobile-specific adjustments */
@media (max-width: 768px) {
    .quiz-section.quiz-active {
        margin: 1rem 0;
    }
    
    .quiz-section.quiz-active #quiz-container {
        margin: 0.5rem;
    }
}

/* Math Topics Detail Section Styling */
.math-topics-detail {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.topic-detail {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 2.5rem;
    padding: 2.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.topic-detail:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.topic-detail h2 {
    color: #2c3e50;
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.8rem;
}

.topic-detail h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: #3498db;
}

.topic-detail p {
    color: #34495e;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

/* Topic-specific styling */
.topic-detail.algebra h2::after {
    background: #e74c3c;
}

.topic-detail.calculus h2::after {
    background: #2ecc71;
}

.topic-detail.geometry h2::after {
    background: #f1c40f;
}

.topic-detail.statistics h2::after {
    background: #9b59b6;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .math-topics-detail {
        padding: 0 1rem;
        margin: 2rem auto;
    }

    .topic-detail {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .topic-detail h2 {
        font-size: 1.8rem;
    }

    .topic-detail p {
        font-size: 1rem;
    }
}

@media screen and (max-width: 480px) {
    .topic-detail {
        padding: 1.2rem;
    }

    .topic-detail h2 {
        font-size: 1.5rem;
    }
}

/* Geography Introduction Section Styles */
.geography-intro {
    padding: 3rem 2rem;
    background-color: #f8f9fa;
    margin: 2rem 0;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.geography-intro h2 {
    color: #2c3e50;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 700;
}

.intro-content {
    max-width: 1200px;
    margin: 0 auto;
}

.intro-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #34495e;
    margin-bottom: 1.5rem;
    text-align: justify;
}

.geography-topics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.topic-item {
    background-color: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.topic-item:hover {
    transform: translateY(-5px);
}

.topic-item h3 {
    color: #2c3e50;
    font-size: 1.4rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.topic-item p {
    color: #666;
    line-height: 1.6;
}

.benefits-section {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    margin: 2rem 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

:root {
    --primary-color: #2171B5;
    --secondary-color: #6BAED6;
    --accent-color: #BDD7E7;
    --background-color: #EFF3FF;
    --text-color: #2171B5;
    --button-hover: #6BAED6;
    --button-bg: #BDD7E7;
    --button-text: #2171B5;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

.navbar {
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--primary-color);
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.logo h1 {
    color: var(--background-color);
    font-size: 1.5rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--background-color);
    text-decoration: none;
    font-weight: 500;
    transition: color .3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent-color);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
    position: relative;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #fff;
    margin: 5px 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

.hero {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, var(--background-color), var(--accent-color), var(--secondary-color));
    color: var(--primary-color);
    text-align: center;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: var(--accent-color);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 5px;
    transition: background-color .3s, color .3s, box-shadow .3s;
    box-shadow: 0 4px 16px 0 rgba(33, 113, 181, 0.25), 0 1.5px 4px 0 rgba(33, 113, 181, 0.15);
}

.cta-button:hover {
    background-color: var(--secondary-color);
    color: #fff;
    box-shadow: 0 6px 24px 0 rgba(33, 113, 181, 0.30), 0 2px 8px 0 rgba(33, 113, 181, 0.18);
}

.featured-subjects {
    padding: 4rem 2rem;
    border: 2px solid var(--primary-color);
    border-radius: 15px;
    box-shadow: 0 8px 24px rgba(33, 113, 181, 0.15);
    background: linear-gradient(to bottom right, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7));
    backdrop-filter: blur(10px);
    margin: 2rem auto;
    max-width: 1200px;
    position: relative;
}

.featured-subjects::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border-radius: 17px;
    z-index: -1;
    opacity: 0.7;
}

.featured-subjects h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

.footer-section h3,
.subject-card i {
    margin-bottom: 1rem;
}

.footer-content,
.subject-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.subject-card {
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, .1);
    transition: transform .3s;
    text-align: center;
}

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

.subject-card i {
    font-size: 2.5rem;
    color: var(--secondary-color);
}

.subject-card h3 a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 1.4rem;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    padding-bottom: 0.3rem;
}

.subject-card h3 a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 0.3s ease;
}

.subject-card h3 a:hover {
    color: var(--secondary-color);
    transform: translateY(-2px);
}

.subject-card h3 a:hover::after {
    width: 100%;
}

footer {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #fff;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
    background-color: var(--primary-color);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
    gap: 2rem;
    padding: 0 1rem;
}

.footer-section {
    padding: 1rem;
    display: flex;
    flex-direction: column;
}

.footer-section h3 {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
    text-align: left;
    white-space: nowrap;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background: #4ecca3;
}

.about-section .main-description {
    line-height: 1.6;
    margin-bottom: 1rem;
    color: #e0e0e0;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: #e0e0e0;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.footer-links a:hover {
    color: #4ecca3;
}

.newsletter-form {
    margin-bottom: 1.5rem;
}

.newsletter-form input {
    width: 100%;
    padding: 0.8rem;
    border: none;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    margin-bottom: 0.5rem;
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.newsletter-form button {
    width: 100%;
    padding: 0.8rem;
    background: #4ecca3;
    color: #1a1a2e;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-weight: 600;
}

.newsletter-form button:hover {
    background: #45b392;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.social-icon {
    color: #e0e0e0;
    font-size: 1.5rem;
    transition: transform 0.3s ease, color 0.3s ease;
}

.social-icon:hover {
    color: #4ecca3;
    transform: translateY(-3px);
}

.contact-info {
    margin-top: 1rem;
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #e0e0e0;
}

.contact-info a {
    color: #e0e0e0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: #4ecca3;
}

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

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

.footer-section ul li {
    margin-bottom: .5rem;
}

.footer-section a {
    color: var(--background-color);
    text-decoration: none;
    transition: color .3s;
}

.social-links a {
    font-size: 1.5rem;
}

@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
    .about-section {
        grid-column: 1/-1;
    }
}

@media (max-width: 912px) {
    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        right: -300px;
        width: 280px;
        height: 100vh;
        background-color: var(--primary-color);
        padding: 5rem 1.5rem 2rem;
        flex-direction: column;
        gap: 1.5rem;
        z-index: 1000;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease-in-out;
        border-radius: 0 0 0 10px;
    }
    .nav-links.active {
        display: flex;
        right: 0;
    }
    .mobile-menu-btn {
        display: block;
        position: relative;
        z-index: 1001;
    }
    .mobile-menu-btn span {
        display: block;
        width: 25px;
        height: 3px;
        background-color: #fff;
        margin: 5px 0;
        transition: transform 0.3s ease;
        
    }
    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }
    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
    .nav-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 999;
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    .nav-overlay.active {
        display: block;
        opacity: 1;
    }
    .hero h2 {
        font-size: 2rem;
    }
    .hero p {
        font-size: 1rem;
    }
}

@media (width: 912px) and (height: 1368px) {
    body.tablet-portrait .nav-links {
        padding-top: 8rem;
    }
    body.tablet-portrait .hero {
        padding: 6rem 2rem;
    }
    body.tablet-portrait .hero h2 {
        font-size: 2.2rem;
    }
    body.tablet-portrait .hero p {
        font-size: 1.1rem;
    }
    body.tablet-portrait .featured-subjects {
        padding: 6rem 2rem;
    }
    body.tablet-portrait .subject-card {
        padding: 2.5rem;
    }
    body.tablet-portrait .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        padding-top: 5rem;
    }
    .hero h2 {
        font-size: 1.8rem;
    }
    .hero p {
        font-size: 0.9rem;
    }
}

.focus {
    outline: 3px solid var(--accent-color);
    outline-offset: 2px;
}

@media print {
    .cta-button,
    .navbar,
    footer {
        display: none;
    }
    body {
        background-color: #fff;
        color: #000;
    }
}

.text-center {
    text-align: center;
    margin-top: 3rem;
}

.text-center h1 {
    margin-bottom: 1rem;
}

/* About Wordestool Section */
.about-wordestool {
    padding: 5rem 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.about-wordestool::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
}

.about-wordestool h2 {
    color: #2c3e50;
    font-size: 2.8rem;
    text-align: center;
    margin-bottom: 1rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.about-wordestool h3 {
    color: #3498db;
    font-size: 1.6rem;
    text-align: center;
    margin-bottom: 3rem;
    font-weight: 500;
}

.about-content {
    max-width: 1000px;
    margin: 0 auto;
    background: #ffffff;
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #eef2f7;
}

.about-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.about-content p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #34495e;
    margin-bottom: 2rem;
    text-align: center;
}

.benefits-list {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.benefits-list li {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 12px;
    color: #2c3e50;
    font-size: 1.1rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #eef2f7;
    position: relative;
    overflow: hidden;
}

.benefits-list li::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: #3498db;
    transition: all 0.3s ease;
}

.benefits-list li:hover {
    transform: translateX(5px);
    background: #e3f2fd;
    border-color: #3498db;
}

.benefits-list li:hover::before {
    width: 100%;
    opacity: 0.1;
}

.target-users {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    padding: 2rem;
    border-radius: 12px;
    margin-top: 3rem;
    border: 1px solid #eef2f7;
    transition: all 0.3s ease;
}

.target-users:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.target-users h4 {
    color: #2c3e50;
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 600;
}

.target-users ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.target-users ul li {
    background: #ffffff;
    padding: 1.2rem;
    border-radius: 8px;
    color: #34495e;
    font-size: 1.1rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #eef2f7;
    position: relative;
}

.target-users ul li::before {
    content: "•";
    color: #3498db;
    position: absolute;
    left: 1rem;
    font-size: 1.2rem;
}

.target-users ul li:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border-color: #3498db;
}

/* Responsive Design for About Section */
@media (max-width: 1024px) {
    .benefits-list,
    .target-users ul {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .about-wordestool {
        padding: 3rem 1rem;
    }

    .about-wordestool h2 {
        font-size: 2.2rem;
    }

    .about-wordestool h3 {
        font-size: 1.4rem;
    }

    .about-content {
        padding: 1.5rem;
    }

    .about-content p {
        font-size: 1.1rem;
    }

    .benefits-list,
    .target-users ul {
        grid-template-columns: 1fr;
    }

    .benefits-list li,
    .target-users ul li {
        font-size: 1rem;
    }
}

/* Contact Section Styles */
.contact-section {
    padding: 4rem 2rem;
    background-color: #fff;
}

.contact-section h2 {
    text-align: center;
    color: #2c3e50;
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.contact-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info {
    padding: 2rem;
}

.contact-info h3 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.contact-info p {
    color: #34495e;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-item i {
    font-size: 1.5rem;
    color: #3498db;
    margin-top: 0.5rem;
}

.contact-item h4 {
    color: #2c3e50;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.contact-item p {
    color: #34495e;
    margin: 0;
}

.contact-item a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s;
}

.contact-item a:hover {
    color: #2980b9;
}

.contact-form {
    background-color: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.contact-form h3 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #3498db;
    outline: none;
}

.submit-btn {
    background-color: #3498db;
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.submit-btn:hover {
    background-color: #2980b9;
}

/* Responsive Design for Contact Section */
@media (max-width: 768px) {
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .contact-section {
        padding: 3rem 1rem;
    }
    .contact-section h2 {
        font-size: 2rem;
    }
    .contact-info h3,
    .contact-form h3 {
        font-size: 1.5rem;
    }
    .contact-info p {
        font-size: 1rem;
    }
}

/* Quiz Instructions Section Styles */
.quiz-instructions {
    padding: 2rem;
    background-color: #f8f9fa;
    border-radius: 10px;
    margin: 2rem 0;
}

.quiz-instructions h2 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 2rem;
    font-size: 2rem;
}

.instructions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.instruction-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.instruction-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.instruction-card i {
    font-size: 2rem;
    color: #3498db;
    margin-bottom: 1rem;
}

.instruction-card h3 {
    color: #2c3e50;
    margin-bottom: 0.8rem;
    font-size: 1.2rem;
}

.instruction-card p {
    color: #666;
    line-height: 1.5;
}

.instruction-card ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.instruction-card ul li {
    color: #666;
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.instruction-card ul li:before {
    content: "•";
    color: #3498db;
    position: absolute;
    left: 0;
}

.tip-card {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border: 2px solid #3498db;
}

.tip-card i {
    color: #f1c40f;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .instructions-grid {
        grid-template-columns: 1fr;
    }
    
    .quiz-instructions {
        padding: 1rem;
    }
    
    .instruction-card {
        padding: 1rem;
    }
}

/* Math Learning Content Section Styles */
.learning-content {
    padding: 3rem 2rem;
    background-color: #f8f9fa;
    margin: 2rem 0;
}

.learning-content h2 {
    text-align: center;
    color: #2c3e50;
    font-size: 2.2rem;
    margin-bottom: 2rem;
}

.content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}

.intro-text {
    font-size: 1.2em;
    line-height: 1.6;
    color: #555;
    margin-bottom: 30px;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Special styling for the final call-to-action paragraph */
.intro-text:last-of-type {
    text-align: center;
    font-size: 1.3rem;
    font-weight: 500;
    color: #2c3e50;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin: 2.5rem 0;
    border: 2px solid #3498db;
    position: relative;
    overflow: hidden;
}

.intro-text:last-of-type::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
}

.intro-text:last-of-type:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

/* Responsive adjustments for the styled paragraph */
@media (max-width: 768px) {
    .intro-text:last-of-type {
        font-size: 1.1rem;
        padding: 1.5rem;
        margin: 2rem 0;
    }
}

.features-section {
    margin-bottom: 3rem;
}

.features-section h3 {
    text-align: center;
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 2rem;
}

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

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.feature-card i {
    font-size: 2.5rem;
    color: #3498db;
    margin-bottom: 1rem;
}

.feature-card h4 {
    color: #2c3e50;
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.feature-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-card ul li {
    color: #666;
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
}

.feature-card ul li:before {
    content: "•";
    color: #3498db;
    position: absolute;
    left: 0;
}

.benefits-section {
    text-align: center;
    margin-top: 3rem;
}

.benefits-section p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #34495e;
    margin-bottom: 2rem;
}

.cta-box {
    background: linear-gradient(135deg, #3498db, #2980b9);
    padding: 2rem;
    border-radius: 10px;
    color: white;
}

.cta-text {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: white;
    color: #3498db;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .learning-content {
        padding: 2rem 1rem;
    }

    .learning-content h2 {
        font-size: 1.8rem;
    }

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

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .cta-box {
        padding: 1.5rem;
    }
}

/* Mathematics History Section Styles */
.math-history {
    padding: 4rem 2rem;
    background-color: #fff;
    margin: 2rem 0;
}

.math-history h2 {
    text-align: center;
    color: #2c3e50;
    font-size: 2.2rem;
    margin-bottom: 2rem;
}

.history-content {
    max-width: 1200px;
    margin: 0 auto;
}

.history-intro {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #34495e;
    margin-bottom: 3rem;
    text-align: center;
}

.history-timeline {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.timeline-item {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

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

.timeline-item::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background-color: #3498db;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.2);
}

.timeline-item h3 {
    color: #2c3e50;
    font-size: 1.4rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #3498db;
}

.timeline-item p {
    color: #666;
    line-height: 1.8;
    font-size: 1.1rem;
}

/* Responsive adjustments for history section */
@media (max-width: 768px) {
    .math-history {
        padding: 2rem 1rem;
    }

    .math-history h2 {
        font-size: 1.8rem;
    }

    .history-intro {
        font-size: 1.1rem;
    }

    .timeline-item {
        padding: 1.5rem;
    }

    .timeline-item h3 {
        font-size: 1.2rem;
    }

    .timeline-item p {
        font-size: 1rem;
    }

    .timeline-item::before {
        left: -15px;
        width: 15px;
        height: 15px;
    }
}

/* Quiz Container and Controls Styling */
#quiz-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

#quiz-section.quiz-active {
    background-color: #f8f9fa;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin: 2rem auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#quiz-container {
    display: none;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 2rem;
}

#quiz-container.active {
    display: block !important;
}

.quiz-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 2px solid #f0f0f0;
    width: 100%;
}

.skip-btn, .stop-btn {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    min-width: 150px;
    display: inline-block;
}

.skip-btn {
    background-color: #f8f9fa;
    color: #3498db;
    border: 2px solid #3498db;
}

.skip-btn:hover {
    background-color: #3498db;
    color: white;
}

.stop-btn {
    background-color: #e74c3c;
    color: white;
}

.stop-btn:hover {
    background-color: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(231, 76, 60, 0.2);
}

/* Quiz Active State Styles */
.quiz-section.quiz-active {
    animation: quizHighlight 2s ease-out;
    position: relative;
}

@keyframes quizHighlight {
    0% {
        box-shadow: 0 0 0 0 rgba(52, 152, 219, 0.4);
    }
    50% {
        box-shadow: 0 0 20px 10px rgba(52, 152, 219, 0.2);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(52, 152, 219, 0);
    }
}

.quiz-section.quiz-active #quiz-container {
    animation: quizContainerHighlight 2s ease-out;
}

@keyframes quizContainerHighlight {
    0% {
        transform: scale(1);
    }
    5% {
        transform: scale(1.02);
    }
    100% {
        transform: scale(1);
    }
}

/* Ensure smooth scrolling behavior for the entire page */
html {
    scroll-behavior: smooth;
}

/* Mobile-specific adjustments */
@media (max-width: 768px) {
    .quiz-section.quiz-active {
        margin: 1rem 0;
    }
    
    .quiz-section.quiz-active #quiz-container {
        margin: 0.5rem;
    }
}

/* Math Topics Detail Section Styling */
.math-topics-detail {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.topic-detail {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 2.5rem;
    padding: 2.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.topic-detail:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.topic-detail h2 {
    color: #2c3e50;
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.8rem;
}

.topic-detail h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: #3498db;
}

.topic-detail p {
    color: #34495e;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

/* Topic-specific styling */
.topic-detail.algebra h2::after {
    background: #e74c3c;
}

.topic-detail.calculus h2::after {
    background: #2ecc71;
}

.topic-detail.geometry h2::after {
    background: #f1c40f;
}

.topic-detail.statistics h2::after {
    background: #9b59b6;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .math-topics-detail {
        padding: 0 1rem;
        margin: 2rem auto;
    }

    .topic-detail {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .topic-detail h2 {
        font-size: 1.8rem;
    }

    .topic-detail p {
        font-size: 1rem;
    }
}

@media screen and (max-width: 480px) {
    .topic-detail {
        padding: 1.2rem;
    }

    .topic-detail h2 {
        font-size: 1.5rem;
    }
}

/* Geography Introduction Section Styles */
.geography-intro {
    padding: 3rem 2rem;
    background-color: #f8f9fa;
    margin: 2rem 0;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.geography-intro h2 {
    color: #2c3e50;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 700;
}

.intro-content {
    max-width: 1200px;
    margin: 0 auto;
}

.intro-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #34495e;
    margin-bottom: 1.5rem;
    text-align: justify;
}

.geography-topics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.topic-item {
    background-color: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.topic-item:hover {
    transform: translateY(-5px);
}

.topic-item h3 {
    color: #2c3e50;
    font-size: 1.4rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.topic-item p {
    color: #666;
    line-height: 1.6;
}

.benefits-section {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    margin: 2rem 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.benefits-section h3 {
    color: #2c3e50;
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

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

.benefits-list li {
    font-size: 1.1rem;
    color: #34495e;
    margin-bottom: 1rem;
    padding-left: 1rem;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .geography-intro {
        padding: 2rem 1rem;
    }

    .geography-intro h2 {
        font-size: 2rem;
    }

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

    .geography-topics {
        grid-template-columns: 1fr;
    }

    .topic-item {
        padding: 1.2rem;
    }
}

/* Geography History Section Styles */
.geography-history {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    margin: 3rem 0;
}

.geography-history h2 {
    color: #2c3e50;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 700;
}

.history-content {
    max-width: 1200px;
    margin: 0 auto;
}

.history-intro {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #34495e;
    text-align: center;
    margin-bottom: 3rem;
    padding: 0 2rem;
}

.geography-history h3 {
    color: #2c3e50;
    font-size: 1.8rem;
    text-align: center;
    margin: 3rem 0 2rem;
    position: relative;
}

.geography-history h3::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    margin: 1rem auto;
    border-radius: 2px;
}

.timeline-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.timeline-item {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.timeline-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.timeline-item h4 {
    color: #2c3e50;
    font-size: 1.4rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #3498db;
}

.timeline-item p {
    color: #34495e;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.timeline-details {
    list-style: none;
    padding: 0;
    margin: 0;
}

.timeline-details li {
    color: #666;
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
}

.timeline-details li::before {
    content: "•";
    color: #3498db;
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

.impact-section {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin: 3rem 0;
    text-align: center;
}

.impact-section h3 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.impact-list {
    list-style: none;
    padding: 0;
    display: inline-block;
    text-align: left;
}

.impact-list li {
    font-size: 1.1rem;
    color: #34495e;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.geography-quote {
    font-size: 1.4rem;
    color: #2c3e50;
    text-align: center;
    font-style: italic;
    margin: 3rem 0;
    padding: 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
}

.geography-quote::before,
.geography-quote::after {
    content: '"';
    font-size: 3rem;
    color: #3498db;
    position: absolute;
    opacity: 0.2;
}

.geography-quote::before {
    top: 0;
    left: 1rem;
}

.geography-quote::after {
    bottom: 0;
    right: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .geography-history {
        padding: 2rem 1rem;
    }

    .geography-history h2 {
        font-size: 2rem;
    }

    .history-intro {
        font-size: 1.1rem;
        padding: 0 1rem;
    }

    .timeline-container {
        grid-template-columns: 1fr;
    }

    .timeline-item {
    padding: 1.5rem;
    }

    .geography-quote {
        font-size: 1.2rem;
        padding: 1.5rem;
    }
}

/* Geography Topics Detail Section Styles */
.geography-topics-detail {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    margin: 3rem 0;
}

.topic-detail {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 3rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.topic-detail:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
}

.topic-detail h2 {
    color: #2c3e50;
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.8rem;
}

.topic-detail h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    border-radius: 2px;
}

.topic-detail p {
    color: #34495e;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.quiz-topics {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    margin: 2rem 0;
}

.quiz-topics h3 {
    color: #2c3e50;
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.topic-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.topic-list li {
    color: #34495e;
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
}

.topic-importance,
.topic-fact,
.topic-tip,
.topic-impact {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 1.5rem;
    border-radius: 10px;
    margin-top: 2rem;
    border-left: 4px solid #3498db;
}

.topic-importance h4,
.topic-fact h4,
.topic-tip h4,
.topic-impact h4 {
    color: #2c3e50;
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
}

.topic-importance p,
.topic-fact p,
.topic-tip p,
.topic-impact p {
    color: #34495e;
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0;
}

/* Topic-specific styling */
.topic-detail.world-geography h2::after {
    background: linear-gradient(90deg, #3498db, #2ecc71);
}

.topic-detail.countries h2::after {
    background: linear-gradient(90deg, #e74c3c, #f39c12);
}

.topic-detail.capitals h2::after {
    background: linear-gradient(90deg, #9b59b6, #3498db);
}

.topic-detail.physical h2::after {
    background: linear-gradient(90deg, #2ecc71, #27ae60);
}

/* Responsive Design */
@media (max-width: 768px) {
    .geography-topics-detail {
        padding: 2rem 1rem;
    }

    .topic-detail {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }

    .topic-detail h2 {
        font-size: 1.8rem;
    }

    .topic-detail p,
    .topic-list li {
        font-size: 1rem;
    }

    .quiz-topics h3 {
        font-size: 1.2rem;
    }

    .topic-importance h4,
    .topic-fact h4,
    .topic-tip h4,
    .topic-impact h4 {
        font-size: 1.1rem;
    }
}

/* History Introduction Section Styles */
.history-intro-section {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    margin: 3rem 0;
}

.history-intro-section h2 {
    color: #2c3e50;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 700;
}

.history-intro-content {
    max-width: 1200px;
    margin: 0 auto;
}

.history-intro-content .intro-text {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #34495e;
    margin-bottom: 2rem;
    text-align: justify;
}

.history-topics,
.history-importance,
.quiz-exploration {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin: 2rem 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.history-topics:hover,
.history-importance:hover,
.quiz-exploration:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.history-topics h3,
.history-importance h3,
.quiz-exploration h3 {
    color: #2c3e50;
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.8rem;
}

.history-topics h3::after,
.history-importance h3::after,
.quiz-exploration h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    border-radius: 2px;
}

.topic-list,
.importance-list,
.exploration-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.topic-list li,
.importance-list li,
.exploration-list li {
    color: #34495e;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
}

.topic-list li::before,
.importance-list li::before,
.exploration-list li::before {
    content: "•";
    color: #3498db;
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

.conclusion-text {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #34495e;
    text-align: center;
    margin-top: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.conclusion-text::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
}

/* Responsive Design for History Introduction Section */
@media (max-width: 768px) {
    .history-intro-section {
        padding: 2rem 1rem;
    }

    .history-intro-section h2 {
        font-size: 2rem;
    }

    .history-intro-content .intro-text {
        font-size: 1.1rem;
    }

    .history-topics,
    .history-importance,
    .quiz-exploration {
        padding: 1.5rem;
    }

    .history-topics h3,
    .history-importance h3,
    .quiz-exploration h3 {
        font-size: 1.4rem;
    }

    .topic-list li,
    .importance-list li,
    .exploration-list li {
        font-size: 1rem;
    }

    .conclusion-text {
        font-size: 1.1rem;
        padding: 1.5rem;
    }
}

/* History Evolution Section Styles */
.history-evolution-section {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    margin: 3rem 0;
}

.history-evolution-section h2 {
    color: #2c3e50;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 700;
}

.evolution-content {
    max-width: 1200px;
    margin: 0 auto;
}

.evolution-intro {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #34495e;
    margin-bottom: 3rem;
    text-align: justify;
}

.evolution-period {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin: 2rem 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.evolution-period:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.evolution-period h3 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.8rem;
}

.evolution-period h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    border-radius: 2px;
}

.evolution-period p {
    color: #34495e;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.period-list,
.achievement-list,
.importance-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
}

.period-list li,
.achievement-list li,
.importance-list li {
    color: #34495e;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
}

.period-list li::before,
.achievement-list li::before,
.importance-list li::before {
    content: "•";
    color: #3498db;
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

.evolution-importance {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem 0;
    border-left: 4px solid #3498db;
}

.evolution-importance h3 {
    color: #2c3e50;
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
}

.history-quote {
    font-size: 1.4rem;
    color: #2c3e50;
    text-align: center;
    font-style: italic;
    margin: 3rem 0;
    padding: 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
}

.history-quote::before,
.history-quote::after {
    content: '"';
    font-size: 3rem;
    color: #3498db;
    position: absolute;
    opacity: 0.2;
}

.history-quote::before {
    top: 0;
    left: 1rem;
}

.history-quote::after {
    bottom: 0;
    right: 1rem;
}

/* Period-specific styling */
.evolution-period.ancient h3::after {
    background: linear-gradient(90deg, #e74c3c, #f39c12);
}

.evolution-period.medieval h3::after {
    background: linear-gradient(90deg, #9b59b6, #3498db);
}

.evolution-period.scientific h3::after {
    background: linear-gradient(90deg, #2ecc71, #27ae60);
}

.evolution-period.modern h3::after {
    background: linear-gradient(90deg, #3498db, #2980b9);
}

/* Responsive Design for History Evolution Section */
@media (max-width: 768px) {
    .history-evolution-section {
        padding: 2rem 1rem;
    }

    .history-evolution-section h2 {
        font-size: 2rem;
    }

    .evolution-intro {
        font-size: 1.1rem;
    }

    .evolution-period {
        padding: 1.5rem;
    }

    .evolution-period h3 {
        font-size: 1.5rem;
    }

    .evolution-period p,
    .period-list li,
    .importance-list li {
        font-size: 1rem;
    }

    .history-quote {
        font-size: 1.2rem;
        padding: 1.5rem;
    }
}

/* Historical Periods Section Styles */
.historical-periods {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    margin: 3rem 0;
}

.periods-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.period-card {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.period-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.period-card h2 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.8rem;
}

.period-card h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    border-radius: 2px;
}

.period-card p {
    color: #34495e;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

:root {
    --primary-color: #2171B5;
    --secondary-color: #6BAED6;
    --accent-color: #BDD7E7;
    --background-color: #EFF3FF;
    --text-color: #2171B5;
    --button-hover: #6BAED6;
    --button-bg: #BDD7E7;
    --button-text: #2171B5;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

.navbar {
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--primary-color);
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.logo h1 {
    color: var(--background-color);
    font-size: 1.5rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--background-color);
    text-decoration: none;
    font-weight: 500;
    transition: color .3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent-color);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
    position: relative;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #fff;
    margin: 5px 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

.hero {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, var(--background-color), var(--accent-color), var(--secondary-color));
    color: var(--primary-color);
    text-align: center;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: var(--accent-color);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 5px;
    transition: background-color .3s, color .3s, box-shadow .3s;
    box-shadow: 0 4px 16px 0 rgba(33, 113, 181, 0.25), 0 1.5px 4px 0 rgba(33, 113, 181, 0.15);
}

.cta-button:hover {
    background-color: var(--secondary-color);
    color: #fff;
    box-shadow: 0 6px 24px 0 rgba(33, 113, 181, 0.30), 0 2px 8px 0 rgba(33, 113, 181, 0.18);
}

.featured-subjects {
    padding: 4rem 2rem;
    border: 2px solid var(--primary-color);
    border-radius: 15px;
    box-shadow: 0 8px 24px rgba(33, 113, 181, 0.15);
    background: linear-gradient(to bottom right, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7));
    backdrop-filter: blur(10px);
    margin: 2rem auto;
    max-width: 1200px;
    position: relative;
}

.featured-subjects::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border-radius: 17px;
    z-index: -1;
    opacity: 0.7;
}

.featured-subjects h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

.footer-section h3,
.subject-card i {
    margin-bottom: 1rem;
}

.footer-content,
.subject-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.subject-card {
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, .1);
    transition: transform .3s;
    text-align: center;
}

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

.subject-card i {
    font-size: 2.5rem;
    color: var(--secondary-color);
}

.subject-card h3 a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 1.4rem;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    padding-bottom: 0.3rem;
}

.subject-card h3 a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 0.3s ease;
}

.subject-card h3 a:hover {
    color: var(--secondary-color);
    transform: translateY(-2px);
}

.subject-card h3 a:hover::after {
    width: 100%;
}

footer {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #fff;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
    background-color: var(--primary-color);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
    gap: 2rem;
    padding: 0 1rem;
}

.footer-section {
    padding: 1rem;
    display: flex;
    flex-direction: column;
}

.footer-section h3 {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
    text-align: left;
    white-space: nowrap;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background: #4ecca3;
}

.about-section .main-description {
    line-height: 1.6;
    margin-bottom: 1rem;
    color: #e0e0e0;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: #e0e0e0;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.footer-links a:hover {
    color: #4ecca3;
}

.newsletter-form {
    margin-bottom: 1.5rem;
}

.newsletter-form input {
    width: 100%;
    padding: 0.8rem;
    border: none;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    margin-bottom: 0.5rem;
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.newsletter-form button {
    width: 100%;
    padding: 0.8rem;
    background: #4ecca3;
    color: #1a1a2e;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-weight: 600;
}

.newsletter-form button:hover {
    background: #45b392;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.social-icon {
    color: #e0e0e0;
    font-size: 1.5rem;
    transition: transform 0.3s ease, color 0.3s ease;
}

.social-icon:hover {
    color: #4ecca3;
    transform: translateY(-3px);
}

.contact-info {
    margin-top: 1rem;
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #e0e0e0;
}

.contact-info a {
    color: #e0e0e0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: #4ecca3;
}

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

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

.footer-section ul li {
    margin-bottom: .5rem;
}

.footer-section a {
    color: var(--background-color);
    text-decoration: none;
    transition: color .3s;
}

.social-links a {
    font-size: 1.5rem;
}

@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
    .about-section {
        grid-column: 1/-1;
    }
}

@media (max-width: 912px) {
    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        right: -300px;
        width: 280px;
        height: 100vh;
        background-color: var(--primary-color);
        padding: 5rem 1.5rem 2rem;
        flex-direction: column;
        gap: 1.5rem;
        z-index: 1000;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease-in-out;
        border-radius: 0 0 0 10px;
    }
    .nav-links.active {
        display: flex;
        right: 0;
    }
    .mobile-menu-btn {
        display: block;
        position: relative;
        z-index: 1001;
    }
    .mobile-menu-btn span {
        display: block;
        width: 25px;
        height: 3px;
        background-color: #fff;
        margin: 5px 0;
        transition: transform 0.3s ease;
        
    }
    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }
    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
    .nav-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 999;
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    .nav-overlay.active {
        display: block;
        opacity: 1;
    }
    .hero h2 {
        font-size: 2rem;
    }
    .hero p {
        font-size: 1rem;
    }
}

@media (width: 912px) and (height: 1368px) {
    body.tablet-portrait .nav-links {
        padding-top: 8rem;
    }
    body.tablet-portrait .hero {
        padding: 6rem 2rem;
    }
    body.tablet-portrait .hero h2 {
        font-size: 2.2rem;
    }
    body.tablet-portrait .hero p {
        font-size: 1.1rem;
    }
    body.tablet-portrait .featured-subjects {
        padding: 6rem 2rem;
    }
    body.tablet-portrait .subject-card {
        padding: 2.5rem;
    }
    body.tablet-portrait .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        padding-top: 5rem;
    }
    .hero h2 {
        font-size: 1.8rem;
    }
    .hero p {
        font-size: 0.9rem;
    }
}

.focus {
    outline: 3px solid var(--accent-color);
    outline-offset: 2px;
}

@media print {
    .cta-button,
    .navbar,
    footer {
        display: none;
    }
    body {
        background-color: #fff;
        color: #000;
    }
}

.text-center {
    text-align: center;
    margin-top: 3rem;
}

.text-center h1 {
    margin-bottom: 1rem;
}

/* About Wordestool Section */
.about-wordestool {
    padding: 5rem 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.about-wordestool::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
}

.about-wordestool h2 {
    color: #2c3e50;
    font-size: 2.8rem;
    text-align: center;
    margin-bottom: 1rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.about-wordestool h3 {
    color: #3498db;
    font-size: 1.6rem;
    text-align: center;
    margin-bottom: 3rem;
    font-weight: 500;
}

.about-content {
    max-width: 1000px;
    margin: 0 auto;
    background: #ffffff;
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #eef2f7;
}

.about-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.about-content p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #34495e;
    margin-bottom: 2rem;
    text-align: center;
}

.benefits-list {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.benefits-list li {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 12px;
    color: #2c3e50;
    font-size: 1.1rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #eef2f7;
    position: relative;
    overflow: hidden;
}

.benefits-list li::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: #3498db;
    transition: all 0.3s ease;
}

.benefits-list li:hover {
    transform: translateX(5px);
    background: #e3f2fd;
    border-color: #3498db;
}

.benefits-list li:hover::before {
    width: 100%;
    opacity: 0.1;
}

.target-users {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    padding: 2rem;
    border-radius: 12px;
    margin-top: 3rem;
    border: 1px solid #eef2f7;
    transition: all 0.3s ease;
}

.target-users:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.target-users h4 {
    color: #2c3e50;
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 600;
}

.target-users ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.target-users ul li {
    background: #ffffff;
    padding: 1.2rem;
    border-radius: 8px;
    color: #34495e;
    font-size: 1.1rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #eef2f7;
    position: relative;
}

.target-users ul li::before {
    content: "•";
    color: #3498db;
    position: absolute;
    left: 1rem;
    font-size: 1.2rem;
}

.target-users ul li:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border-color: #3498db;
}

/* Responsive Design for About Section */
@media (max-width: 1024px) {
    .benefits-list,
    .target-users ul {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .about-wordestool {
        padding: 3rem 1rem;
    }

    .about-wordestool h2 {
        font-size: 2.2rem;
    }

    .about-wordestool h3 {
        font-size: 1.4rem;
    }

    .about-content {
        padding: 1.5rem;
    }

    .about-content p {
        font-size: 1.1rem;
    }

    .benefits-list,
    .target-users ul {
        grid-template-columns: 1fr;
    }

    .benefits-list li,
    .target-users ul li {
        font-size: 1rem;
    }
}

/* Contact Section Styles */
.contact-section {
    padding: 4rem 2rem;
    background-color: #fff;
}

.contact-section h2 {
    text-align: center;
    color: #2c3e50;
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.contact-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info {
    padding: 2rem;
}

.contact-info h3 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.contact-info p {
    color: #34495e;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-item i {
    font-size: 1.5rem;
    color: #3498db;
    margin-top: 0.5rem;
}

.contact-item h4 {
    color: #2c3e50;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.contact-item p {
    color: #34495e;
    margin: 0;
}

.contact-item a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s;
}

.contact-item a:hover {
    color: #2980b9;
}

.contact-form {
    background-color: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.contact-form h3 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #3498db;
    outline: none;
}

.submit-btn {
    background-color: #3498db;
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.submit-btn:hover {
    background-color: #2980b9;
}

/* Responsive Design for Contact Section */
@media (max-width: 768px) {
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .contact-section {
        padding: 3rem 1rem;
    }
    .contact-section h2 {
        font-size: 2rem;
    }
    .contact-info h3,
    .contact-form h3 {
        font-size: 1.5rem;
    }
    .contact-info p {
        font-size: 1rem;
    }
}

/* Quiz Instructions Section Styles */
.quiz-instructions {
    padding: 2rem;
    background-color: #f8f9fa;
    border-radius: 10px;
    margin: 2rem 0;
}

.quiz-instructions h2 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 2rem;
    font-size: 2rem;
}

.instructions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.instruction-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.instruction-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.instruction-card i {
    font-size: 2rem;
    color: #3498db;
    margin-bottom: 1rem;
}

.instruction-card h3 {
    color: #2c3e50;
    margin-bottom: 0.8rem;
    font-size: 1.2rem;
}

.instruction-card p {
    color: #666;
    line-height: 1.5;
}

.instruction-card ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.instruction-card ul li {
    color: #666;
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.instruction-card ul li:before {
    content: "•";
    color: #3498db;
    position: absolute;
    left: 0;
}

.tip-card {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border: 2px solid #3498db;
}

.tip-card i {
    color: #f1c40f;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .instructions-grid {
        grid-template-columns: 1fr;
    }
    
    .quiz-instructions {
        padding: 1rem;
    }
    
    .instruction-card {
        padding: 1rem;
    }
}

/* Math Learning Content Section Styles */
.learning-content {
    padding: 3rem 2rem;
    background-color: #f8f9fa;
    margin: 2rem 0;
}

.learning-content h2 {
    text-align: center;
    color: #2c3e50;
    font-size: 2.2rem;
    margin-bottom: 2rem;
}

.content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}

.intro-text {
    font-size: 1.2em;
    line-height: 1.6;
    color: #555;
    margin-bottom: 30px;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Special styling for the final call-to-action paragraph */
.intro-text:last-of-type {
    text-align: center;
    font-size: 1.3rem;
    font-weight: 500;
    color: #2c3e50;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin: 2.5rem 0;
    border: 2px solid #3498db;
    position: relative;
    overflow: hidden;
}

.intro-text:last-of-type::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
}

.intro-text:last-of-type:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

/* Responsive adjustments for the styled paragraph */
@media (max-width: 768px) {
    .intro-text:last-of-type {
        font-size: 1.1rem;
        padding: 1.5rem;
        margin: 2rem 0;
    }
}

.features-section {
    margin-bottom: 3rem;
}

.features-section h3 {
    text-align: center;
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 2rem;
}

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

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.feature-card i {
    font-size: 2.5rem;
    color: #3498db;
    margin-bottom: 1rem;
}

.feature-card h4 {
    color: #2c3e50;
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.feature-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-card ul li {
    color: #666;
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
}

.feature-card ul li:before {
    content: "•";
    color: #3498db;
    position: absolute;
    left: 0;
}

.benefits-section {
    text-align: center;
    margin-top: 3rem;
}

.benefits-section p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #34495e;
    margin-bottom: 2rem;
}

.cta-box {
    background: linear-gradient(135deg, #3498db, #2980b9);
    padding: 2rem;
    border-radius: 10px;
    color: white;
}

.cta-text {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: white;
    color: #3498db;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .learning-content {
        padding: 2rem 1rem;
    }

    .learning-content h2 {
        font-size: 1.8rem;
    }

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

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .cta-box {
        padding: 1.5rem;
    }
}

/* Mathematics History Section Styles */
.math-history {
    padding: 4rem 2rem;
    background-color: #fff;
    margin: 2rem 0;
}

.math-history h2 {
    text-align: center;
    color: #2c3e50;
    font-size: 2.2rem;
    margin-bottom: 2rem;
}

.history-content {
    max-width: 1200px;
    margin: 0 auto;
}

.history-intro {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #34495e;
    margin-bottom: 3rem;
    text-align: center;
}

.history-timeline {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.timeline-item {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

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

.timeline-item::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background-color: #3498db;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.2);
}

.timeline-item h3 {
    color: #2c3e50;
    font-size: 1.4rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #3498db;
}

.timeline-item p {
    color: #666;
    line-height: 1.8;
    font-size: 1.1rem;
}

/* Responsive adjustments for history section */
@media (max-width: 768px) {
    .math-history {
        padding: 2rem 1rem;
    }

    .math-history h2 {
        font-size: 1.8rem;
    }

    .history-intro {
        font-size: 1.1rem;
    }

    .timeline-item {
        padding: 1.5rem;
    }

    .timeline-item h3 {
        font-size: 1.2rem;
    }

    .timeline-item p {
        font-size: 1rem;
    }

    .timeline-item::before {
        left: -15px;
        width: 15px;
        height: 15px;
    }
}

/* Quiz Container and Controls Styling */
#quiz-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

#quiz-section.quiz-active {
    background-color: #f8f9fa;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin: 2rem auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#quiz-container {
    display: none;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 2rem;
}

#quiz-container.active {
    display: block !important;
}

.quiz-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 2px solid #f0f0f0;
    width: 100%;
}

.skip-btn, .stop-btn {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    min-width: 150px;
    display: inline-block;
}

.skip-btn {
    background-color: #f8f9fa;
    color: #3498db;
    border: 2px solid #3498db;
}

.skip-btn:hover {
    background-color: #3498db;
    color: white;
}

.stop-btn {
    background-color: #e74c3c;
    color: white;
}

.stop-btn:hover {
    background-color: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(231, 76, 60, 0.2);
}

/* Quiz Active State Styles */
.quiz-section.quiz-active {
    animation: quizHighlight 2s ease-out;
    position: relative;
}

@keyframes quizHighlight {
    0% {
        box-shadow: 0 0 0 0 rgba(52, 152, 219, 0.4);
    }
    50% {
        box-shadow: 0 0 20px 10px rgba(52, 152, 219, 0.2);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(52, 152, 219, 0);
    }
}

.quiz-section.quiz-active #quiz-container {
    animation: quizContainerHighlight 2s ease-out;
}

@keyframes quizContainerHighlight {
    0% {
        transform: scale(1);
    }
    5% {
        transform: scale(1.02);
    }
    100% {
        transform: scale(1);
    }
}

/* Ensure smooth scrolling behavior for the entire page */
html {
    scroll-behavior: smooth;
}

/* Mobile-specific adjustments */
@media (max-width: 768px) {
    .quiz-section.quiz-active {
        margin: 1rem 0;
    }
    
    .quiz-section.quiz-active #quiz-container {
        margin: 0.5rem;
    }
}

/* Math Topics Detail Section Styling */
.math-topics-detail {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.topic-detail {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 2.5rem;
    padding: 2.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.topic-detail:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.topic-detail h2 {
    color: #2c3e50;
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.8rem;
}

.topic-detail h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: #3498db;
}

.topic-detail p {
    color: #34495e;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

/* Topic-specific styling */
.topic-detail.algebra h2::after {
    background: #e74c3c;
}

.topic-detail.calculus h2::after {
    background: #2ecc71;
}

.topic-detail.geometry h2::after {
    background: #f1c40f;
}

.topic-detail.statistics h2::after {
    background: #9b59b6;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .math-topics-detail {
        padding: 0 1rem;
        margin: 2rem auto;
    }

    .topic-detail {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .topic-detail h2 {
        font-size: 1.8rem;
    }

    .topic-detail p {
        font-size: 1rem;
    }
}

@media screen and (max-width: 480px) {
    .topic-detail {
        padding: 1.2rem;
    }

    .topic-detail h2 {
        font-size: 1.5rem;
    }
}

/* Geography Introduction Section Styles */
.geography-intro {
    padding: 3rem 2rem;
    background-color: #f8f9fa;
    margin: 2rem 0;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.geography-intro h2 {
    color: #2c3e50;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 700;
}

.intro-content {
    max-width: 1200px;
    margin: 0 auto;
}

.intro-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #34495e;
    margin-bottom: 1.5rem;
    text-align: justify;
}

.geography-topics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.topic-item {
    background-color: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.topic-item:hover {
    transform: translateY(-5px);
}

.topic-item h3 {
    color: #2c3e50;
    font-size: 1.4rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.topic-item p {
    color: #666;
    line-height: 1.6;
}

.benefits-section {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    margin: 2rem 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.benefits-section h3 {
    color: #2c3e50;
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

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

.benefits-list li {
    font-size: 1.1rem;
    color: #34495e;
    margin-bottom: 1rem;
    padding-left: 1rem;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .geography-intro {
        padding: 2rem 1rem;
    }

    .geography-intro h2 {
        font-size: 2rem;
    }

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

    .geography-topics {
        grid-template-columns: 1fr;
    }

    .topic-item {
        padding: 1.2rem;
    }
}

/* Geography History Section Styles */
.geography-history {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    margin: 3rem 0;
}

.geography-history h2 {
    color: #2c3e50;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 700;
}

.history-content {
    max-width: 1200px;
    margin: 0 auto;
}

.history-intro {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #34495e;
    text-align: center;
    margin-bottom: 3rem;
    padding: 0 2rem;
}

.geography-history h3 {
    color: #2c3e50;
    font-size: 1.8rem;
    text-align: center;
    margin: 3rem 0 2rem;
    position: relative;
}

.geography-history h3::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    margin: 1rem auto;
    border-radius: 2px;
}

.timeline-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.timeline-item {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.timeline-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.timeline-item h4 {
    color: #2c3e50;
    font-size: 1.4rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #3498db;
}

.timeline-item p {
    color: #34495e;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.timeline-details {
    list-style: none;
    padding: 0;
    margin: 0;
}

.timeline-details li {
    color: #666;
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
}

.timeline-details li::before {
    content: "•";
    color: #3498db;
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

.impact-section {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin: 3rem 0;
    text-align: center;
}

.impact-section h3 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.impact-list {
    list-style: none;
    padding: 0;
    display: inline-block;
    text-align: left;
}

.impact-list li {
    font-size: 1.1rem;
    color: #34495e;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.geography-quote {
    font-size: 1.4rem;
    color: #2c3e50;
    text-align: center;
    font-style: italic;
    margin: 3rem 0;
    padding: 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
}

.geography-quote::before,
.geography-quote::after {
    content: '"';
    font-size: 3rem;
    color: #3498db;
    position: absolute;
    opacity: 0.2;
}

.geography-quote::before {
    top: 0;
    left: 1rem;
}

.geography-quote::after {
    bottom: 0;
    right: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .geography-history {
        padding: 2rem 1rem;
    }

    .geography-history h2 {
        font-size: 2rem;
    }

    .history-intro {
        font-size: 1.1rem;
        padding: 0 1rem;
    }

    .timeline-container {
        grid-template-columns: 1fr;
    }

    .timeline-item {
    padding: 1.5rem;
    }

    .geography-quote {
        font-size: 1.2rem;
        padding: 1.5rem;
    }
}

/* Geography Topics Detail Section Styles */
.geography-topics-detail {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    margin: 3rem 0;
}

.topic-detail {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 3rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.topic-detail:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
}

.topic-detail h2 {
    color: #2c3e50;
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.8rem;
}

.topic-detail h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    border-radius: 2px;
}

.topic-detail p {
    color: #34495e;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.quiz-topics {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    margin: 2rem 0;
}

.quiz-topics h3 {
    color: #2c3e50;
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.topic-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.topic-list li {
    color: #34495e;
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
}

.topic-importance,
.topic-fact,
.topic-tip,
.topic-impact {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 1.5rem;
    border-radius: 10px;
    margin-top: 2rem;
    border-left: 4px solid #3498db;
}

.topic-importance h4,
.topic-fact h4,
.topic-tip h4,
.topic-impact h4 {
    color: #2c3e50;
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
}

.topic-importance p,
.topic-fact p,
.topic-tip p,
.topic-impact p {
    color: #34495e;
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0;
}

/* Topic-specific styling */
.topic-detail.world-geography h2::after {
    background: linear-gradient(90deg, #3498db, #2ecc71);
}

.topic-detail.countries h2::after {
    background: linear-gradient(90deg, #e74c3c, #f39c12);
}

.topic-detail.capitals h2::after {
    background: linear-gradient(90deg, #9b59b6, #3498db);
}

.topic-detail.physical h2::after {
    background: linear-gradient(90deg, #2ecc71, #27ae60);
}

/* Responsive Design */
@media (max-width: 768px) {
    .geography-topics-detail {
        padding: 2rem 1rem;
    }

    .topic-detail {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }

    .topic-detail h2 {
        font-size: 1.8rem;
    }

    .topic-detail p,
    .topic-list li {
        font-size: 1rem;
    }

    .quiz-topics h3 {
        font-size: 1.2rem;
    }

    .topic-importance h4,
    .topic-fact h4,
    .topic-tip h4,
    .topic-impact h4 {
        font-size: 1.1rem;
    }
}

/* History Introduction Section Styles */
.history-intro-section {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    margin: 3rem 0;
}

.history-intro-section h2 {
    color: #2c3e50;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 700;
}

.history-intro-content {
    max-width: 1200px;
    margin: 0 auto;
}

.history-intro-content .intro-text {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #34495e;
    margin-bottom: 2rem;
    text-align: justify;
}

.history-topics,
.history-importance,
.quiz-exploration {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin: 2rem 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.history-topics:hover,
.history-importance:hover,
.quiz-exploration:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.history-topics h3,
.history-importance h3,
.quiz-exploration h3 {
    color: #2c3e50;
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.8rem;
}

.history-topics h3::after,
.history-importance h3::after,
.quiz-exploration h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    border-radius: 2px;
}

.topic-list,
.importance-list,
.exploration-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.topic-list li,
.importance-list li,
.exploration-list li {
    color: #34495e;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
}

.topic-list li::before,
.importance-list li::before,
.exploration-list li::before {
    content: "•";
    color: #3498db;
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

.conclusion-text {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #34495e;
    text-align: center;
    margin-top: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.conclusion-text::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
}

/* Responsive Design for History Introduction Section */
@media (max-width: 768px) {
    .history-intro-section {
        padding: 2rem 1rem;
    }

    .history-intro-section h2 {
        font-size: 2rem;
    }

    .history-intro-content .intro-text {
        font-size: 1.1rem;
    }

    .history-topics,
    .history-importance,
    .quiz-exploration {
        padding: 1.5rem;
    }

    .history-topics h3,
    .history-importance h3,
    .quiz-exploration h3 {
        font-size: 1.4rem;
    }

    .topic-list li,
    .importance-list li,
    .exploration-list li {
        font-size: 1rem;
    }

    .conclusion-text {
        font-size: 1.1rem;
        padding: 1.5rem;
    }
}

/* History Evolution Section Styles */
.history-evolution-section {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    margin: 3rem 0;
}

.history-evolution-section h2 {
    color: #2c3e50;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 700;
}

.evolution-content {
    max-width: 1200px;
    margin: 0 auto;
}

.evolution-intro {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #34495e;
    margin-bottom: 3rem;
    text-align: justify;
}

.evolution-period {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin: 2rem 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.evolution-period:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.evolution-period h3 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.8rem;
}

.evolution-period h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    border-radius: 2px;
}

.evolution-period p {
    color: #34495e;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.period-list,
.achievement-list,
.importance-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
}

.period-list li,
.achievement-list li,
.importance-list li {
    color: #34495e;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
}

.period-list li::before,
.achievement-list li::before,
.importance-list li::before {
    content: "•";
    color: #3498db;
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

.evolution-importance {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem 0;
    border-left: 4px solid #3498db;
}

.evolution-importance h3 {
    color: #2c3e50;
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
}

.history-quote {
    font-size: 1.4rem;
    color: #2c3e50;
    text-align: center;
    font-style: italic;
    margin: 3rem 0;
    padding: 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
}

.history-quote::before,
.history-quote::after {
    content: '"';
    font-size: 3rem;
    color: #3498db;
    position: absolute;
    opacity: 0.2;
}

.history-quote::before {
    top: 0;
    left: 1rem;
}

.history-quote::after {
    bottom: 0;
    right: 1rem;
}

/* Period-specific styling */
.evolution-period.ancient h3::after {
    background: linear-gradient(90deg, #e74c3c, #f39c12);
}

.evolution-period.medieval h3::after {
    background: linear-gradient(90deg, #9b59b6, #3498db);
}

.evolution-period.scientific h3::after {
    background: linear-gradient(90deg, #2ecc71, #27ae60);
}

.evolution-period.modern h3::after {
    background: linear-gradient(90deg, #3498db, #2980b9);
}

/* Responsive Design for History Evolution Section */
@media (max-width: 768px) {
    .history-evolution-section {
        padding: 2rem 1rem;
    }

    .history-evolution-section h2 {
        font-size: 2rem;
    }

    .evolution-intro {
        font-size: 1.1rem;
    }

    .evolution-period {
        padding: 1.5rem;
    }

    .evolution-period h3 {
        font-size: 1.5rem;
    }

    .evolution-period p,
    .period-list li,
    .importance-list li {
        font-size: 1rem;
    }

    .history-quote {
        font-size: 1.2rem;
        padding: 1.5rem;
    }
}

/* Historical Periods Section Styles */
.historical-periods {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    margin: 3rem 0;
}

.periods-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.period-card {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.period-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.period-card h2 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.8rem;
}

.period-card h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    border-radius: 2px;
}

.period-card p {
    color: #34495e;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.period-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
}

.period-list li {
    color: #34495e;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
}

.period-list li::before {
    content: "•";
    color: #3498db;
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

/* Period-specific styling */
.period-card.ancient h2::after {
    background: linear-gradient(90deg, #e74c3c, #f39c12);
}

.period-card.medieval h2::after {
    background: linear-gradient(90deg, #9b59b6, #3498db);
}

.period-card.modern h2::after {
    background: linear-gradient(90deg, #2ecc71, #27ae60);
}

.period-card.world h2::after {
    background: linear-gradient(90deg, #3498db, #2980b9);
}

/* Responsive Design for Historical Periods Section */
@media (max-width: 768px) {
    .historical-periods {
        padding: 2rem 1rem;
    }

    .period-card {
        padding: 1.5rem;
    }

    .period-card h2 {
        font-size: 1.5rem;
    }

    .period-card p,
    .period-list li {
        font-size: 1rem;
    }
}

/* Science Introduction Section Styles */
.science-intro-section {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    margin: 3rem 0;
}

.science-intro-section h2 {
    color: #2c3e50;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 700;
}

.science-intro-content {
    max-width: 1200px;
    margin: 0 auto;
}

.science-intro-content .intro-text {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #34495e;
    margin-bottom: 2rem;
    text-align: justify;
}

.science-branches,
.scientific-revolution,
.science-importance,
.quiz-exploration {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin: 2rem 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.science-branches:hover,
.scientific-revolution:hover,
.science-importance:hover,
.quiz-exploration:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.science-branches h3,
.scientific-revolution h3,
.science-importance h3,
.quiz-exploration h3 {
    color: #2c3e50;
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.8rem;
}

.science-branches h3::after,
.scientific-revolution h3::after,
.science-importance h3::after,
.quiz-exploration h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    border-radius: 2px;
}

.branches-list,
.breakthroughs-list,
.importance-list,
.exploration-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.branches-list li,
.breakthroughs-list li,
.importance-list li,
.exploration-list li {
    color: #34495e;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
}

.branches-list li::before,
.breakthroughs-list li::before,
.importance-list li::before,
.exploration-list li::before {
    content: "•";
    color: #3498db;
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

.science-quote {
    font-size: 1.4rem;
    color: #2c3e50;
    text-align: center;
    font-style: italic;
    margin: 3rem 0;
    padding: 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
}

.science-quote::before,
.science-quote::after {
    content: '"';
    font-size: 3rem;
    color: #3498db;
    position: absolute;
    opacity: 0.2;
}

.science-quote::before {
    top: 0;
    left: 1rem;
}

.science-quote::after {
    bottom: 0;
    right: 1rem;
}

/* Responsive Design for Science Introduction Section */
@media (max-width: 768px) {
    .science-intro-section {
        padding: 2rem 1rem;
    }

    .science-intro-section h2 {
        font-size: 2rem;
    }

    .science-intro-content .intro-text {
        font-size: 1.1rem;
    }

    .science-branches,
    .scientific-revolution,
    .science-importance,
    .quiz-exploration {
        padding: 1.5rem;
    }

    .science-branches h3,
    .scientific-revolution h3,
    .science-importance h3,
    .quiz-exploration h3 {
        font-size: 1.4rem;
    }

    .branches-list li,
    .breakthroughs-list li,
    .importance-list li,
    .exploration-list li {
        font-size: 1rem;
    }

    .science-quote {
    font-size: 1.2rem;
        padding: 1.5rem;
    }
}

/* Science Evolution Section Styles */
.science-evolution-section {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    margin: 3rem 0;
}

.science-evolution-section h2 {
    color: #2c3e50;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 700;
}

.evolution-content {
    max-width: 1200px;
    margin: 0 auto;
}

.evolution-intro {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #34495e;
    margin-bottom: 3rem;
    text-align: justify;
}

.evolution-period {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin: 2rem 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.evolution-period:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.evolution-period h3 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.8rem;
}

.evolution-period h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    border-radius: 2px;
}

.evolution-period h4 {
    color: #2c3e50;
    font-size: 1.4rem;
    margin: 1.5rem 0 1rem;
}

.period-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
}

.period-list li {
    color: #34495e;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
}

.period-list li::before {
    content: "•";
    color: #3498db;
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

.period-list ul {
    list-style: none;
    padding-left: 1.5rem;
    margin-top: 0.5rem;
}

.period-list ul li {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.evolution-importance {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem 0;
    border-left: 4px solid #3498db;
}

.evolution-importance h3 {
    color: #2c3e50;
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
}

.importance-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.importance-list li {
    color: #34495e;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.timeline-container {
    margin: 3rem 0;
    overflow-x: auto;
    padding: 1rem 0;
}

.timeline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-width: 800px;
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    transform: translateY(-50%);
}

.timeline-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
}

.timeline-item .year {
    font-size: 1rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.timeline-item .event {
    font-size: 1.2rem;
    color: #3498db;
    background: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.discussion-prompt {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin: 2rem 0;
    text-align: center;
}

.discussion-prompt h3 {
    color: #2c3e50;
    font-size: 1.6rem;
    margin-bottom: 1rem;
}

.discussion-prompt p {
    color: #34495e;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.prompt-options {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.prompt-options li {
    color: #34495e;
    font-size: 1.1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.prompt-options li:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Period-specific styling */
.evolution-period.ancient h3::after {
    background: linear-gradient(90deg, #e74c3c, #f39c12);
}

.evolution-period.revolution h3::after {
    background: linear-gradient(90deg, #9b59b6, #3498db);
}

.evolution-period.nineteenth h3::after {
    background: linear-gradient(90deg, #2ecc71, #27ae60);
}

.evolution-period.modern h3::after {
    background: linear-gradient(90deg, #3498db, #2980b9);
}

/* Responsive Design for Science Evolution Section */
@media (max-width: 768px) {
    .science-evolution-section {
        padding: 2rem 1rem;
    }

    .science-evolution-section h2 {
        font-size: 2rem;
    }

    .evolution-intro {
        font-size: 1.1rem;
    }

    .evolution-period {
        padding: 1.5rem;
    }

    .evolution-period h3 {
        font-size: 1.5rem;
    }

    .evolution-period h4 {
        font-size: 1.2rem;
    }

    .evolution-period p,
    .period-list li,
    .importance-list li {
        font-size: 1rem;
    }

    .timeline {
        min-width: 600px;
    }

    .timeline-item .year {
        font-size: 0.9rem;
    }

    .timeline-item .event {
        font-size: 1rem;
    }

    .discussion-prompt {
        padding: 1.5rem;
    }

    .discussion-prompt h3 {
        font-size: 1.4rem;
    }

    .discussion-prompt p {
        font-size: 1.1rem;
    }

    .prompt-options li {
        font-size: 1rem;
    }
}

/* Quiz Modal Section */
#quiz-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

#quiz-modal-content {
    background-color: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    width: 90%;
}

#quiz-modal-content h2 {
    color: #2c3e50;
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

#quiz-modal-content p {
    color: #34495e;
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

#quiz-modal-content .quiz-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
}

#quiz-modal-content .skip-btn,
#quiz-modal-content .stop-btn {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    min-width: 150px;
}

#quiz-modal-content .skip-btn {
    background-color: #f8f9fa;
    color: #3498db;
    border: 2px solid #3498db;
}

#quiz-modal-content .skip-btn:hover {
    background-color: #3498db;
    color: white;
}

#quiz-modal-content .stop-btn {
    background-color: #e74c3c;
    color: white;
}

#quiz-modal-content .stop-btn:hover {
    background-color: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(231, 76, 60, 0.2);
}

/* Science Branches Section Styles */
.science-branches-section {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    margin: 3rem 0;
}

.branch-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 2rem;
}

.branch-card {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.branch-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.branch-card h2 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.8rem;
}

.branch-card h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    border-radius: 2px;
}

.branch-intro {
    color: #34495e;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.key-areas,
.core-concepts,
.focus-areas,
.research-frontiers {
    margin-bottom: 2rem;
}

.branch-card h3 {
    color: #2c3e50;
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.area-list,
.concept-list,
.frontier-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.area-list li,
.concept-list li,
.frontier-list li {
    color: #34495e;
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
}

.area-list li::before,
.concept-list li::before,
.frontier-list li::before {
    content: "•";
    color: #3498db;
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

.did-you-know,
.real-world-impact,
.fascinating-fact,
.observation-tip {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
        padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #3498db;
}

.did-you-know h3,
.real-world-impact h3,
.fascinating-fact h3,
.observation-tip h3 {
    color: #2c3e50;
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
}

.did-you-know p,
.real-world-impact p,
.fascinating-fact p,
.observation-tip p {
    color: #34495e;
        font-size: 1.1rem;
    line-height: 1.6;
    margin: 0;
}

/* Branch-specific styling */
.branch-card.physics h2::after {
    background: linear-gradient(90deg, #e74c3c, #f39c12);
}

.branch-card.chemistry h2::after {
    background: linear-gradient(90deg, #9b59b6, #3498db);
}

.branch-card.biology h2::after {
    background: linear-gradient(90deg, #2ecc71, #27ae60);
}

.branch-card.astronomy h2::after {
    background: linear-gradient(90deg, #3498db, #2980b9);
}

.branch-card.physics .did-you-know {
    border-left-color: #e74c3c;
}

.branch-card.chemistry .real-world-impact {
    border-left-color: #9b59b6;
}

.branch-card.biology .fascinating-fact {
    border-left-color: #2ecc71;
}

.branch-card.astronomy .observation-tip {
    border-left-color: #3498db;
}

/* Responsive Design for Science Branches Section */
@media (max-width: 768px) {
    .science-branches-section {
        padding: 2rem 1rem;
    }

    .branch-content {
        grid-template-columns: 1fr;
    }

    .branch-card {
        padding: 1.5rem;
    }

    .branch-card h2 {
        font-size: 1.5rem;
    }

    .branch-intro {
        font-size: 1rem;
    }

    .branch-card h3 {
        font-size: 1.2rem;
    }

    .area-list li,
    .concept-list li,
    .frontier-list li {
        font-size: 1rem;
    }

    .did-you-know,
    .real-world-impact,
    .fascinating-fact,
    .observation-tip {
        padding: 1.2rem;
    }

    .did-you-know h3,
    .real-world-impact h3,
    .fascinating-fact h3,
    .observation-tip h3 {
        font-size: 1.1rem;
    }

    .did-you-know p,
    .real-world-impact p,
    .fascinating-fact p,
    .observation-tip p {
        font-size: 1rem;
    }
}

/* Detailed Technology Topics Section Styles */
.detailed-tech-topics {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.detailed-tech-topics h2 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 2rem;
    font-size: 2.5rem;
}

.tech-topic {
    background: #ffffff;
    border-radius: 10px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.tech-topic:hover {
    transform: translateY(-5px);
}

.tech-topic h3 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid #3498db;
    padding-bottom: 0.5rem;
}

.tech-topic > p {
    color: #34495e;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.topic-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.detail-group {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #3498db;
}

.detail-group h4 {
    color: #2c3e50;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.detail-group p {
    color: #34495e;
    line-height: 1.5;
}

.detail-group ul {
    list-style-type: none;
    padding: 0;
}

.detail-group ul li {
    color: #34495e;
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.detail-group ul li:before {
    content: "•";
    color: #3498db;
    position: absolute;
    left: 0;
}

.topic-conclusion {
    font-style: italic;
    color: #7f8c8d;
    border-top: 1px solid #ecf0f1;
    padding-top: 1rem;
    margin-top: 1rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .detailed-tech-topics {
        padding: 1rem;
    }

    .tech-topic {
        padding: 1.5rem;
    }

    .topic-details {
        grid-template-columns: 1fr;
    }

    .detail-group {
        padding: 1rem;
    }
}

/* Terms of Service Page Styles */
.terms-section {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.terms-container {
    background: #ffffff;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.terms-container h1 {
    color: #2c3e50;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
}

.last-updated {
    text-align: center;
    color: #7f8c8d;
    font-style: italic;
    margin-bottom: 2rem;
}

.terms-intro {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    border-left: 4px solid #3498db;
}

.terms-intro p {
    color: #34495e;
    line-height: 1.6;
    margin: 0;
}

.terms-content {
    color: #2c3e50;
}

.terms-content .terms-section {
    margin-bottom: 2rem;
    padding: 0;
}

.terms-content h2 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid #3498db;
    padding-bottom: 0.5rem;
}

.terms-content h3 {
    color: #2c3e50;
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.permitted-use {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 1.5rem 0;
}

.allowed, .prohibited {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
}

.allowed {
    border-left: 4px solid #2ecc71;
}

.prohibited {
    border-left: 4px solid #e74c3c;
}

.check-list, .cross-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.check-list li, .cross-list li {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.check-list i {
    color: #2ecc71;
}

.cross-list i {
    color: #e74c3c;
}

.content-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.content-list li {
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
}

.content-list li:before {
    content: "•";
    color: #3498db;
    position: absolute;
    left: 0;
}

.contact-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.contact-list li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-list a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-list a:hover {
    color: #2980b9;
}

.key-features {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 2rem;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.feature-list i {
    color: #2ecc71;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .terms-section {
        padding: 1rem;
    }

    .terms-container {
        padding: 1.5rem;
    }

    .terms-container h1 {
        font-size: 2rem;
    }

    .permitted-use {
        grid-template-columns: 1fr;
    }

    .feature-list {
        grid-template-columns: 1fr;
    }
}

/* How It Works Section Styles */
.how-it-works {
    padding: 5rem 2rem;
    background: #ffffff;
    margin: 3rem 0;
    position: relative;
}

.how-it-works h2 {
    color: #2c3e50;
    font-size: 2.8rem;
    text-align: center;
    margin-bottom: 1rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.how-it-works h3 {
    color: #3498db;
    font-size: 1.6rem;
    text-align: center;
    margin-bottom: 4rem;
    font-weight: 500;
}

.steps-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.step-card {
    background: #ffffff;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #eef2f7;
    width: 100%;
}

.step-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.step-card h4 {
    color: #2c3e50;
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 1rem;
    font-weight: 700;
    text-align: center;
}

.step-card h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: #3498db;
    border-radius: 3px;
}

.subjects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 1.5rem 0;
}

.subject-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid #eef2f7;
}

.subject-item:hover {
    background: #e3f2fd;
    transform: translateX(5px);
    border-color: #3498db;
}

.subject-item i {
    font-size: 1.4rem;
    color: #3498db;
    background: #e3f2fd;
    padding: 0.8rem;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.subject-item:hover i {
    background: #3498db;
    color: #ffffff;
}

.subject-item span {
    color: #2c3e50;
    font-size: 0.95rem;
    font-weight: 500;
}

.level-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 1.5rem 0;
}

.level-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid #eef2f7;
}

.level-item:hover {
    background: #e3f2fd;
    transform: translateX(5px);
    border-color: #3498db;
}

.level-color {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.level-color.basic {
    background: #2ecc71;
}

.level-color.intermediate {
    background: #f1c40f;
}

.level-color.advanced {
    background: #e74c3c;
}

.level-info h5 {
    color: #2c3e50;
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
    font-weight: 600;
}

.level-info p {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin: 0;
}

.learning-features {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.learning-features li {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid #eef2f7;
}

.learning-features li:hover {
    background: #e3f2fd;
    transform: translateX(5px);
    border-color: #3498db;
}

.learning-features i {
    font-size: 1.4rem;
    color: #3498db;
    background: #e3f2fd;
    padding: 0.8rem;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.learning-features li:hover i {
    background: #3498db;
    color: #ffffff;
}

.learning-features span {
    color: #2c3e50;
    font-size: 1rem;
    font-weight: 500;
}

.level-note {
    color: #7f8c8d;
    font-size: 0.9rem;
    text-align: center;
    margin-top: 1rem;
    font-style: italic;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .subjects-grid,
    .level-options,
    .learning-features {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .how-it-works {
        padding: 3rem 1rem;
    }

    .how-it-works h2 {
        font-size: 2.2rem;
    }

    .how-it-works h3 {
        font-size: 1.4rem;
        margin-bottom: 3rem;
    }

    .subjects-grid,
    .level-options,
    .learning-features {
        grid-template-columns: 1fr;
    }

    .step-card {
        padding: 1.5rem;
    }

    .step-card h4 {
        font-size: 1.4rem;
    }
}

/* Key Features Section Styles */
.key-features-section {
    padding: 5rem 2rem;
    background: #ffffff;
    position: relative;
}

.features-container {
    max-width: 1200px;
    margin: 0 auto;
}

.key-features-section h2 {
    color: #2c3e50;
    font-size: 2.8rem;
    text-align: center;
    margin-bottom: 3rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

.feature-card {
    background: #ffffff;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #eef2f7;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: #e3f2fd;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    background: #3498db;
    transform: scale(1.1);
}

.feature-icon i {
    font-size: 1.8rem;
    color: #3498db;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon i {
    color: #ffffff;
}

.feature-card h3 {
    color: #2c3e50;
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    color: #34495e;
    font-size: 1rem;
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
}

.feature-list li:before {
    content: "•";
    color: #3498db;
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

.benefits-section {
    text-align: center;
    margin: 4rem 0;
}

.benefits-section h3 {
    color: #2c3e50;
    font-size: 2rem;
    margin-bottom: 3rem;
    font-weight: 700;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.benefit-item {
    background: #f8fafc;
    padding: 2rem;
    border-radius: 16px;
    transition: all 0.3s ease;
    border: 1px solid #eef2f7;
}

.benefit-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border-color: #3498db;
}

.benefit-item i {
    font-size: 2rem;
    color: #3498db;
    margin-bottom: 1rem;
}

.benefit-item h4 {
    color: #2c3e50;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.benefit-item p {
    color: #7f8c8d;
    font-size: 1rem;
    margin: 0;
}

.cta-section {
    text-align: center;
    margin-top: 4rem;
    padding: 3rem;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.cta-section h3 {
    color: #2c3e50;
    font-size: 2rem;
    margin-bottom: 2rem;
    font-weight: 700;
}

.cta-section .cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: #3498db;
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid #3498db;
}

.cta-section .cta-button:hover {
    background: #ffffff;
    color: #3498db;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(52, 152, 219, 0.2);
}

/* Responsive Design for Key Features Section */
@media (max-width: 1024px) {
    .features-grid,
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .key-features-section {
        padding: 3rem 1rem;
    }

    .key-features-section h2 {
        font-size: 2.2rem;
    }

    .features-grid,
    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .feature-card,
    .benefit-item {
        padding: 1.5rem;
    }

    .benefits-section h3,
    .cta-section h3 {
        font-size: 1.8rem;
    }

    .cta-section {
        padding: 2rem 1rem;
    }
}

/* FAQs Section Styles */
.faqs-section {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.faqs-container {
    max-width: 1200px;
    margin: 0 auto;
}

.faqs-container h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 3rem;
}

.faq-category {
    margin-bottom: 3rem;
}

.faq-category h3 {
    font-size: 1.8rem;
    color: #34495e;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #3498db;
}

.faq-item {
    margin-bottom: 1rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.faq-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.faq-question {
    width: 100%;
    padding: 1.2rem;
    text-align: left;
    background: none;
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.faq-question:hover {
    color: #3498db;
}

.faq-question i {
    transition: transform 0.3s ease;
}

.faq-question[aria-expanded="true"] i {
    transform: rotate(180deg);
}

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

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

.faq-item.active .faq-answer {
    max-height: 500px;
}

@media (max-width: 768px) {
    .faqs-section {
        padding: 3rem 1rem;
    }

    .faqs-container h2 {
        font-size: 2rem;
    }

    .faq-category h3 {
        font-size: 1.5rem;
    }

    .faq-question {
        font-size: 1rem;
        padding: 1rem;
    }
}

/* Terms and Conditions Page Styles */
.terms-header {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
}

.terms-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255,255,255,0.1) 25%, transparent 25%),
                linear-gradient(-45deg, rgba(255,255,255,0.1) 25%, transparent 25%);
    background-size: 60px 60px;
    opacity: 0.1;
}

.terms-header h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.terms-header p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.terms-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.table-of-contents {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin-bottom: 3rem;
    border: 1px solid rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.table-of-contents:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

:root {
    --primary-color: #2171B5;
    --secondary-color: #6BAED6;
    --accent-color: #BDD7E7;
    --background-color: #EFF3FF;
    --text-color: #2171B5;
    --button-hover: #6BAED6;
    --button-bg: #BDD7E7;
    --button-text: #2171B5;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

.navbar {
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--primary-color);
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.logo h1 {
    color: var(--background-color);
    font-size: 1.5rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--background-color);
    text-decoration: none;
    font-weight: 500;
    transition: color .3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent-color);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
    position: relative;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #fff;
    margin: 5px 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

.hero {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, var(--background-color), var(--accent-color), var(--secondary-color));
    color: var(--primary-color);
    text-align: center;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: var(--accent-color);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 5px;
    transition: background-color .3s, color .3s, box-shadow .3s;
    box-shadow: 0 4px 16px 0 rgba(33, 113, 181, 0.25), 0 1.5px 4px 0 rgba(33, 113, 181, 0.15);
}

.cta-button:hover {
    background-color: var(--secondary-color);
    color: #fff;
    box-shadow: 0 6px 24px 0 rgba(33, 113, 181, 0.30), 0 2px 8px 0 rgba(33, 113, 181, 0.18);
}

.featured-subjects {
    padding: 4rem 2rem;
    border: 2px solid var(--primary-color);
    border-radius: 15px;
    box-shadow: 0 8px 24px rgba(33, 113, 181, 0.15);
    background: linear-gradient(to bottom right, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7));
    backdrop-filter: blur(10px);
    margin: 2rem auto;
    max-width: 1200px;
    position: relative;
}

.featured-subjects::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border-radius: 17px;
    z-index: -1;
    opacity: 0.7;
}

.featured-subjects h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

.footer-section h3,
.subject-card i {
    margin-bottom: 1rem;
}

.footer-content,
.subject-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.subject-card {
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, .1);
    transition: transform .3s;
    text-align: center;
}

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

.subject-card i {
    font-size: 2.5rem;
    color: var(--secondary-color);
}

.subject-card h3 a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 1.4rem;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    padding-bottom: 0.3rem;
}

.subject-card h3 a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 0.3s ease;
}

.subject-card h3 a:hover {
    color: var(--secondary-color);
    transform: translateY(-2px);
}

.subject-card h3 a:hover::after {
    width: 100%;
}

footer {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #fff;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
    background-color: var(--primary-color);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
    gap: 2rem;
    padding: 0 1rem;
}

.footer-section {
    padding: 1rem;
    display: flex;
    flex-direction: column;
}

.footer-section h3 {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
    text-align: left;
    white-space: nowrap;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background: #4ecca3;
}

.about-section .main-description {
    line-height: 1.6;
    margin-bottom: 1rem;
    color: #e0e0e0;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: #e0e0e0;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.footer-links a:hover {
    color: #4ecca3;
}

.newsletter-form {
    margin-bottom: 1.5rem;
}

.newsletter-form input {
    width: 100%;
    padding: 0.8rem;
    border: none;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    margin-bottom: 0.5rem;
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.newsletter-form button {
    width: 100%;
    padding: 0.8rem;
    background: #4ecca3;
    color: #1a1a2e;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-weight: 600;
}

.newsletter-form button:hover {
    background: #45b392;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.social-icon {
    color: #e0e0e0;
    font-size: 1.5rem;
    transition: transform 0.3s ease, color 0.3s ease;
}

.social-icon:hover {
    color: #4ecca3;
    transform: translateY(-3px);
}

.contact-info {
    margin-top: 1rem;
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #e0e0e0;
}

.contact-info a {
    color: #e0e0e0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: #4ecca3;
}

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

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

.footer-section ul li {
    margin-bottom: .5rem;
}

.footer-section a {
    color: var(--background-color);
    text-decoration: none;
    transition: color .3s;
}

.social-links a {
    font-size: 1.5rem;
}

@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
    .about-section {
        grid-column: 1/-1;
    }
}

@media (max-width: 912px) {
    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        right: -300px;
        width: 280px;
        height: 100vh;
        background-color: var(--primary-color);
        padding: 5rem 1.5rem 2rem;
        flex-direction: column;
        gap: 1.5rem;
        z-index: 1000;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease-in-out;
        border-radius: 0 0 0 10px;
    }
    .nav-links.active {
        display: flex;
        right: 0;
    }
    .mobile-menu-btn {
        display: block;
        position: relative;
        z-index: 1001;
    }
    .mobile-menu-btn span {
        display: block;
        width: 25px;
        height: 3px;
        background-color: #fff;
        margin: 5px 0;
        transition: transform 0.3s ease;
        
    }
    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }
    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
    .nav-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 999;
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    .nav-overlay.active {
        display: block;
        opacity: 1;
    }
    .hero h2 {
        font-size: 2rem;
    }
    .hero p {
        font-size: 1rem;
    }
}

@media (width: 912px) and (height: 1368px) {
    body.tablet-portrait .nav-links {
        padding-top: 8rem;
    }
    body.tablet-portrait .hero {
        padding: 6rem 2rem;
    }
    body.tablet-portrait .hero h2 {
        font-size: 2.2rem;
    }
    body.tablet-portrait .hero p {
        font-size: 1.1rem;
    }
    body.tablet-portrait .featured-subjects {
        padding: 6rem 2rem;
    }
    body.tablet-portrait .subject-card {
        padding: 2.5rem;
    }
    body.tablet-portrait .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        padding-top: 5rem;
    }
    .hero h2 {
        font-size: 1.8rem;
    }
    .hero p {
        font-size: 0.9rem;
    }
}

.focus {
    outline: 3px solid var(--accent-color);
    outline-offset: 2px;
}

@media print {
    .cta-button,
    .navbar,
    footer {
        display: none;
    }
    body {
        background-color: #fff;
        color: #000;
    }
}

.text-center {
    text-align: center;
    margin-top: 3rem;
}

.text-center h1 {
    margin-bottom: 1rem;
}

/* About Wordestool Section */
.about-wordestool {
    padding: 5rem 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.about-wordestool::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
}

.about-wordestool h2 {
    color: #2c3e50;
    font-size: 2.8rem;
    text-align: center;
    margin-bottom: 1rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.about-wordestool h3 {
    color: #3498db;
    font-size: 1.6rem;
    text-align: center;
    margin-bottom: 3rem;
    font-weight: 500;
}

.about-content {
    max-width: 1000px;
    margin: 0 auto;
    background: #ffffff;
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #eef2f7;
}

.about-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.about-content p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #34495e;
    margin-bottom: 2rem;
    text-align: center;
}

.benefits-list {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.benefits-list li {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 12px;
    color: #2c3e50;
    font-size: 1.1rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #eef2f7;
    position: relative;
    overflow: hidden;
}

.benefits-list li::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: #3498db;
    transition: all 0.3s ease;
}

.benefits-list li:hover {
    transform: translateX(5px);
    background: #e3f2fd;
    border-color: #3498db;
}

.benefits-list li:hover::before {
    width: 100%;
    opacity: 0.1;
}

.target-users {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    padding: 2rem;
    border-radius: 12px;
    margin-top: 3rem;
    border: 1px solid #eef2f7;
    transition: all 0.3s ease;
}

.target-users:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.target-users h4 {
    color: #2c3e50;
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 600;
}

.target-users ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.target-users ul li {
    background: #ffffff;
    padding: 1.2rem;
    border-radius: 8px;
    color: #34495e;
    font-size: 1.1rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #eef2f7;
    position: relative;
}

.target-users ul li::before {
    content: "•";
    color: #3498db;
    position: absolute;
    left: 1rem;
    font-size: 1.2rem;
}

.target-users ul li:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border-color: #3498db;
}

/* Responsive Design for About Section */
@media (max-width: 1024px) {
    .benefits-list,
    .target-users ul {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .about-wordestool {
        padding: 3rem 1rem;
    }

    .about-wordestool h2 {
        font-size: 2.2rem;
    }

    .about-wordestool h3 {
        font-size: 1.4rem;
    }

    .about-content {
        padding: 1.5rem;
    }

    .about-content p {
        font-size: 1.1rem;
    }

    .benefits-list,
    .target-users ul {
        grid-template-columns: 1fr;
    }

    .benefits-list li,
    .target-users ul li {
        font-size: 1rem;
    }
}

/* Contact Section Styles */
.contact-section {
    padding: 4rem 2rem;
    background-color: #fff;
}

.contact-section h2 {
    text-align: center;
    color: #2c3e50;
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.contact-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info {
    padding: 2rem;
}

.contact-info h3 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.contact-info p {
    color: #34495e;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-item i {
    font-size: 1.5rem;
    color: #3498db;
    margin-top: 0.5rem;
}

.contact-item h4 {
    color: #2c3e50;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.contact-item p {
    color: #34495e;
    margin: 0;
}

.contact-item a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s;
}

.contact-item a:hover {
    color: #2980b9;
}

.contact-form {
    background-color: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.contact-form h3 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #3498db;
    outline: none;
}

.submit-btn {
    background-color: #3498db;
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.submit-btn:hover {
    background-color: #2980b9;
}

/* Responsive Design for Contact Section */
@media (max-width: 768px) {
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .contact-section {
        padding: 3rem 1rem;
    }
    .contact-section h2 {
        font-size: 2rem;
    }
    .contact-info h3,
    .contact-form h3 {
        font-size: 1.5rem;
    }
    .contact-info p {
        font-size: 1rem;
    }
}

/* Quiz Instructions Section Styles */
.quiz-instructions {
    padding: 2rem;
    background-color: #f8f9fa;
    border-radius: 10px;
    margin: 2rem 0;
}

.quiz-instructions h2 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 2rem;
    font-size: 2rem;
}

.instructions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.instruction-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.instruction-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.instruction-card i {
    font-size: 2rem;
    color: #3498db;
    margin-bottom: 1rem;
}

.instruction-card h3 {
    color: #2c3e50;
    margin-bottom: 0.8rem;
    font-size: 1.2rem;
}

.instruction-card p {
    color: #666;
    line-height: 1.5;
}

.instruction-card ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.instruction-card ul li {
    color: #666;
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.instruction-card ul li:before {
    content: "•";
    color: #3498db;
    position: absolute;
    left: 0;
}

.tip-card {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border: 2px solid #3498db;
}

.tip-card i {
    color: #f1c40f;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .instructions-grid {
        grid-template-columns: 1fr;
    }
    
    .quiz-instructions {
        padding: 1rem;
    }
    
    .instruction-card {
        padding: 1rem;
    }
}

/* Math Learning Content Section Styles */
.learning-content {
    padding: 3rem 2rem;
    background-color: #f8f9fa;
    margin: 2rem 0;
}

.learning-content h2 {
    text-align: center;
    color: #2c3e50;
    font-size: 2.2rem;
    margin-bottom: 2rem;
}

.content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}

.intro-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #34495e;
    margin-bottom: 1.5rem;
    text-align: justify;
}

/* Special styling for the final call-to-action paragraph */
.intro-text:last-of-type {
    text-align: center;
    font-size: 1.3rem;
    font-weight: 500;
    color: #2c3e50;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin: 2.5rem 0;
    border: 2px solid #3498db;
    position: relative;
    overflow: hidden;
}

.intro-text:last-of-type::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
}

.intro-text:last-of-type:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

/* Responsive adjustments for the styled paragraph */
@media (max-width: 768px) {
    .intro-text:last-of-type {
        font-size: 1.1rem;
        padding: 1.5rem;
        margin: 2rem 0;
    }
}

.features-section {
    margin-bottom: 3rem;
}

.features-section h3 {
    text-align: center;
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 2rem;
}

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

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.feature-card i {
    font-size: 2.5rem;
    color: #3498db;
    margin-bottom: 1rem;
}

.feature-card h4 {
    color: #2c3e50;
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.feature-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-card ul li {
    color: #666;
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
}

.feature-card ul li:before {
    content: "•";
    color: #3498db;
    position: absolute;
    left: 0;
}

.benefits-section {
    text-align: center;
    margin-top: 3rem;
}

.benefits-section p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #34495e;
    margin-bottom: 2rem;
}

.cta-box {
    background: linear-gradient(135deg, #3498db, #2980b9);
    padding: 2rem;
    border-radius: 10px;
    color: white;
}

.cta-text {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: white;
    color: #3498db;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .learning-content {
        padding: 2rem 1rem;
    }

    .learning-content h2 {
        font-size: 1.8rem;
    }

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

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .cta-box {
        padding: 1.5rem;
    }
}

/* Mathematics History Section Styles */
.math-history {
    padding: 4rem 2rem;
    background-color: #fff;
    margin: 2rem 0;
}

.math-history h2 {
    text-align: center;
    color: #2c3e50;
    font-size: 2.2rem;
    margin-bottom: 2rem;
}

.history-content {
    max-width: 1200px;
    margin: 0 auto;
}

.history-intro {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #34495e;
    margin-bottom: 3rem;
    text-align: center;
}

.history-timeline {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.timeline-item {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

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

.timeline-item::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background-color: #3498db;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.2);
}

.timeline-item h3 {
    color: #2c3e50;
    font-size: 1.4rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #3498db;
}

.timeline-item p {
    color: #666;
    line-height: 1.8;
    font-size: 1.1rem;
}

/* Responsive adjustments for history section */
@media (max-width: 768px) {
    .math-history {
        padding: 2rem 1rem;
    }

    .math-history h2 {
        font-size: 1.8rem;
    }

    .history-intro {
        font-size: 1.1rem;
    }

    .timeline-item {
        padding: 1.5rem;
    }

    .timeline-item h3 {
        font-size: 1.2rem;
    }

    .timeline-item p {
        font-size: 1rem;
    }

    .timeline-item::before {
        left: -15px;
        width: 15px;
        height: 15px;
    }
}

/* Quiz Container and Controls Styling */
#quiz-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

#quiz-section.quiz-active {
    background-color: #f8f9fa;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin: 2rem auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#quiz-container {
    display: none;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 2rem;
}

#quiz-container.active {
    display: block !important;
}

.quiz-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 2px solid #f0f0f0;
    width: 100%;
}

.skip-btn, .stop-btn {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    min-width: 150px;
    display: inline-block;
}

.skip-btn {
    background-color: #f8f9fa;
    color: #3498db;
    border: 2px solid #3498db;
}

.skip-btn:hover {
    background-color: #3498db;
    color: white;
}

.stop-btn {
    background-color: #e74c3c;
    color: white;
}

.stop-btn:hover {
    background-color: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(231, 76, 60, 0.2);
}

/* Quiz Active State Styles */
.quiz-section.quiz-active {
    animation: quizHighlight 2s ease-out;
    position: relative;
}

@keyframes quizHighlight {
    0% {
        box-shadow: 0 0 0 0 rgba(52, 152, 219, 0.4);
    }
    50% {
        box-shadow: 0 0 20px 10px rgba(52, 152, 219, 0.2);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(52, 152, 219, 0);
    }
}

.quiz-section.quiz-active #quiz-container {
    animation: quizContainerHighlight 2s ease-out;
}

@keyframes quizContainerHighlight {
    0% {
        transform: scale(1);
    }
    5% {
        transform: scale(1.02);
    }
    100% {
        transform: scale(1);
    }
}

/* Ensure smooth scrolling behavior for the entire page */
html {
    scroll-behavior: smooth;
}

/* Mobile-specific adjustments */
@media (max-width: 768px) {
    .quiz-section.quiz-active {
        margin: 1rem 0;
    }
    
    .quiz-section.quiz-active #quiz-container {
        margin: 0.5rem;
    }
}

/* Math Topics Detail Section Styling */
.math-topics-detail {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.topic-detail {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 2.5rem;
    padding: 2.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.topic-detail:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.topic-detail h2 {
    color: #2c3e50;
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.8rem;
}

.topic-detail h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: #3498db;
}

.topic-detail p {
    color: #34495e;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

/* Topic-specific styling */
.topic-detail.algebra h2::after {
    background: #e74c3c;
}

.topic-detail.calculus h2::after {
    background: #2ecc71;
}

.topic-detail.geometry h2::after {
    background: #f1c40f;
}

.topic-detail.statistics h2::after {
    background: #9b59b6;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .math-topics-detail {
        padding: 0 1rem;
        margin: 2rem auto;
    }

    .topic-detail {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .topic-detail h2 {
        font-size: 1.8rem;
    }

    .topic-detail p {
        font-size: 1rem;
    }
}

@media screen and (max-width: 480px) {
    .topic-detail {
        padding: 1.2rem;
    }

    .topic-detail h2 {
        font-size: 1.5rem;
    }
}

/* Geography Introduction Section Styles */
.geography-intro {
    padding: 3rem 2rem;
    background-color: #f8f9fa;
    margin: 2rem 0;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.geography-intro h2 {
    color: #2c3e50;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 700;
}

.intro-content {
    max-width: 1200px;
    margin: 0 auto;
}

.intro-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #34495e;
    margin-bottom: 1.5rem;
    text-align: justify;
}

.geography-topics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.topic-item {
    background-color: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.topic-item:hover {
    transform: translateY(-5px);
}

.topic-item h3 {
    color: #2c3e50;
    font-size: 1.4rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.topic-item p {
    color: #666;
    line-height: 1.6;
}

.benefits-section {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    margin: 2rem 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.benefits-section h3 {
    color: #2c3e50;
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

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

.benefits-list li {
    font-size: 1.1rem;
    color: #34495e;
    margin-bottom: 1rem;
    padding-left: 1rem;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .geography-intro {
        padding: 2rem 1rem;
    }

    .geography-intro h2 {
        font-size: 2rem;
    }

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

    .geography-topics {
        grid-template-columns: 1fr;
    }

    .topic-item {
        padding: 1.2rem;
    }
}

/* Geography History Section Styles */
.geography-history {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    margin: 3rem 0;
}

.geography-history h2 {
    color: #2c3e50;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 700;
}

.history-content {
    max-width: 1200px;
    margin: 0 auto;
}

.history-intro {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #34495e;
    text-align: center;
    margin-bottom: 3rem;
    padding: 0 2rem;
}

.geography-history h3 {
    color: #2c3e50;
    font-size: 1.8rem;
    text-align: center;
    margin: 3rem 0 2rem;
    position: relative;
}

.geography-history h3::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    margin: 1rem auto;
    border-radius: 2px;
}

.timeline-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.timeline-item {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.timeline-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.timeline-item h4 {
    color: #2c3e50;
    font-size: 1.4rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #3498db;
}

.timeline-item p {
    color: #34495e;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.timeline-details {
    list-style: none;
    padding: 0;
    margin: 0;
}

.timeline-details li {
    color: #666;
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
}

.timeline-details li::before {
    content: "•";
    color: #3498db;
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

.impact-section {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin: 3rem 0;
    text-align: center;
}

.impact-section h3 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.impact-list {
    list-style: none;
    padding: 0;
    display: inline-block;
    text-align: left;
}

.impact-list li {
    font-size: 1.1rem;
    color: #34495e;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.geography-quote {
    font-size: 1.4rem;
    color: #2c3e50;
    text-align: center;
    font-style: italic;
    margin: 3rem 0;
    padding: 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
}

.geography-quote::before,
.geography-quote::after {
    content: '"';
    font-size: 3rem;
    color: #3498db;
    position: absolute;
    opacity: 0.2;
}

.geography-quote::before {
    top: 0;
    left: 1rem;
}

.geography-quote::after {
    bottom: 0;
    right: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .geography-history {
        padding: 2rem 1rem;
    }

    .geography-history h2 {
        font-size: 2rem;
    }

    .history-intro {
        font-size: 1.1rem;
        padding: 0 1rem;
    }

    .timeline-container {
        grid-template-columns: 1fr;
    }

    .timeline-item {
    padding: 1.5rem;
    }

    .geography-quote {
        font-size: 1.2rem;
        padding: 1.5rem;
    }
}

/* Geography Topics Detail Section Styles */
.geography-topics-detail {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    margin: 3rem 0;
}

.topic-detail {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 3rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.topic-detail:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
}

.topic-detail h2 {
    color: #2c3e50;
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.8rem;
}

.topic-detail h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    border-radius: 2px;
}

.topic-detail p {
    color: #34495e;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.quiz-topics {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    margin: 2rem 0;
}

.quiz-topics h3 {
    color: #2c3e50;
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.topic-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.topic-list li {
    color: #34495e;
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
}

.topic-importance,
.topic-fact,
.topic-tip,
.topic-impact {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 1.5rem;
    border-radius: 10px;
    margin-top: 2rem;
    border-left: 4px solid #3498db;
}

.topic-importance h4,
.topic-fact h4,
.topic-tip h4,
.topic-impact h4 {
    color: #2c3e50;
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
}

.topic-importance p,
.topic-fact p,
.topic-tip p,
.topic-impact p {
    color: #34495e;
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0;
}

/* Topic-specific styling */
.topic-detail.world-geography h2::after {
    background: linear-gradient(90deg, #3498db, #2ecc71);
}

.topic-detail.countries h2::after {
    background: linear-gradient(90deg, #e74c3c, #f39c12);
}

.topic-detail.capitals h2::after {
    background: linear-gradient(90deg, #9b59b6, #3498db);
}

.topic-detail.physical h2::after {
    background: linear-gradient(90deg, #2ecc71, #27ae60);
}

/* Responsive Design */
@media (max-width: 768px) {
    .geography-topics-detail {
        padding: 2rem 1rem;
    }

    .topic-detail {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }

    .topic-detail h2 {
        font-size: 1.8rem;
    }

    .topic-detail p,
    .topic-list li {
        font-size: 1rem;
    }

    .quiz-topics h3 {
        font-size: 1.2rem;
    }

    .topic-importance h4,
    .topic-fact h4,
    .topic-tip h4,
    .topic-impact h4 {
        font-size: 1.1rem;
    }
}

/* History Introduction Section Styles */
.history-intro-section {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    margin: 3rem 0;
}

.history-intro-section h2 {
    color: #2c3e50;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 700;
}

.history-intro-content {
    max-width: 1200px;
    margin: 0 auto;
}

.history-intro-content .intro-text {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #34495e;
    margin-bottom: 2rem;
    text-align: justify;
}

.history-topics,
.history-importance,
.quiz-exploration {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin: 2rem 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.history-topics:hover,
.history-importance:hover,
.quiz-exploration:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.history-topics h3,
.history-importance h3,
.quiz-exploration h3 {
    color: #2c3e50;
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.8rem;
}

.history-topics h3::after,
.history-importance h3::after,
.quiz-exploration h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    border-radius: 2px;
}

.topic-list,
.importance-list,
.exploration-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.topic-list li,
.importance-list li,
.exploration-list li {
    color: #34495e;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
}

.topic-list li::before,
.importance-list li::before,
.exploration-list li::before {
    content: "•";
    color: #3498db;
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

.conclusion-text {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #34495e;
    text-align: center;
    margin-top: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.conclusion-text::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
}

/* Responsive Design for History Introduction Section */
@media (max-width: 768px) {
    .history-intro-section {
        padding: 2rem 1rem;
    }

    .history-intro-section h2 {
        font-size: 2rem;
    }

    .history-intro-content .intro-text {
        font-size: 1.1rem;
    }

    .history-topics,
    .history-importance,
    .quiz-exploration {
        padding: 1.5rem;
    }

    .history-topics h3,
    .history-importance h3,
    .quiz-exploration h3 {
        font-size: 1.4rem;
    }

    .topic-list li,
    .importance-list li,
    .exploration-list li {
        font-size: 1rem;
    }

    .conclusion-text {
        font-size: 1.1rem;
        padding: 1.5rem;
    }
}

/* History Evolution Section Styles */
.history-evolution-section {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    margin: 3rem 0;
}

.history-evolution-section h2 {
    color: #2c3e50;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 700;
}

.evolution-content {
    max-width: 1200px;
    margin: 0 auto;
}

.evolution-intro {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #34495e;
    margin-bottom: 3rem;
    text-align: justify;
}

.evolution-period {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin: 2rem 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.evolution-period:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.evolution-period h3 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.8rem;
}

.evolution-period h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    border-radius: 2px;
}

.evolution-period p {
    color: #34495e;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.period-list,
.achievement-list,
.importance-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
}

.period-list li,
.achievement-list li,
.importance-list li {
    color: #34495e;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
}

.period-list li::before,
.achievement-list li::before,
.importance-list li::before {
    content: "•";
    color: #3498db;
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

.evolution-importance {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem 0;
    border-left: 4px solid #3498db;
}

.evolution-importance h3 {
    color: #2c3e50;
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
}

.history-quote {
    font-size: 1.4rem;
    color: #2c3e50;
    text-align: center;
    font-style: italic;
    margin: 3rem 0;
    padding: 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
}

.history-quote::before,
.history-quote::after {
    content: '"';
    font-size: 3rem;
    color: #3498db;
    position: absolute;
    opacity: 0.2;
}

.history-quote::before {
    top: 0;
    left: 1rem;
}

.history-quote::after {
    bottom: 0;
    right: 1rem;
}

/* Period-specific styling */
.evolution-period.ancient h3::after {
    background: linear-gradient(90deg, #e74c3c, #f39c12);
}

.evolution-period.medieval h3::after {
    background: linear-gradient(90deg, #9b59b6, #3498db);
}

.evolution-period.scientific h3::after {
    background: linear-gradient(90deg, #2ecc71, #27ae60);
}

.evolution-period.modern h3::after {
    background: linear-gradient(90deg, #3498db, #2980b9);
}

/* Responsive Design for History Evolution Section */
@media (max-width: 768px) {
    .history-evolution-section {
        padding: 2rem 1rem;
    }

    .history-evolution-section h2 {
        font-size: 2rem;
    }

    .evolution-intro {
        font-size: 1.1rem;
    }

    .evolution-period {
        padding: 1.5rem;
    }

    .evolution-period h3 {
        font-size: 1.5rem;
    }

    .evolution-period p,
    .period-list li,
    .importance-list li {
        font-size: 1rem;
    }

    .history-quote {
        font-size: 1.2rem;
        padding: 1.5rem;
    }
}

/* Historical Periods Section Styles */
.historical-periods {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    margin: 3rem 0;
}

.periods-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.period-card {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.period-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.period-card h2 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.8rem;
}

.period-card h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    border-radius: 2px;
}

.period-card p {
    color: #34495e;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.period-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
}

.period-list li {
    color: #34495e;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
}

.period-list li::before {
    content: "•";
    color: #3498db;
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

/* Period-specific styling */
.period-card.ancient h2::after {
    background: linear-gradient(90deg, #e74c3c, #f39c12);
}

.period-card.medieval h2::after {
    background: linear-gradient(90deg, #9b59b6, #3498db);
}

.period-card.modern h2::after {
    background: linear-gradient(90deg, #2ecc71, #27ae60);
}

.period-card.world h2::after {
    background: linear-gradient(90deg, #3498db, #2980b9);
}

/* Responsive Design for Historical Periods Section */
@media (max-width: 768px) {
    .historical-periods {
        padding: 2rem 1rem;
    }

    .period-card {
        padding: 1.5rem;
    }

    .period-card h2 {
        font-size: 1.5rem;
    }

    .period-card p,
    .period-list li {
        font-size: 1rem;
    }
}

/* Science Introduction Section Styles */
.science-intro-section {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    margin: 3rem 0;
}

.science-intro-section h2 {
    color: #2c3e50;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 700;
}

.science-intro-content {
    max-width: 1200px;
    margin: 0 auto;
}

.science-intro-content .intro-text {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #34495e;
    margin-bottom: 2rem;
    text-align: justify;
}

.science-branches,
.scientific-revolution,
.science-importance,
.quiz-exploration {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin: 2rem 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.science-branches:hover,
.scientific-revolution:hover,
.science-importance:hover,
.quiz-exploration:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.science-branches h3,
.scientific-revolution h3,
.science-importance h3,
.quiz-exploration h3 {
    color: #2c3e50;
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.8rem;
}

.science-branches h3::after,
.scientific-revolution h3::after,
.science-importance h3::after,
.quiz-exploration h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    border-radius: 2px;
}

.branches-list,
.breakthroughs-list,
.importance-list,
.exploration-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.branches-list li,
.breakthroughs-list li,
.importance-list li,
.exploration-list li {
    color: #34495e;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
}

.branches-list li::before,
.breakthroughs-list li::before,
.importance-list li::before,
.exploration-list li::before {
    content: "•";
    color: #3498db;
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

.science-quote {
    font-size: 1.4rem;
    color: #2c3e50;
    text-align: center;
    font-style: italic;
    margin: 3rem 0;
    padding: 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
}

.science-quote::before,
.science-quote::after {
    content: '"';
    font-size: 3rem;
    color: #3498db;
    position: absolute;
    opacity: 0.2;
}

.science-quote::before {
    top: 0;
    left: 1rem;
}

.science-quote::after {
    bottom: 0;
    right: 1rem;
}

/* Responsive Design for Science Introduction Section */
@media (max-width: 768px) {
    .science-intro-section {
        padding: 2rem 1rem;
    }

    .science-intro-section h2 {
        font-size: 2rem;
    }

    .science-intro-content .intro-text {
        font-size: 1.1rem;
    }

    .science-branches,
    .scientific-revolution,
    .science-importance,
    .quiz-exploration {
        padding: 1.5rem;
    }

    .science-branches h3,
    .scientific-revolution h3,
    .science-importance h3,
    .quiz-exploration h3 {
        font-size: 1.4rem;
    }

    .branches-list li,
    .breakthroughs-list li,
    .importance-list li,
    .exploration-list li {
        font-size: 1rem;
    }

    .science-quote {
    font-size: 1.2rem;
        padding: 1.5rem;
    }
}

/* Science Evolution Section Styles */
.science-evolution-section {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    margin: 3rem 0;
}

.science-evolution-section h2 {
    color: #2c3e50;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 700;
}

.evolution-content {
    max-width: 1200px;
    margin: 0 auto;
}

.evolution-intro {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #34495e;
    margin-bottom: 3rem;
    text-align: justify;
}

.evolution-period {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin: 2rem 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.evolution-period:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.evolution-period h3 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.8rem;
}

.evolution-period h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    border-radius: 2px;
}

.evolution-period h4 {
    color: #2c3e50;
    font-size: 1.4rem;
    margin: 1.5rem 0 1rem;
}

.period-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
}

.period-list li {
    color: #34495e;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
}

.period-list li::before {
    content: "•";
    color: #3498db;
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

.period-list ul {
    list-style: none;
    padding-left: 1.5rem;
    margin-top: 0.5rem;
}

.period-list ul li {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.evolution-importance {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem 0;
    border-left: 4px solid #3498db;
}

.evolution-importance h3 {
    color: #2c3e50;
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
}

.importance-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.importance-list li {
    color: #34495e;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.timeline-container {
    margin: 3rem 0;
    overflow-x: auto;
    padding: 1rem 0;
}

.timeline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-width: 800px;
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    transform: translateY(-50%);
}

.timeline-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
}

.timeline-item .year {
    font-size: 1rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.timeline-item .event {
    font-size: 1.2rem;
    color: #3498db;
    background: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.discussion-prompt {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin: 2rem 0;
    text-align: center;
}

.discussion-prompt h3 {
    color: #2c3e50;
    font-size: 1.6rem;
    margin-bottom: 1rem;
}

.discussion-prompt p {
    color: #34495e;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.prompt-options {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.prompt-options li {
    color: #34495e;
    font-size: 1.1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.prompt-options li:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Period-specific styling */
.evolution-period.ancient h3::after {
    background: linear-gradient(90deg, #e74c3c, #f39c12);
}

.evolution-period.revolution h3::after {
    background: linear-gradient(90deg, #9b59b6, #3498db);
}

.evolution-period.nineteenth h3::after {
    background: linear-gradient(90deg, #2ecc71, #27ae60);
}

.evolution-period.modern h3::after {
    background: linear-gradient(90deg, #3498db, #2980b9);
}

/* Responsive Design for Science Evolution Section */
@media (max-width: 768px) {
    .science-evolution-section {
        padding: 2rem 1rem;
    }

    .science-evolution-section h2 {
        font-size: 2rem;
    }

    .evolution-intro {
        font-size: 1.1rem;
    }

    .evolution-period {
        padding: 1.5rem;
    }

    .evolution-period h3 {
        font-size: 1.5rem;
    }

    .evolution-period h4 {
        font-size: 1.2rem;
    }

    .evolution-period p,
    .period-list li,
    .importance-list li {
        font-size: 1rem;
    }

    .timeline {
        min-width: 600px;
    }

    .timeline-item .year {
        font-size: 0.9rem;
    }

    .timeline-item .event {
        font-size: 1rem;
    }

    .discussion-prompt {
        padding: 1.5rem;
    }

    .discussion-prompt h3 {
        font-size: 1.4rem;
    }

    .discussion-prompt p {
        font-size: 1.1rem;
    }

    .prompt-options li {
        font-size: 1rem;
    }
}

/* Quiz Modal Section */
#quiz-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

#quiz-modal-content {
    background-color: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    width: 90%;
}

#quiz-modal-content h2 {
    color: #2c3e50;
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

#quiz-modal-content p {
    color: #34495e;
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

#quiz-modal-content .quiz-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
}

#quiz-modal-content .skip-btn,
#quiz-modal-content .stop-btn {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    min-width: 150px;
}

#quiz-modal-content .skip-btn {
    background-color: #f8f9fa;
    color: #3498db;
    border: 2px solid #3498db;
}

#quiz-modal-content .skip-btn:hover {
    background-color: #3498db;
    color: white;
}

#quiz-modal-content .stop-btn {
    background-color: #e74c3c;
    color: white;
}

#quiz-modal-content .stop-btn:hover {
    background-color: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(231, 76, 60, 0.2);
}

/* Science Branches Section Styles */
.science-branches-section {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    margin: 3rem 0;
}

.branch-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 2rem;
}

.branch-card {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.branch-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.branch-card h2 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.8rem;
}

.branch-card h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    border-radius: 2px;
}

.branch-intro {
    color: #34495e;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.key-areas,
.core-concepts,
.focus-areas,
.research-frontiers {
    margin-bottom: 2rem;
}

.branch-card h3 {
    color: #2c3e50;
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.area-list,
.concept-list,
.frontier-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.area-list li,
.concept-list li,
.frontier-list li {
    color: #34495e;
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
}

.area-list li::before,
.concept-list li::before,
.frontier-list li::before {
    content: "•";
    color: #3498db;
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

.did-you-know,
.real-world-impact,
.fascinating-fact,
.observation-tip {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
        padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #3498db;
}

.did-you-know h3,
.real-world-impact h3,
.fascinating-fact h3,
.observation-tip h3 {
    color: #2c3e50;
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
}

.did-you-know p,
.real-world-impact p,
.fascinating-fact p,
.observation-tip p {
    color: #34495e;
        font-size: 1.1rem;
    line-height: 1.6;
    margin: 0;
}

/* Branch-specific styling */
.branch-card.physics h2::after {
    background: linear-gradient(90deg, #e74c3c, #f39c12);
}

.branch-card.chemistry h2::after {
    background: linear-gradient(90deg, #9b59b6, #3498db);
}

.branch-card.biology h2::after {
    background: linear-gradient(90deg, #2ecc71, #27ae60);
}

.branch-card.astronomy h2::after {
    background: linear-gradient(90deg, #3498db, #2980b9);
}

.branch-card.physics .did-you-know {
    border-left-color: #e74c3c;
}

.branch-card.chemistry .real-world-impact {
    border-left-color: #9b59b6;
}

.branch-card.biology .fascinating-fact {
    border-left-color: #2ecc71;
}

.branch-card.astronomy .observation-tip {
    border-left-color: #3498db;
}

/* Responsive Design for Science Branches Section */
@media (max-width: 768px) {
    .science-branches-section {
        padding: 2rem 1rem;
    }

    .branch-content {
        grid-template-columns: 1fr;
    }

    .branch-card {
        padding: 1.5rem;
    }

    .branch-card h2 {
        font-size: 1.5rem;
    }

    .branch-intro {
        font-size: 1rem;
    }

    .branch-card h3 {
        font-size: 1.2rem;
    }

    .area-list li,
    .concept-list li,
    .frontier-list li {
        font-size: 1rem;
    }

    .did-you-know,
    .real-world-impact,
    .fascinating-fact,
    .observation-tip {
        padding: 1.2rem;
    }

    .did-you-know h3,
    .real-world-impact h3,
    .fascinating-fact h3,
    .observation-tip h3 {
        font-size: 1.1rem;
    }

    .did-you-know p,
    .real-world-impact p,
    .fascinating-fact p,
    .observation-tip p {
        font-size: 1rem;
    }
}

/* Detailed Technology Topics Section Styles */
.detailed-tech-topics {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.detailed-tech-topics h2 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 2rem;
    font-size: 2.5rem;
}

.tech-topic {
    background: #ffffff;
    border-radius: 10px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.tech-topic:hover {
    transform: translateY(-5px);
}

.tech-topic h3 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid #3498db;
    padding-bottom: 0.5rem;
}

.tech-topic > p {
    color: #34495e;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.topic-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.detail-group {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #3498db;
}

.detail-group h4 {
    color: #2c3e50;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.detail-group p {
    color: #34495e;
    line-height: 1.5;
}

.detail-group ul {
    list-style-type: none;
    padding: 0;
}

.detail-group ul li {
    color: #34495e;
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.detail-group ul li:before {
    content: "•";
    color: #3498db;
    position: absolute;
    left: 0;
}

.topic-conclusion {
    font-style: italic;
    color: #7f8c8d;
    border-top: 1px solid #ecf0f1;
    padding-top: 1rem;
    margin-top: 1rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .detailed-tech-topics {
        padding: 1rem;
    }

    .tech-topic {
        padding: 1.5rem;
    }

    .topic-details {
        grid-template-columns: 1fr;
    }

    .detail-group {
        padding: 1rem;
    }
}

/* Terms of Service Page Styles */
.terms-section {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.terms-container {
    background: #ffffff;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.terms-container h1 {
    color: #2c3e50;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
}

.last-updated {
    text-align: center;
    color: #7f8c8d;
    font-style: italic;
    margin-bottom: 2rem;
}

.terms-intro {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    border-left: 4px solid #3498db;
}

.terms-intro p {
    color: #34495e;
    line-height: 1.6;
    margin: 0;
}

.terms-content {
    color: #2c3e50;
}

.terms-content .terms-section {
    margin-bottom: 2rem;
    padding: 0;
}

.terms-content h2 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid #3498db;
    padding-bottom: 0.5rem;
}

.terms-content h3 {
    color: #2c3e50;
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.permitted-use {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 1.5rem 0;
}

.allowed, .prohibited {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
}

.allowed {
    border-left: 4px solid #2ecc71;
}

.prohibited {
    border-left: 4px solid #e74c3c;
}

.check-list, .cross-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.check-list li, .cross-list li {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.check-list i {
    color: #2ecc71;
}

.cross-list i {
    color: #e74c3c;
}

.content-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.content-list li {
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
}

.content-list li:before {
    content: "•";
    color: #3498db;
    position: absolute;
    left: 0;
}

.contact-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.contact-list li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-list a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-list a:hover {
    color: #2980b9;
}

.key-features {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 2rem;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.feature-list i {
    color: #2ecc71;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .terms-section {
        padding: 1rem;
    }

    .terms-container {
        padding: 1.5rem;
    }

    .terms-container h1 {
        font-size: 2rem;
    }

    .permitted-use {
        grid-template-columns: 1fr;
    }

    .feature-list {
        grid-template-columns: 1fr;
    }
}

/* How It Works Section Styles */
.how-it-works {
    padding: 5rem 2rem;
    background: #ffffff;
    margin: 3rem 0;
    position: relative;
}

.how-it-works h2 {
    color: #2c3e50;
    font-size: 2.8rem;
    text-align: center;
    margin-bottom: 1rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.how-it-works h3 {
    color: #3498db;
    font-size: 1.6rem;
    text-align: center;
    margin-bottom: 4rem;
    font-weight: 500;
}

.steps-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.step-card {
    background: #ffffff;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #eef2f7;
    width: 100%;
}

.step-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.step-card h4 {
    color: #2c3e50;
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 1rem;
    font-weight: 700;
    text-align: center;
}

.step-card h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: #3498db;
    border-radius: 3px;
}

.subjects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 1.5rem 0;
}

.subject-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid #eef2f7;
}

.subject-item:hover {
    background: #e3f2fd;
    transform: translateX(5px);
    border-color: #3498db;
}

.subject-item i {
    font-size: 1.4rem;
    color: #3498db;
    background: #e3f2fd;
    padding: 0.8rem;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.subject-item:hover i {
    background: #3498db;
    color: #ffffff;
}

.subject-item span {
    color: #2c3e50;
    font-size: 0.95rem;
    font-weight: 500;
}

.level-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 1.5rem 0;
}

.level-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid #eef2f7;
}

.level-item:hover {
    background: #e3f2fd;
    transform: translateX(5px);
    border-color: #3498db;
}

.level-color {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.level-color.basic {
    background: #2ecc71;
}

.level-color.intermediate {
    background: #f1c40f;
}

.level-color.advanced {
    background: #e74c3c;
}

.level-info h5 {
    color: #2c3e50;
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
    font-weight: 600;
}

.level-info p {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin: 0;
}

.learning-features {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.learning-features li {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid #eef2f7;
}

.learning-features li:hover {
    background: #e3f2fd;
    transform: translateX(5px);
    border-color: #3498db;
}

.learning-features i {
    font-size: 1.4rem;
    color: #3498db;
    background: #e3f2fd;
    padding: 0.8rem;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.learning-features li:hover i {
    background: #3498db;
    color: #ffffff;
}

.learning-features span {
    color: #2c3e50;
    font-size: 1rem;
    font-weight: 500;
}

.level-note {
    color: #7f8c8d;
    font-size: 0.9rem;
    text-align: center;
    margin-top: 1rem;
    font-style: italic;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .subjects-grid,
    .level-options,
    .learning-features {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .how-it-works {
        padding: 3rem 1rem;
    }

    .how-it-works h2 {
        font-size: 2.2rem;
    }

    .how-it-works h3 {
        font-size: 1.4rem;
        margin-bottom: 3rem;
    }

    .subjects-grid,
    .level-options,
    .learning-features {
        grid-template-columns: 1fr;
    }

    .step-card {
        padding: 1.5rem;
    }

    .step-card h4 {
        font-size: 1.4rem;
    }
}

/* Key Features Section Styles */
.key-features-section {
    padding: 5rem 2rem;
    background: #ffffff;
    position: relative;
}

.features-container {
    max-width: 1200px;
    margin: 0 auto;
}

.key-features-section h2 {
    color: #2c3e50;
    font-size: 2.8rem;
    text-align: center;
    margin-bottom: 3rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

.feature-card {
    background: #ffffff;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #eef2f7;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: #e3f2fd;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    background: #3498db;
    transform: scale(1.1);
}

.feature-icon i {
    font-size: 1.8rem;
    color: #3498db;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon i {
    color: #ffffff;
}

.feature-card h3 {
    color: #2c3e50;
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    color: #34495e;
    font-size: 1rem;
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
}

.feature-list li:before {
    content: "•";
    color: #3498db;
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

.benefits-section {
    text-align: center;
    margin: 4rem 0;
}

.benefits-section h3 {
    color: #2c3e50;
    font-size: 2rem;
    margin-bottom: 3rem;
    font-weight: 700;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.benefit-item {
    background: #f8fafc;
    padding: 2rem;
    border-radius: 16px;
    transition: all 0.3s ease;
    border: 1px solid #eef2f7;
}

.benefit-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border-color: #3498db;
}

.benefit-item i {
    font-size: 2rem;
    color: #3498db;
    margin-bottom: 1rem;
}

.benefit-item h4 {
    color: #2c3e50;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.benefit-item p {
    color: #7f8c8d;
    font-size: 1rem;
    margin: 0;
}

.cta-section {
    text-align: center;
    margin-top: 4rem;
    padding: 3rem;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.cta-section h3 {
    color: #2c3e50;
    font-size: 2rem;
    margin-bottom: 2rem;
    font-weight: 700;
}

.cta-section .cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: #3498db;
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid #3498db;
}

.cta-section .cta-button:hover {
    background: #ffffff;
    color: #3498db;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(52, 152, 219, 0.2);
}

/* Responsive Design for Key Features Section */
@media (max-width: 1024px) {
    .features-grid,
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .key-features-section {
        padding: 3rem 1rem;
    }

    .key-features-section h2 {
        font-size: 2.2rem;
    }

    .features-grid,
    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .feature-card,
    .benefit-item {
        padding: 1.5rem;
    }

    .benefits-section h3,
    .cta-section h3 {
        font-size: 1.8rem;
    }

    .cta-section {
        padding: 2rem 1rem;
    }
}

/* FAQs Section Styles */
.faqs-section {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.faqs-container {
    max-width: 1200px;
    margin: 0 auto;
}

.faqs-container h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 3rem;
}

.faq-category {
    margin-bottom: 3rem;
}

.faq-category h3 {
    font-size: 1.8rem;
    color: #34495e;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #3498db;
}

.faq-item {
    margin-bottom: 1rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.faq-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.faq-question {
    width: 100%;
    padding: 1.2rem;
    text-align: left;
    background: none;
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.faq-question:hover {
    color: #3498db;
}

.faq-question i {
    transition: transform 0.3s ease;
}

.faq-question[aria-expanded="true"] i {
    transform: rotate(180deg);
}

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

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

.faq-item.active .faq-answer {
    max-height: 500px;
}

@media (max-width: 768px) {
    .faqs-section {
        padding: 3rem 1rem;
    }

    .faqs-container h2 {
        font-size: 2rem;
    }

    .faq-category h3 {
        font-size: 1.5rem;
    }

    .faq-question {
        font-size: 1rem;
        padding: 1rem;
    }
}

/* Terms and Conditions Page Styles */
.terms-header {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
}

.terms-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255,255,255,0.1) 25%, transparent 25%),
                linear-gradient(-45deg, rgba(255,255,255,0.1) 25%, transparent 25%);
    background-size: 60px 60px;
    opacity: 0.1;
}

.terms-header h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.terms-header p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.terms-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.table-of-contents {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin-bottom: 3rem;
    border: 1px solid rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.table-of-contents:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.table-of-contents h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    position: relative;
    padding-bottom: 0.8rem;
}

.table-of-contents h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.table-of-contents ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.table-of-contents li {
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.table-of-contents li:hover {
    transform: translateX(10px);
}

.table-of-contents a {
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    padding: 0.5rem 0;
    position: relative;
}

.table-of-contents a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 0.3s ease;
}

.table-of-contents a:hover {
    color: var(--primary-color);
}

.table-of-contents a:hover::after {
    width: 100%;
}

.terms-section {
    background: #ffffff;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin-bottom: 3rem;
    border: 1px solid rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.terms-section:hover {
    transform: translateY(-5px);
}

.terms-section h2 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.8rem;
    position: relative;
}

.terms-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.terms-section p {
    color: var(--text-color);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.terms-section ul {
    list-style-type: none;
    padding: 0;
    margin: 1.5rem 0;
}

.terms-section li {
    color: var(--text-color);
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
}

.terms-section li::before {
    content: "•";
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

.terms-section h2:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

@media (max-width: 768px) {
    .terms-header {
        padding: 3rem 1rem;
    }

    .terms-header h1 {
        font-size: 2.2rem;
    }

    .terms-content {
        padding: 0 1rem;
    }

    .table-of-contents,
    .terms-section {
        padding: 1.5rem;
    }

    .terms-section h2 {
        font-size: 1.6rem;
    }

    .terms-section p {
        font-size: 1rem;
    }
}

@media print {
    .table-of-contents,
    .terms-header {
        background: none;
    }

    .table-of-contents,
    .terms-section {
        box-shadow: none;
        border: 1px solid #ddd;
    }

    .terms-header {
        color: #000;
        padding: 1rem;
    }

    .terms-section {
        break-inside: avoid;
    }

    .social-links {
        display: none;
    }
}

.terms-section h1 {
    text-align: center;
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* Mathematics Content Styles */
.subject-content {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 2rem;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.subject-content h2 {
    color: #2c3e50;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.subject-intro {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #34495e;
    margin-bottom: 2rem;
    text-align: center;
}

.why-learn {
    margin: 2rem 0;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.why-learn h3 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

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

.benefits-list li {
    margin: 1rem 0;
    padding: 1rem;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.benefits-list strong {
    color: #3498db;
    display: block;
    margin-bottom: 0.5rem;
}

.explore-section {
    margin: 2rem 0;
}

.explore-section h3 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.topics-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.topics-list li {
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 6px;
    transition: transform 0.3s ease;
}

.topics-list li:hover {
    transform: translateY(-3px);
}

.math-quote {
    font-style: italic;
    font-size: 1.4rem;
    color: #7f8c8d;
    text-align: center;
    margin: 2rem 0;
    padding: 1.5rem;
    border-left: 4px solid #3498db;
    background: #f8f9fa;
}

.sample-question {
    margin: 2rem 0;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    text-align: center;
}

.sample-question h3 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.reveal-answer-btn {
    background: #3498db;
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1rem;
    margin: 1rem 0;
    transition: background 0.3s ease;
}

.reveal-answer-btn:hover {
    background: #2980b9;
}

.answer {
    font-size: 1.2rem;
    color: #27ae60;
    margin-top: 1rem;
    font-weight: bold;
}

@media (max-width: 768px) {
    .subject-content {
        padding: 1rem;
        margin: 1rem;
    }

    .subject-content h2 {
        font-size: 2rem;
    }

    .topics-list {
        grid-template-columns: 1fr;
    }

    .math-quote {
        font-size: 1.2rem;
    }
}

/* Study Guide Styles */
.study-guide {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 2rem;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.study-guide h2 {
    color: #2c3e50;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.study-guide h3 {
    color: #3498db;
    font-size: 1.8rem;
    margin: 2rem 0 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #3498db;
}

.study-guide h4 {
    color: #2c3e50;
    font-size: 1.4rem;
    margin: 1.5rem 0 1rem;
}

/* Study Strategies */
.study-strategies {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 15px;
    margin: 2rem 0;
}

:root {
    --primary-color: #2171B5;
    --secondary-color: #6BAED6;
    --accent-color: #BDD7E7;
    --background-color: #EFF3FF;
    --text-color: #2171B5;
    --button-hover: #6BAED6;
    --button-bg: #BDD7E7;
    --button-text: #2171B5;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

.navbar {
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--primary-color);
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.logo h1 {
    color: var(--background-color);
    font-size: 1.5rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--background-color);
    text-decoration: none;
    font-weight: 500;
    transition: color .3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent-color);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
    position: relative;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #fff;
    margin: 5px 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

.hero {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, var(--background-color), var(--accent-color), var(--secondary-color));
    color: var(--primary-color);
    text-align: center;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: var(--accent-color);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 5px;
    transition: background-color .3s, color .3s, box-shadow .3s;
    box-shadow: 0 4px 16px 0 rgba(33, 113, 181, 0.25), 0 1.5px 4px 0 rgba(33, 113, 181, 0.15);
}

.cta-button:hover {
    background-color: var(--secondary-color);
    color: #fff;
    box-shadow: 0 6px 24px 0 rgba(33, 113, 181, 0.30), 0 2px 8px 0 rgba(33, 113, 181, 0.18);
}

.featured-subjects {
    padding: 4rem 2rem;
    border: 2px solid var(--primary-color);
    border-radius: 15px;
    box-shadow: 0 8px 24px rgba(33, 113, 181, 0.15);
    background: linear-gradient(to bottom right, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7));
    backdrop-filter: blur(10px);
    margin: 2rem auto;
    max-width: 1200px;
    position: relative;
}

.featured-subjects::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border-radius: 17px;
    z-index: -1;
    opacity: 0.7;
}

.featured-subjects h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

.footer-section h3,
.subject-card i {
    margin-bottom: 1rem;
}

.footer-content,
.subject-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.subject-card {
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, .1);
    transition: transform .3s;
    text-align: center;
}

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

.subject-card i {
    font-size: 2.5rem;
    color: var(--secondary-color);
}

.subject-card h3 a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 1.4rem;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    padding-bottom: 0.3rem;
}

.subject-card h3 a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 0.3s ease;
}

.subject-card h3 a:hover {
    color: var(--secondary-color);
    transform: translateY(-2px);
}

.subject-card h3 a:hover::after {
    width: 100%;
}

footer {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #fff;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
    background-color: var(--primary-color);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
    gap: 2rem;
    padding: 0 1rem;
}

.footer-section {
    padding: 1rem;
    display: flex;
    flex-direction: column;
}

.footer-section h3 {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
    text-align: left;
    white-space: nowrap;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background: #4ecca3;
}

.about-section .main-description {
    line-height: 1.6;
    margin-bottom: 1rem;
    color: #e0e0e0;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: #e0e0e0;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.footer-links a:hover {
    color: #4ecca3;
}

.newsletter-form {
    margin-bottom: 1.5rem;
}

.newsletter-form input {
    width: 100%;
    padding: 0.8rem;
    border: none;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    margin-bottom: 0.5rem;
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.newsletter-form button {
    width: 100%;
    padding: 0.8rem;
    background: #4ecca3;
    color: #1a1a2e;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-weight: 600;
}

.newsletter-form button:hover {
    background: #45b392;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.social-icon {
    color: #e0e0e0;
    font-size: 1.5rem;
    transition: transform 0.3s ease, color 0.3s ease;
}

.social-icon:hover {
    color: #4ecca3;
    transform: translateY(-3px);
}

.contact-info {
    margin-top: 1rem;
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #e0e0e0;
}

.contact-info a {
    color: #e0e0e0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: #4ecca3;
}

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

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

.footer-section ul li {
    margin-bottom: .5rem;
}

.footer-section a {
    color: var(--background-color);
    text-decoration: none;
    transition: color .3s;
}

.social-links a {
    font-size: 1.5rem;
}

@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
    .about-section {
        grid-column: 1/-1;
    }
}

@media (max-width: 912px) {
    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        right: -300px;
        width: 280px;
        height: 100vh;
        background-color: var(--primary-color);
        padding: 5rem 1.5rem 2rem;
        flex-direction: column;
        gap: 1.5rem;
        z-index: 1000;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease-in-out;
        border-radius: 0 0 0 10px;
    }
    .nav-links.active {
        display: flex;
        right: 0;
    }
    .mobile-menu-btn {
        display: block;
        position: relative;
        z-index: 1001;
    }
    .mobile-menu-btn span {
        display: block;
        width: 25px;
        height: 3px;
        background-color: #fff;
        margin: 5px 0;
        transition: transform 0.3s ease;
        
    }
    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }
    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
    .nav-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 999;
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    .nav-overlay.active {
        display: block;
        opacity: 1;
    }
    .hero h2 {
        font-size: 2rem;
    }
    .hero p {
        font-size: 1rem;
    }
}

@media (width: 912px) and (height: 1368px) {
    body.tablet-portrait .nav-links {
        padding-top: 8rem;
    }
    body.tablet-portrait .hero {
        padding: 6rem 2rem;
    }
    body.tablet-portrait .hero h2 {
        font-size: 2.2rem;
    }
    body.tablet-portrait .hero p {
        font-size: 1.1rem;
    }
    body.tablet-portrait .featured-subjects {
        padding: 6rem 2rem;
    }
    body.tablet-portrait .subject-card {
        padding: 2.5rem;
    }
    body.tablet-portrait .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        padding-top: 5rem;
    }
    .hero h2 {
        font-size: 1.8rem;
    }
    .hero p {
        font-size: 0.9rem;
    }
}

.focus {
    outline: 3px solid var(--accent-color);
    outline-offset: 2px;
}

@media print {
    .cta-button,
    .navbar,
    footer {
        display: none;
    }
    body {
        background-color: #fff;
        color: #000;
    }
}

.text-center {
    text-align: center;
    margin-top: 3rem;
}

.text-center h1 {
    margin-bottom: 1rem;
}

/* About Wordestool Section */
.about-wordestool {
    padding: 5rem 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.about-wordestool::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
}

.about-wordestool h2 {
    color: #2c3e50;
    font-size: 2.8rem;
    text-align: center;
    margin-bottom: 1rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.about-wordestool h3 {
    color: #3498db;
    font-size: 1.6rem;
    text-align: center;
    margin-bottom: 3rem;
    font-weight: 500;
}

.about-content {
    max-width: 1000px;
    margin: 0 auto;
    background: #ffffff;
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #eef2f7;
}

.about-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.about-content p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #34495e;
    margin-bottom: 2rem;
    text-align: center;
}

.benefits-list {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.benefits-list li {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 12px;
    color: #2c3e50;
    font-size: 1.1rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #eef2f7;
    position: relative;
    overflow: hidden;
}

.benefits-list li::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: #3498db;
    transition: all 0.3s ease;
}

.benefits-list li:hover {
    transform: translateX(5px);
    background: #e3f2fd;
    border-color: #3498db;
}

.benefits-list li:hover::before {
    width: 100%;
    opacity: 0.1;
}

.target-users {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    padding: 2rem;
    border-radius: 12px;
    margin-top: 3rem;
    border: 1px solid #eef2f7;
    transition: all 0.3s ease;
}

.target-users:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.target-users h4 {
    color: #2c3e50;
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 600;
}

.target-users ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.target-users ul li {
    background: #ffffff;
    padding: 1.2rem;
    border-radius: 8px;
    color: #34495e;
    font-size: 1.1rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #eef2f7;
    position: relative;
}

.target-users ul li::before {
    content: "•";
    color: #3498db;
    position: absolute;
    left: 1rem;
    font-size: 1.2rem;
}

.target-users ul li:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border-color: #3498db;
}

/* Responsive Design for About Section */
@media (max-width: 1024px) {
    .benefits-list,
    .target-users ul {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .about-wordestool {
        padding: 3rem 1rem;
    }

    .about-wordestool h2 {
        font-size: 2.2rem;
    }

    .about-wordestool h3 {
        font-size: 1.4rem;
    }

    .about-content {
        padding: 1.5rem;
    }

    .about-content p {
        font-size: 1.1rem;
    }

    .benefits-list,
    .target-users ul {
        grid-template-columns: 1fr;
    }

    .benefits-list li,
    .target-users ul li {
        font-size: 1rem;
    }
}

/* Contact Section Styles */
.contact-section {
    padding: 4rem 2rem;
    background-color: #fff;
}

.contact-section h2 {
    text-align: center;
    color: #2c3e50;
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.contact-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info {
    padding: 2rem;
}

.contact-info h3 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.contact-info p {
    color: #34495e;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-item i {
    font-size: 1.5rem;
    color: #3498db;
    margin-top: 0.5rem;
}

.contact-item h4 {
    color: #2c3e50;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.contact-item p {
    color: #34495e;
    margin: 0;
}

.contact-item a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s;
}

.contact-item a:hover {
    color: #2980b9;
}

.contact-form {
    background-color: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.contact-form h3 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #3498db;
    outline: none;
}

.submit-btn {
    background-color: #3498db;
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.submit-btn:hover {
    background-color: #2980b9;
}

/* Responsive Design for Contact Section */
@media (max-width: 768px) {
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .contact-section {
        padding: 3rem 1rem;
    }
    .contact-section h2 {
        font-size: 2rem;
    }
    .contact-info h3,
    .contact-form h3 {
        font-size: 1.5rem;
    }
    .contact-info p {
        font-size: 1rem;
    }
}

/* Quiz Instructions Section Styles */
.quiz-instructions {
    padding: 2rem;
    background-color: #f8f9fa;
    border-radius: 10px;
    margin: 2rem 0;
}

.quiz-instructions h2 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 2rem;
    font-size: 2rem;
}

.instructions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.instruction-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.instruction-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.instruction-card i {
    font-size: 2rem;
    color: #3498db;
    margin-bottom: 1rem;
}

.instruction-card h3 {
    color: #2c3e50;
    margin-bottom: 0.8rem;
    font-size: 1.2rem;
}

.instruction-card p {
    color: #666;
    line-height: 1.5;
}

.instruction-card ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.instruction-card ul li {
    color: #666;
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.instruction-card ul li:before {
    content: "•";
    color: #3498db;
    position: absolute;
    left: 0;
}

.tip-card {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border: 2px solid #3498db;
}

.tip-card i {
    color: #f1c40f;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .instructions-grid {
        grid-template-columns: 1fr;
    }
    
    .quiz-instructions {
        padding: 1rem;
    }
    
    .instruction-card {
        padding: 1rem;
    }
}

/* Math Learning Content Section Styles */
.learning-content {
    padding: 3rem 2rem;
    background-color: #f8f9fa;
    margin: 2rem 0;
}

.learning-content h2 {
    text-align: center;
    color: #2c3e50;
    font-size: 2.2rem;
    margin-bottom: 2rem;
}

.content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}

.intro-text {
    font-size: 1.2em;
    line-height: 1.6;
    color: #555;
    margin-bottom: 30px;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Special styling for the final call-to-action paragraph */
.intro-text:last-of-type {
    text-align: center;
    font-size: 1.3rem;
    font-weight: 500;
    color: #2c3e50;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin: 2.5rem 0;
    border: 2px solid #3498db;
    position: relative;
    overflow: hidden;
}

.intro-text:last-of-type::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
}

.intro-text:last-of-type:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

/* Responsive adjustments for the styled paragraph */
@media (max-width: 768px) {
    .intro-text:last-of-type {
        font-size: 1.1rem;
        padding: 1.5rem;
        margin: 2rem 0;
    }
}

.features-section {
    margin-bottom: 3rem;
}

.features-section h3 {
    text-align: center;
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 2rem;
}

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

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.feature-card i {
    font-size: 2.5rem;
    color: #3498db;
    margin-bottom: 1rem;
}

.feature-card h4 {
    color: #2c3e50;
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.feature-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-card ul li {
    color: #666;
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
}

.feature-card ul li:before {
    content: "•";
    color: #3498db;
    position: absolute;
    left: 0;
}

.benefits-section {
    text-align: center;
    margin-top: 3rem;
}

.benefits-section p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #34495e;
    margin-bottom: 2rem;
}

.cta-box {
    background: linear-gradient(135deg, #3498db, #2980b9);
    padding: 2rem;
    border-radius: 10px;
    color: white;
}

.cta-text {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: white;
    color: #3498db;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .learning-content {
        padding: 2rem 1rem;
    }

    .learning-content h2 {
        font-size: 1.8rem;
    }

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

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .cta-box {
        padding: 1.5rem;
    }
}

/* Mathematics History Section Styles */
.math-history {
    padding: 4rem 2rem;
    background-color: #fff;
    margin: 2rem 0;
}

.math-history h2 {
    text-align: center;
    color: #2c3e50;
    font-size: 2.2rem;
    margin-bottom: 2rem;
}

.history-content {
    max-width: 1200px;
    margin: 0 auto;
}

.history-intro {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #34495e;
    margin-bottom: 3rem;
    text-align: center;
}

.history-timeline {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.timeline-item {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

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

.timeline-item::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background-color: #3498db;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.2);
}

.timeline-item h3 {
    color: #2c3e50;
    font-size: 1.4rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #3498db;
}

.timeline-item p {
    color: #666;
    line-height: 1.8;
    font-size: 1.1rem;
}

/* Responsive adjustments for history section */
@media (max-width: 768px) {
    .math-history {
        padding: 2rem 1rem;
    }

    .math-history h2 {
        font-size: 1.8rem;
    }

    .history-intro {
        font-size: 1.1rem;
    }

    .timeline-item {
        padding: 1.5rem;
    }

    .timeline-item h3 {
        font-size: 1.2rem;
    }

    .timeline-item p {
        font-size: 1rem;
    }

    .timeline-item::before {
        left: -15px;
        width: 15px;
        height: 15px;
    }
}

/* Quiz Container and Controls Styling */
#quiz-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

#quiz-section.quiz-active {
    background-color: #f8f9fa;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin: 2rem auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#quiz-container {
    display: none;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 2rem;
}

#quiz-container.active {
    display: block !important;
}

.quiz-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 2px solid #f0f0f0;
    width: 100%;
}

.skip-btn, .stop-btn {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    min-width: 150px;
    display: inline-block;
}

.skip-btn {
    background-color: #f8f9fa;
    color: #3498db;
    border: 2px solid #3498db;
}

.skip-btn:hover {
    background-color: #3498db;
    color: white;
}

.stop-btn {
    background-color: #e74c3c;
    color: white;
}

.stop-btn:hover {
    background-color: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(231, 76, 60, 0.2);
}

/* Quiz Active State Styles */
.quiz-section.quiz-active {
    animation: quizHighlight 2s ease-out;
    position: relative;
}

@keyframes quizHighlight {
    0% {
        box-shadow: 0 0 0 0 rgba(52, 152, 219, 0.4);
    }
    50% {
        box-shadow: 0 0 20px 10px rgba(52, 152, 219, 0.2);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(52, 152, 219, 0);
    }
}

.quiz-section.quiz-active #quiz-container {
    animation: quizContainerHighlight 2s ease-out;
}

@keyframes quizContainerHighlight {
    0% {
        transform: scale(1);
    }
    5% {
        transform: scale(1.02);
    }
    100% {
        transform: scale(1);
    }
}

/* Ensure smooth scrolling behavior for the entire page */
html {
    scroll-behavior: smooth;
}

/* Mobile-specific adjustments */
@media (max-width: 768px) {
    .quiz-section.quiz-active {
        margin: 1rem 0;
    }
    
    .quiz-section.quiz-active #quiz-container {
        margin: 0.5rem;
    }
}

/* Math Topics Detail Section Styling */
.math-topics-detail {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.topic-detail {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 2.5rem;
    padding: 2.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.topic-detail:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.topic-detail h2 {
    color: #2c3e50;
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.8rem;
}

.topic-detail h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: #3498db;
}

.topic-detail p {
    color: #34495e;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

/* Topic-specific styling */
.topic-detail.algebra h2::after {
    background: #e74c3c;
}

.topic-detail.calculus h2::after {
    background: #2ecc71;
}

.topic-detail.geometry h2::after {
    background: #f1c40f;
}

.topic-detail.statistics h2::after {
    background: #9b59b6;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .math-topics-detail {
        padding: 0 1rem;
        margin: 2rem auto;
    }

    .topic-detail {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .topic-detail h2 {
        font-size: 1.8rem;
    }

    .topic-detail p {
        font-size: 1rem;
    }
}

@media screen and (max-width: 480px) {
    .topic-detail {
        padding: 1.2rem;
    }

    .topic-detail h2 {
        font-size: 1.5rem;
    }
}

/* Geography Introduction Section Styles */
.geography-intro {
    padding: 3rem 2rem;
    background-color: #f8f9fa;
    margin: 2rem 0;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.geography-intro h2 {
    color: #2c3e50;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 700;
}

.intro-content {
    max-width: 1200px;
    margin: 0 auto;
}

.intro-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #34495e;
    margin-bottom: 1.5rem;
    text-align: justify;
}

.geography-topics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.topic-item {
    background-color: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.topic-item:hover {
    transform: translateY(-5px);
}

.topic-item h3 {
    color: #2c3e50;
    font-size: 1.4rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.topic-item p {
    color: #666;
    line-height: 1.6;
}

.benefits-section {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    margin: 2rem 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.benefits-section h3 {
    color: #2c3e50;
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

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

.benefits-list li {
    font-size: 1.1rem;
    color: #34495e;
    margin-bottom: 1rem;
    padding-left: 1rem;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .geography-intro {
        padding: 2rem 1rem;
    }

    .geography-intro h2 {
        font-size: 2rem;
    }

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

    .geography-topics {
        grid-template-columns: 1fr;
    }

    .topic-item {
        padding: 1.2rem;
    }
}

/* Geography History Section Styles */
.geography-history {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    margin: 3rem 0;
}

.geography-history h2 {
    color: #2c3e50;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 700;
}

.history-content {
    max-width: 1200px;
    margin: 0 auto;
}

.history-intro {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #34495e;
    text-align: center;
    margin-bottom: 3rem;
    padding: 0 2rem;
}

.geography-history h3 {
    color: #2c3e50;
    font-size: 1.8rem;
    text-align: center;
    margin: 3rem 0 2rem;
    position: relative;
}

.geography-history h3::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    margin: 1rem auto;
    border-radius: 2px;
}

.timeline-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.timeline-item {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.timeline-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.timeline-item h4 {
    color: #2c3e50;
    font-size: 1.4rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #3498db;
}

.timeline-item p {
    color: #34495e;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.timeline-details {
    list-style: none;
    padding: 0;
    margin: 0;
}

.timeline-details li {
    color: #666;
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
}

.timeline-details li::before {
    content: "•";
    color: #3498db;
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

.impact-section {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin: 3rem 0;
    text-align: center;
}

.impact-section h3 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.impact-list {
    list-style: none;
    padding: 0;
    display: inline-block;
    text-align: left;
}

.impact-list li {
    font-size: 1.1rem;
    color: #34495e;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.geography-quote {
    font-size: 1.4rem;
    color: #2c3e50;
    text-align: center;
    font-style: italic;
    margin: 3rem 0;
    padding: 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
}

.geography-quote::before,
.geography-quote::after {
    content: '"';
    font-size: 3rem;
    color: #3498db;
    position: absolute;
    opacity: 0.2;
}

.geography-quote::before {
    top: 0;
    left: 1rem;
}

.geography-quote::after {
    bottom: 0;
    right: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .geography-history {
        padding: 2rem 1rem;
    }

    .geography-history h2 {
        font-size: 2rem;
    }

    .history-intro {
        font-size: 1.1rem;
        padding: 0 1rem;
    }

    .timeline-container {
        grid-template-columns: 1fr;
    }

    .timeline-item {
    padding: 1.5rem;
    }

    .geography-quote {
        font-size: 1.2rem;
        padding: 1.5rem;
    }
}

/* Geography Topics Detail Section Styles */
.geography-topics-detail {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    margin: 3rem 0;
}

.topic-detail {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 3rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.topic-detail:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
}

.topic-detail h2 {
    color: #2c3e50;
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.8rem;
}

.topic-detail h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    border-radius: 2px;
}

.topic-detail p {
    color: #34495e;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.quiz-topics {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    margin: 2rem 0;
}

.quiz-topics h3 {
    color: #2c3e50;
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.topic-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.topic-list li {
    color: #34495e;
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
}

.topic-importance,
.topic-fact,
.topic-tip,
.topic-impact {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 1.5rem;
    border-radius: 10px;
    margin-top: 2rem;
    border-left: 4px solid #3498db;
}

.topic-importance h4,
.topic-fact h4,
.topic-tip h4,
.topic-impact h4 {
    color: #2c3e50;
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
}

.topic-importance p,
.topic-fact p,
.topic-tip p,
.topic-impact p {
    color: #34495e;
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0;
}

/* Topic-specific styling */
.topic-detail.world-geography h2::after {
    background: linear-gradient(90deg, #3498db, #2ecc71);
}

.topic-detail.countries h2::after {
    background: linear-gradient(90deg, #e74c3c, #f39c12);
}

.topic-detail.capitals h2::after {
    background: linear-gradient(90deg, #9b59b6, #3498db);
}

.topic-detail.physical h2::after {
    background: linear-gradient(90deg, #2ecc71, #27ae60);
}

/* Responsive Design */
@media (max-width: 768px) {
    .geography-topics-detail {
        padding: 2rem 1rem;
    }

    .topic-detail {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }

    .topic-detail h2 {
        font-size: 1.8rem;
    }

    .topic-detail p,
    .topic-list li {
        font-size: 1rem;
    }

    .quiz-topics h3 {
        font-size: 1.2rem;
    }

    .topic-importance h4,
    .topic-fact h4,
    .topic-tip h4,
    .topic-impact h4 {
        font-size: 1.1rem;
    }
}

/* History Introduction Section Styles */
.history-intro-section {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    margin: 3rem 0;
}

.history-intro-section h2 {
    color: #2c3e50;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 700;
}

.history-intro-content {
    max-width: 1200px;
    margin: 0 auto;
}

.history-intro-content .intro-text {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #34495e;
    margin-bottom: 2rem;
    text-align: justify;
}

.history-topics,
.history-importance,
.quiz-exploration {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin: 2rem 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.history-topics:hover,
.history-importance:hover,
.quiz-exploration:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.history-topics h3,
.history-importance h3,
.quiz-exploration h3 {
    color: #2c3e50;
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.8rem;
}

.history-topics h3::after,
.history-importance h3::after,
.quiz-exploration h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    border-radius: 2px;
}

.topic-list,
.importance-list,
.exploration-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.topic-list li,
.importance-list li,
.exploration-list li {
    color: #34495e;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
}

.topic-list li::before,
.importance-list li::before,
.exploration-list li::before {
    content: "•";
    color: #3498db;
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

.conclusion-text {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #34495e;
    text-align: center;
    margin-top: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.conclusion-text::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
}

/* Responsive Design for History Introduction Section */
@media (max-width: 768px) {
    .history-intro-section {
        padding: 2rem 1rem;
    }

    .history-intro-section h2 {
        font-size: 2rem;
    }

    .history-intro-content .intro-text {
        font-size: 1.1rem;
    }

    .history-topics,
    .history-importance,
    .quiz-exploration {
        padding: 1.5rem;
    }

    .history-topics h3,
    .history-importance h3,
    .quiz-exploration h3 {
        font-size: 1.4rem;
    }

    .topic-list li,
    .importance-list li,
    .exploration-list li {
        font-size: 1rem;
    }

    .conclusion-text {
        font-size: 1.1rem;
        padding: 1.5rem;
    }
}

/* History Evolution Section Styles */
.history-evolution-section {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    margin: 3rem 0;
}

.history-evolution-section h2 {
    color: #2c3e50;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 700;
}

.evolution-content {
    max-width: 1200px;
    margin: 0 auto;
}

.evolution-intro {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #34495e;
    margin-bottom: 3rem;
    text-align: justify;
}

.evolution-period {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin: 2rem 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.evolution-period:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.evolution-period h3 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.8rem;
}

.evolution-period h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    border-radius: 2px;
}

.evolution-period p {
    color: #34495e;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.period-list,
.achievement-list,
.importance-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
}

.period-list li,
.achievement-list li,
.importance-list li {
    color: #34495e;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
}

.period-list li::before,
.achievement-list li::before,
.importance-list li::before {
    content: "•";
    color: #3498db;
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

.evolution-importance {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem 0;
    border-left: 4px solid #3498db;
}

.evolution-importance h3 {
    color: #2c3e50;
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
}

.history-quote {
    font-size: 1.4rem;
    color: #2c3e50;
    text-align: center;
    font-style: italic;
    margin: 3rem 0;
    padding: 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
}

.history-quote::before,
.history-quote::after {
    content: '"';
    font-size: 3rem;
    color: #3498db;
    position: absolute;
    opacity: 0.2;
}

.history-quote::before {
    top: 0;
    left: 1rem;
}

.history-quote::after {
    bottom: 0;
    right: 1rem;
}

/* Period-specific styling */
.evolution-period.ancient h3::after {
    background: linear-gradient(90deg, #e74c3c, #f39c12);
}

.evolution-period.medieval h3::after {
    background: linear-gradient(90deg, #9b59b6, #3498db);
}

.evolution-period.scientific h3::after {
    background: linear-gradient(90deg, #2ecc71, #27ae60);
}

.evolution-period.modern h3::after {
    background: linear-gradient(90deg, #3498db, #2980b9);
}

/* Responsive Design for History Evolution Section */
@media (max-width: 768px) {
    .history-evolution-section {
        padding: 2rem 1rem;
    }

    .history-evolution-section h2 {
        font-size: 2rem;
    }

    .evolution-intro {
        font-size: 1.1rem;
    }

    .evolution-period {
        padding: 1.5rem;
    }

    .evolution-period h3 {
        font-size: 1.5rem;
    }

    .evolution-period p,
    .period-list li,
    .importance-list li {
        font-size: 1rem;
    }

    .history-quote {
        font-size: 1.2rem;
        padding: 1.5rem;
    }
}

/* Historical Periods Section Styles */
.historical-periods {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    margin: 3rem 0;
}

.periods-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.period-card {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.period-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.period-card h2 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.8rem;
}

.period-card h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    border-radius: 2px;
}

.period-card p {
    color: #34495e;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

:root {
    --primary-color: #2171B5;
    --secondary-color: #6BAED6;
    --accent-color: #BDD7E7;
    --background-color: #EFF3FF;
    --text-color: #2171B5;
    --button-hover: #6BAED6;
    --button-bg: #BDD7E7;
    --button-text: #2171B5;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

.navbar {
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--primary-color);
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.logo h1 {
    color: var(--background-color);
    font-size: 1.5rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--background-color);
    text-decoration: none;
    font-weight: 500;
    transition: color .3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent-color);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
    position: relative;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #fff;
    margin: 5px 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

.hero {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, var(--background-color), var(--accent-color), var(--secondary-color));
    color: var(--primary-color);
    text-align: center;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: var(--accent-color);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 5px;
    transition: background-color .3s, color .3s, box-shadow .3s;
    box-shadow: 0 4px 16px 0 rgba(33, 113, 181, 0.25), 0 1.5px 4px 0 rgba(33, 113, 181, 0.15);
}

.cta-button:hover {
    background-color: var(--secondary-color);
    color: #fff;
    box-shadow: 0 6px 24px 0 rgba(33, 113, 181, 0.30), 0 2px 8px 0 rgba(33, 113, 181, 0.18);
}

.featured-subjects {
    padding: 4rem 2rem;
    border: 2px solid var(--primary-color);
    border-radius: 15px;
    box-shadow: 0 8px 24px rgba(33, 113, 181, 0.15);
    background: linear-gradient(to bottom right, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7));
    backdrop-filter: blur(10px);
    margin: 2rem auto;
    max-width: 1200px;
    position: relative;
}

.featured-subjects::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border-radius: 17px;
    z-index: -1;
    opacity: 0.7;
}

.featured-subjects h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

.footer-section h3,
.subject-card i {
    margin-bottom: 1rem;
}

.footer-content,
.subject-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.subject-card {
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, .1);
    transition: transform .3s;
    text-align: center;
}

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

.subject-card i {
    font-size: 2.5rem;
    color: var(--secondary-color);
}

.subject-card h3 a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 1.4rem;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    padding-bottom: 0.3rem;
}

.subject-card h3 a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 0.3s ease;
}

.subject-card h3 a:hover {
    color: var(--secondary-color);
    transform: translateY(-2px);
}

.subject-card h3 a:hover::after {
    width: 100%;
}

footer {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #fff;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
    background-color: var(--primary-color);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
    gap: 2rem;
    padding: 0 1rem;
}

.footer-section {
    padding: 1rem;
    display: flex;
    flex-direction: column;
}

.footer-section h3 {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
    text-align: left;
    white-space: nowrap;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background: #4ecca3;
}

.about-section .main-description {
    line-height: 1.6;
    margin-bottom: 1rem;
    color: #e0e0e0;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: #e0e0e0;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.footer-links a:hover {
    color: #4ecca3;
}

.newsletter-form {
    margin-bottom: 1.5rem;
}

.newsletter-form input {
    width: 100%;
    padding: 0.8rem;
    border: none;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    margin-bottom: 0.5rem;
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.newsletter-form button {
    width: 100%;
    padding: 0.8rem;
    background: #4ecca3;
    color: #1a1a2e;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-weight: 600;
}

.newsletter-form button:hover {
    background: #45b392;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.social-icon {
    color: #e0e0e0;
    font-size: 1.5rem;
    transition: transform 0.3s ease, color 0.3s ease;
}

.social-icon:hover {
    color: #4ecca3;
    transform: translateY(-3px);
}

.contact-info {
    margin-top: 1rem;
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #e0e0e0;
}

.contact-info a {
    color: #e0e0e0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: #4ecca3;
}

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

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

.footer-section ul li {
    margin-bottom: .5rem;
}

.footer-section a {
    color: var(--background-color);
    text-decoration: none;
    transition: color .3s;
}

.social-links a {
    font-size: 1.5rem;
}

@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
    .about-section {
        grid-column: 1/-1;
    }
}

@media (max-width: 912px) {
    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        right: -300px;
        width: 280px;
        height: 100vh;
        background-color: var(--primary-color);
        padding: 5rem 1.5rem 2rem;
        flex-direction: column;
        gap: 1.5rem;
        z-index: 1000;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease-in-out;
        border-radius: 0 0 0 10px;
    }
    .nav-links.active {
        display: flex;
        right: 0;
    }
    .mobile-menu-btn {
        display: block;
        position: relative;
        z-index: 1001;
    }
    .mobile-menu-btn span {
        display: block;
        width: 25px;
        height: 3px;
        background-color: #fff;
        margin: 5px 0;
        transition: transform 0.3s ease;
        
    }
    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }
    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
    .nav-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 999;
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    .nav-overlay.active {
        display: block;
        opacity: 1;
    }
    .hero h2 {
        font-size: 2rem;
    }
    .hero p {
        font-size: 1rem;
    }
}

@media (width: 912px) and (height: 1368px) {
    body.tablet-portrait .nav-links {
        padding-top: 8rem;
    }
    body.tablet-portrait .hero {
        padding: 6rem 2rem;
    }
    body.tablet-portrait .hero h2 {
        font-size: 2.2rem;
    }
    body.tablet-portrait .hero p {
        font-size: 1.1rem;
    }
    body.tablet-portrait .featured-subjects {
        padding: 6rem 2rem;
    }
    body.tablet-portrait .subject-card {
        padding: 2.5rem;
    }
    body.tablet-portrait .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        padding-top: 5rem;
    }
    .hero h2 {
        font-size: 1.8rem;
    }
    .hero p {
        font-size: 0.9rem;
    }
}

.focus {
    outline: 3px solid var(--accent-color);
    outline-offset: 2px;
}

@media print {
    .cta-button,
    .navbar,
    footer {
        display: none;
    }
    body {
        background-color: #fff;
        color: #000;
    }
}

.text-center {
    text-align: center;
    margin-top: 3rem;
}

.text-center h1 {
    margin-bottom: 1rem;
}

/* About Wordestool Section */
.about-wordestool {
    padding: 5rem 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.about-wordestool::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
}

.about-wordestool h2 {
    color: #2c3e50;
    font-size: 2.8rem;
    text-align: center;
    margin-bottom: 1rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.about-wordestool h3 {
    color: #3498db;
    font-size: 1.6rem;
    text-align: center;
    margin-bottom: 3rem;
    font-weight: 500;
}

.about-content {
    max-width: 1000px;
    margin: 0 auto;
    background: #ffffff;
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #eef2f7;
}

.about-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.about-content p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #34495e;
    margin-bottom: 2rem;
    text-align: center;
}

.benefits-list {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.benefits-list li {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 12px;
    color: #2c3e50;
    font-size: 1.1rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #eef2f7;
    position: relative;
    overflow: hidden;
}

.benefits-list li::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: #3498db;
    transition: all 0.3s ease;
}

.benefits-list li:hover {
    transform: translateX(5px);
    background: #e3f2fd;
    border-color: #3498db;
}

.benefits-list li:hover::before {
    width: 100%;
    opacity: 0.1;
}

.target-users {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    padding: 2rem;
    border-radius: 12px;
    margin-top: 3rem;
    border: 1px solid #eef2f7;
    transition: all 0.3s ease;
}

.target-users:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.target-users h4 {
    color: #2c3e50;
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 600;
}

.target-users ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.target-users ul li {
    background: #ffffff;
    padding: 1.2rem;
    border-radius: 8px;
    color: #34495e;
    font-size: 1.1rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #eef2f7;
    position: relative;
}

.target-users ul li::before {
    content: "•";
    color: #3498db;
    position: absolute;
    left: 1rem;
    font-size: 1.2rem;
}

.target-users ul li:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border-color: #3498db;
}

/* Responsive Design for About Section */
@media (max-width: 1024px) {
    .benefits-list,
    .target-users ul {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .about-wordestool {
        padding: 3rem 1rem;
    }

    .about-wordestool h2 {
        font-size: 2.2rem;
    }

    .about-wordestool h3 {
        font-size: 1.4rem;
    }

    .about-content {
        padding: 1.5rem;
    }

    .about-content p {
        font-size: 1.1rem;
    }

    .benefits-list,
    .target-users ul {
        grid-template-columns: 1fr;
    }

    .benefits-list li,
    .target-users ul li {
        font-size: 1rem;
    }
}

/* Contact Section Styles */
.contact-section {
    padding: 4rem 2rem;
    background-color: #fff;
}

.contact-section h2 {
    text-align: center;
    color: #2c3e50;
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.contact-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info {
    padding: 2rem;
}

.contact-info h3 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.contact-info p {
    color: #34495e;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-item i {
    font-size: 1.5rem;
    color: #3498db;
    margin-top: 0.5rem;
}

.contact-item h4 {
    color: #2c3e50;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.contact-item p {
    color: #34495e;
    margin: 0;
}

.contact-item a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s;
}

.contact-item a:hover {
    color: #2980b9;
}

.contact-form {
    background-color: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.contact-form h3 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #3498db;
    outline: none;
}

.submit-btn {
    background-color: #3498db;
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.submit-btn:hover {
    background-color: #2980b9;
}

/* Responsive Design for Contact Section */
@media (max-width: 768px) {
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .contact-section {
        padding: 3rem 1rem;
    }
    .contact-section h2 {
        font-size: 2rem;
    }
    .contact-info h3,
    .contact-form h3 {
        font-size: 1.5rem;
    }
    .contact-info p {
        font-size: 1rem;
    }
}

/* Quiz Instructions Section Styles */
.quiz-instructions {
    padding: 2rem;
    background-color: #f8f9fa;
    border-radius: 10px;
    margin: 2rem 0;
}

.quiz-instructions h2 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 2rem;
    font-size: 2rem;
}

.instructions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.instruction-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.instruction-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.instruction-card i {
    font-size: 2rem;
    color: #3498db;
    margin-bottom: 1rem;
}

.instruction-card h3 {
    color: #2c3e50;
    margin-bottom: 0.8rem;
    font-size: 1.2rem;
}

.instruction-card p {
    color: #666;
    line-height: 1.5;
}

.instruction-card ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.instruction-card ul li {
    color: #666;
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.instruction-card ul li:before {
    content: "•";
    color: #3498db;
    position: absolute;
    left: 0;
}

.tip-card {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border: 2px solid #3498db;
}

.tip-card i {
    color: #f1c40f;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .instructions-grid {
        grid-template-columns: 1fr;
    }
    
    .quiz-instructions {
        padding: 1rem;
    }
    
    .instruction-card {
        padding: 1rem;
    }
}

/* Math Learning Content Section Styles */
.learning-content {
    padding: 3rem 2rem;
    background-color: #f8f9fa;
    margin: 2rem 0;
}

.learning-content h2 {
    text-align: center;
    color: #2c3e50;
    font-size: 2.2rem;
    margin-bottom: 2rem;
}

.content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}

.intro-text {
    font-size: 1.2em;
    line-height: 1.6;
    color: #555;
    margin-bottom: 30px;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Special styling for the final call-to-action paragraph */
.intro-text:last-of-type {
    text-align: center;
    font-size: 1.3rem;
    font-weight: 500;
    color: #2c3e50;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin: 2.5rem 0;
    border: 2px solid #3498db;
    position: relative;
    overflow: hidden;
}

.intro-text:last-of-type::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
}

.intro-text:last-of-type:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

/* Responsive adjustments for the styled paragraph */
@media (max-width: 768px) {
    .intro-text:last-of-type {
        font-size: 1.1rem;
        padding: 1.5rem;
        margin: 2rem 0;
    }
}

.features-section {
    margin-bottom: 3rem;
}

.features-section h3 {
    text-align: center;
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 2rem;
}

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

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.feature-card i {
    font-size: 2.5rem;
    color: #3498db;
    margin-bottom: 1rem;
}

.feature-card h4 {
    color: #2c3e50;
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.feature-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-card ul li {
    color: #666;
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
}

.feature-card ul li:before {
    content: "•";
    color: #3498db;
    position: absolute;
    left: 0;
}

.benefits-section {
    text-align: center;
    margin-top: 3rem;
}

.benefits-section p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #34495e;
    margin-bottom: 2rem;
}

.cta-box {
    background: linear-gradient(135deg, #3498db, #2980b9);
    padding: 2rem;
    border-radius: 10px;
    color: white;
}

.cta-text {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: white;
    color: #3498db;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .learning-content {
        padding: 2rem 1rem;
    }

    .learning-content h2 {
        font-size: 1.8rem;
    }

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

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .cta-box {
        padding: 1.5rem;
    }
}

/* Mathematics History Section Styles */
.math-history {
    padding: 4rem 2rem;
    background-color: #fff;
    margin: 2rem 0;
}

.math-history h2 {
    text-align: center;
    color: #2c3e50;
    font-size: 2.2rem;
    margin-bottom: 2rem;
}

.history-content {
    max-width: 1200px;
    margin: 0 auto;
}

.history-intro {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #34495e;
    margin-bottom: 3rem;
    text-align: center;
}

.history-timeline {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.timeline-item {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

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

.timeline-item::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background-color: #3498db;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.2);
}

.timeline-item h3 {
    color: #2c3e50;
    font-size: 1.4rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #3498db;
}

.timeline-item p {
    color: #666;
    line-height: 1.8;
    font-size: 1.1rem;
}

/* Responsive adjustments for history section */
@media (max-width: 768px) {
    .math-history {
        padding: 2rem 1rem;
    }

    .math-history h2 {
        font-size: 1.8rem;
    }

    .history-intro {
        font-size: 1.1rem;
    }

    .timeline-item {
        padding: 1.5rem;
    }

    .timeline-item h3 {
        font-size: 1.2rem;
    }

    .timeline-item p {
        font-size: 1rem;
    }

    .timeline-item::before {
        left: -15px;
        width: 15px;
        height: 15px;
    }
}

/* Quiz Container and Controls Styling */
#quiz-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

#quiz-section.quiz-active {
    background-color: #f8f9fa;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin: 2rem auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#quiz-container {
    display: none;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 2rem;
}

#quiz-container.active {
    display: block !important;
}

.quiz-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 2px solid #f0f0f0;
    width: 100%;
}

.skip-btn, .stop-btn {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    min-width: 150px;
    display: inline-block;
}

.skip-btn {
    background-color: #f8f9fa;
    color: #3498db;
    border: 2px solid #3498db;
}

.skip-btn:hover {
    background-color: #3498db;
    color: white;
}

.stop-btn {
    background-color: #e74c3c;
    color: white;
}

.stop-btn:hover {
    background-color: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(231, 76, 60, 0.2);
}

/* Quiz Active State Styles */
.quiz-section.quiz-active {
    animation: quizHighlight 2s ease-out;
    position: relative;
}

@keyframes quizHighlight {
    0% {
        box-shadow: 0 0 0 0 rgba(52, 152, 219, 0.4);
    }
    50% {
        box-shadow: 0 0 20px 10px rgba(52, 152, 219, 0.2);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(52, 152, 219, 0);
    }
}

.quiz-section.quiz-active #quiz-container {
    animation: quizContainerHighlight 2s ease-out;
}

@keyframes quizContainerHighlight {
    0% {
        transform: scale(1);
    }
    5% {
        transform: scale(1.02);
    }
    100% {
        transform: scale(1);
    }
}

/* Ensure smooth scrolling behavior for the entire page */
html {
    scroll-behavior: smooth;
}

/* Mobile-specific adjustments */
@media (max-width: 768px) {
    .quiz-section.quiz-active {
        margin: 1rem 0;
    }
    
    .quiz-section.quiz-active #quiz-container {
        margin: 0.5rem;
    }
}

/* Math Topics Detail Section Styling */
.math-topics-detail {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.topic-detail {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 2.5rem;
    padding: 2.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.topic-detail:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.topic-detail h2 {
    color: #2c3e50;
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.8rem;
}

.topic-detail h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: #3498db;
}

.topic-detail p {
    color: #34495e;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

/* Topic-specific styling */
.topic-detail.algebra h2::after {
    background: #e74c3c;
}

.topic-detail.calculus h2::after {
    background: #2ecc71;
}

.topic-detail.geometry h2::after {
    background: #f1c40f;
}

.topic-detail.statistics h2::after {
    background: #9b59b6;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .math-topics-detail {
        padding: 0 1rem;
        margin: 2rem auto;
    }

    .topic-detail {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .topic-detail h2 {
        font-size: 1.8rem;
    }

    .topic-detail p {
        font-size: 1rem;
    }
}

@media screen and (max-width: 480px) {
    .topic-detail {
        padding: 1.2rem;
    }

    .topic-detail h2 {
        font-size: 1.5rem;
    }
}

/* Geography Introduction Section Styles */
.geography-intro {
    padding: 3rem 2rem;
    background-color: #f8f9fa;
    margin: 2rem 0;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.geography-intro h2 {
    color: #2c3e50;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 700;
}

.intro-content {
    max-width: 1200px;
    margin: 0 auto;
}

.intro-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #34495e;
    margin-bottom: 1.5rem;
    text-align: justify;
}

.geography-topics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.topic-item {
    background-color: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.topic-item:hover {
    transform: translateY(-5px);
}

.topic-item h3 {
    color: #2c3e50;
    font-size: 1.4rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.topic-item p {
    color: #666;
    line-height: 1.6;
}

.benefits-section {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    margin: 2rem 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.benefits-section h3 {
    color: #2c3e50;
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

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

.benefits-list li {
    font-size: 1.1rem;
    color: #34495e;
    margin-bottom: 1rem;
    padding-left: 1rem;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .geography-intro {
        padding: 2rem 1rem;
    }

    .geography-intro h2 {
        font-size: 2rem;
    }

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

    .geography-topics {
        grid-template-columns: 1fr;
    }

    .topic-item {
        padding: 1.2rem;
    }
}

/* Geography History Section Styles */
.geography-history {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    margin: 3rem 0;
}

.geography-history h2 {
    color: #2c3e50;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 700;
}

.history-content {
    max-width: 1200px;
    margin: 0 auto;
}

.history-intro {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #34495e;
    text-align: center;
    margin-bottom: 3rem;
    padding: 0 2rem;
}

.geography-history h3 {
    color: #2c3e50;
    font-size: 1.8rem;
    text-align: center;
    margin: 3rem 0 2rem;
    position: relative;
}

.geography-history h3::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    margin: 1rem auto;
    border-radius: 2px;
}

.timeline-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.timeline-item {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.timeline-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.timeline-item h4 {
    color: #2c3e50;
    font-size: 1.4rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #3498db;
}

.timeline-item p {
    color: #34495e;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.timeline-details {
    list-style: none;
    padding: 0;
    margin: 0;
}

.timeline-details li {
    color: #666;
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
}

.timeline-details li::before {
    content: "•";
    color: #3498db;
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

.impact-section {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin: 3rem 0;
    text-align: center;
}

.impact-section h3 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.impact-list {
    list-style: none;
    padding: 0;
    display: inline-block;
    text-align: left;
}

.impact-list li {
    font-size: 1.1rem;
    color: #34495e;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.geography-quote {
    font-size: 1.4rem;
    color: #2c3e50;
    text-align: center;
    font-style: italic;
    margin: 3rem 0;
    padding: 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
}

.geography-quote::before,
.geography-quote::after {
    content: '"';
    font-size: 3rem;
    color: #3498db;
    position: absolute;
    opacity: 0.2;
}

.geography-quote::before {
    top: 0;
    left: 1rem;
}

.geography-quote::after {
    bottom: 0;
    right: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .geography-history {
        padding: 2rem 1rem;
    }

    .geography-history h2 {
        font-size: 2rem;
    }

    .history-intro {
        font-size: 1.1rem;
        padding: 0 1rem;
    }

    .timeline-container {
        grid-template-columns: 1fr;
    }

    .timeline-item {
    padding: 1.5rem;
    }

    .geography-quote {
        font-size: 1.2rem;
        padding: 1.5rem;
    }
}

/* Geography Topics Detail Section Styles */
.geography-topics-detail {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    margin: 3rem 0;
}

.topic-detail {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 3rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.topic-detail:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
}

.topic-detail h2 {
    color: #2c3e50;
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.8rem;
}

.topic-detail h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    border-radius: 2px;
}

.topic-detail p {
    color: #34495e;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.quiz-topics {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    margin: 2rem 0;
}

.quiz-topics h3 {
    color: #2c3e50;
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.topic-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.topic-list li {
    color: #34495e;
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
}

.topic-importance,
.topic-fact,
.topic-tip,
.topic-impact {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 1.5rem;
    border-radius: 10px;
    margin-top: 2rem;
    border-left: 4px solid #3498db;
}

.topic-importance h4,
.topic-fact h4,
.topic-tip h4,
.topic-impact h4 {
    color: #2c3e50;
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
}

.topic-importance p,
.topic-fact p,
.topic-tip p,
.topic-impact p {
    color: #34495e;
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0;
}

/* Topic-specific styling */
.topic-detail.world-geography h2::after {
    background: linear-gradient(90deg, #3498db, #2ecc71);
}

.topic-detail.countries h2::after {
    background: linear-gradient(90deg, #e74c3c, #f39c12);
}

.topic-detail.capitals h2::after {
    background: linear-gradient(90deg, #9b59b6, #3498db);
}

.topic-detail.physical h2::after {
    background: linear-gradient(90deg, #2ecc71, #27ae60);
}

/* Responsive Design */
@media (max-width: 768px) {
    .geography-topics-detail {
        padding: 2rem 1rem;
    }

    .topic-detail {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }

    .topic-detail h2 {
        font-size: 1.8rem;
    }

    .topic-detail p,
    .topic-list li {
        font-size: 1rem;
    }

    .quiz-topics h3 {
        font-size: 1.2rem;
    }

    .topic-importance h4,
    .topic-fact h4,
    .topic-tip h4,
    .topic-impact h4 {
        font-size: 1.1rem;
    }
}

/* History Introduction Section Styles */
.history-intro-section {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    margin: 3rem 0;
}

.history-intro-section h2 {
    color: #2c3e50;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 700;
}

.history-intro-content {
    max-width: 1200px;
    margin: 0 auto;
}

.history-intro-content .intro-text {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #34495e;
    margin-bottom: 2rem;
    text-align: justify;
}

.history-topics,
.history-importance,
.quiz-exploration {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin: 2rem 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.history-topics:hover,
.history-importance:hover,
.quiz-exploration:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.history-topics h3,
.history-importance h3,
.quiz-exploration h3 {
    color: #2c3e50;
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.8rem;
}

.history-topics h3::after,
.history-importance h3::after,
.quiz-exploration h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    border-radius: 2px;
}

.topic-list,
.importance-list,
.exploration-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.topic-list li,
.importance-list li,
.exploration-list li {
    color: #34495e;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
}

.topic-list li::before,
.importance-list li::before,
.exploration-list li::before {
    content: "•";
    color: #3498db;
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

.conclusion-text {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #34495e;
    text-align: center;
    margin-top: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.conclusion-text::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
}

/* Responsive Design for History Introduction Section */
@media (max-width: 768px) {
    .history-intro-section {
        padding: 2rem 1rem;
    }

    .history-intro-section h2 {
        font-size: 2rem;
    }

    .history-intro-content .intro-text {
        font-size: 1.1rem;
    }

    .history-topics,
    .history-importance,
    .quiz-exploration {
        padding: 1.5rem;
    }

    .history-topics h3,
    .history-importance h3,
    .quiz-exploration h3 {
        font-size: 1.4rem;
    }

    .topic-list li,
    .importance-list li,
    .exploration-list li {
        font-size: 1rem;
    }

    .conclusion-text {
        font-size: 1.1rem;
        padding: 1.5rem;
    }
}

/* History Evolution Section Styles */
.history-evolution-section {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    margin: 3rem 0;
}

.history-evolution-section h2 {
    color: #2c3e50;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 700;
}

.evolution-content {
    max-width: 1200px;
    margin: 0 auto;
}

.evolution-intro {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #34495e;
    margin-bottom: 3rem;
    text-align: justify;
}

.evolution-period {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin: 2rem 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.evolution-period:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.evolution-period h3 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.8rem;
}

.evolution-period h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    border-radius: 2px;
}

.evolution-period p {
    color: #34495e;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.period-list,
.achievement-list,
.importance-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
}

.period-list li,
.achievement-list li,
.importance-list li {
    color: #34495e;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
}

.period-list li::before,
.achievement-list li::before,
.importance-list li::before {
    content: "•";
    color: #3498db;
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

.evolution-importance {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem 0;
    border-left: 4px solid #3498db;
}

.evolution-importance h3 {
    color: #2c3e50;
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
}

.history-quote {
    font-size: 1.4rem;
    color: #2c3e50;
    text-align: center;
    font-style: italic;
    margin: 3rem 0;
    padding: 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
}

.history-quote::before,
.history-quote::after {
    content: '"';
    font-size: 3rem;
    color: #3498db;
    position: absolute;
    opacity: 0.2;
}

.history-quote::before {
    top: 0;
    left: 1rem;
}

.history-quote::after {
    bottom: 0;
    right: 1rem;
}

/* Period-specific styling */
.evolution-period.ancient h3::after {
    background: linear-gradient(90deg, #e74c3c, #f39c12);
}

.evolution-period.medieval h3::after {
    background: linear-gradient(90deg, #9b59b6, #3498db);
}

.evolution-period.scientific h3::after {
    background: linear-gradient(90deg, #2ecc71, #27ae60);
}

.evolution-period.modern h3::after {
    background: linear-gradient(90deg, #3498db, #2980b9);
}

/* Responsive Design for History Evolution Section */
@media (max-width: 768px) {
    .history-evolution-section {
        padding: 2rem 1rem;
    }

    .history-evolution-section h2 {
        font-size: 2rem;
    }

    .evolution-intro {
        font-size: 1.1rem;
    }

    .evolution-period {
        padding: 1.5rem;
    }

    .evolution-period h3 {
        font-size: 1.5rem;
    }

    .evolution-period p,
    .period-list li,
    .importance-list li {
        font-size: 1rem;
    }

    .history-quote {
        font-size: 1.2rem;
        padding: 1.5rem;
    }
}

/* Historical Periods Section Styles */
.historical-periods {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    margin: 3rem 0;
}

.periods-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.period-card {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.period-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.period-card h2 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.8rem;
}

.period-card h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    border-radius: 2px;
}

.period-card p {
    color: #34495e;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.period-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
}

.period-list li {
    color: #34495e;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
}

.period-list li::before {
    content: "•";
    color: #3498db;
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

/* Period-specific styling */
.period-card.ancient h2::after {
    background: linear-gradient(90deg, #e74c3c, #f39c12);
}

.period-card.medieval h2::after {
    background: linear-gradient(90deg, #9b59b6, #3498db);
}

.period-card.modern h2::after {
    background: linear-gradient(90deg, #2ecc71, #27ae60);
}

.period-card.world h2::after {
    background: linear-gradient(90deg, #3498db, #2980b9);
}

/* Responsive Design for Historical Periods Section */
@media (max-width: 768px) {
    .historical-periods {
        padding: 2rem 1rem;
    }

    .period-card {
        padding: 1.5rem;
    }

    .period-card h2 {
        font-size: 1.5rem;
    }

    .period-card p,
    .period-list li {
        font-size: 1rem;
    }
}

/* Science Introduction Section Styles */
.science-intro-section {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    margin: 3rem 0;
}

.science-intro-section h2 {
    color: #2c3e50;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 700;
}

.science-intro-content {
    max-width: 1200px;
    margin: 0 auto;
}

.science-intro-content .intro-text {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #34495e;
    margin-bottom: 2rem;
    text-align: justify;
}

.science-branches,
.scientific-revolution,
.science-importance,
.quiz-exploration {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin: 2rem 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.science-branches:hover,
.scientific-revolution:hover,
.science-importance:hover,
.quiz-exploration:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.science-branches h3,
.scientific-revolution h3,
.science-importance h3,
.quiz-exploration h3 {
    color: #2c3e50;
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.8rem;
}

.science-branches h3::after,
.scientific-revolution h3::after,
.science-importance h3::after,
.quiz-exploration h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    border-radius: 2px;
}

.branches-list,
.breakthroughs-list,
.importance-list,
.exploration-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.branches-list li,
.breakthroughs-list li,
.importance-list li,
.exploration-list li {
    color: #34495e;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
}

.branches-list li::before,
.breakthroughs-list li::before,
.importance-list li::before,
.exploration-list li::before {
    content: "•";
    color: #3498db;
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

.science-quote {
    font-size: 1.4rem;
    color: #2c3e50;
    text-align: center;
    font-style: italic;
    margin: 3rem 0;
    padding: 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
}

.science-quote::before,
.science-quote::after {
    content: '"';
    font-size: 3rem;
    color: #3498db;
    position: absolute;
    opacity: 0.2;
}

.science-quote::before {
    top: 0;
    left: 1rem;
}

.science-quote::after {
    bottom: 0;
    right: 1rem;
}

/* Responsive Design for Science Introduction Section */
@media (max-width: 768px) {
    .science-intro-section {
        padding: 2rem 1rem;
    }

    .science-intro-section h2 {
        font-size: 2rem;
    }

    .science-intro-content .intro-text {
        font-size: 1.1rem;
    }

    .science-branches,
    .scientific-revolution,
    .science-importance,
    .quiz-exploration {
        padding: 1.5rem;
    }

    .science-branches h3,
    .scientific-revolution h3,
    .science-importance h3,
    .quiz-exploration h3 {
        font-size: 1.4rem;
    }

    .branches-list li,
    .breakthroughs-list li,
    .importance-list li,
    .exploration-list li {
        font-size: 1rem;
    }

    .science-quote {
    font-size: 1.2rem;
        padding: 1.5rem;
    }
}

/* Science Evolution Section Styles */
.science-evolution-section {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    margin: 3rem 0;
}

.science-evolution-section h2 {
    color: #2c3e50;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 700;
}

.evolution-content {
    max-width: 1200px;
    margin: 0 auto;
}

.evolution-intro {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #34495e;
    margin-bottom: 3rem;
    text-align: justify;
}

.evolution-period {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin: 2rem 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.evolution-period:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.evolution-period h3 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.8rem;
}

.evolution-period h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    border-radius: 2px;
}

.evolution-period h4 {
    color: #2c3e50;
    font-size: 1.4rem;
    margin: 1.5rem 0 1rem;
}

.period-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
}

.period-list li {
    color: #34495e;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
}

.period-list li::before {
    content: "•";
    color: #3498db;
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

.period-list ul {
    list-style: none;
    padding-left: 1.5rem;
    margin-top: 0.5rem;
}

.period-list ul li {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.evolution-importance {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem 0;
    border-left: 4px solid #3498db;
}

.evolution-importance h3 {
    color: #2c3e50;
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
}

.importance-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.importance-list li {
    color: #34495e;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.timeline-container {
    margin: 3rem 0;
    overflow-x: auto;
    padding: 1rem 0;
}

.timeline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-width: 800px;
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    transform: translateY(-50%);
}

.timeline-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
}

.timeline-item .year {
    font-size: 1rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.timeline-item .event {
    font-size: 1.2rem;
    color: #3498db;
    background: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.discussion-prompt {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin: 2rem 0;
    text-align: center;
}

.discussion-prompt h3 {
    color: #2c3e50;
    font-size: 1.6rem;
    margin-bottom: 1rem;
}

.discussion-prompt p {
    color: #34495e;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.prompt-options {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.prompt-options li {
    color: #34495e;
    font-size: 1.1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.prompt-options li:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Period-specific styling */
.evolution-period.ancient h3::after {
    background: linear-gradient(90deg, #e74c3c, #f39c12);
}

.evolution-period.revolution h3::after {
    background: linear-gradient(90deg, #9b59b6, #3498db);
}

.evolution-period.nineteenth h3::after {
    background: linear-gradient(90deg, #2ecc71, #27ae60);
}

.evolution-period.modern h3::after {
    background: linear-gradient(90deg, #3498db, #2980b9);
}

/* Responsive Design for Science Evolution Section */
@media (max-width: 768px) {
    .science-evolution-section {
        padding: 2rem 1rem;
    }

    .science-evolution-section h2 {
        font-size: 2rem;
    }

    .evolution-intro {
        font-size: 1.1rem;
    }

    .evolution-period {
        padding: 1.5rem;
    }

    .evolution-period h3 {
        font-size: 1.5rem;
    }

    .evolution-period h4 {
        font-size: 1.2rem;
    }

    .evolution-period p,
    .period-list li,
    .importance-list li {
        font-size: 1rem;
    }

    .timeline {
        min-width: 600px;
    }

    .timeline-item .year {
        font-size: 0.9rem;
    }

    .timeline-item .event {
        font-size: 1rem;
    }

    .discussion-prompt {
        padding: 1.5rem;
    }

    .discussion-prompt h3 {
        font-size: 1.4rem;
    }

    .discussion-prompt p {
        font-size: 1.1rem;
    }

    .prompt-options li {
        font-size: 1rem;
    }
}

/* Quiz Modal Section */
#quiz-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

#quiz-modal-content {
    background-color: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    width: 90%;
}

#quiz-modal-content h2 {
    color: #2c3e50;
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

#quiz-modal-content p {
    color: #34495e;
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

#quiz-modal-content .quiz-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
}

#quiz-modal-content .skip-btn,
#quiz-modal-content .stop-btn {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    min-width: 150px;
}

#quiz-modal-content .skip-btn {
    background-color: #f8f9fa;
    color: #3498db;
    border: 2px solid #3498db;
}

#quiz-modal-content .skip-btn:hover {
    background-color: #3498db;
    color: white;
}

#quiz-modal-content .stop-btn {
    background-color: #e74c3c;
    color: white;
}

#quiz-modal-content .stop-btn:hover {
    background-color: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(231, 76, 60, 0.2);
}

/* Science Branches Section Styles */
.science-branches-section {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    margin: 3rem 0;
}

.branch-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 2rem;
}

.branch-card {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.branch-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.branch-card h2 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.8rem;
}

.branch-card h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    border-radius: 2px;
}

.branch-intro {
    color: #34495e;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.key-areas,
.core-concepts,
.focus-areas,
.research-frontiers {
    margin-bottom: 2rem;
}

.branch-card h3 {
    color: #2c3e50;
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.area-list,
.concept-list,
.frontier-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.area-list li,
.concept-list li,
.frontier-list li {
    color: #34495e;
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
}

.area-list li::before,
.concept-list li::before,
.frontier-list li::before {
    content: "•";
    color: #3498db;
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

.did-you-know,
.real-world-impact,
.fascinating-fact,
.observation-tip {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
        padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #3498db;
}

.did-you-know h3,
.real-world-impact h3,
.fascinating-fact h3,
.observation-tip h3 {
    color: #2c3e50;
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
}

.did-you-know p,
.real-world-impact p,
.fascinating-fact p,
.observation-tip p {
    color: #34495e;
        font-size: 1.1rem;
    line-height: 1.6;
    margin: 0;
}

/* Branch-specific styling */
.branch-card.physics h2::after {
    background: linear-gradient(90deg, #e74c3c, #f39c12);
}

.branch-card.chemistry h2::after {
    background: linear-gradient(90deg, #9b59b6, #3498db);
}

.branch-card.biology h2::after {
    background: linear-gradient(90deg, #2ecc71, #27ae60);
}

.branch-card.astronomy h2::after {
    background: linear-gradient(90deg, #3498db, #2980b9);
}

.branch-card.physics .did-you-know {
    border-left-color: #e74c3c;
}

.branch-card.chemistry .real-world-impact {
    border-left-color: #9b59b6;
}

.branch-card.biology .fascinating-fact {
    border-left-color: #2ecc71;
}

.branch-card.astronomy .observation-tip {
    border-left-color: #3498db;
}

/* Responsive Design for Science Branches Section */
@media (max-width: 768px) {
    .science-branches-section {
        padding: 2rem 1rem;
    }

    .branch-content {
        grid-template-columns: 1fr;
    }

    .branch-card {
        padding: 1.5rem;
    }

    .branch-card h2 {
        font-size: 1.5rem;
    }

    .branch-intro {
        font-size: 1rem;
    }

    .branch-card h3 {
        font-size: 1.2rem;
    }

    .area-list li,
    .concept-list li,
    .frontier-list li {
        font-size: 1rem;
    }

    .did-you-know,
    .real-world-impact,
    .fascinating-fact,
    .observation-tip {
        padding: 1.2rem;
    }

    .did-you-know h3,
    .real-world-impact h3,
    .fascinating-fact h3,
    .observation-tip h3 {
        font-size: 1.1rem;
    }

    .did-you-know p,
    .real-world-impact p,
    .fascinating-fact p,
    .observation-tip p {
        font-size: 1rem;
    }
}

/* Detailed Technology Topics Section Styles */
.detailed-tech-topics {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.detailed-tech-topics h2 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 2rem;
    font-size: 2.5rem;
}

.tech-topic {
    background: #ffffff;
    border-radius: 10px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.tech-topic:hover {
    transform: translateY(-5px);
}

.tech-topic h3 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid #3498db;
    padding-bottom: 0.5rem;
}

.tech-topic > p {
    color: #34495e;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.topic-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.detail-group {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #3498db;
}

.detail-group h4 {
    color: #2c3e50;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.detail-group p {
    color: #34495e;
    line-height: 1.5;
}

.detail-group ul {
    list-style-type: none;
    padding: 0;
}

.detail-group ul li {
    color: #34495e;
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.detail-group ul li:before {
    content: "•";
    color: #3498db;
    position: absolute;
    left: 0;
}

.topic-conclusion {
    font-style: italic;
    color: #7f8c8d;
    border-top: 1px solid #ecf0f1;
    padding-top: 1rem;
    margin-top: 1rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .detailed-tech-topics {
        padding: 1rem;
    }

    .tech-topic {
        padding: 1.5rem;
    }

    .topic-details {
        grid-template-columns: 1fr;
    }

    .detail-group {
        padding: 1rem;
    }
}

/* Terms of Service Page Styles */
.terms-section {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.terms-container {
    background: #ffffff;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.terms-container h1 {
    color: #2c3e50;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
}

.last-updated {
    text-align: center;
    color: #7f8c8d;
    font-style: italic;
    margin-bottom: 2rem;
}

.terms-intro {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    border-left: 4px solid #3498db;
}

.terms-intro p {
    color: #34495e;
    line-height: 1.6;
    margin: 0;
}

.terms-content {
    color: #2c3e50;
}

.terms-content .terms-section {
    margin-bottom: 2rem;
    padding: 0;
}

.terms-content h2 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid #3498db;
    padding-bottom: 0.5rem;
}

.terms-content h3 {
    color: #2c3e50;
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.permitted-use {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 1.5rem 0;
}

.allowed, .prohibited {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
}

.allowed {
    border-left: 4px solid #2ecc71;
}

.prohibited {
    border-left: 4px solid #e74c3c;
}

.check-list, .cross-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.check-list li, .cross-list li {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.check-list i {
    color: #2ecc71;
}

.cross-list i {
    color: #e74c3c;
}

.content-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.content-list li {
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
}

.content-list li:before {
    content: "•";
    color: #3498db;
    position: absolute;
    left: 0;
}

.contact-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.contact-list li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-list a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-list a:hover {
    color: #2980b9;
}

.key-features {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 2rem;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.feature-list i {
    color: #2ecc71;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .terms-section {
        padding: 1rem;
    }

    .terms-container {
        padding: 1.5rem;
    }

    .terms-container h1 {
        font-size: 2rem;
    }

    .permitted-use {
        grid-template-columns: 1fr;
    }

    .feature-list {
        grid-template-columns: 1fr;
    }
}

/* How It Works Section Styles */
.how-it-works {
    padding: 5rem 2rem;
    background: #ffffff;
    margin: 3rem 0;
    position: relative;
}

.how-it-works h2 {
    color: #2c3e50;
    font-size: 2.8rem;
    text-align: center;
    margin-bottom: 1rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.how-it-works h3 {
    color: #3498db;
    font-size: 1.6rem;
    text-align: center;
    margin-bottom: 4rem;
    font-weight: 500;
}

.steps-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.step-card {
    background: #ffffff;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #eef2f7;
    width: 100%;
}

.step-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.step-card h4 {
    color: #2c3e50;
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 1rem;
    font-weight: 700;
    text-align: center;
}

.step-card h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: #3498db;
    border-radius: 3px;
}

.subjects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 1.5rem 0;
}

.subject-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid #eef2f7;
}

.subject-item:hover {
    background: #e3f2fd;
    transform: translateX(5px);
    border-color: #3498db;
}

.subject-item i {
    font-size: 1.4rem;
    color: #3498db;
    background: #e3f2fd;
    padding: 0.8rem;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.subject-item:hover i {
    background: #3498db;
    color: #ffffff;
}

.subject-item span {
    color: #2c3e50;
    font-size: 0.95rem;
    font-weight: 500;
}

.level-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 1.5rem 0;
}

.level-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid #eef2f7;
}

.level-item:hover {
    background: #e3f2fd;
    transform: translateX(5px);
    border-color: #3498db;
}

.level-color {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.level-color.basic {
    background: #2ecc71;
}

.level-color.intermediate {
    background: #f1c40f;
}

.level-color.advanced {
    background: #e74c3c;
}

.level-info h5 {
    color: #2c3e50;
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
    font-weight: 600;
}

.level-info p {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin: 0;
}

.learning-features {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.learning-features li {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid #eef2f7;
}

.learning-features li:hover {
    background: #e3f2fd;
    transform: translateX(5px);
    border-color: #3498db;
}

.learning-features i {
    font-size: 1.4rem;
    color: #3498db;
    background: #e3f2fd;
    padding: 0.8rem;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.learning-features li:hover i {
    background: #3498db;
    color: #ffffff;
}

.learning-features span {
    color: #2c3e50;
    font-size: 1rem;
    font-weight: 500;
}

.level-note {
    color: #7f8c8d;
    font-size: 0.9rem;
    text-align: center;
    margin-top: 1rem;
    font-style: italic;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .subjects-grid,
    .level-options,
    .learning-features {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .how-it-works {
        padding: 3rem 1rem;
    }

    .how-it-works h2 {
        font-size: 2.2rem;
    }

    .how-it-works h3 {
        font-size: 1.4rem;
        margin-bottom: 3rem;
    }

    .subjects-grid,
    .level-options,
    .learning-features {
        grid-template-columns: 1fr;
    }

    .step-card {
        padding: 1.5rem;
    }

    .step-card h4 {
        font-size: 1.4rem;
    }
}

/* Key Features Section Styles */
.key-features-section {
    padding: 5rem 2rem;
    background: #ffffff;
    position: relative;
}

.features-container {
    max-width: 1200px;
    margin: 0 auto;
}

.key-features-section h2 {
    color: #2c3e50;
    font-size: 2.8rem;
    text-align: center;
    margin-bottom: 3rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

.feature-card {
    background: #ffffff;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #eef2f7;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: #e3f2fd;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    background: #3498db;
    transform: scale(1.1);
}

.feature-icon i {
    font-size: 1.8rem;
    color: #3498db;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon i {
    color: #ffffff;
}

.feature-card h3 {
    color: #2c3e50;
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    color: #34495e;
    font-size: 1rem;
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
}

.feature-list li:before {
    content: "•";
    color: #3498db;
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

.benefits-section {
    text-align: center;
    margin: 4rem 0;
}

.benefits-section h3 {
    color: #2c3e50;
    font-size: 2rem;
    margin-bottom: 3rem;
    font-weight: 700;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.benefit-item {
    background: #f8fafc;
    padding: 2rem;
    border-radius: 16px;
    transition: all 0.3s ease;
    border: 1px solid #eef2f7;
}

.benefit-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border-color: #3498db;
}

.benefit-item i {
    font-size: 2rem;
    color: #3498db;
    margin-bottom: 1rem;
}

.benefit-item h4 {
    color: #2c3e50;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.benefit-item p {
    color: #7f8c8d;
    font-size: 1rem;
    margin: 0;
}

.cta-section {
    text-align: center;
    margin-top: 4rem;
    padding: 3rem;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.cta-section h3 {
    color: #2c3e50;
    font-size: 2rem;
    margin-bottom: 2rem;
    font-weight: 700;
}

.cta-section .cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: #3498db;
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid #3498db;
}

.cta-section .cta-button:hover {
    background: #ffffff;
    color: #3498db;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(52, 152, 219, 0.2);
}

/* Responsive Design for Key Features Section */
@media (max-width: 1024px) {
    .features-grid,
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .key-features-section {
        padding: 3rem 1rem;
    }

    .key-features-section h2 {
        font-size: 2.2rem;
    }

    .features-grid,
    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .feature-card,
    .benefit-item {
        padding: 1.5rem;
    }

    .benefits-section h3,
    .cta-section h3 {
        font-size: 1.8rem;
    }

    .cta-section {
        padding: 2rem 1rem;
    }
}

/* FAQs Section Styles */
.faqs-section {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.faqs-container {
    max-width: 1200px;
    margin: 0 auto;
}

.faqs-container h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 3rem;
}

.faq-category {
    margin-bottom: 3rem;
}

.faq-category h3 {
    font-size: 1.8rem;
    color: #34495e;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #3498db;
}

.faq-item {
    margin-bottom: 1rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.faq-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.faq-question {
    width: 100%;
    padding: 1.2rem;
    text-align: left;
    background: none;
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.faq-question:hover {
    color: #3498db;
}

.faq-question i {
    transition: transform 0.3s ease;
}

.faq-question[aria-expanded="true"] i {
    transform: rotate(180deg);
}

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

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

.faq-item.active .faq-answer {
    max-height: 500px;
}

@media (max-width: 768px) {
    .faqs-section {
        padding: 3rem 1rem;
    }

    .faqs-container h2 {
        font-size: 2rem;
    }

    .faq-category h3 {
        font-size: 1.5rem;
    }

    .faq-question {
        font-size: 1rem;
        padding: 1rem;
    }
}

/* Terms and Conditions Page Styles */
.terms-header {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
}

.terms-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255,255,255,0.1) 25%, transparent 25%),
                linear-gradient(-45deg, rgba(255,255,255,0.1) 25%, transparent 25%);
    background-size: 60px 60px;
    opacity: 0.1;
}

.terms-header h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.terms-header p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.terms-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.table-of-contents {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin-bottom: 3rem;
    border: 1px solid rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.table-of-contents:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

:root {
    --primary-color: #2171B5;
    --secondary-color: #6BAED6;
    --accent-color: #BDD7E7;
    --background-color: #EFF3FF;
    --text-color: #2171B5;
    --button-hover: #6BAED6;
    --button-bg: #BDD7E7;
    --button-text: #2171B5;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

.navbar {
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--primary-color);
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.logo h1 {
    color: var(--background-color);
    font-size: 1.5rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--background-color);
    text-decoration: none;
    font-weight: 500;
    transition: color .3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent-color);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
    position: relative;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #fff;
    margin: 5px 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

.hero {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, var(--background-color), var(--accent-color), var(--secondary-color));
    color: var(--primary-color);
    text-align: center;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: var(--accent-color);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 5px;
    transition: background-color .3s, color .3s, box-shadow .3s;
    box-shadow: 0 4px 16px 0 rgba(33, 113, 181, 0.25), 0 1.5px 4px 0 rgba(33, 113, 181, 0.15);
}

.cta-button:hover {
    background-color: var(--secondary-color);
    color: #fff;
    box-shadow: 0 6px 24px 0 rgba(33, 113, 181, 0.30), 0 2px 8px 0 rgba(33, 113, 181, 0.18);
}

.featured-subjects {
    padding: 4rem 2rem;
    border: 2px solid var(--primary-color);
    border-radius: 15px;
    box-shadow: 0 8px 24px rgba(33, 113, 181, 0.15);
    background: linear-gradient(to bottom right, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7));
    backdrop-filter: blur(10px);
    margin: 2rem auto;
    max-width: 1200px;
    position: relative;
}

.featured-subjects::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border-radius: 17px;
    z-index: -1;
    opacity: 0.7;
}

.featured-subjects h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

.footer-section h3,
.subject-card i {
    margin-bottom: 1rem;
}

.footer-content,
.subject-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.subject-card {
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, .1);
    transition: transform .3s;
    text-align: center;
}

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

.subject-card i {
    font-size: 2.5rem;
    color: var(--secondary-color);
}

.subject-card h3 a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 1.4rem;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    padding-bottom: 0.3rem;
}

.subject-card h3 a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 0.3s ease;
}

.subject-card h3 a:hover {
    color: var(--secondary-color);
    transform: translateY(-2px);
}

.subject-card h3 a:hover::after {
    width: 100%;
}

footer {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #fff;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
    background-color: var(--primary-color);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
    gap: 2rem;
    padding: 0 1rem;
}

.footer-section {
    padding: 1rem;
    display: flex;
    flex-direction: column;
}

.footer-section h3 {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
    text-align: left;
    white-space: nowrap;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background: #4ecca3;
}

.about-section .main-description {
    line-height: 1.6;
    margin-bottom: 1rem;
    color: #e0e0e0;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: #e0e0e0;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.footer-links a:hover {
    color: #4ecca3;
}

.newsletter-form {
    margin-bottom: 1.5rem;
}

.newsletter-form input {
    width: 100%;
    padding: 0.8rem;
    border: none;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    margin-bottom: 0.5rem;
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.newsletter-form button {
    width: 100%;
    padding: 0.8rem;
    background: #4ecca3;
    color: #1a1a2e;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-weight: 600;
}

.newsletter-form button:hover {
    background: #45b392;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.social-icon {
    color: #e0e0e0;
    font-size: 1.5rem;
    transition: transform 0.3s ease, color 0.3s ease;
}

.social-icon:hover {
    color: #4ecca3;
    transform: translateY(-3px);
}

.contact-info {
    margin-top: 1rem;
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #e0e0e0;
}

.contact-info a {
    color: #e0e0e0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: #4ecca3;
}

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

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

.footer-section ul li {
    margin-bottom: .5rem;
}

.footer-section a {
    color: var(--background-color);
    text-decoration: none;
    transition: color .3s;
}

.social-links a {
    font-size: 1.5rem;
}

@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
    .about-section {
        grid-column: 1/-1;
    }
}

@media (max-width: 912px) {
    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        right: -300px;
        width: 280px;
        height: 100vh;
        background-color: var(--primary-color);
        padding: 5rem 1.5rem 2rem;
        flex-direction: column;
        gap: 1.5rem;
        z-index: 1000;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease-in-out;
        border-radius: 0 0 0 10px;
    }
    .nav-links.active {
        display: flex;
        right: 0;
    }
    .mobile-menu-btn {
        display: block;
        position: relative;
        z-index: 1001;
    }
    .mobile-menu-btn span {
        display: block;
        width: 25px;
        height: 3px;
        background-color: #fff;
        margin: 5px 0;
        transition: transform 0.3s ease;
        
    }
    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }
    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
    .nav-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 999;
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    .nav-overlay.active {
        display: block;
        opacity: 1;
    }
    .hero h2 {
        font-size: 2rem;
    }
    .hero p {
        font-size: 1rem;
    }
}

@media (width: 912px) and (height: 1368px) {
    body.tablet-portrait .nav-links {
        padding-top: 8rem;
    }
    body.tablet-portrait .hero {
        padding: 6rem 2rem;
    }
    body.tablet-portrait .hero h2 {
        font-size: 2.2rem;
    }
    body.tablet-portrait .hero p {
        font-size: 1.1rem;
    }
    body.tablet-portrait .featured-subjects {
        padding: 6rem 2rem;
    }
    body.tablet-portrait .subject-card {
        padding: 2.5rem;
    }
    body.tablet-portrait .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        padding-top: 5rem;
    }
    .hero h2 {
        font-size: 1.8rem;
    }
    .hero p {
        font-size: 0.9rem;
    }
}

.focus {
    outline: 3px solid var(--accent-color);
    outline-offset: 2px;
}

@media print {
    .cta-button,
    .navbar,
    footer {
        display: none;
    }
    body {
        background-color: #fff;
        color: #000;
    }
}

.text-center {
    text-align: center;
    margin-top: 3rem;
}

.text-center h1 {
    margin-bottom: 1rem;
}

/* About Wordestool Section */
.about-wordestool {
    padding: 5rem 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.about-wordestool::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
}

.about-wordestool h2 {
    color: #2c3e50;
    font-size: 2.8rem;
    text-align: center;
    margin-bottom: 1rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.about-wordestool h3 {
    color: #3498db;
    font-size: 1.6rem;
    text-align: center;
    margin-bottom: 3rem;
    font-weight: 500;
}

.about-content {
    max-width: 1000px;
    margin: 0 auto;
    background: #ffffff;
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #eef2f7;
}

.about-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.about-content p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #34495e;
    margin-bottom: 2rem;
    text-align: center;
}

.benefits-list {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.benefits-list li {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 12px;
    color: #2c3e50;
    font-size: 1.1rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #eef2f7;
    position: relative;
    overflow: hidden;
}

.benefits-list li::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: #3498db;
    transition: all 0.3s ease;
}

.benefits-list li:hover {
    transform: translateX(5px);
    background: #e3f2fd;
    border-color: #3498db;
}

.benefits-list li:hover::before {
    width: 100%;
    opacity: 0.1;
}

.target-users {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    padding: 2rem;
    border-radius: 12px;
    margin-top: 3rem;
    border: 1px solid #eef2f7;
    transition: all 0.3s ease;
}

.target-users:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.target-users h4 {
    color: #2c3e50;
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 600;
}

.target-users ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.target-users ul li {
    background: #ffffff;
    padding: 1.2rem;
    border-radius: 8px;
    color: #34495e;
    font-size: 1.1rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #eef2f7;
    position: relative;
}

.target-users ul li::before {
    content: "•";
    color: #3498db;
    position: absolute;
    left: 1rem;
    font-size: 1.2rem;
}

.target-users ul li:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border-color: #3498db;
}

/* Responsive Design for About Section */
@media (max-width: 1024px) {
    .benefits-list,
    .target-users ul {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .about-wordestool {
        padding: 3rem 1rem;
    }

    .about-wordestool h2 {
        font-size: 2.2rem;
    }

    .about-wordestool h3 {
        font-size: 1.4rem;
    }

    .about-content {
        padding: 1.5rem;
    }

    .about-content p {
        font-size: 1.1rem;
    }

    .benefits-list,
    .target-users ul {
        grid-template-columns: 1fr;
    }

    .benefits-list li,
    .target-users ul li {
        font-size: 1rem;
    }
}

/* Contact Section Styles */
.contact-section {
    padding: 4rem 2rem;
    background-color: #fff;
}

.contact-section h2 {
    text-align: center;
    color: #2c3e50;
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.contact-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info {
    padding: 2rem;
}

.contact-info h3 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.contact-info p {
    color: #34495e;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-item i {
    font-size: 1.5rem;
    color: #3498db;
    margin-top: 0.5rem;
}

.contact-item h4 {
    color: #2c3e50;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.contact-item p {
    color: #34495e;
    margin: 0;
}

.contact-item a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s;
}

.contact-item a:hover {
    color: #2980b9;
}

.contact-form {
    background-color: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.contact-form h3 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #3498db;
    outline: none;
}

.submit-btn {
    background-color: #3498db;
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.submit-btn:hover {
    background-color: #2980b9;
}

/* Responsive Design for Contact Section */
@media (max-width: 768px) {
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .contact-section {
        padding: 3rem 1rem;
    }
    .contact-section h2 {
        font-size: 2rem;
    }
    .contact-info h3,
    .contact-form h3 {
        font-size: 1.5rem;
    }
    .contact-info p {
        font-size: 1rem;
    }
}

/* Quiz Instructions Section Styles */
.quiz-instructions {
    padding: 2rem;
    background-color: #f8f9fa;
    border-radius: 10px;
    margin: 2rem 0;
}

.quiz-instructions h2 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 2rem;
    font-size: 2rem;
}

.instructions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.instruction-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.instruction-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.instruction-card i {
    font-size: 2rem;
    color: #3498db;
    margin-bottom: 1rem;
}

.instruction-card h3 {
    color: #2c3e50;
    margin-bottom: 0.8rem;
    font-size: 1.2rem;
}

.instruction-card p {
    color: #666;
    line-height: 1.5;
}

.instruction-card ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.instruction-card ul li {
    color: #666;
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.instruction-card ul li:before {
    content: "•";
    color: #3498db;
    position: absolute;
    left: 0;
}

.tip-card {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border: 2px solid #3498db;
}

.tip-card i {
    color: #f1c40f;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .instructions-grid {
        grid-template-columns: 1fr;
    }
    
    .quiz-instructions {
        padding: 1rem;
    }
    
    .instruction-card {
        padding: 1rem;
    }
}

/* Math Learning Content Section Styles */
.learning-content {
    padding: 3rem 2rem;
    background-color: #f8f9fa;
    margin: 2rem 0;
}

.learning-content h2 {
    text-align: center;
    color: #2c3e50;
    font-size: 2.2rem;
    margin-bottom: 2rem;
}

.content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}

.intro-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #34495e;
    margin-bottom: 1.5rem;
    text-align: justify;
}

/* Special styling for the final call-to-action paragraph */
.intro-text:last-of-type {
    text-align: center;
    font-size: 1.3rem;
    font-weight: 500;
    color: #2c3e50;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin: 2.5rem 0;
    border: 2px solid #3498db;
    position: relative;
    overflow: hidden;
}

.intro-text:last-of-type::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
}

.intro-text:last-of-type:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

/* Responsive adjustments for the styled paragraph */
@media (max-width: 768px) {
    .intro-text:last-of-type {
        font-size: 1.1rem;
        padding: 1.5rem;
        margin: 2rem 0;
    }
}

.features-section {
    margin-bottom: 3rem;
}

.features-section h3 {
    text-align: center;
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 2rem;
}

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

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.feature-card i {
    font-size: 2.5rem;
    color: #3498db;
    margin-bottom: 1rem;
}

.feature-card h4 {
    color: #2c3e50;
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.feature-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-card ul li {
    color: #666;
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
}

.feature-card ul li:before {
    content: "•";
    color: #3498db;
    position: absolute;
    left: 0;
}

.benefits-section {
    text-align: center;
    margin-top: 3rem;
}

.benefits-section p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #34495e;
    margin-bottom: 2rem;
}

.cta-box {
    background: linear-gradient(135deg, #3498db, #2980b9);
    padding: 2rem;
    border-radius: 10px;
    color: white;
}

.cta-text {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: white;
    color: #3498db;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .learning-content {
        padding: 2rem 1rem;
    }

    .learning-content h2 {
        font-size: 1.8rem;
    }

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

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .cta-box {
        padding: 1.5rem;
    }
}

/* Mathematics History Section Styles */
.math-history {
    padding: 4rem 2rem;
    background-color: #fff;
    margin: 2rem 0;
}

.math-history h2 {
    text-align: center;
    color: #2c3e50;
    font-size: 2.2rem;
    margin-bottom: 2rem;
}

.history-content {
    max-width: 1200px;
    margin: 0 auto;
}

.history-intro {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #34495e;
    margin-bottom: 3rem;
    text-align: center;
}

.history-timeline {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.timeline-item {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

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

.timeline-item::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background-color: #3498db;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.2);
}

.timeline-item h3 {
    color: #2c3e50;
    font-size: 1.4rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #3498db;
}

.timeline-item p {
    color: #666;
    line-height: 1.8;
    font-size: 1.1rem;
}

/* Responsive adjustments for history section */
@media (max-width: 768px) {
    .math-history {
        padding: 2rem 1rem;
    }

    .math-history h2 {
        font-size: 1.8rem;
    }

    .history-intro {
        font-size: 1.1rem;
    }

    .timeline-item {
        padding: 1.5rem;
    }

    .timeline-item h3 {
        font-size: 1.2rem;
    }

    .timeline-item p {
        font-size: 1rem;
    }

    .timeline-item::before {
        left: -15px;
        width: 15px;
        height: 15px;
    }
}

/* Quiz Container and Controls Styling */
#quiz-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

#quiz-section.quiz-active {
    background-color: #f8f9fa;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin: 2rem auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#quiz-container {
    display: none;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 2rem;
}

#quiz-container.active {
    display: block !important;
}

.quiz-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 2px solid #f0f0f0;
    width: 100%;
}

.skip-btn, .stop-btn {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    min-width: 150px;
    display: inline-block;
}

.skip-btn {
    background-color: #f8f9fa;
    color: #3498db;
    border: 2px solid #3498db;
}

.skip-btn:hover {
    background-color: #3498db;
    color: white;
}

.stop-btn {
    background-color: #e74c3c;
    color: white;
}

.stop-btn:hover {
    background-color: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(231, 76, 60, 0.2);
}

/* Quiz Active State Styles */
.quiz-section.quiz-active {
    animation: quizHighlight 2s ease-out;
    position: relative;
}

@keyframes quizHighlight {
    0% {
        box-shadow: 0 0 0 0 rgba(52, 152, 219, 0.4);
    }
    50% {
        box-shadow: 0 0 20px 10px rgba(52, 152, 219, 0.2);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(52, 152, 219, 0);
    }
}

.quiz-section.quiz-active #quiz-container {
    animation: quizContainerHighlight 2s ease-out;
}

@keyframes quizContainerHighlight {
    0% {
        transform: scale(1);
    }
    5% {
        transform: scale(1.02);
    }
    100% {
        transform: scale(1);
    }
}

/* Ensure smooth scrolling behavior for the entire page */
html {
    scroll-behavior: smooth;
}

/* Mobile-specific adjustments */
@media (max-width: 768px) {
    .quiz-section.quiz-active {
        margin: 1rem 0;
    }
    
    .quiz-section.quiz-active #quiz-container {
        margin: 0.5rem;
    }
}

/* Math Topics Detail Section Styling */
.math-topics-detail {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.topic-detail {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 2.5rem;
    padding: 2.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.topic-detail:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.topic-detail h2 {
    color: #2c3e50;
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.8rem;
}

.topic-detail h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: #3498db;
}

.topic-detail p {
    color: #34495e;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

/* Topic-specific styling */
.topic-detail.algebra h2::after {
    background: #e74c3c;
}

.topic-detail.calculus h2::after {
    background: #2ecc71;
}

.topic-detail.geometry h2::after {
    background: #f1c40f;
}

.topic-detail.statistics h2::after {
    background: #9b59b6;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .math-topics-detail {
        padding: 0 1rem;
        margin: 2rem auto;
    }

    .topic-detail {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .topic-detail h2 {
        font-size: 1.8rem;
    }

    .topic-detail p {
        font-size: 1rem;
    }
}

@media screen and (max-width: 480px) {
    .topic-detail {
        padding: 1.2rem;
    }

    .topic-detail h2 {
        font-size: 1.5rem;
    }
}

/* Geography Introduction Section Styles */
.geography-intro {
    padding: 3rem 2rem;
    background-color: #f8f9fa;
    margin: 2rem 0;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.geography-intro h2 {
    color: #2c3e50;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 700;
}

.intro-content {
    max-width: 1200px;
    margin: 0 auto;
}

.intro-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #34495e;
    margin-bottom: 1.5rem;
    text-align: justify;
}

.geography-topics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.topic-item {
    background-color: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.topic-item:hover {
    transform: translateY(-5px);
}

.topic-item h3 {
    color: #2c3e50;
    font-size: 1.4rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.topic-item p {
    color: #666;
    line-height: 1.6;
}

.benefits-section {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    margin: 2rem 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.benefits-section h3 {
    color: #2c3e50;
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

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

.benefits-list li {
    font-size: 1.1rem;
    color: #34495e;
    margin-bottom: 1rem;
    padding-left: 1rem;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .geography-intro {
        padding: 2rem 1rem;
    }

    .geography-intro h2 {
        font-size: 2rem;
    }

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

    .geography-topics {
        grid-template-columns: 1fr;
    }

    .topic-item {
        padding: 1.2rem;
    }
}

/* Geography History Section Styles */
.geography-history {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    margin: 3rem 0;
}

.geography-history h2 {
    color: #2c3e50;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 700;
}

.history-content {
    max-width: 1200px;
    margin: 0 auto;
}

.history-intro {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #34495e;
    text-align: center;
    margin-bottom: 3rem;
    padding: 0 2rem;
}

.geography-history h3 {
    color: #2c3e50;
    font-size: 1.8rem;
    text-align: center;
    margin: 3rem 0 2rem;
    position: relative;
}

.geography-history h3::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    margin: 1rem auto;
    border-radius: 2px;
}

.timeline-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.timeline-item {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.timeline-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.timeline-item h4 {
    color: #2c3e50;
    font-size: 1.4rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #3498db;
}

.timeline-item p {
    color: #34495e;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.timeline-details {
    list-style: none;
    padding: 0;
    margin: 0;
}

.timeline-details li {
    color: #666;
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
}

.timeline-details li::before {
    content: "•";
    color: #3498db;
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

.impact-section {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin: 3rem 0;
    text-align: center;
}

.impact-section h3 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.impact-list {
    list-style: none;
    padding: 0;
    display: inline-block;
    text-align: left;
}

.impact-list li {
    font-size: 1.1rem;
    color: #34495e;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.geography-quote {
    font-size: 1.4rem;
    color: #2c3e50;
    text-align: center;
    font-style: italic;
    margin: 3rem 0;
    padding: 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
}

.geography-quote::before,
.geography-quote::after {
    content: '"';
    font-size: 3rem;
    color: #3498db;
    position: absolute;
    opacity: 0.2;
}

.geography-quote::before {
    top: 0;
    left: 1rem;
}

.geography-quote::after {
    bottom: 0;
    right: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .geography-history {
        padding: 2rem 1rem;
    }

    .geography-history h2 {
        font-size: 2rem;
    }

    .history-intro {
        font-size: 1.1rem;
        padding: 0 1rem;
    }

    .timeline-container {
        grid-template-columns: 1fr;
    }

    .timeline-item {
    padding: 1.5rem;
    }

    .geography-quote {
        font-size: 1.2rem;
        padding: 1.5rem;
    }
}

/* Geography Topics Detail Section Styles */
.geography-topics-detail {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    margin: 3rem 0;
}

.topic-detail {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 3rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.topic-detail:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
}

.topic-detail h2 {
    color: #2c3e50;
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.8rem;
}

.topic-detail h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    border-radius: 2px;
}

.topic-detail p {
    color: #34495e;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.quiz-topics {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    margin: 2rem 0;
}

.quiz-topics h3 {
    color: #2c3e50;
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.topic-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.topic-list li {
    color: #34495e;
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
}

.topic-importance,
.topic-fact,
.topic-tip,
.topic-impact {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 1.5rem;
    border-radius: 10px;
    margin-top: 2rem;
    border-left: 4px solid #3498db;
}

.topic-importance h4,
.topic-fact h4,
.topic-tip h4,
.topic-impact h4 {
    color: #2c3e50;
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
}

.topic-importance p,
.topic-fact p,
.topic-tip p,
.topic-impact p {
    color: #34495e;
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0;
}

/* Topic-specific styling */
.topic-detail.world-geography h2::after {
    background: linear-gradient(90deg, #3498db, #2ecc71);
}

.topic-detail.countries h2::after {
    background: linear-gradient(90deg, #e74c3c, #f39c12);
}

.topic-detail.capitals h2::after {
    background: linear-gradient(90deg, #9b59b6, #3498db);
}

.topic-detail.physical h2::after {
    background: linear-gradient(90deg, #2ecc71, #27ae60);
}

/* Responsive Design */
@media (max-width: 768px) {
    .geography-topics-detail {
        padding: 2rem 1rem;
    }

    .topic-detail {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }

    .topic-detail h2 {
        font-size: 1.8rem;
    }

    .topic-detail p,
    .topic-list li {
        font-size: 1rem;
    }

    .quiz-topics h3 {
        font-size: 1.2rem;
    }

    .topic-importance h4,
    .topic-fact h4,
    .topic-tip h4,
    .topic-impact h4 {
        font-size: 1.1rem;
    }
}

/* History Introduction Section Styles */
.history-intro-section {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    margin: 3rem 0;
}

.history-intro-section h2 {
    color: #2c3e50;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 700;
}

.history-intro-content {
    max-width: 1200px;
    margin: 0 auto;
}

.history-intro-content .intro-text {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #34495e;
    margin-bottom: 2rem;
    text-align: justify;
}

.history-topics,
.history-importance,
.quiz-exploration {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin: 2rem 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.history-topics:hover,
.history-importance:hover,
.quiz-exploration:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.history-topics h3,
.history-importance h3,
.quiz-exploration h3 {
    color: #2c3e50;
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.8rem;
}

.history-topics h3::after,
.history-importance h3::after,
.quiz-exploration h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    border-radius: 2px;
}

.topic-list,
.importance-list,
.exploration-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.topic-list li,
.importance-list li,
.exploration-list li {
    color: #34495e;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
}

.topic-list li::before,
.importance-list li::before,
.exploration-list li::before {
    content: "•";
    color: #3498db;
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

.conclusion-text {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #34495e;
    text-align: center;
    margin-top: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.conclusion-text::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
}

/* Responsive Design for History Introduction Section */
@media (max-width: 768px) {
    .history-intro-section {
        padding: 2rem 1rem;
    }

    .history-intro-section h2 {
        font-size: 2rem;
    }

    .history-intro-content .intro-text {
        font-size: 1.1rem;
    }

    .history-topics,
    .history-importance,
    .quiz-exploration {
        padding: 1.5rem;
    }

    .history-topics h3,
    .history-importance h3,
    .quiz-exploration h3 {
        font-size: 1.4rem;
    }

    .topic-list li,
    .importance-list li,
    .exploration-list li {
        font-size: 1rem;
    }

    .conclusion-text {
        font-size: 1.1rem;
        padding: 1.5rem;
    }
}

/* History Evolution Section Styles */
.history-evolution-section {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    margin: 3rem 0;
}

.history-evolution-section h2 {
    color: #2c3e50;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 700;
}

.evolution-content {
    max-width: 1200px;
    margin: 0 auto;
}

.evolution-intro {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #34495e;
    margin-bottom: 3rem;
    text-align: justify;
}

.evolution-period {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin: 2rem 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.evolution-period:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.evolution-period h3 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.8rem;
}

.evolution-period h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    border-radius: 2px;
}

.evolution-period p {
    color: #34495e;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.period-list,
.achievement-list,
.importance-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
}

.period-list li,
.achievement-list li,
.importance-list li {
    color: #34495e;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
}

.period-list li::before,
.achievement-list li::before,
.importance-list li::before {
    content: "•";
    color: #3498db;
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

.evolution-importance {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem 0;
    border-left: 4px solid #3498db;
}

.evolution-importance h3 {
    color: #2c3e50;
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
}

.history-quote {
    font-size: 1.4rem;
    color: #2c3e50;
    text-align: center;
    font-style: italic;
    margin: 3rem 0;
    padding: 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
}

.history-quote::before,
.history-quote::after {
    content: '"';
    font-size: 3rem;
    color: #3498db;
    position: absolute;
    opacity: 0.2;
}

.history-quote::before {
    top: 0;
    left: 1rem;
}

.history-quote::after {
    bottom: 0;
    right: 1rem;
}

/* Period-specific styling */
.evolution-period.ancient h3::after {
    background: linear-gradient(90deg, #e74c3c, #f39c12);
}

.evolution-period.medieval h3::after {
    background: linear-gradient(90deg, #9b59b6, #3498db);
}

.evolution-period.scientific h3::after {
    background: linear-gradient(90deg, #2ecc71, #27ae60);
}

.evolution-period.modern h3::after {
    background: linear-gradient(90deg, #3498db, #2980b9);
}

/* Responsive Design for History Evolution Section */
@media (max-width: 768px) {
    .history-evolution-section {
        padding: 2rem 1rem;
    }

    .history-evolution-section h2 {
        font-size: 2rem;
    }

    .evolution-intro {
        font-size: 1.1rem;
    }

    .evolution-period {
        padding: 1.5rem;
    }

    .evolution-period h3 {
        font-size: 1.5rem;
    }

    .evolution-period p,
    .period-list li,
    .importance-list li {
        font-size: 1rem;
    }

    .history-quote {
        font-size: 1.2rem;
        padding: 1.5rem;
    }
}

/* Historical Periods Section Styles */
.historical-periods {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    margin: 3rem 0;
}

.periods-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.period-card {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.period-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.period-card h2 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.8rem;
}

.period-card h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    border-radius: 2px;
}

.period-card p {
    color: #34495e;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.period-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
}

.period-list li {
    color: #34495e;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
}

.period-list li::before {
    content: "•";
    color: #3498db;
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

/* Period-specific styling */
.period-card.ancient h2::after {
    background: linear-gradient(90deg, #e74c3c, #f39c12);
}

.period-card.medieval h2::after {
    background: linear-gradient(90deg, #9b59b6, #3498db);
}

.period-card.modern h2::after {
    background: linear-gradient(90deg, #2ecc71, #27ae60);
}

.period-card.world h2::after {
    background: linear-gradient(90deg, #3498db, #2980b9);
}

/* Responsive Design for Historical Periods Section */
@media (max-width: 768px) {
    .historical-periods {
        padding: 2rem 1rem;
    }

    .period-card {
        padding: 1.5rem;
    }

    .period-card h2 {
        font-size: 1.5rem;
    }

    .period-card p,
    .period-list li {
        font-size: 1rem;
    }
}

/* Science Introduction Section Styles */
.science-intro-section {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    margin: 3rem 0;
}

.science-intro-section h2 {
    color: #2c3e50;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 700;
}

.science-intro-content {
    max-width: 1200px;
    margin: 0 auto;
}

.science-intro-content .intro-text {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #34495e;
    margin-bottom: 2rem;
    text-align: justify;
}

.science-branches,
.scientific-revolution,
.science-importance,
.quiz-exploration {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin: 2rem 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.science-branches:hover,
.scientific-revolution:hover,
.science-importance:hover,
.quiz-exploration:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.science-branches h3,
.scientific-revolution h3,
.science-importance h3,
.quiz-exploration h3 {
    color: #2c3e50;
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.8rem;
}

.science-branches h3::after,
.scientific-revolution h3::after,
.science-importance h3::after,
.quiz-exploration h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    border-radius: 2px;
}

.branches-list,
.breakthroughs-list,
.importance-list,
.exploration-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.branches-list li,
.breakthroughs-list li,
.importance-list li,
.exploration-list li {
    color: #34495e;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
}

.branches-list li::before,
.breakthroughs-list li::before,
.importance-list li::before,
.exploration-list li::before {
    content: "•";
    color: #3498db;
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

.science-quote {
    font-size: 1.4rem;
    color: #2c3e50;
    text-align: center;
    font-style: italic;
    margin: 3rem 0;
    padding: 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
}

.science-quote::before,
.science-quote::after {
    content: '"';
    font-size: 3rem;
    color: #3498db;
    position: absolute;
    opacity: 0.2;
}

.science-quote::before {
    top: 0;
    left: 1rem;
}

.science-quote::after {
    bottom: 0;
    right: 1rem;
}

/* Responsive Design for Science Introduction Section */
@media (max-width: 768px) {
    .science-intro-section {
        padding: 2rem 1rem;
    }

    .science-intro-section h2 {
        font-size: 2rem;
    }

    .science-intro-content .intro-text {
        font-size: 1.1rem;
    }

    .science-branches,
    .scientific-revolution,
    .science-importance,
    .quiz-exploration {
        padding: 1.5rem;
    }

    .science-branches h3,
    .scientific-revolution h3,
    .science-importance h3,
    .quiz-exploration h3 {
        font-size: 1.4rem;
    }

    .branches-list li,
    .breakthroughs-list li,
    .importance-list li,
    .exploration-list li {
        font-size: 1rem;
    }

    .science-quote {
    font-size: 1.2rem;
        padding: 1.5rem;
    }
}

/* Science Evolution Section Styles */
.science-evolution-section {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    margin: 3rem 0;
}

.science-evolution-section h2 {
    color: #2c3e50;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 700;
}

.evolution-content {
    max-width: 1200px;
    margin: 0 auto;
}

.evolution-intro {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #34495e;
    margin-bottom: 3rem;
    text-align: justify;
}

.evolution-period {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin: 2rem 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.evolution-period:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.evolution-period h3 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.8rem;
}

.evolution-period h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    border-radius: 2px;
}

.evolution-period h4 {
    color: #2c3e50;
    font-size: 1.4rem;
    margin: 1.5rem 0 1rem;
}

.period-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
}

.period-list li {
    color: #34495e;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
}

.period-list li::before {
    content: "•";
    color: #3498db;
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

.period-list ul {
    list-style: none;
    padding-left: 1.5rem;
    margin-top: 0.5rem;
}

.period-list ul li {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.evolution-importance {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem 0;
    border-left: 4px solid #3498db;
}

.evolution-importance h3 {
    color: #2c3e50;
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
}

.importance-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.importance-list li {
    color: #34495e;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.timeline-container {
    margin: 3rem 0;
    overflow-x: auto;
    padding: 1rem 0;
}

.timeline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-width: 800px;
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    transform: translateY(-50%);
}

.timeline-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
}

.timeline-item .year {
    font-size: 1rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.timeline-item .event {
    font-size: 1.2rem;
    color: #3498db;
    background: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.discussion-prompt {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin: 2rem 0;
    text-align: center;
}

.discussion-prompt h3 {
    color: #2c3e50;
    font-size: 1.6rem;
    margin-bottom: 1rem;
}

.discussion-prompt p {
    color: #34495e;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.prompt-options {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.prompt-options li {
    color: #34495e;
    font-size: 1.1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.prompt-options li:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Period-specific styling */
.evolution-period.ancient h3::after {
    background: linear-gradient(90deg, #e74c3c, #f39c12);
}

.evolution-period.revolution h3::after {
    background: linear-gradient(90deg, #9b59b6, #3498db);
}

.evolution-period.nineteenth h3::after {
    background: linear-gradient(90deg, #2ecc71, #27ae60);
}

.evolution-period.modern h3::after {
    background: linear-gradient(90deg, #3498db, #2980b9);
}

/* Responsive Design for Science Evolution Section */
@media (max-width: 768px) {
    .science-evolution-section {
        padding: 2rem 1rem;
    }

    .science-evolution-section h2 {
        font-size: 2rem;
    }

    .evolution-intro {
        font-size: 1.1rem;
    }

    .evolution-period {
        padding: 1.5rem;
    }

    .evolution-period h3 {
        font-size: 1.5rem;
    }

    .evolution-period h4 {
        font-size: 1.2rem;
    }

    .evolution-period p,
    .period-list li,
    .importance-list li {
        font-size: 1rem;
    }

    .timeline {
        min-width: 600px;
    }

    .timeline-item .year {
        font-size: 0.9rem;
    }

    .timeline-item .event {
        font-size: 1rem;
    }

    .discussion-prompt {
        padding: 1.5rem;
    }

    .discussion-prompt h3 {
        font-size: 1.4rem;
    }

    .discussion-prompt p {
        font-size: 1.1rem;
    }

    .prompt-options li {
        font-size: 1rem;
    }
}

/* Quiz Modal Section */
#quiz-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

#quiz-modal-content {
    background-color: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    width: 90%;
}

#quiz-modal-content h2 {
    color: #2c3e50;
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

#quiz-modal-content p {
    color: #34495e;
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

#quiz-modal-content .quiz-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
}

#quiz-modal-content .skip-btn,
#quiz-modal-content .stop-btn {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    min-width: 150px;
}

#quiz-modal-content .skip-btn {
    background-color: #f8f9fa;
    color: #3498db;
    border: 2px solid #3498db;
}

#quiz-modal-content .skip-btn:hover {
    background-color: #3498db;
    color: white;
}

#quiz-modal-content .stop-btn {
    background-color: #e74c3c;
    color: white;
}

#quiz-modal-content .stop-btn:hover {
    background-color: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(231, 76, 60, 0.2);
}

/* Science Branches Section Styles */
.science-branches-section {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    margin: 3rem 0;
}

.branch-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 2rem;
}

.branch-card {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.branch-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.branch-card h2 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.8rem;
}

.branch-card h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    border-radius: 2px;
}

.branch-intro {
    color: #34495e;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.key-areas,
.core-concepts,
.focus-areas,
.research-frontiers {
    margin-bottom: 2rem;
}

.branch-card h3 {
    color: #2c3e50;
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.area-list,
.concept-list,
.frontier-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.area-list li,
.concept-list li,
.frontier-list li {
    color: #34495e;
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
}

.area-list li::before,
.concept-list li::before,
.frontier-list li::before {
    content: "•";
    color: #3498db;
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

.did-you-know,
.real-world-impact,
.fascinating-fact,
.observation-tip {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
        padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #3498db;
}

.did-you-know h3,
.real-world-impact h3,
.fascinating-fact h3,
.observation-tip h3 {
    color: #2c3e50;
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
}

.did-you-know p,
.real-world-impact p,
.fascinating-fact p,
.observation-tip p {
    color: #34495e;
        font-size: 1.1rem;
    line-height: 1.6;
    margin: 0;
}

/* Branch-specific styling */
.branch-card.physics h2::after {
    background: linear-gradient(90deg, #e74c3c, #f39c12);
}

.branch-card.chemistry h2::after {
    background: linear-gradient(90deg, #9b59b6, #3498db);
}

.branch-card.biology h2::after {
    background: linear-gradient(90deg, #2ecc71, #27ae60);
}

.branch-card.astronomy h2::after {
    background: linear-gradient(90deg, #3498db, #2980b9);
}

.branch-card.physics .did-you-know {
    border-left-color: #e74c3c;
}

.branch-card.chemistry .real-world-impact {
    border-left-color: #9b59b6;
}

.branch-card.biology .fascinating-fact {
    border-left-color: #2ecc71;
}

.branch-card.astronomy .observation-tip {
    border-left-color: #3498db;
}

/* Responsive Design for Science Branches Section */
@media (max-width: 768px) {
    .science-branches-section {
        padding: 2rem 1rem;
    }

    .branch-content {
        grid-template-columns: 1fr;
    }

    .branch-card {
        padding: 1.5rem;
    }

    .branch-card h2 {
        font-size: 1.5rem;
    }

    .branch-intro {
        font-size: 1rem;
    }

    .branch-card h3 {
        font-size: 1.2rem;
    }

    .area-list li,
    .concept-list li,
    .frontier-list li {
        font-size: 1rem;
    }

    .did-you-know,
    .real-world-impact,
    .fascinating-fact,
    .observation-tip {
        padding: 1.2rem;
    }

    .did-you-know h3,
    .real-world-impact h3,
    .fascinating-fact h3,
    .observation-tip h3 {
        font-size: 1.1rem;
    }

    .did-you-know p,
    .real-world-impact p,
    .fascinating-fact p,
    .observation-tip p {
        font-size: 1rem;
    }
}

/* Detailed Technology Topics Section Styles */
.detailed-tech-topics {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.detailed-tech-topics h2 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 2rem;
    font-size: 2.5rem;
}

.tech-topic {
    background: #ffffff;
    border-radius: 10px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.tech-topic:hover {
    transform: translateY(-5px);
}

.tech-topic h3 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid #3498db;
    padding-bottom: 0.5rem;
}

.tech-topic > p {
    color: #34495e;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.topic-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.detail-group {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #3498db;
}

.detail-group h4 {
    color: #2c3e50;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.detail-group p {
    color: #34495e;
    line-height: 1.5;
}

.detail-group ul {
    list-style-type: none;
    padding: 0;
}

.detail-group ul li {
    color: #34495e;
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.detail-group ul li:before {
    content: "•";
    color: #3498db;
    position: absolute;
    left: 0;
}

.topic-conclusion {
    font-style: italic;
    color: #7f8c8d;
    border-top: 1px solid #ecf0f1;
    padding-top: 1rem;
    margin-top: 1rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .detailed-tech-topics {
        padding: 1rem;
    }

    .tech-topic {
        padding: 1.5rem;
    }

    .topic-details {
        grid-template-columns: 1fr;
    }

    .detail-group {
        padding: 1rem;
    }
}

/* Terms of Service Page Styles */
.terms-section {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.terms-container {
    background: #ffffff;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.terms-container h1 {
    color: #2c3e50;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
}

.last-updated {
    text-align: center;
    color: #7f8c8d;
    font-style: italic;
    margin-bottom: 2rem;
}

.terms-intro {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    border-left: 4px solid #3498db;
}

.terms-intro p {
    color: #34495e;
    line-height: 1.6;
    margin: 0;
}

.terms-content {
    color: #2c3e50;
}

.terms-content .terms-section {
    margin-bottom: 2rem;
    padding: 0;
}

.terms-content h2 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid #3498db;
    padding-bottom: 0.5rem;
}

.terms-content h3 {
    color: #2c3e50;
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.permitted-use {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 1.5rem 0;
}

.allowed, .prohibited {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
}

.allowed {
    border-left: 4px solid #2ecc71;
}

.prohibited {
    border-left: 4px solid #e74c3c;
}

.check-list, .cross-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.check-list li, .cross-list li {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.check-list i {
    color: #2ecc71;
}

.cross-list i {
    color: #e74c3c;
}

.content-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.content-list li {
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
}

.content-list li:before {
    content: "•";
    color: #3498db;
    position: absolute;
    left: 0;
}

.contact-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.contact-list li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-list a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-list a:hover {
    color: #2980b9;
}

.key-features {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 2rem;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.feature-list i {
    color: #2ecc71;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .terms-section {
        padding: 1rem;
    }

    .terms-container {
        padding: 1.5rem;
    }

    .terms-container h1 {
        font-size: 2rem;
    }

    .permitted-use {
        grid-template-columns: 1fr;
    }

    .feature-list {
        grid-template-columns: 1fr;
    }
}

/* How It Works Section Styles */
.how-it-works {
    padding: 5rem 2rem;
    background: #ffffff;
    margin: 3rem 0;
    position: relative;
}

.how-it-works h2 {
    color: #2c3e50;
    font-size: 2.8rem;
    text-align: center;
    margin-bottom: 1rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.how-it-works h3 {
    color: #3498db;
    font-size: 1.6rem;
    text-align: center;
    margin-bottom: 4rem;
    font-weight: 500;
}

.steps-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.step-card {
    background: #ffffff;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #eef2f7;
    width: 100%;
}

.step-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.step-card h4 {
    color: #2c3e50;
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 1rem;
    font-weight: 700;
    text-align: center;
}

.step-card h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: #3498db;
    border-radius: 3px;
}

.subjects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 1.5rem 0;
}

.subject-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid #eef2f7;
}

.subject-item:hover {
    background: #e3f2fd;
    transform: translateX(5px);
    border-color: #3498db;
}

.subject-item i {
    font-size: 1.4rem;
    color: #3498db;
    background: #e3f2fd;
    padding: 0.8rem;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.subject-item:hover i {
    background: #3498db;
    color: #ffffff;
}

.subject-item span {
    color: #2c3e50;
    font-size: 0.95rem;
    font-weight: 500;
}

.level-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 1.5rem 0;
}

.level-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid #eef2f7;
}

.level-item:hover {
    background: #e3f2fd;
    transform: translateX(5px);
    border-color: #3498db;
}

.level-color {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.level-color.basic {
    background: #2ecc71;
}

.level-color.intermediate {
    background: #f1c40f;
}

.level-color.advanced {
    background: #e74c3c;
}

.level-info h5 {
    color: #2c3e50;
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
    font-weight: 600;
}

.level-info p {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin: 0;
}

.learning-features {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.learning-features li {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid #eef2f7;
}

.learning-features li:hover {
    background: #e3f2fd;
    transform: translateX(5px);
    border-color: #3498db;
}

.learning-features i {
    font-size: 1.4rem;
    color: #3498db;
    background: #e3f2fd;
    padding: 0.8rem;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.learning-features li:hover i {
    background: #3498db;
    color: #ffffff;
}

.learning-features span {
    color: #2c3e50;
    font-size: 1rem;
    font-weight: 500;
}

.level-note {
    color: #7f8c8d;
    font-size: 0.9rem;
    text-align: center;
    margin-top: 1rem;
    font-style: italic;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .subjects-grid,
    .level-options,
    .learning-features {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .how-it-works {
        padding: 3rem 1rem;
    }

    .how-it-works h2 {
        font-size: 2.2rem;
    }

    .how-it-works h3 {
        font-size: 1.4rem;
        margin-bottom: 3rem;
    }

    .subjects-grid,
    .level-options,
    .learning-features {
        grid-template-columns: 1fr;
    }

    .step-card {
        padding: 1.5rem;
    }

    .step-card h4 {
        font-size: 1.4rem;
    }
}

/* Key Features Section Styles */
.key-features-section {
    padding: 5rem 2rem;
    background: #ffffff;
    position: relative;
}

.features-container {
    max-width: 1200px;
    margin: 0 auto;
}

.key-features-section h2 {
    color: #2c3e50;
    font-size: 2.8rem;
    text-align: center;
    margin-bottom: 3rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

.feature-card {
    background: #ffffff;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #eef2f7;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: #e3f2fd;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    background: #3498db;
    transform: scale(1.1);
}

.feature-icon i {
    font-size: 1.8rem;
    color: #3498db;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon i {
    color: #ffffff;
}

.feature-card h3 {
    color: #2c3e50;
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    color: #34495e;
    font-size: 1rem;
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
}

.feature-list li:before {
    content: "•";
    color: #3498db;
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

.benefits-section {
    text-align: center;
    margin: 4rem 0;
}

.benefits-section h3 {
    color: #2c3e50;
    font-size: 2rem;
    margin-bottom: 3rem;
    font-weight: 700;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.benefit-item {
    background: #f8fafc;
    padding: 2rem;
    border-radius: 16px;
    transition: all 0.3s ease;
    border: 1px solid #eef2f7;
}

.benefit-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border-color: #3498db;
}

.benefit-item i {
    font-size: 2rem;
    color: #3498db;
    margin-bottom: 1rem;
}

.benefit-item h4 {
    color: #2c3e50;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.benefit-item p {
    color: #7f8c8d;
    font-size: 1rem;
    margin: 0;
}

.cta-section {
    text-align: center;
    margin-top: 4rem;
    padding: 3rem;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.cta-section h3 {
    color: #2c3e50;
    font-size: 2rem;
    margin-bottom: 2rem;
    font-weight: 700;
}

.cta-section .cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: #3498db;
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid #3498db;
}

.cta-section .cta-button:hover {
    background: #ffffff;
    color: #3498db;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(52, 152, 219, 0.2);
}

/* Responsive Design for Key Features Section */
@media (max-width: 1024px) {
    .features-grid,
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .key-features-section {
        padding: 3rem 1rem;
    }

    .key-features-section h2 {
        font-size: 2.2rem;
    }

    .features-grid,
    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .feature-card,
    .benefit-item {
        padding: 1.5rem;
    }

    .benefits-section h3,
    .cta-section h3 {
        font-size: 1.8rem;
    }

    .cta-section {
        padding: 2rem 1rem;
    }
}

/* FAQs Section Styles */
.faqs-section {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.faqs-container {
    max-width: 1200px;
    margin: 0 auto;
}

.faqs-container h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 3rem;
}

.faq-category {
    margin-bottom: 3rem;
}

.faq-category h3 {
    font-size: 1.8rem;
    color: #34495e;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #3498db;
}

.faq-item {
    margin-bottom: 1rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.faq-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.faq-question {
    width: 100%;
    padding: 1.2rem;
    text-align: left;
    background: none;
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.faq-question:hover {
    color: #3498db;
}

.faq-question i {
    transition: transform 0.3s ease;
}

.faq-question[aria-expanded="true"] i {
    transform: rotate(180deg);
}

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

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

.faq-item.active .faq-answer {
    max-height: 500px;
}

@media (max-width: 768px) {
    .faqs-section {
        padding: 3rem 1rem;
    }

    .faqs-container h2 {
        font-size: 2rem;
    }

    .faq-category h3 {
        font-size: 1.5rem;
    }

    .faq-question {
        font-size: 1rem;
        padding: 1rem;
    }
}

/* Terms and Conditions Page Styles */
.terms-header {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
}

.terms-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255,255,255,0.1) 25%, transparent 25%),
                linear-gradient(-45deg, rgba(255,255,255,0.1) 25%, transparent 25%);
    background-size: 60px 60px;
    opacity: 0.1;
}

.terms-header h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.terms-header p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.terms-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.table-of-contents {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin-bottom: 3rem;
    border: 1px solid rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.table-of-contents:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.table-of-contents h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    position: relative;
    padding-bottom: 0.8rem;
}

.table-of-contents h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.table-of-contents ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.table-of-contents li {
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.table-of-contents li:hover {
    transform: translateX(10px);
}

.table-of-contents a {
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    padding: 0.5rem 0;
    position: relative;
}

.table-of-contents a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 0.3s ease;
}

.table-of-contents a:hover {
    color: var(--primary-color);
}

.table-of-contents a:hover::after {
    width: 100%;
}

.terms-section {
    background: #ffffff;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin-bottom: 3rem;
    border: 1px solid rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.terms-section:hover {
    transform: translateY(-5px);
}

.terms-section h2 {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.8rem;
    position: relative;
}

.terms-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.terms-section p {
    color: var(--text-color);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.terms-section ul {
    list-style-type: none;
    padding: 0;
    margin: 1.5rem 0;
}

.terms-section li {
    color: var(--text-color);
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
}

.terms-section li::before {
    content: "•";
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

.terms-section h2:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

@media (max-width: 768px) {
    .terms-header {
        padding: 3rem 1rem;
    }

    .terms-header h1 {
        font-size: 2.2rem;
    }

    .terms-content {
        padding: 0 1rem;
    }

    .table-of-contents,
    .terms-section {
        padding: 1.5rem;
    }

    .terms-section h2 {
        font-size: 1.6rem;
    }

    .terms-section p {
        font-size: 1rem;
    }
}

@media print {
    .table-of-contents,
    .terms-header {
        background: none;
    }

    .table-of-contents,
    .terms-section {
        box-shadow: none;
        border: 1px solid #ddd;
    }

    .terms-header {
        color: #000;
        padding: 1rem;
    }

    .terms-section {
        break-inside: avoid;
    }

    .social-links {
        display: none;
    }
}

.terms-section h1 {
    text-align: center;
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* Mathematics Content Styles */
.subject-content {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 2rem;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.subject-content h2 {
    color: #2c3e50;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.subject-intro {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #34495e;
    margin-bottom: 2rem;
    text-align: center;
}

.why-learn {
    margin: 2rem 0;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.why-learn h3 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

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

.benefits-list li {
    margin: 1rem 0;
    padding: 1rem;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.benefits-list strong {
    color: #3498db;
    display: block;
    margin-bottom: 0.5rem;
}

.explore-section {
    margin: 2rem 0;
}

.explore-section h3 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.topics-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.topics-list li {
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 6px;
    transition: transform 0.3s ease;
}

.topics-list li:hover {
    transform: translateY(-3px);
}

.math-quote {
    font-style: italic;
    font-size: 1.4rem;
    color: #7f8c8d;
    text-align: center;
    margin: 2rem 0;
    padding: 1.5rem;
    border-left: 4px solid #3498db;
    background: #f8f9fa;
}

.sample-question {
    margin: 2rem 0;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    text-align: center;
}

.sample-question h3 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.reveal-answer-btn {
    background: #3498db;
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1rem;
    margin: 1rem 0;
    transition: background 0.3s ease;
}

.reveal-answer-btn:hover {
    background: #2980b9;
}

.answer {
    font-size: 1.2rem;
    color: #27ae60;
    margin-top: 1rem;
    font-weight: bold;
}

@media (max-width: 768px) {
    .subject-content {
        padding: 1rem;
        margin: 1rem;
    }

    .subject-content h2 {
        font-size: 2rem;
    }

    .topics-list {
        grid-template-columns: 1fr;
    }

    .math-quote {
        font-size: 1.2rem;
    }
}

/* Study Guide Styles */
.study-guide {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 2rem;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.study-guide h2 {
    color: #2c3e50;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.study-guide h3 {
    color: #3498db;
    font-size: 1.8rem;
    margin: 2rem 0 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #3498db;
}

.study-guide h4 {
    color: #2c3e50;
    font-size: 1.4rem;
    margin: 1.5rem 0 1rem;
}

/* Study Strategies */
.study-strategies {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 15px;
    margin: 2rem 0;
}

.study-strategies h3 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    text-align: center;
    position: relative;
    padding-bottom: 0.5rem;
}

.study-strategies h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: #3498db;
}

.strategy-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin: 1.5rem 0;
}

.strategy-item {
    background: #fff;
    padding: 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;
}

.strategy-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.strategy-item h4 {
    color: #3498db;
    font-size: 1.4rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e9ecef;
}

.strategy-item p {
    color: #495057;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.concept-map {
    margin: 1rem 0;
    text-align: center;
    background: #fff;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.concept-map-img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.concept-map-img:hover {
    transform: scale(1.02);
}

.application-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.application-list li {
    margin: 0.8rem 0;
    padding: 0.8rem 1rem;
    background: #f8f9fa;
    border-radius: 6px;
    color: #495057;
    transition: background-color 0.3s ease;
}

.application-list li:hover {
    background: #e9ecef;
}

@media (max-width: 768px) {
    .strategy-content {
        grid-template-columns: 1fr;
    }

    .study-strategies {
        padding: 1.5rem;
    }

    .strategy-item {
        padding: 1.2rem;
    }

    .concept-map {
        margin: 0.8rem 0;
    }
}

/* Common Mistakes Table */
.mistakes-table {
    overflow-x: auto;
    margin: 1.5rem 0;
}

.mistakes-table table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.mistakes-table th,
.mistakes-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.mistakes-table th {
    background: #3498db;
    color: white;
    font-weight: 600;
}

.mistakes-table tr:hover {
    background: #f8f9fa;
}

/* Career Paths */
.career-paths {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 15px;
    margin: 2rem 0;
}

.career-paths h3 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    text-align: center;
    position: relative;
    padding-bottom: 0.5rem;
}

.career-paths h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: #3498db;
}

.career-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin: 1.5rem 0;
}

.career-section {
    background: #fff;
    padding: 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;
}

.career-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.career-section h4 {
    color: #3498db;
    font-size: 1.4rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e9ecef;
}

.career-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.career-list li {
    margin: 1rem 0;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    color: #495057;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.career-list li:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.career-list li span {
    font-size: 1.2rem;
    min-width: 2rem;
    text-align: center;
}

.did-you-know {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-top: 1rem;
    position: relative;
    overflow: hidden;
}

.did-you-know::before {
    content: '💡';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 5rem;
    opacity: 0.1;
    z-index: 0;
}

.did-you-know p {
    font-size: 1.3rem;
    font-weight: 500;
    position: relative;
    z-index: 1;
    margin: 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .career-content {
        grid-template-columns: 1fr;
    }

    .career-paths {
        padding: 1.5rem;
    }

    .career-section {
        padding: 1.2rem;
    }

    .career-list li {
        padding: 0.8rem;
    }

    .did-you-know {
        padding: 1.5rem;
    }

    .did-you-know p {
        font-size: 1.1rem;
    }
}

/* Science Section Styles */
.science-section {
    background: #f8f9fa;
    padding: 3rem 2rem;
    border-radius: 15px;
    margin: 2rem 0;
}

.science-section h2 {
    color: #2c3e50;
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 1rem;
}

.science-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 3px;
    background: #3498db;
}

.science-intro {
    max-width: 800px;
    margin: 0 auto 3rem;
    text-align: center;
    font-size: 1.2rem;
    line-height: 1.8;
    color: #495057;
}

.study-method {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.study-method h3 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.study-method h4 {
    color: #3498db;
    font-size: 1.4rem;
    margin: 1.5rem 0 1rem;
}

.method-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.method-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    margin: 1rem 0;
    transition: transform 0.3s ease;
}

.method-list li:hover {
    transform: translateX(10px);
}

.method-list li span {
    font-size: 1.5rem;
    min-width: 2.5rem;
    text-align: center;
}

.common-mistakes {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.common-mistakes h3 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.mistakes-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mistakes-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    margin: 1rem 0;
    transition: transform 0.3s ease;
}

.mistakes-list li:hover {
    transform: translateX(10px);
}

.mistakes-list li span {
    font-size: 1.5rem;
    min-width: 2.5rem;
    text-align: center;
}

.science-careers {
    margin-bottom: 2rem;
}

.science-careers h3 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.careers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.career-card {
    background: #fff;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.career-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.career-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.career-card h4 {
    color: #2c3e50;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.career-card p {
    color: #6c757d;
    margin: 0;
}

.science-quote {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    margin: 2rem 0;
    font-size: 1.4rem;
    font-style: italic;
    position: relative;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.science-quote::before {
    content: '"';
    font-size: 4rem;
    position: absolute;
    top: -1rem;
    left: 1rem;
    opacity: 0.2;
}

.try-this {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.try-this h3 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.try-this .question {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #495057;
    margin-bottom: 1.5rem;
}

.try-this .reveal-answer-btn {
    background: #3498db;
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.1rem;
    transition: background-color 0.3s ease;
}

.try-this .reveal-answer-btn:hover {
    background: #2980b9;
}

.try-this .answer {
    margin-top: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 6px;
    color: #2c3e50;
    font-weight: 500;
}

@media (max-width: 768px) {
    .science-section {
        padding: 2rem 1rem;
    }

    .science-section h2 {
        font-size: 1.8rem;
    }

    .science-intro {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }

    .careers-grid {
        grid-template-columns: 1fr;
    }

    .career-card {
        padding: 1.2rem;
    }

    .science-quote {
        font-size: 1.2rem;
        padding: 1.5rem;
    }

    .try-this {
        padding: 1.5rem;
    }

    .try-this .question {
        font-size: 1.1rem;
    }
}

/* Science Content Styles */
.science-content {
  padding: 2rem;
  background-color: #f8f9fa;
  border-radius: 8px;
  margin: 2rem auto;
  max-width: 1200px;
  text-align: center;
}

.science-content h2 {
  color: #2c3e50;
  margin-bottom: 1.5rem;
  font-size: 2.2rem;
  text-align: center;
}

.science-content .subject-intro {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #34495e;
  margin-bottom: 2rem;
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.science-branches,
.interdisciplinary-fields,
.why-science-matters,
.real-world-applications,
.science-benefits {
  margin: 2rem auto;
  padding: 1.5rem;
  background-color: white;
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  max-width: 900px;
}

.science-content h3 {
  color: #3498db;
  margin-bottom: 1rem;
  font-size: 1.5rem;
  text-align: center;
}

.branches-list,
.fields-list,
.importance-list,
.applications-list,
.benefits-list {
  list-style: none;
  padding-left: 0;
  text-align: left;
  max-width: 800px;
  margin: 0 auto;
}

.branches-list li,
.fields-list li,
.importance-list li,
.applications-list li,
.benefits-list li {
  margin-bottom: 0.8rem;
  padding-left: 1.5rem;
  position: relative;
  line-height: 1.5;
}

.importance-list ul {
  list-style: none;
  padding-left: 1.5rem;
  margin-top: 0.5rem;
  text-align: left;
}

.importance-list ul li {
  margin-bottom: 0.8rem;
  padding: 0.8rem 1rem;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.strategy-list,
.mistakes-list,
.career-list {
  list-style: none;
  padding-left: 0;
  text-align: left;
  max-width: 800px;
  margin: 0 auto;
}

.strategy-list li,
.mistakes-list li,
.career-list li {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
  position: relative;
  line-height: 1.6;
}

.strategy-list li:before,
.mistakes-list li:before,
.career-list li:before {
  content: "•";
  color: #3498db;
  position: absolute;
  left: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
  .science-content,
  .science-study-guide {
    padding: 1rem;
    margin: 1rem;
  }

  .science-content h2,
  .science-study-guide h2 {
    font-size: 1.8rem;
  }

  .science-content h3,
  .science-study-guide h3 {
    font-size: 1.3rem;
  }

  .science-branches,
  .interdisciplinary-fields,
  .why-science-matters,
  .real-world-applications,
  .science-benefits,
  .study-strategies,
  .common-mistakes,
  .career-paths {
    margin: 1rem;
  }
}

/* Enhanced Science Content Styles */
.science-content {
  padding: 3rem 2rem;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 15px;
  margin: 2rem auto;
  max-width: 1200px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.science-content h2 {
  color: #2c3e50;
  margin-bottom: 2rem;
  font-size: 2.5rem;
  text-align: center;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  padding-bottom: 15px;
}

.science-content h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background: linear-gradient(90deg, #3498db, #2ecc71);
  border-radius: 2px;
}

.science-content .subject-intro {
  font-size: 1.2rem;
  line-height: 1.8;
  color: #34495e;
  margin: 2rem auto;
  text-align: center;
  max-width: 800px;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.science-branches,
.interdisciplinary-fields,
.why-science-matters,
.real-world-applications,
.science-benefits {
  margin: 2.5rem auto;
  padding: 2rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
  max-width: 900px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.science-branches:hover,
.interdisciplinary-fields:hover,
.why-science-matters:hover,
.real-world-applications:hover,
.science-benefits:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

.science-content h3 {
  color: #3498db;
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
  text-align: center;
  font-weight: 600;
  position: relative;
  padding-bottom: 10px;
}

.science-content h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, #3498db, #2ecc71);
  border-radius: 2px;
}

.branches-list li,
.fields-list li,
.importance-list li,
.applications-list li,
.benefits-list li {
  margin-bottom: 1rem;
  padding: 1rem 1.5rem;
  position: relative;
  line-height: 1.6;
  background: #f8f9fa;
  border-radius: 8px;
  transition: all 0.3s ease;
  list-style: none;
}

.branches-list li:hover,
.fields-list li:hover,
.importance-list li:hover,
.applications-list li:hover,
.benefits-list li:hover {
  background: #e9ecef;
  transform: translateX(5px);
}

/* Enhanced Science Study Guide Styles */
.science-study-guide {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 3rem 2rem;
  border-radius: 15px;
  margin: 2rem auto;
  max-width: 1200px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.science-study-guide h2 {
  color: #2c3e50;
  margin-bottom: 2rem;
  font-size: 2.3rem;
  text-align: center;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  padding-bottom: 15px;
}

.science-study-guide h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background: linear-gradient(90deg, #3498db, #2ecc71);
  border-radius: 2px;
}

.study-strategies,
.common-mistakes,
.career-paths {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  margin: 2rem auto;
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
  max-width: 900px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.study-strategies:hover,
.common-mistakes:hover,
.career-paths:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

.study-strategies h3,
.common-mistakes h3,
.career-paths h3 {
  text-align: center;
  color: #3498db;
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
  position: relative;
  padding-bottom: 10px;
}

.study-strategies h3::after,
.common-mistakes h3::after,
.career-paths h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, #3498db, #2ecc71);
  border-radius: 2px;
}

.strategy-list,
.mistakes-list,
.career-list {
  list-style: none;
  padding-left: 0;
  text-align: left;
  max-width: 800px;
  margin: 0 auto;
}

.strategy-list li,
.mistakes-list li,
.career-list li {
  margin-bottom: 1rem;
  padding: 1rem 1.5rem;
  position: relative;
  line-height: 1.6;
  background: #f8f9fa;
  border-radius: 8px;
  transition: all 0.3s ease;
  list-style: none;
}

.strategy-list li:hover,
.mistakes-list li:hover,
.career-list li:hover {
  background: #e9ecef;
  transform: translateX(5px);
}

.strategy-list li:before,
.mistakes-list li:before,
.career-list li:before {
  display: none;
}

/* Responsive Design */
@media (max-width: 768px) {
  .science-content,
  .science-study-guide {
    padding: 1.5rem;
    margin: 1rem;
  }

  .science-content h2,
  .science-study-guide h2 {
    font-size: 2rem;
  }

  .science-content h3,
  .science-study-guide h3 {
    font-size: 1.5rem;
  }

  .science-branches,
  .interdisciplinary-fields,
  .why-science-matters,
  .real-world-applications,
  .science-benefits,
  .study-strategies,
  .common-mistakes,
  .career-paths {
    margin: 1.5rem;
    padding: 1.5rem;
  }

  .branches-list li,
  .fields-list li,
  .importance-list li,
  .applications-list li,
  .benefits-list li,
  .strategy-list li,
  .mistakes-list li,
  .career-list li {
    padding: 0.8rem 1rem;
  }
}

/* History Content Styles */
.history-content {
  padding: 3rem 2rem;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 15px;
  margin: 2rem auto;
  max-width: 1200px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.history-content h2 {
  color: #2c3e50;
  margin-bottom: 2rem;
  font-size: 2.5rem;
  text-align: center;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  padding-bottom: 15px;
}

.history-content h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background: linear-gradient(90deg, #8e44ad, #3498db);
  border-radius: 2px;
}

.history-content .subject-intro {
  font-size: 1.2rem;
  line-height: 1.8;
  color: #34495e;
  margin: 2rem auto;
  text-align: center;
  max-width: 800px;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.history-branches,
.why-history-matters,
.real-world-applications,
.history-benefits {
  margin: 2.5rem auto;
  padding: 2rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
  max-width: 900px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.history-branches:hover,
.why-history-matters:hover,
.real-world-applications:hover,
.history-benefits:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

.history-content h3 {
  color: #8e44ad;
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
  text-align: center;
  font-weight: 600;
  position: relative;
  padding-bottom: 10px;
}

.history-content h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, #8e44ad, #3498db);
  border-radius: 2px;
}

/* History Study Guide Styles */
.history-study-guide {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 3rem 2rem;
  border-radius: 15px;
  margin: 2rem auto;
  max-width: 1200px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.history-study-guide h2 {
  color: #2c3e50;
  margin-bottom: 2rem;
  font-size: 2.3rem;
  text-align: center;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  padding-bottom: 15px;
}

.history-study-guide h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background: linear-gradient(90deg, #8e44ad, #3498db);
  border-radius: 2px;
}

.strategy-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.strategy-item {
  background: white;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
}

.strategy-item:hover {
  transform: translateY(-5px);
}

.strategy-item h4 {
  color: #8e44ad;
  font-size: 1.4rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.pro-tip {
  background: linear-gradient(135deg, #8e44ad 0%, #3498db 100%);
  color: white;
  padding: 2rem;
  border-radius: 12px;
  margin: 2rem auto;
  max-width: 900px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.pro-tip h3 {
  color: white;
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.pro-tip p {
  font-size: 1.2rem;
  line-height: 1.6;
  margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
  .history-content,
  .history-study-guide {
    padding: 1.5rem;
    margin: 1rem;
  }

  .history-content h2,
  .history-study-guide h2 {
    font-size: 2rem;
  }

  .history-content h3,
  .history-study-guide h3 {
    font-size: 1.5rem;
  }

  .strategy-content {
    grid-template-columns: 1fr;
  }

  .strategy-item {
    margin-bottom: 1rem;
  }

  .pro-tip {
    margin: 1.5rem;
    padding: 1.5rem;
  }
}

/* Geography Content Styles */
.geography-content {
  padding: 2rem;
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
  border-radius: 15px;
  margin: 2rem auto;
  max-width: 1200px;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.geography-content h2 {
  color: #1565c0;
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
  position: relative;
  padding-bottom: 1rem;
}

.geography-content h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background: linear-gradient(90deg, #1565c0, #64b5f6);
  border-radius: 2px;
}

.geography-content .subject-intro {
  font-size: 1.2rem;
  color: #333;
  margin-bottom: 2rem;
  line-height: 1.6;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.geography-branches,
.why-geography-matters,
.real-world-applications {
  background: rgba(255, 255, 255, 0.9);
  padding: 2rem;
  border-radius: 10px;
  margin: 1.5rem 0;
  transition: transform 0.3s ease;
}

.geography-branches:hover,
.why-geography-matters:hover,
.real-world-applications:hover {
  transform: translateY(-5px);
}

.geography-content h3 {
  color: #1976d2;
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
  position: relative;
  padding-bottom: 0.5rem;
}

.geography-content h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background: #64b5f6;
  border-radius: 2px;
}

.branches-list li,
.importance-list li,
.applications-list li {
  background: #f5f9ff;
  padding: 1rem;
  margin: 0.8rem 0;
  border-radius: 8px;
  font-size: 1.1rem;
  color: #333;
  transition: all 0.3s ease;
  text-align: left;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.branches-list li:hover,
.importance-list li:hover,
.applications-list li:hover {
  background: #e3f2fd;
  transform: translateX(10px);
}

.tools-note {
  font-style: italic;
  color: #666;
  margin-top: 1rem;
  font-size: 1.1rem;
}

/* Geography Study Guide Styles */
.geography-study-guide {
  padding: 2rem;
  background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
  border-radius: 15px;
  margin: 2rem auto;
  max-width: 1200px;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.geography-study-guide h2 {
  color: #2e7d32;
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
  position: relative;
  padding-bottom: 1rem;
}

.geography-study-guide h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background: linear-gradient(90deg, #2e7d32, #81c784);
  border-radius: 2px;
}

.strategy-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.strategy-item {
  background: rgba(255, 255, 255, 0.9);
  padding: 1.5rem;
  border-radius: 10px;
  transition: transform 0.3s ease;
}

.strategy-item:hover {
  transform: translateY(-5px);
}

.strategy-item h4 {
  color: #2e7d32;
  font-size: 1.4rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.strategy-list {
  list-style: none;
  padding: 0;
  text-align: left;
}

.strategy-list li {
  padding: 0.8rem;
  margin: 0.5rem 0;
  background: #f1f8e9;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.strategy-list li:hover {
  background: #e8f5e9;
  transform: translateX(10px);
}

.mistakes-list,
.career-list {
  list-style: none;
  padding: 0;
  max-width: 800px;
  margin: 0 auto;
}

.mistakes-list li,
.career-list li {
  background: rgba(255, 255, 255, 0.9);
  padding: 1rem;
  margin: 0.8rem 0;
  border-radius: 8px;
  text-align: left;
  transition: all 0.3s ease;
}

.mistakes-list li:hover,
.career-list li:hover {
  background: #e8f5e9;
  transform: translateX(10px);
}

.pro-tip {
  background: #f1f8e9;
  padding: 1.5rem;
  border-radius: 10px;
  margin-top: 2rem;
  border-left: 4px solid #2e7d32;
}

.pro-tip h3 {
  color: #2e7d32;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.pro-tip p {
  color: #333;
  font-size: 1.1rem;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .geography-content,
  .geography-study-guide {
    padding: 1.5rem;
    margin: 1rem;
  }

  .geography-content h2,
  .geography-study-guide h2 {
    font-size: 2rem;
  }

  .geography-content h3,
  .geography-study-guide h3 {
    font-size: 1.5rem;
  }

  .strategy-content {
    grid-template-columns: 1fr;
  }

  .strategy-item {
    margin: 0.5rem 0;
  }

  .pro-tip {
    margin: 1rem 0;
  }
}

/* Literature Content Styles */
.literature-content {
  padding: 2rem;
  background: linear-gradient(135deg, #f3e5f5 0%, #e1bee7 100%);
  border-radius: 15px;
  margin: 2rem auto;
  max-width: 1200px;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.literature-content h2 {
  color: #7b1fa2;
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
  position: relative;
  padding-bottom: 1rem;
}

.literature-content h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background: linear-gradient(90deg, #7b1fa2, #ba68c8);
  border-radius: 2px;
}

.literature-content .subject-intro {
  font-size: 1.2rem;
  color: #333;
  margin-bottom: 2rem;
  line-height: 1.6;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.literature-forms,
.why-literature-matters,
.real-world-applications {
  background: rgba(255, 255, 255, 0.9);
  padding: 2rem;
  border-radius: 10px;
  margin: 1.5rem 0;
  transition: transform 0.3s ease;
}

.literature-forms:hover,
.why-literature-matters:hover,
.real-world-applications:hover {
  transform: translateY(-5px);
}

.literature-content h3 {
  color: #8e24aa;
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
  position: relative;
  padding-bottom: 0.5rem;
}

.literature-content h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background: #ba68c8;
  border-radius: 2px;
}

.forms-list li,
.importance-list li,
.applications-list li {
  background: #faf5ff;
  padding: 1rem;
  margin: 0.8rem 0;
  border-radius: 8px;
  font-size: 1.1rem;
  color: #333;
  transition: all 0.3s ease;
  text-align: left;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.forms-list li:hover,
.importance-list li:hover,
.applications-list li:hover {
  background: #f3e5f5;
  transform: translateX(10px);
}

.themes-note {
  font-style: italic;
  color: #666;
  margin-top: 1rem;
  font-size: 1.1rem;
}

/* Literature Study Guide Styles */
.literature-study-guide {
  padding: 2rem;
  background: linear-gradient(135deg, #e8eaf6 0%, #c5cae9 100%);
  border-radius: 15px;
  margin: 2rem auto;
  max-width: 1200px;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.literature-study-guide h2 {
  color: #3f51b5;
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
  position: relative;
  padding-bottom: 1rem;
}

.literature-study-guide h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background: linear-gradient(90deg, #3f51b5, #7986cb);
  border-radius: 2px;
}

.literature-study-guide .strategy-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.literature-study-guide .strategy-item {
  background: rgba(255, 255, 255, 0.9);
  padding: 1.5rem;
  border-radius: 10px;
  transition: transform 0.3s ease;
}

.literature-study-guide .strategy-item:hover {
  transform: translateY(-5px);
}

.literature-study-guide .strategy-item h4 {
  color: #3f51b5;
  font-size: 1.4rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.literature-study-guide .strategy-list {
  list-style: none;
  padding: 0;
  text-align: left;
}

.literature-study-guide .strategy-list li {
  padding: 0.8rem;
  margin: 0.5rem 0;
  background: #e8eaf6;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.literature-study-guide .strategy-list li:hover {
  background: #c5cae9;
  transform: translateX(10px);
}

.literature-study-guide .mistakes-list,
.literature-study-guide .career-list {
  list-style: none;
  padding: 0;
  max-width: 800px;
  margin: 0 auto;
}

.literature-study-guide .mistakes-list li,
.literature-study-guide .career-list li {
  background: rgba(255, 255, 255, 0.9);
  padding: 1rem;
  margin: 0.8rem 0;
  border-radius: 8px;
  text-align: left;
  transition: all 0.3s ease;
}

.literature-study-guide .mistakes-list li:hover,
.literature-study-guide .career-list li:hover {
  background: #e8eaf6;
  transform: translateX(10px);
}

.literature-study-guide .pro-tip {
  background: #e8eaf6;
  padding: 1.5rem;
  border-radius: 10px;
  margin-top: 2rem;
  border-left: 4px solid #3f51b5;
}

.literature-study-guide .pro-tip h3 {
  color: #3f51b5;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.literature-study-guide .pro-tip p {
  color: #333;
  font-size: 1.1rem;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .literature-content,
  .literature-study-guide {
    padding: 1.5rem;
    margin: 1rem;
  }

  .literature-content h2,
  .literature-study-guide h2 {
    font-size: 2rem;
  }

  .literature-content h3,
  .literature-study-guide h3 {
    font-size: 1.5rem;
  }

  .literature-study-guide .strategy-content {
    grid-template-columns: 1fr;
  }

  .literature-study-guide .strategy-item {
    margin: 0.5rem 0;
  }

  .literature-study-guide .pro-tip {
    margin: 1rem 0;
  }
}

/* Technology Content Styles */
.technology-content {
  padding: 2rem;
  background: linear-gradient(135deg, #e0f7fa 0%, #b2ebf2 100%);
  border-radius: 15px;
  margin: 2rem auto;
  max-width: 1200px;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.technology-content h2 {
  color: #00838f;
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
  position: relative;
  padding-bottom: 1rem;
}

.technology-content h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background: linear-gradient(90deg, #00838f, #4dd0e1);
  border-radius: 2px;
}

.technology-content .subject-intro {
  font-size: 1.2rem;
  color: #333;
  margin-bottom: 2rem;
  line-height: 1.6;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.technology-domains,
.why-technology-matters,
.real-world-applications {
  background: rgba(255, 255, 255, 0.9);
  padding: 2rem;
  border-radius: 10px;
  margin: 1.5rem 0;
  transition: transform 0.3s ease;
}

.technology-domains:hover,
.why-technology-matters:hover,
.real-world-applications:hover {
  transform: translateY(-5px);
}

.technology-content h3 {
  color: #006064;
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
  position: relative;
  padding-bottom: 0.5rem;
}

.technology-content h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background: #4dd0e1;
  border-radius: 2px;
}

.domains-list li,
.importance-list li,
.applications-list li {
  background: #f5fcfd;
  padding: 1rem;
  margin: 0.8rem 0;
  border-radius: 8px;
  font-size: 1.1rem;
  color: #333;
  transition: all 0.3s ease;
  text-align: left;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.domains-list li:hover,
.importance-list li:hover,
.applications-list li:hover {
  background: #e0f7fa;
  transform: translateX(10px);
}

/* Technology Study Guide Styles */
.technology-study-guide {
  padding: 2rem;
  background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
  border-radius: 15px;
  margin: 2rem auto;
  max-width: 1200px;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.technology-study-guide h2 {
  color: #2e7d32;
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
  position: relative;
  padding-bottom: 1rem;
}

.technology-study-guide h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background: linear-gradient(90deg, #2e7d32, #81c784);
  border-radius: 2px;
}

.technology-study-guide .strategy-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.technology-study-guide .strategy-item {
  background: rgba(255, 255, 255, 0.9);
  padding: 1.5rem;
  border-radius: 10px;
  transition: transform 0.3s ease;
}

.technology-study-guide .strategy-item:hover {
  transform: translateY(-5px);
}

.technology-study-guide .strategy-item h4 {
  color: #2e7d32;
  font-size: 1.4rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.technology-study-guide .strategy-list {
  list-style: none;
  padding: 0;
  text-align: left;
}

.technology-study-guide .strategy-list li {
  padding: 0.8rem;
  margin: 0.5rem 0;
  background: #e8f5e9;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.technology-study-guide .strategy-list li:hover {
  background: #c8e6c9;
  transform: translateX(10px);
}

.technology-study-guide .mistakes-list,
.technology-study-guide .career-list {
  list-style: none;
  padding: 0;
  max-width: 800px;
  margin: 0 auto;
}

.technology-study-guide .mistakes-list li,
.technology-study-guide .career-list li {
  background: rgba(255, 255, 255, 0.9);
  padding: 1rem;
  margin: 0.8rem 0;
  border-radius: 8px;
  text-align: left;
  transition: all 0.3s ease;
}

.technology-study-guide .mistakes-list li:hover,
.technology-study-guide .career-list li:hover {
  background: #e8f5e9;
  transform: translateX(10px);
}

.technology-study-guide .pro-tip {
  background: #e8f5e9;
  padding: 1.5rem;
  border-radius: 10px;
  margin-top: 2rem;
  border-left: 4px solid #2e7d32;
}

.technology-study-guide .pro-tip h3 {
  color: #2e7d32;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.technology-study-guide .pro-tip p {
  color: #333;
  font-size: 1.1rem;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .technology-content,
  .technology-study-guide {
    padding: 1.5rem;
    margin: 1rem;
  }

  .technology-content h2,
  .technology-study-guide h2 {
    font-size: 2rem;
  }

  .technology-content h3,
  .technology-study-guide h3 {
    font-size: 1.5rem;
  }

  .technology-study-guide .strategy-content {
    grid-template-columns: 1fr;
  }

  .technology-study-guide .strategy-item {
    margin: 0.5rem 0;
  }

  .technology-study-guide .pro-tip {
    margin: 1rem 0;
  }
}

/* Literature Importance Section Styles */
.literature-importance {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.literature-importance h2 {
    color: #2c3e50;
    font-size: 2.5em;
    margin-bottom: 20px;
    text-align: center;
}

.literature-importance h3 {
    color: #34495e;
    font-size: 1.8em;
    margin: 30px 0 20px;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
    text-align: center;
}

.literature-importance h4 {
    color: #2980b9;
    font-size: 1.4em;
    margin: 15px 0;
    text-align: center;
}

.intro-text {
    font-size: 1.2em;
    line-height: 1.6;
    color: #555;
    margin-bottom: 30px;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Grid Layouts */
.aspect-grid,
.importance-grid,
.tips-grid,
.career-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin: 20px auto;
    max-width: 1000px;
}

/* Cards */
.aspect-card,
.importance-card,
.tip-card,
.career-card {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: left;
}

.aspect-card:hover,
.importance-card:hover,
.tip-card:hover,
.career-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Lists */
.literature-importance ul {
    list-style-type: none;
    padding-left: 0;
    text-align: left;
}

.literature-importance li {
    margin: 10px 0;
    padding-left: 20px;
    position: relative;
    line-height: 1.5;
}

.literature-importance li:before {
    content: "•";
    color: #3498db;
    position: absolute;
    left: 0;
}

/* Career Cards */
.career-card {
    text-align: center;
}

.career-card p {
    color: #666;
    margin-top: 10px;
}

/* Conclusion */
.conclusion {
    margin-top: 40px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.conclusion p {
    font-size: 1.1em;
    line-height: 1.6;
    color: #555;
}

/* Section Spacing */
.key-aspects,
.importance-section,
.study-tips,
.career-paths {
    margin: 40px auto;
    max-width: 1000px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .literature-importance {
        padding: 15px;
        margin: 20px;
    }

    .literature-importance h2 {
        font-size: 2em;
    }

    .literature-importance h3 {
        font-size: 1.5em;
    }

    .aspect-grid,
    .importance-grid,
    .tips-grid,
    .career-grid {
        grid-template-columns: 1fr;
        padding: 0 15px;
    }
}

/* Emphasized Text */
.literature-importance em {
    font-style: italic;
    color: #2980b9;
}

/* Accessibility */
.literature-importance a:focus,
.literature-importance button:focus {
    outline: 3px solid #3498db;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .literature-importance {
        box-shadow: none;
        margin: 0;
        padding: 0;
    }

    .aspect-card,
    .importance-card,
    .tip-card,
    .career-card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}