/* ------------------------------
   CSS Variables and Base Styles
------------------------------ */
:root {
    --primary-color: #1a73e8;
    --secondary-color: #ffffff;
    --accent-color: #34a853;
    --background-light: #f4f6f9;
    --background-dark: #121212;
    --text-light: #ffffff;
    --text-dark: #1f2937;
    --border-radius: 16px;
    --transition: all 0.3s ease;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --badge-color: #ff9800;
    --font-size-small: 0.9rem;
    --font-size-medium: 1rem;
    --font-size-large: 1.2rem;
    --line-height: 1.5;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    line-height: var(--line-height);
    margin: 0;
    padding: 0;
    background-color: var(--background-light);
    color: var(--text-dark);
    overflow-x: hidden;
}

/* Visually Hidden (for accessibility) */
.visually-hidden {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ------------------------------
   Navbar Styles
------------------------------ */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: saturate(180%) blur(20px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 0.5rem 3%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
    height: 60px; /* Consistent navbar height */
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.3rem; /* Adjusted font size */
    font-weight: 800;
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.logo::before {
    content: '🦷';
    margin-right: 8px; /* Adjusted margin */
    font-size: 1.5rem; /* Adjusted icon size */
}

.nav-links {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 1rem; /* Adjusted gap */
}

.nav-links a {
    position: relative;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    padding: 0.4rem 0.8rem; /* Adjusted padding */
    border-radius: var(--border-radius);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: var(--font-size-small); /* Consistent font size */
}

.nav-links a::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px; /* Adjusted height */
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-links a:hover::before,
.nav-links a.active::before {
    width: 100%;
}

.nav-links a:hover {
    color: var(--primary-color);
    background: rgba(26, 115, 232, 0.1);
}

/* Dropdown Styles */
.dropdown {
    position: relative;
}

.dropdown-toggle::after {
    content: ' ▼';
    font-size: 0.6rem;
    margin-left: 0.3rem;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--secondary-color);
    list-style: none;
    padding: 0.5rem 0;
    margin: 0;
    box-shadow: var(--box-shadow);
    border-radius: var(--border-radius);
    display: none;
    min-width: 150px;
    z-index: 1000;
}

.dropdown.active .dropdown-menu {
    display: block;
}

.dropdown-menu li a {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--text-dark);
    text-decoration: none;
    transition: background 0.3s;
}

.dropdown-menu li a:hover {
    background: var(--background-light);
    color: var(--primary-color);
}

/* ------------------------------
   Hero Section Styles
------------------------------ */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--background-light) 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
    padding-top: 60px; /* Adjusted for fixed navbar */
}

.hero-content {
    max-width: 800px;
    text-align: center;
    position: relative;
    z-index: 10;
    padding: 2rem;
}

.hero-section h1 {
    font-size: 2.5rem; /* Adjusted for better mobile readability */
    font-weight: 900;
    color: var(--text-dark);
    margin-bottom: 1rem;
    line-height: 1.2;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

.hero-section p {
    font-size: var(--font-size-medium); /* Adjusted font size */
    color: var(--text-dark);
    opacity: 0.9;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1.2rem; /* Adjusted padding */
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition);
    gap: 0.5rem;
    font-size: var(--font-size-small); /* Consistent font size */
}

.primary-button {
    background: var(--primary-color);
    color: var(--text-light);
    box-shadow: 0 4px 6px rgba(26, 115, 232, 0.4);
}

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

.primary-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 8px rgba(26, 115, 232, 0.5);
}

.secondary-button:hover {
    background: rgba(26, 115, 232, 0.1);
}

/* ------------------------------
   Decorative Background Elements
------------------------------ */
.hero-section::before,
.hero-section::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    z-index: 1;
}

.hero-section::before {
    width: 250px; /* Adjusted size */
    height: 250px;
    background: var(--primary-color);
    top: -60px;
    right: -60px;
}

.hero-section::after {
    width: 150px; /* Adjusted size */
    height: 150px;
    background: var(--accent-color);
    bottom: -60px;
    left: -60px;
}

/* ------------------------------
   Main Content Styles
------------------------------ */
main {
    padding: 1rem;
    max-width: 1200px;
    margin: auto;
}

section {
    background: var(--secondary-color);
    margin: 2rem 0;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

h2 {
    font-size: 2rem; /* Consistent heading size */
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    text-align: center;
}

/* ------------------------------
   Timer Section Styles
------------------------------ */
.timer-container {
    text-align: center;
    padding: 2rem;
    background: var(--background-light);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

#timer-display {
    font-size: 3rem; /* Adjusted for better readability */
    font-weight: bold;
    color: var(--primary-color);
    margin: 1rem 0;
}

#quadrant-display {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap; /* Allow quadrants to wrap on small screens */
}

.quadrant {
    padding: 1rem 1.5rem;
    background: var(--background-light);
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    margin: 0.5rem;
    text-align: center;
    min-width: 100px;
    flex: 1 1 45%; /* Adjust width for better fit on mobile */
}

.quadrant.active {
    background: var(--primary-color);
    color: var(--text-light);
    transform: scale(1.05);
}

/* ------------------------------
   Tooth Diagram Styles
------------------------------ */
.diagram-container {
    display: flex;
    gap: 2rem;
    padding: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

#tooth-map {
    flex: 1;
    min-height: 300px;
    background: var(--background-light);
    border-radius: 10px;
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    padding: 1rem;
}

.tooth-quadrant {
    background: var(--background-light);
    border-radius: 8px;
    padding: 1.5rem;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
    text-align: center;
}

.tooth-quadrant:hover {
    background: var(--primary-color);
    color: var(--text-light);
}

#tooth-info {
    flex: 1;
    padding: 1.5rem;
    background: var(--secondary-color);
    border-radius: 10px;
    box-shadow: var(--box-shadow);
}

/* ------------------------------
   Hygiene Tracker Styles
------------------------------ */
.tracker-container {
    background: var(--secondary-color);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.tracker-container h2 {
    text-align: center;
    margin-bottom: 1rem;
}

.tracker-item {
    margin: 1rem 0;
    padding: 1rem;
    background: var(--background-light);
    border-radius: 8px;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.tracker-item:hover {
    background: var(--accent-color);
}

.tracker-item label {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    cursor: pointer;
    font-size: var(--font-size-medium);
}

.tracker-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

#save-progress {
    background: var(--primary-color);
    color: var(--text-light);
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: var(--font-size-medium);
    transition: var(--transition);
    margin-top: 1rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

#save-progress:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
}

/* Progress Tracking */
#progress-tracking {
    margin-top: 2rem;
    text-align: left;
}

#progress-tracking h3 {
    font-size: var(--font-size-medium);
    margin-bottom: 1rem;
}

#progress-history {
    list-style: none;
    padding: 0;
}

#progress-history li {
    background: var(--background-light);
    padding: 0.8rem;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    box-shadow: var(--box-shadow);
    font-size: var(--font-size-small);
}

/* ------------------------------
   Learn Section Styles
------------------------------ */
.learn-section {
    background: var(--secondary-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.learn-section h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.learn-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.tab-button {
    padding: 0.8rem 1.5rem;
    background: var(--background-light);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition);
    font-size: var(--font-size-small);
}

.tab-button.active {
    background: var(--primary-color);
    color: var(--text-light);
    transform: scale(1.05);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.technique-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.step {
    background: var(--background-light);
    padding: 1.5rem;
    border-radius: 8px;
    position: relative;
    transition: transform 0.3s ease;
}

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

.step-number {
    position: absolute;
    top: -15px;
    left: -15px;
    width: 35px;
    height: 35px;
    background: var(--primary-color);
    color: var(--text-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    box-shadow: var(--box-shadow);
    font-size: var(--font-size-small);
}

/* ------------------------------
   Articles Section Styles
------------------------------ */
.articles-section {
    background: var(--secondary-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.articles-section h2 {
    text-align: center;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.article {
    background: var(--background-light);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease;
}

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

.article h3 {
    margin-bottom: 0.5rem;
    font-size: var(--font-size-medium);
}

.article p {
    font-size: var(--font-size-small);
    color: var(--text-dark);
}

.read-more {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: bold;
    font-size: var(--font-size-small);
}

.read-more:hover {
    text-decoration: underline;
}

/* ------------------------------
   Testimonials Section Styles
------------------------------ */
.testimonials-section {
    background: var(--secondary-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.testimonials-section h2 {
    text-align: center;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.testimonial {
    background: var(--background-light);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease;
}

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

.testimonial p {
    font-size: var(--font-size-small);
    margin-bottom: 0.5rem;
}

.testimonial h4 {
    font-size: var(--font-size-small);
    color: var(--primary-color);
}

/* ------------------------------
   Quiz Section Styles
------------------------------ */
.quiz-section {
    background: var(--secondary-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    max-width: 800px;
    margin: 2rem auto;
}

.quiz-section h2 {
    text-align: center;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

#quizButton {
    background: var(--primary-color);
    color: var(--text-light);
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: var(--font-size-medium);
    transition: var(--transition);
    display: block;
    margin: 0 auto;
}

#quizButton:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
}

.quiz-container {
    margin-top: 1.5rem;
}

.quiz-question {
    background: var(--background-light);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    box-shadow: var(--box-shadow);
}

.quiz-question p {
    font-weight: bold;
    margin-bottom: 1rem;
    font-size: var(--font-size-medium);
}

.quiz-question label {
    display: block;
    margin: 0.5rem 0;
    padding: 0.5rem;
    cursor: pointer;
    font-size: var(--font-size-small);
}

.quiz-question input[type="radio"] {
    margin-right: 0.5rem;
}

#quizForm button[type="submit"] {
    background: var(--primary-color);
    color: var(--text-light);
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: var(--font-size-medium);
    transition: var(--transition);
    display: block;
    margin: 1rem auto 0;
}

#quizForm button[type="submit"]:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
}

#quizResult {
    margin-top: 1.5rem;
    padding: 1rem;
    background: var(--accent-color);
    border-radius: 8px;
    text-align: center;
    font-weight: bold;
    white-space: pre-wrap; /* To preserve line breaks */
    font-size: var(--font-size-medium);
}

/* ------------------------------
   Badges Section Styles
------------------------------ */
.badges-section {
    background: var(--secondary-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    max-width: 800px;
    margin: 2rem auto;
    text-align: center;
}

.badges-section h2 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.badge-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.badge {
    background: var(--badge-color);
    color: var(--text-light);
    padding: 0.5rem 1rem;
    border-radius: 12px;
    font-weight: bold;
    box-shadow: var(--box-shadow);
    font-size: var(--font-size-small);
    animation: popIn 0.5s ease-out;
}

@keyframes popIn {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* ------------------------------
   Modal Styles
------------------------------ */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right:0;
    bottom:0;
    background: rgba(0,0,0,0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: var(--secondary-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    max-width: 800px;
    width: 90%;
    position: relative;
    max-height: 80vh;
    overflow-y: auto;
}

.close-button {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-dark);
    transition: color 0.3s;
}

.close-button:hover {
    color: var(--primary-color);
}

.modal-question {
    margin-bottom: 1.5rem;
}

.modal-question p {
    margin: 0.5rem 0;
    font-size: var(--font-size-small);
}

/* ------------------------------
   Dropdown Menu Adjustments for Mobile
------------------------------ */
@media (max-width: 768px) {
    .dropdown-menu {
        position: static;
        box-shadow: none;
    }

    .dropdown:hover .dropdown-menu,
    .dropdown:focus-within .dropdown-menu {
        display: none;
    }

    .dropdown.active .dropdown-menu {
        display: block;
    }
}

/* ------------------------------
   Responsive Adjustments
------------------------------ */

/* Tablets and Small Laptops */
@media (max-width: 1024px) {
    .hero-section h1 {
        font-size: 2.2rem;
    }

    .hero-section p {
        font-size: var(--font-size-medium);
    }

    .cta-buttons {
        flex-direction: column;
    }

    .cta-button {
        width: 100%;
    }

    .mission-items {
        flex-direction: column;
        align-items: center;
    }

    .mission-item {
        min-width: 200px;
    }

    .team-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .diagram-container {
        flex-direction: column;
    }

    #tooth-map {
        grid-template-columns: repeat(1, 1fr);
    }
}

/* Mobile Devices */
@media (max-width: 768px) {
    .nav-links {
        flex-direction: column;
        gap: 1rem;
        background: rgba(255, 255, 255, 0.95);
        position: absolute;
        top: 60px;
        right: 0;
        width: 100%;
        display: none; /* Hide nav-links by default */
    }

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

    /* Hamburger Menu */
    .menu-toggle {
        display: block;
        cursor: pointer;
        font-size: 1.5rem;
    }

    /* Adjust padding for sections */
    main {
        padding: 0.5rem;
    }

    .hero-content {
        padding: 1rem;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .mission-items {
        flex-direction: column;
        align-items: center;
    }

    .mission-item {
        width: 90%;
    }

    .team-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .events-list {
        gap: 1rem;
    }

    .event-item {
        max-width: 90%;
    }

    .timer-container {
        padding: 1rem;
    }

    #timer-display {
        font-size: 2.5rem;
    }

    #quadrant-display {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .quadrant {
        flex: 1 1 40%;
        min-width: 80px;
    }

    #tooth-map {
        grid-template-columns: repeat(1, 1fr);
    }

    .diagram-container {
        flex-direction: column;
    }

    #tooth-info {
        width: 100%;
    }

    .tracker-container {
        padding: 1rem;
    }

    .tracker-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .tracker-item label {
        font-size: var(--font-size-small);
    }

    #save-progress {
        width: 100%;
    }

    .learn-tabs {
        flex-direction: column;
        align-items: stretch;
    }

    .tab-button {
        width: 100%;
        max-width: 300px;
    }

    .technique-steps {
        grid-template-columns: 1fr;
    }

    .step {
        padding: 1rem;
    }

    .step-number {
        top: -10px;
        left: -10px;
        width: 25px;
        height: 25px;
        font-size: 0.8rem;
    }

    .articles-section h2,
    .testimonials-section h2,
    .missions-section h2,
    .events-section h2,
    .learn-section h2 {
        font-size: 1.8rem;
    }

    .article h3,
    .testimonial h4 {
        font-size: var(--font-size-medium);
    }
}

/* Very Small Mobile Devices */
@media (max-width: 480px) {
    .hero-section h1 {
        font-size: 1.8rem;
    }

    .hero-section p {
        font-size: var(--font-size-small);
    }

    .cta-button {
        font-size: var(--font-size-small);
    }

    .mission-item {
        width: 100%;
    }

    .event-item {
        padding: 1rem;
    }

    .timer-container {
        padding: 0.5rem;
    }

    #timer-display {
        font-size: 2rem;
    }

    .quadrant {
        flex: 1 1 45%;
        min-width: 70px;
        padding: 0.8rem;
    }

    .tooth-quadrant {
        padding: 1rem;
    }

    #tooth-info {
        padding: 1rem;
    }

    .tracker-container {
        padding: 0.5rem;
    }

    .tracker-item {
        padding: 0.5rem;
    }

    .tracker-item label {
        font-size: var(--font-size-small);
    }

    #save-progress {
        padding: 0.5rem 1rem;
        font-size: var(--font-size-small);
    }

    .learn-tabs {
        flex-direction: column;
        align-items: stretch;
    }

    .tab-button {
        max-width: 100%;
    }

    .technique-steps {
        grid-template-columns: 1fr;
    }

    .step {
        padding: 1rem;
    }

    .step-number {
        top: -8px;
        left: -8px;
        width: 20px;
        height: 20px;
        font-size: 0.7rem;
    }

    .articles-section h2,
    .testimonials-section h2,
    .missions-section h2,
    .events-section h2,
    .learn-section h2 {
        font-size: 1.5rem;
    }

    .article h3,
    .testimonial h4 {
        font-size: var(--font-size-small);
    }
}

/* ------------------------------
   Utility Classes
------------------------------ */
.hidden {
    display: none;
}

.badge-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.badge {
    background: var(--badge-color);
    color: var(--text-light);
    padding: 0.5rem 1rem;
    border-radius: 12px;
    font-weight: bold;
    box-shadow: var(--box-shadow);
    font-size: var(--font-size-small);
    animation: popIn 0.5s ease-out;
}

/* ------------------------------
   Footer Styles
------------------------------ */
footer {
    background: var(--secondary-color);
    padding: 2rem;
    border-top: 1px solid #e0e0e0;
}

.footer-content {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 2rem;
    max-width: 1200px;
    margin: auto;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.footer-section p,
.footer-section a {
    font-size: var(--font-size-small);
    color: var(--text-dark);
    text-decoration: none;
}

.footer-section a:hover {
    color: var(--primary-color);
}

.social-links a {
    display: inline-block;
    margin-right: 1rem;
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    font-size: var(--font-size-small);
    color: var(--text-dark);
}

/* ------------------------------
   Quiz History Section Styles
------------------------------ */
.quiz-history-section {
    background: var(--secondary-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    max-width: 800px;
    margin: 2rem auto;
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.quiz-entry {
    background: var(--background-light);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.quiz-entry:hover,
.quiz-entry:focus {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    outline: none;
}

.test-identifier {
    font-size: var(--font-size-medium);
    font-weight: 700;
    color: var(--primary-color);
}

.score {
    font-size: var(--font-size-medium);
    color: var(--text-dark);
}

/* Accessibility: Focus Styles */
.quiz-entry:focus {
    outline: 2px solid var(--primary-color);
}
