/* Base Styles and Typography */
:root {
    --primary-color: #0070f3;
    --secondary-color: #ff6b6b;
    --accent-color: #2ecc71;
    --dark-color: #333;
    --light-color: #f4f7f9;
    --grey-color: #e1e1e1;
    --text-color: #333;
    --light-text: #fff;
    --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    height: 100%;
    overflow-x: hidden;
}

body {
    font-family: var(--font-main);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
}

main {
    flex: 1;
    padding: 20px 0;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: #005bb5;
}

ul, ol {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

img {
    max-width: 100%;
    height: auto;
}

/* Layout and Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.hidden {
    display: none !important;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: var(--border-radius);
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
}

.primary-btn {
    background-color: var(--primary-color);
    color: var(--light-text);
}

.primary-btn:hover {
    background-color: #005bb5;
    color: var(--light-text);
}

.secondary-btn {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.secondary-btn:hover {
    background-color: #f0f7ff;
}

.btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Header */
.site-header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    position: -webkit-sticky; /* For Safari */
    position: sticky;
    top: 0;
    z-index: 1000; /* Increased z-index to ensure it stays on top */
    width: 100%;
    left: 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.logo:hover {
    color: var(--primary-color);
}

.nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item {
    margin-left: 1.5rem;
}

.nav-link {
    color: var(--dark-color);
    font-weight: 500;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary-color);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--dark-color);
}

/* Hero Section - More Compact */
.hero {
    padding: 40px 0;
    background: linear-gradient(135deg, #0070f3, #00bfff);
    color: white;
    text-align: center;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: white;
}

.hero p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 1.5rem;
}

.hero .btn {
    padding: 8px 24px;
    font-size: 1.1rem;
}

/* Categories Section */
.categories-section {
    padding: 80px 0;
    background-color: white;
    position: relative;
    overflow: hidden;
}

.categories-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,112,243,0.05) 0%, rgba(255,255,255,0) 50%);
    z-index: 1;
}

.categories-section h2 {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    z-index: 2;
}

.categories-section h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), #5da6ff);
    margin: 15px auto 0;
    border-radius: 2px;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    position: relative;
    z-index: 2;
    perspective: 1000px;
}

.category-card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
    min-height: 320px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    animation: fadeIn 0.6s ease-out backwards;
    transform-style: preserve-3d;
    backface-visibility: hidden;
}

.category-card:hover {
    transform: translateY(-10px) scale(1.02) rotateY(5deg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    z-index: 2;
}

.category-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: linear-gradient(135deg, rgba(0,112,243,0.05) 0%, rgba(255,255,255,0) 70%);
    z-index: -1;
    transition: height 0.5s ease;
}

.category-card:hover:before {
    height: 100%;
}

.category-icon {
    font-size: 3.5rem;
    text-align: center;
    padding: 30px 0 20px;
    background: linear-gradient(135deg, rgba(0,112,243,0.07) 0%, rgba(255,255,255,0) 70%);
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.category-card:hover .category-icon {
    transform: scale(1.1);
    animation: iconPulse 1.5s infinite alternate;
}

@keyframes iconPulse {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.15);
    }
}

.category-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
    background-color: white;
    transition: transform 0.3s ease;
}

.category-card:hover .category-content {
    transform: translateY(-5px);
}

.category-title {
    font-size: 1.4rem;
    margin-bottom: 12px;
    font-weight: 600;
    color: var(--dark-color);
    position: relative;
    transition: all 0.3s ease;
}

.category-card:hover .category-title {
    color: var(--primary-color);
}

.category-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: var(--primary-color);
    margin-top: 10px;
    transition: width 0.3s ease;
}

.category-card:hover .category-title::after {
    width: 70px;
}

.category-description {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 20px;
    line-height: 1.6;
    flex-grow: 1;
}

.category-card .btn {
    align-self: flex-start;
    padding: 10px 20px;
    font-weight: 500;
    border-radius: 30px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.category-card .btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.4s ease;
    z-index: -1;
}

.category-card:hover .btn:before {
    left: 100%;
}

.category-card .card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,112,243,0.9) 0%, rgba(93,166,255,0.9) 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 1;
    pointer-events: none;
    mix-blend-mode: overlay;
}

.category-card:hover .card-overlay {
    opacity: 0.1;
}

/* Features Section */
.features-section {
    padding: 80px 0;
    background-color: var(--light-color);
}

.features-section h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    margin-bottom: 15px;
}

/* Footer Styles */
.site-footer {
    background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
    color: #fff;
    padding: 4rem 0 2rem;
    margin-top: 4rem;
    position: relative;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-logo a {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    background: linear-gradient(135deg, #fff, #e0e0e0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: all 0.3s ease;
}

.footer-logo a:hover {
    transform: translateY(-2px);
}

.footer-description {
    color: #b0b0b0;
    line-height: 1.6;
    margin-top: 1rem;
}

.footer-section h3 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), transparent);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: #b0b0b0;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
}

.footer-links a:hover {
    color: #fff;
    transform: translateX(5px);
}

.footer-links a::before {
    content: '→';
    position: absolute;
    left: -20px;
    opacity: 0;
    transition: all 0.3s ease;
    color: var(--primary-color);
}

.footer-links a:hover::before {
    opacity: 1;
    left: -15px;
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    background: var(--primary-color);
}

.social-icon i {
    font-size: 1.2rem;
    color: #fff;
}

.social-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,112,243,0.3);
    background: #005bb5;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    color: #b0b0b0;
}

/* Responsive Footer */
@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-section h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-social {
        justify-content: center;
    }

    .footer-links a:hover {
        transform: translateX(0);
    }

    .footer-links a::before {
        display: none;
    }
}

/* Enhanced Quiz Page Styles */
.quiz-container {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    padding: 30px;
    margin: 40px auto;
    max-width: 800px;
    position: relative;
    overflow: hidden;
}

.quiz-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

.quiz-header {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 20px;
}

.quiz-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 3px;
}

.quiz-title {
    font-size: 2.2rem;
    margin-bottom: 0.8rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

.quiz-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
}

.quiz-meta > div {
    background-color: var(--light-color);
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.quiz-meta > div::before {
    margin-right: 8px;
    font-size: 1.1rem;
}

.category::before {
    content: '📚';
}

.difficulty::before {
    content: '🔍';
}

.timer::before {
    content: '⏱️';
}

.timer {
    font-weight: bold;
    color: var(--primary-color);
    background-color: rgba(0, 112, 243, 0.1);
}

.timer.time-critical {
    color: var(--secondary-color);
    background-color: rgba(255, 107, 107, 0.1);
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.quiz-section {
    margin-bottom: 40px;
    transition: all 0.4s ease-in-out;
}

/* Quiz Intro Section */
#quiz-intro {
    text-align: center;
    padding: 20px;
    background-color: rgba(0, 112, 243, 0.05);
    border-radius: var(--border-radius);
}

.difficulty-selection {
    margin: 25px 0;
}

.difficulty-options {
    display: flex;
    gap: 15px;
    margin-top: 15px;
    justify-content: center;
}

.difficulty-btn {
    flex: 0 1 auto;
    min-width: 120px;
    padding: 10px 20px;
    background-color: white;
    border: 2px solid var(--grey-color);
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.difficulty-btn:hover {
    background-color: #f0f7ff;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.difficulty-btn.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#start-quiz-btn {
    padding: 12px 35px;
    font-size: 1.1rem;
    border-radius: 30px;
    box-shadow: 0 4px 12px rgba(0, 112, 243, 0.3);
    transform: translateY(0);
    transition: all 0.3s ease;
}

#start-quiz-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 112, 243, 0.4);
}

/* Questions Section */
.question-progress {
    margin-bottom: 30px;
}

.progress-bar {
    height: 8px;
    background-color: var(--light-color);
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 12px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    width: 0%;
    transition: width 0.5s ease-in-out;
    border-radius: 20px;
}

.question-counter {
    text-align: right;
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

#question-display {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.question-title {
    font-size: 1.4rem;
    margin-bottom: 25px;
    line-height: 1.4;
    font-weight: 600;
    color: var(--dark-color);
}

.options-list {
    list-style: none;
    padding: 0;
}

.option-item {
    background-color: var(--light-color);
    border-radius: 10px;
    padding: 15px 20px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
    display: flex;
    align-items: center;
    font-weight: 500;
}

.option-item::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin-right: 12px;
    border: 2px solid #ccc;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.option-item:hover {
    background-color: #f0f7ff;
    transform: translateX(5px);
}

.option-item.selected {
    background-color: rgba(0, 112, 243, 0.1);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.option-item.selected::before {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0, 112, 243, 0.3);
}

.option-item.correct {
    background-color: rgba(46, 204, 113, 0.1);
    border-color: var(--accent-color);
    color: var(--accent-color);
    pointer-events: none;
}

.option-item.correct::before {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.option-item.incorrect {
    background-color: rgba(255, 107, 107, 0.1);
    border-color: var(--secondary-color);
    color: var(--secondary-color);
    pointer-events: none;
}

.option-item.incorrect::before {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.navigation-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

.navigation-buttons .btn {
    min-width: 120px;
    border-radius: 30px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.navigation-buttons .primary-btn {
    box-shadow: 0 4px 10px rgba(0, 112, 243, 0.3);
}

.navigation-buttons .primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 112, 243, 0.4);
}

/* Quiz Results Section */
#quiz-results {
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.results-summary {
    display: flex;
    align-items: center;
    gap: 30px;
    margin: 40px 0;
    background-color: rgba(0, 112, 243, 0.05);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.score-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: bold;
    box-shadow: 0 6px 15px rgba(0, 112, 243, 0.3);
    position: relative;
    animation: scoreReveal 1.5s ease-out;
}

@keyframes scoreReveal {
    from { transform: scale(0.5); opacity: 0; }
    30% { transform: scale(1.1); }
    to { transform: scale(1); opacity: 1; }
}

.score-circle::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    border: 2px dashed rgba(255, 255, 255, 0.5);
    animation: rotate 15s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.score-details {
    flex-grow: 1;
}

.score-details p {
    font-size: 1.1rem;
    margin-bottom: 10px;
    font-weight: 500;
}

.score-details p span {
    font-weight: 700;
    color: var(--primary-color);
}

#results-breakdown h3 {
    font-size: 1.4rem;
    margin-bottom: 20px;
    text-align: center;
    position: relative;
    display: inline-block;
}

#results-breakdown h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 3px;
}

.result-item {
    background-color: var(--light-color);
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 15px;
    position: relative;
    border-left: 4px solid var(--grey-color);
    transition: all 0.3s ease;
}

.result-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.result-question {
    font-weight: 600;
    margin-bottom: 12px;
    font-size: 1.1rem;
}

.result-answer {
    margin-bottom: 10px;
    padding: 8px 12px;
    border-radius: 5px;
    font-weight: 500;
    display: inline-block;
}

.result-answer.correct {
    background-color: rgba(46, 204, 113, 0.1);
    color: var(--accent-color);
    border-left: 3px solid var(--accent-color);
}

.result-answer.incorrect {
    background-color: rgba(255, 107, 107, 0.1);
    color: var(--secondary-color);
    border-left: 3px solid var(--secondary-color);
}

.correct-answer {
    background-color: rgba(46, 204, 113, 0.1);
    color: var(--accent-color);
    border-left: 3px solid var(--accent-color);
    padding: 8px 12px;
    border-radius: 5px;
    font-weight: 500;
    margin-bottom: 10px;
    display: inline-block;
}

.result-explanation {
    font-size: 0.95rem;
    color: #666;
    border-left: 3px solid var(--primary-color);
    padding: 10px 15px;
    margin-top: 15px;
    background-color: rgba(0, 112, 243, 0.05);
    border-radius: 0 5px 5px 0;
}

.share-results {
    margin: 40px 0;
    text-align: center;
    background-color: white;
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.share-results h3 {
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.share-results h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 3px;
}

.social-buttons {
    display: flex;
    gap: 15px;
    margin-top: 15px;
    justify-content: center;
}

.social-btn {
    padding: 10px 20px;
    border-radius: 30px;
    border: none;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    min-width: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.social-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.facebook {
    background-color: #3b5998;
}

.facebook::before {
    content: '📘';
}

.twitter {
    background-color: #1da1f2;
}

.twitter::before {
    content: '🐦';
}

.whatsapp {
    background-color: #25d366;
}

.whatsapp::before {
    content: '📱';
}

.action-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.action-buttons .btn {
    min-width: 140px;
    border-radius: 30px;
    padding: 12px 25px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.action-buttons .primary-btn {
    box-shadow: 0 4px 10px rgba(0, 112, 243, 0.3);
}

.action-buttons .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Page Header (for other pages) */
.page-header {
    background-color: var(--primary-color);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.page-header h1 {
    color: white;
}

/* Page Content */
.about-content, .contact-content, .policy-content {
    padding: 60px 0;
    background-color: white;
}

.about-section, .policy-section {
    margin-bottom: 40px;
}

.about-section h2, .policy-section h2 {
    margin-bottom: 20px;
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    padding: 10px 0;
    border-bottom: 1px solid var(--grey-color);
}

.feature-list li:last-child {
    border-bottom: none;
}

/* Updated Contact Page */
.contact-content .container {
    max-width: 1000px;
    margin: 0 auto;
}

.contact-intro {
    text-align: center;
    margin-bottom: 50px;
}

.contact-intro p {
    max-width: 700px;
    margin: 0 auto;
}

.contact-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.contact-option {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.contact-option:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.contact-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.contact-option h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

.contact-link {
    display: inline-block;
    margin-bottom: 15px;
    font-weight: 500;
}

.feedback-list {
    list-style-type: disc;
    padding-left: 20px;
}

.feedback-list li {
    margin-bottom: 5px;
}

.faq-section {
    margin-top: 60px;
}

.faq-section h2 {
    text-align: center;
    margin-bottom: 30px;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
}

.faq-item {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: var(--box-shadow);
}

.faq-item h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.social-link {
    display: inline-block;
    padding: 8px 15px;
    background-color: var(--light-color);
    border-radius: 20px;
    transition: var(--transition);
}

.social-link:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Learning Resources Section */
.learning-section {
    padding: 80px 0;
    background-color: white;
}

.learning-section h2 {
    text-align: center;
    margin-bottom: 1rem;
}

.learning-section > .container > p {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.resource-card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.resource-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.resource-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.resource-card h3 {
    margin-bottom: 15px;
}

.resource-card p {
    margin-bottom: 20px;
    flex-grow: 1;
}

.resource-card .btn {
    align-self: center;
}

/* Enhanced Dropdown Menu */
.nav-item.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 5px;
}

.dropdown-icon {
    font-size: 0.8em;
    transition: transform 0.3s ease;
}

.dropdown.open .dropdown-icon {
    transform: rotate(180deg);
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: white;
    min-width: 200px;
    box-shadow: var(--box-shadow);
    border-radius: var(--border-radius);
    padding: 10px 0;
    z-index: 1000;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.dropdown.open .dropdown-menu {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.dropdown-item {
    list-style: none;
    margin: 0;
    padding: 0;
}

.dropdown-link {
    display: block;
    padding: 8px 20px;
    color: var(--dark-color);
    text-decoration: none;
    transition: var(--transition);
    white-space: nowrap;
}

.dropdown-link:hover {
    background-color: var(--light-color);
    color: var(--primary-color);
}

/* Admin Link in Header */
.admin-link {
    background-color: var(--primary-color);
    color: white !important;
    padding: 5px 15px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.admin-link:hover {
    background-color: #005bb5;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Admin Link */
.admin-link {
    font-size: 0.75rem;
    opacity: 0.5;
    margin-left: 20px;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s;
}

.admin-link:hover {
    opacity: 0.8;
}

/* Category Card Animations */
@keyframes fadeIn {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

.categories-grid {
    perspective: 1000px;
}

.category-card {
    animation: fadeIn 0.6s ease-out backwards;
    transform-style: preserve-3d;
    backface-visibility: hidden;
}

.categories-grid .category-card:nth-child(1) { animation-delay: 0.1s; }
.categories-grid .category-card:nth-child(2) { animation-delay: 0.2s; }
.categories-grid .category-card:nth-child(3) { animation-delay: 0.3s; }
.categories-grid .category-card:nth-child(4) { animation-delay: 0.4s; }
.categories-grid .category-card:nth-child(5) { animation-delay: 0.5s; }
.categories-grid .category-card:nth-child(6) { animation-delay: 0.6s; }
.categories-grid .category-card:nth-child(7) { animation-delay: 0.7s; }
.categories-grid .category-card:nth-child(8) { animation-delay: 0.8s; }
.categories-grid .category-card:nth-child(9) { animation-delay: 0.9s; }
.categories-grid .category-card:nth-child(10) { animation-delay: 1.0s; }
.categories-grid .category-card:nth-child(11) { animation-delay: 1.1s; }
.categories-grid .category-card:nth-child(12) { animation-delay: 1.2s; }

.category-card:hover .btn {
    animation: btnPulse 1.5s infinite;
}

@keyframes btnPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 112, 243, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(0, 112, 243, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 112, 243, 0);
    }
}

/* Create floating effect for categories section */
.categories-section::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(0,112,243,0.1) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    pointer-events: none;
    bottom: -100px;
    right: -100px;
    animation: float 15s infinite linear;
}

@keyframes float {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }
    50% {
        transform: translate(100px, -100px) rotate(180deg);
    }
    100% {
        transform: translate(0, 0) rotate(360deg);
    }
}

/* 3D perspective effect on hover */
.category-card {
    transform-origin: center center;
}

.category-card:hover {
    transform: translateY(-10px) scale(1.02) rotateY(5deg);
}

/* Glass morphism effect for the button */
.category-card .btn.primary-btn {
    background: rgba(0, 112, 243, 0.9);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.4s ease;
}

.category-card:hover .btn.primary-btn {
    background: rgba(0, 112, 243, 1);
    box-shadow: 0 5px 15px rgba(0, 112, 243, 0.3);
}

/* YouTube Shorts Section */
.youtube-shorts-section {
    padding: 3rem 0;
    background-color: #f8f9fa;
    overflow: hidden;
    position: relative;
}

.youtube-shorts-section h2 {
    text-align: center;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.section-description {
    text-align: center;
    color: #666;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Index page shorts grid */
.youtube-shorts-section .shorts-grid {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    padding: 1rem 0;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    position: relative;
}

.youtube-shorts-section .shorts-grid::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.youtube-shorts-section .short-card {
    flex: 0 0 280px;
    scroll-snap-align: start;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.youtube-shorts-section .short-card:hover {
    transform: translateY(-5px);
}

.youtube-shorts-section .short-thumbnail {
    position: relative;
    width: 100%;
    padding-top: 177.78%;
    background: #f8f9fa;
}

.youtube-shorts-section .short-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.youtube-shorts-section .short-info {
    padding: 1rem;
}

.youtube-shorts-section .short-title {
    font-size: 0.95rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Scroll buttons */
.scroll-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: all 0.3s ease;
    color: var(--primary-color);
}

.scroll-button:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.scroll-button.prev {
    left: -20px;
}

.scroll-button.next {
    right: -20px;
}

.scroll-button i {
    font-size: 1.2rem;
}

/* Hide scroll buttons on mobile */
@media (max-width: 768px) {
    .scroll-button {
        display: none;
    }
    
    .youtube-shorts-section .short-card {
        flex: 0 0 240px;
    }
    
    .short-title {
        font-size: 0.9rem;
    }
}

/* Scroll to Top Button Styles */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 9999;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .scroll-to-top {
        bottom: 15px;
        right: 15px;
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
} 