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

:root {
    --primary: #6366f1;
    --secondary: #f59e0b;
    --accent: #ec4899;
    --success: #10b981;
    --bg-dark: #0f172a;
    --bg-light: #f8fafc;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --gradient-0: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-4: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    --gradient-5: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    --gradient-6: linear-gradient(135deg, #8e24aa 0%, #5e35b1 100%);
    --gradient-7: linear-gradient(135deg, #d32f2f 0%, #b71c1c 100%);
    --gradient-8: linear-gradient(135deg, #303f9f 0%, #1a237e 100%);
    --gradient-9: linear-gradient(135deg, #00796b 0%, #004d40 100%);
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--bg-light);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-md);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}


.logo {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    cursor: pointer;
}

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

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    position: relative;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: var(--primary);
    transform: translateY(-2px);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-1);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    background: none;
    border: none;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    min-height: 50vh;
    display: flex;
    align-items: center;
    background: var(--gradient-1);
    position: relative;
    overflow: hidden;
    margin-top: 0px;
    padding-top: 2rem;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><polygon fill="rgba(255,255,255,0.1)" points="0,0 1000,300 1000,1000 0,700"/></svg>');
    background-size: cover;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 2rem 3rem 2rem;
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
}

.hero-title {
    font-family: 'Poppins', sans-serif;
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease 0.2s both;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--gradient-2);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease 0.4s both;
    box-shadow: var(--shadow-lg);
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

/* Sections */
.section {
    padding: 5rem 0;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 2rem;
    padding-right: 2rem;
}

.section-title {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-top: 3rem;
    margin-bottom: 3rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

#quiz-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.quiz-link {
    display: block;
    margin-top: auto; /* Push to bottom with space-between */
    padding: 0.5rem 1rem; /* original smaller padding */
    background: var(--primary);
    color: white;
    font-weight: 600;
    font-size: 0.9rem; /* original smaller font */
    text-decoration: none;
    border-radius: 30px; /* original less rounded */
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md); /* original shadow */
    text-align: center;
    width: 100%;
}

.quiz-link:hover {
    background: var(--gradient-1);
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

/* Featured Quizzes */
.quiz-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

#quizzes {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.quiz-image img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    margin: 0 auto;
    object-fit: cover;
}



.quiz-card {
    width: 300px; /* Fixed width for consistent sizing */
    aspect-ratio: 6 / 5; /* 300x250 ratio */
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    text-align: center;
    flex-shrink: 0; /* Prevent shrinking */
}

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

.quiz-image {
    height: 150px; /* Fixed height for consistent image size */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--gradient-2);
    flex-shrink: 0; /* Prevent shrinking */
}

.quiz-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.quiz-card:hover .quiz-image::before {
    transform: translateX(100%);
}

#fun-fact-list {
    display: flex;
    flex-wrap: wrap; /* allow multiple per row */
    justify-content: center;
    gap: 1.5rem;
}

#trivia-list {
    display: flex;
    flex-wrap: wrap; /* allow multiple per row */
    justify-content: center;
    gap: 1.5rem;
}

/* FunFact card */
.funfact-card {
    width: 300px; /* Fixed width for consistent sizing */
    aspect-ratio: 6 / 5; /* 300x250 ratio */
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    text-align: center;
    background: var(--card-bg, #fff);
    flex-shrink: 0; /* Prevent shrinking */
}

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

/* FunFact image container */
.funfact-image {
    flex: 1 1 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    background: var(--gradient-2);
}

.funfact-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Gradient hover effect */
.funfact-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.funfact-card:hover .funfact-image::before {
    transform: translateX(100%);
}

/* Funfact content wrapper */
.funfact-content {
    flex: 1;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Title & link */
.funfact-title {
    margin: 0.5rem 0;
    font-size: 1rem;
    font-weight: 600;
}

.funfact-link {
       display: block;
        margin-top: auto; /* Push to bottom with space-between */
        padding: 0.5rem 1rem; /* original smaller padding */
        background: var(--primary);
        color: white;
        font-weight: 600;
        font-size: 0.9rem; /* original smaller font */
        text-decoration: none;
        border-radius: 30px; /* original less rounded */
        transition: all 0.3s ease;
        box-shadow: var(--shadow-md); /* original shadow */
        text-align: center;
        width: 100%;
}

.funfact-link:hover {
    background: var(--primary-hover, #ea580c);
}

.trivia-link {
    display: block;
    margin-top: auto; /* Push to bottom with space-between */
    padding: 0.5rem 1rem; /* original smaller padding */
    background: var(--primary);
    color: white;
    font-weight: 600;
    font-size: 0.9rem; /* original smaller font */
    text-decoration: none;
    border-radius: 30px; /* original less rounded */
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md); /* original shadow */
    text-align: center;
    width: 100%;
}

.trivia-link:hover {
    background: var(--secondary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}


.quiz-content {
    flex: 1;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.quiz-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    text-align: center;
    line-height: 1.2;
    padding: 0 0.5rem;
    word-wrap: break-word;
    hyphens: auto;
}

.quiz-description {
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.quiz-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Trending Carousel */
.carousel-container {
    overflow-x: auto; /* allow horizontal scrolling */
    scroll-behavior: smooth; /* smooth scrolling */
    padding: 1rem 0; /* optional spacing */
}

.carousel {
    display: flex;
    gap: 1rem; /* spacing between items */
    padding: 0 1rem; /* prevents last item cutoff */
}

.carousel-item {
    min-width: 200px; /* fixed width for each card */
    flex: 0 0 auto; /* prevent shrinking */
    background: white;
    border-radius: 15px;
    padding: 1rem;
    box-shadow: var(--shadow-md);
    text-align: center;
}

.carousel-item:hover {
    transform: scale(1.05);
}

.carousel-link {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.carousel-link:hover {
    background: var(--gradient-1);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.carousel-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: var(--gradient-3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Fun Facts */
.fun-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.fun-fact {
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.fun-fact:nth-child(1) { background: var(--gradient-1); }
.fun-fact:nth-child(2) { background: var(--gradient-2); }
.fun-fact:nth-child(3) { background: var(--gradient-3); }
.fun-fact:nth-child(4) { background: var(--gradient-4); }

.fun-fact-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Gallery Pages */
.gallery-section {
    padding: 2rem 0;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 2rem;
    padding-right: 2rem;
}

.gallery-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.gallery-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.gallery-card {
    width: 300px; /* Fixed width for consistent sizing */
    aspect-ratio: 6 / 5; /* 300x250 ratio */
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    margin: 0 auto;
    flex-shrink: 0; /* Prevent shrinking */
}

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

.gallery-image {
    flex: 1 1 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--gradient-2);
}

.gallery-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-content {
    flex: 1;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}



.gallery-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0.5rem 0;
    color: var(--text-dark);
    text-align: center;
    padding: 0 1rem;
}

.gallery-link {
    display: block;
    margin-top: auto; /* Push to bottom with space-between */
    padding: 0.5rem 1rem; /* match index card buttons */
    background: var(--primary);
    color: white;
    font-weight: 600;
    font-size: 0.9rem; /* match index card buttons */
    text-decoration: none;
    border-radius: 30px; /* match index card buttons */
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md); /* match index card buttons */
    text-align: center;
    width: 100%; /* full width like index */
}

.gallery-link:hover {
    background: var(--secondary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

/* Ad Spaces */
.ad-banner {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    border: 2px dashed #d1d5db;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    margin: 2rem 0;
    color: var(--text-light);
    font-weight: 500;
}

.ad-sidebar {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 200px;
    height: 400px;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    border: 2px dashed #d1d5db;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-weight: 500;
    z-index: 100;
}

/* Quiz Page Styles */
.quiz-container {
    max-width: 800px;
    margin: 120px auto 2rem;
    padding: 0 2rem;
    position: relative;
}

.quiz-sidebar-ads {
    position: fixed;
    width: 160px;
    height: 300px;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    border: 2px dashed #d1d5db;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 0.8rem;
    text-align: center;
    z-index: 100;
}

.quiz-ad-left {
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.quiz-ad-right {
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    margin-bottom: 2rem;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-1);
    transition: width 0.5s ease;
    border-radius: 4px;
}

.question-counter {
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 600;
    color: var(--text-light);
}

.question-card {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    box-shadow: var(--shadow-lg);
    margin-bottom: 2rem;
}

.question-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--text-dark);
}

.answers {
    display: grid;
    gap: 1rem;
}

.answer-button {
    padding: 1.5rem;
    border: 2px solid #e5e7eb;
    background: white;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    text-align: left;
}

.answer-button:hover {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.05);
    transform: translateX(5px);
}

.answer-button.selected {
    border-color: var(--primary);
    background: var(--gradient-1);
    color: white;
}

.quiz-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
}

.nav-button {
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: var(--gradient-1);
    color: white;
}

.btn-secondary {
    background: #f1f5f9;
    color: var(--text-dark);
}

.nav-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.nav-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Result Page */
.result-container {
    max-width: 600px;
    margin: 120px auto 2rem;
    padding: 0 2rem;
    text-align: center;
}

.result-card {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    box-shadow: var(--shadow-xl);
    position: relative;
    overflow: hidden;
}

.result-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(99, 102, 241, 0.1), transparent);
    animation: rotate 3s linear infinite;
    z-index: 1;
}

.result-content {
    position: relative;
    z-index: 2;
}

.result-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    background: var(--gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.result-title {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.result-description {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.result-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--primary);
    animation: confetti-fall 3s ease-out forwards;
}

.cta-section {
    display: flex;
    flex-direction: column;
    align-items: center; /* centers horizontally */
    justify-content: center;
    text-align: center;  /* centers text inside elements */
    background: var(--gradient-1);
    color: white;
    margin: 3rem 0;
    border-radius: 20px;
    padding: 3rem 1rem; /* add padding for spacing */
}

.cta-section h2 {
    margin-bottom: 1rem;
    max-width: 800px; /* optional, to prevent stretching too wide */
}

.cta-section p {
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 600px; /* optional */
}

.cta-section .cta-button {
    background: var(--gradient-2);
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: 10px;
}



/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes confetti-fall {
    0% {
        opacity: 1;
        transform: translateY(-100vh) rotate(0deg);
    }
    100% {
        opacity: 0;
        transform: translateY(100vh) rotate(720deg);
    }
}

@media (max-width: 1200px) {
    #quiz-list {
        width: 90%;
        max-width: none;
    }
    
    #fun-fact-list {
        width: 90%;
        max-width: none;
        justify-content: center;
    }
    
    #trivia-list {
        width: 90%;
        max-width: none;
        justify-content: center;
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .gallery-grid {
        gap: 1.5rem;
    }
    
    .gallery-card {
        width: 280px; /* Slightly smaller for mobile but maintains 6:5 ratio */
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 1rem;
        box-shadow: var(--shadow-md);
    }

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

    .hero {
        min-height: 60vh;
        padding-top: 3rem;
    }

    .hero-content {
        padding: 3rem 1rem 4rem 1rem;
    }

    .hero-title {
        font-size: 2.5rem;
        margin-bottom: 1.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
        margin-bottom: 2.5rem;
    }

    .section {
        padding: 3rem 1rem;
    }

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

    .gallery-grid {
        gap: 1rem;
        padding: 0 1rem;
    }
    
    #fun-fact-list,
    #trivia-list {
        justify-content: center;
        width: 100%;
    }
    
    .gallery-card {
        width: 250px; /* Mobile size but maintains 6:5 ratio */
    }

    .ad-sidebar,
    .quiz-ad-left,
    .quiz-ad-right {
        display: none;
    }

    .quiz-container,
    .result-container {
        margin-top: 100px;
        padding: 0 1rem;
    }

    .question-card {
        padding: 2rem 1.5rem;
    }

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

    .quiz-navigation {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-button {
        width: 100%;
    }
}

/* Page Content Styles */
.page-content {
    padding-top: 100px;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.page-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
}

.page-title {
    font-family: 'Poppins', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.page-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.last-updated {
    font-size: 0.9rem;
    color: var(--text-light);
    font-style: italic;
}

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

.content-section h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    border-bottom: 3px solid var(--primary);
    padding-bottom: 0.5rem;
    display: inline-block;
}

.content-section h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 1.5rem 0 1rem 0;
}

.content-section p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.content-section ul {
    margin: 1rem 0;
    padding-left: 2rem;
}

.content-section li {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.feature-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Values List */
.values-list {
    list-style: none;
    padding: 0;
}

.values-list li {
    background: white;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--primary);
}

.values-list strong {
    color: var(--primary);
}

/* CTA Buttons */
.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.btn-secondary {
    background: var(--text-light);
    color: white;
}

.btn-secondary:hover {
    background: var(--text-dark);
}

/* Contact Page Styles */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.contact-methods {
    margin-top: 2rem;
}

.contact-method {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.contact-icon {
    font-size: 2rem;
    color: var(--primary);
    flex-shrink: 0;
}

.contact-details h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.contact-details p {
    color: var(--text-light);
    margin-bottom: 0.25rem;
}

/* Contact Form */
.contact-form-container {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

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

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.75rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.checkbox-group {
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin: 0;
}

/* FAQ Section */
.faq-section {
    background: #f8fafc;
    padding: 3rem;
    border-radius: 12px;
    margin-top: 3rem;
}

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

.faq-item {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.faq-item h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.faq-item p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Legal Content */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
}

.legal-section {
    margin-bottom: 3rem;
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.legal-section h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    border-bottom: 3px solid var(--primary);
    padding-bottom: 0.5rem;
}

.legal-section h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 1.5rem 0 1rem 0;
}

.contact-info {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 1rem;
}

.contact-info p {
    margin-bottom: 0.5rem;
}

.contact-info a {
    color: var(--primary);
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

/* Hide Ad Placeholders */
.quiz-sidebar-ads,
.quiz-ad-left,
.quiz-ad-right,
.ad-banner,
.ad-sidebar {
    display: none !important;
}

/* Footer Styles */
.footer {
    background: var(--bg-dark);
    color: white;
    padding: 3rem 0 1rem 0;
    margin-top: 4rem;
}

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

.footer-section h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-section h4 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: white;
}

.footer-section p {
    color: #94a3b8;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

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

.footer-section a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    border-top: 1px solid #334155;
    padding-top: 1rem;
    text-align: center;
    color: #94a3b8;
}

/* Responsive Design for New Pages */
@media (max-width: 768px) {
    .page-title {
        font-size: 2.5rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 2rem;
    }
    
    .content-section h2 {
        font-size: 1.5rem;
    }
    
    .feature-card,
    .contact-form-container,
    .legal-section {
        padding: 1.5rem;
    }
}