:root {
    --primary-color: #19456b;
    /* Navy Blue - Knowledge */
    /*--secondary-color: #16c79a;*/
    --secondary-color: #12a88a;
    /* Mint - Growth */
    --accent-color: #f05454;
    --accent-darker-color: #d13c3c;
    /* Coral - Engagement */
    --dark-color: #11324d;
    /* Deep Blue - Authority */
    --light-color: #f6f5f5;
    /* Off White - Clarity */
}


body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

.quiz-navbar {
    background-color: var(--primary-color);
}

.quiz-navbar .navbar-brand,
.quiz-navbar .nav-link {
    color: white !important;
}

.quiz-navbar .nav-link:hover {
    color: var(--accent-color) !important;
}

.nav-link.active {
    color: var(--accent-color) !important;
}

.quiz-navbar .navbar-brand img {
    height: 40px;
    width: auto;
    margin-right: 10px;
    border-radius: 8px;
}

.quiz-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-color) 100%);
    padding: 170px 0 40px 0;
    position: relative;
    overflow: hidden;
}

.quiz-hero::before {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    /* background: url('/api/placeholder/1920/1080') center/cover; */
    opacity: 0.1;
}


.quiz-banner-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-color) 100%);
    padding: 100px 0 40px 0;
    position: relative;
    overflow: hidden;
}

.quiz-banner-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    /* background: url('/api/placeholder/1920/1080') center/cover; */
    opacity: 0.1;
}

.quiz-cta-btn {
    background-color: var(--secondary-color);
    border: none;
    box-shadow: 0 4px 15px rgba(230, 57, 70, 0.3);
}

.quiz-cta-btn:hover {
    background-color: #d90429;
    box-shadow: 0 6px 20px rgba(230, 57, 70, 0.4);
}

.quiz-feature-card {
    border: none;
    border-radius: 21px;
    height: 100%;
    background-color: white;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.quiz-feature-card:hover {
    box-shadow: 0 8px 15px rgba(44, 52, 148, 0.15);
    transform: translateY(-5px);
}

.quiz-icon {
    color: var(--secondary-color);
    /* margin-bottom: 1rem; */
}

.about-section {
    background-color: var(--light-color);
}

.section-title {
    color: var(--primary-color);
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
}

.highlight-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--secondary-color);
}

.login-btn {
    background-color: var(--accent-darker-color);
    color: var(--light-color);
    border-radius: 20px;
    padding: 8px 20px !important;
    transition: all 0.3s ease;
    text-align: center;
    margin-right: 10px !important;
}

.login-btn:hover {
    background-color: #f4c430 !important;
    color: var(--dark-color) !important;
    transform: translateY(-2px);
}
.profile-btn {
    background-color: var(--accent-darker-color);
    color: var(--light-color);
    border-radius: 20px;
    padding: 8px 20px !important;
    transition: all 0.3s ease;
    text-align: center;
    margin-right: 10px !important;
}

.profile-btn:hover {
    background-color: #f4c430 !important;
    color: var(--dark-color) !important;
    transform: translateY(-2px);
}

.custom-nav-item-list {
    margin-right: 18px;
}


/* Styles for mobile (download app) */
@media (max-width: 768px) {
    .download-btn-container {
        display: flex;
        justify-content: center;
        width: 100%;
    }

    .download-btn {
        width: 100%;
        text-align: center;
        margin-top: 8px;
        margin-bottom: 20px;
    }

    .nav-link.login-btn {
        width: 100%;
        text-align: center;
    }
    .nav-link.profile-btn {
        width: 100%;
        text-align: center;
    }
}

.download-btn-container {
    position: relative;
    display: inline-block;
}

.download-btn {
    background-color: var(--secondary-color);
    color: #11324d; /* Deep blue for better contrast */
    border-radius: 20px;
    padding: 8px 20px !important;
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(22, 199, 154, 0.3);
    margin-left: 10px;
}

.download-btn:hover {
    background-color: #f4c430 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(22, 199, 154, 0.4);
}

/* Rest of the QR popup styles remain the same */
.qr-popup {
    position: absolute;
    top: calc(100% + 20px);
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1000;
}

.qr-popup::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid white;
}

.download-btn-container:hover .qr-popup {
    visibility: visible;
    opacity: 1;
    top: calc(100% + 10px);
}

.qr-code {
    text-align: center;
}

.qr-code img {
    max-width: 150px;
    height: auto;
}

.playstore-badge {
    max-width: 160px !important;
    margin-top: 10px;
}

.loksewa-badge {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: linear-gradient(135deg, #4481eb, #04befe);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Daily/weekly quizes */
.quiz-icon {
    color: var(--secondary-color);
}

@media (max-width: 767.98px) {
    .border-end {
        border-right: none !important;
        border-bottom: 1px solid #dee2e6;
        padding-bottom: 2rem;
        margin-bottom: 2rem;
    }
}

/* Question of day */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

.quiz-qod-section {
    background-color: var(--light-color);
    font-family: 'Poppins', sans-serif;
}

.quiz-decorative-circle {
    position: absolute;
    top: -50px;
    right: -50px;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-color) 100%);
    opacity: 0.1;
}

.quiz-decorative-dots {
    position: absolute;
    bottom: 20px;
    left: 20px;
    width: 60px;
    height: 60px;
    background-image: radial-gradient(circle, var(--primary-color) 1px, transparent 1px);
    background-size: 10px 10px;
    opacity: 0.2;
}

.quiz-icon-wrapper {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s infinite;
}

.quiz-title {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 600;
}

.quiz-option label {
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 15px 20px;
    font-weight: 500;
    background: white;
}

.quiz-option label:hover {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-color) 100%);
    color: white !important;
    transform: translateX(5px) translateY(-2px);
    box-shadow: 0 4px 12px rgba(25, 69, 107, 0.2);
}

.btn-check:checked + label {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-color) 100%);
    color: white;
    border-color: transparent;
    transform: translateX(5px);
}

.quiz-submit-btn {
    background: var(--secondary-color);
    border: none;
    border-radius: 10px;
    padding: 12px 30px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.quiz-submit-btn:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(25, 69, 107, 0.3);
}

.quiz-feedback.correct {
    background: var(--secondary-color);
    color: white;
    border: none;
}

.quiz-feedback.incorrect {
    background: var(--accent-color);
    color: white;
    border: none;
    animation: shake 0.5s cubic-bezier(.36, .07, .19, .97) both;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(25, 69, 107, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(25, 69, 107, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(25, 69, 107, 0);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-10px) rotate(5deg);
    }

    100% {
        transform: translateY(0px) rotate(0deg);
    }
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    20%,
    60% {
        transform: translateX(-5px);
    }

    40%,
    80% {
        transform: translateX(5px);
    }
}

/* Mock Tests Section Styles */
.quiz-mock-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-color) 100%);
    position: relative;
    color: white;
}

.quiz-mock-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.quiz-mock-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease;
}

.quiz-mock-icon {
    color: var(--secondary-color);
    animation: float 3s ease-in-out infinite;
}

.quiz-mock-btn {
    background: var(--secondary-color);
    border: none;
    border-radius: 30px;
    padding: 15px 40px;
    color: white;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.quiz-mock-btn:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.quiz-mock-btn i {
    transition: transform 0.3s ease;
}

.quiz-mock-btn:hover i {
    transform: translateX(5px);
}

/* Categories Section Styles */
.quiz-categories-section {
    background-color: var(--light-color);
}

.quiz-category-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.quiz-category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.quiz-category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.quiz-category-card:hover::before {
    transform: scaleX(1);
}

.quiz-category-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-color) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    transition: transform 0.3s ease;
}

.quiz-category-card:hover .quiz-category-icon {
    transform: rotateY(180deg);
}

.quiz-category-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.quiz-category-link:hover {
    color: var(--secondary-color);
}

.quiz-category-link i {
    transition: transform 0.3s ease;
}

.quiz-category-link:hover i {
    transform: translateX(5px);
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}


/* Testimonials Slider */
.quiz-testimonial-slider {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.quiz-testimonial-track {
    display: flex;
    position: absolute;
    left: 0;
    animation: slideTrack 30s linear infinite;
    width: fit-content;
}

.quiz-testimonial-track:hover {
    animation-play-state: paused;
}

@keyframes slideTrack {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-320px * 4));
        /* Number of cards minus one duplicate */
    }
}

/* Testimonial Cards */
.quiz-testimonial-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    width: 300px;
    /* Fixed width for consistent sliding */
    margin: 0 10px;
    height: 350px;
    position: relative;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.quiz-testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.quiz-quote-icon {
    color: var(--secondary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.quiz-testimonial-text {
    color: #6c757d;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.quiz-testimonial-author {
    display: flex;
    align-items: center;
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    right: 2rem;
}

.quiz-author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    margin-right: 1rem;
    object-fit: cover; /* Ensures the image covers the area without distortion */
}


.quiz-author-info h3 {
    font-size: 1.1rem;
    margin: 0;
    color: var(--primary-color);
}

.quiz-author-info p {
    font-size: 0.9rem;
    color: #6c757d;
    margin: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .quiz-testimonial-slider {
        height: 450px;
    }

    .quiz-testimonial-card {
        width: 280px;
        height: 400px;
    }

    @keyframes slideTrack {
        0% {
            transform: translateX(0);
        }

        100% {
            transform: translateX(calc(-300px * 4));
        }
    }
}


/* Footer Styles */
.quiz-footer {
    position: relative;
    background-color: var(--primary-color);
    color: white;
    overflow: hidden;
}

/* Wave Animation */
.quiz-footer-wave {
    position: absolute;
    top: -100px;
    left: 0;
    width: 100%;
    height: 100px;
    line-height: 0;
}

.quiz-footer-wave svg {
    position: relative;
    display: block;
    width: 100%;
    height: 100px;
}

/* Footer Content */
.quiz-footer-content {
    position: relative;
    padding: 80px 0 40px;
    z-index: 1;
}

.quiz-footer-brand h3 {
    font-size: 2rem;
    font-weight: bold;
    color: var(--secondary-color);
}

.quiz-footer-description {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Social Icons */
.quiz-social-icons {
    display: flex;
    gap: 1rem;
}

.quiz-social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.quiz-social-icon:hover {
    background: var(--secondary-color);
    color: white;
    transform: translateY(-3px);
}

/* Footer Links */
.quiz-footer-title {
    color: var(--secondary-color);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.quiz-footer-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 40px;
    height: 2px;
    background: var(--secondary-color);
}

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

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

.quiz-footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.quiz-footer-links a i {
    font-size: 0.8rem;
    margin-right: 8px;
    transition: transform 0.3s ease;
}

.quiz-footer-links a:hover {
    color: var(--secondary-color);
    transform: translateX(5px);
}

.quiz-footer-links a:hover i {
    transform: translateX(3px);
}

/* Contact Info */
.quiz-contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

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

.quiz-contact-item i {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--secondary-color);
}

.quiz-contact-item p {
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
}

/* Bottom Bar */
.quiz-footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    padding: 20px 0;
    position: relative;
    z-index: 1;
}

.quiz-footer-bottom p {
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
}

.quiz-footer-bottom-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    margin-left: 1.5rem;
    transition: color 0.3s ease;
}

.quiz-footer-bottom-link:hover {
    color: var(--secondary-color);
}

/* Scroll to Top Button */
.quiz-scroll-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 40px;
    height: 40px;
    background: var(--secondary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.quiz-scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.quiz-scroll-top:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

/* Hover Animations */
@keyframes float {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }

    100% {
        transform: translateY(0);
    }
}

.quiz-footer-brand h3 i {
    animation: float 2s ease-in-out infinite;
    display: inline-block;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .quiz-footer-wave {
        top: -50px;
        height: 50px;
    }

    .quiz-footer-wave svg {
        height: 50px;
    }

    .quiz-footer-content {
        padding: 60px 0 30px;
    }

    .quiz-footer-bottom-link {
        margin-left: 1rem;
        font-size: 0.9rem;
    }
}

/* Blog section */
.blog-section {
    background: var(--light-color);
}

.blog-card {
    transition: all 0.3s ease;
    border-radius: 15px;
    overflow: hidden;
}

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

.blog-card .card-img-top {
    height: 200px;
    object-fit: cover;
}

.blog-link {
    color: var(--secondary-color);
    font-weight: 500;
    transition: all 0.3s ease;
}

.blog-link:hover {
    color: var(--primary-color);
}

.blog-meta {
    font-size: 0.85rem;
}

