:root {
    --primary-color: #122246;
    --text-light: #777;
    --white: #ffffff;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Lato", sans-serif;
}


html {
    scroll-behavior: smooth;
}

.section-container {
    width: 90%;
    max-width: 1250px;
    margin: auto;

}






/* Ticker Bar */
.top-ticker {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 10px 0;
    overflow: hidden;
    white-space: nowrap;
    font-size: 14px;
}

.ticker-content {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.ticker-content a {
    text-decoration: none;
    color: var(--white);
    font-weight: 500;
    opacity: 0.8;
}

.separator {
    opacity: 0.5;
}





/* Header & Nav */
.header {
    background: var(--white);
    padding: 10px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
}


/* Logo Styling */
.logo {
    width: 80px;
}

.logo img {
    width: 100%;
}


/* Navigation Links */
.main-nav {
    margin-left: 100px;
}
.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-links li {
    display: flex;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: #122246;
    font-weight: 500;
    font-size: 17px;
    transition: var(--transition);
}

.nav-links a:hover {
    color: #777;
}

.nav-links i {
    font-size: 10px;
    margin-left: 3px;
}


.dropdown {
    position: relative;
}
.dropdown a i {
    font-weight: 900;
    font-size: 12px;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0%;
    margin-top: 10px;
    background: var(--white);
    width: 450px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 10px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    top: 110%;
}

.dropdown-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
}

.dropdown-item:hover {
    background: #ececec;
}

.icon-box {
    background: #e9e9e9;
    padding: 10px;
    border-radius: 4px;
}
.icon-box i {
    color: #122246;
    font-size: 18px;
}

.item-text h4 {
    font-size: 16px;
    color: #122246;
    font-weight: 500;
    margin-bottom: 2px;
}

.item-text p {
    font-size: 12px;
    color: #808080;
}


/* Buttons */
.nav-buttons {
    display: flex;
    gap: 10px;
}

.btn {
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-outline {
    border: 1.5px solid var(--primary-color);
    color: var(--primary-color);
}
.btn-outline:hover {
    color: #ffffff;
    background-color: #122246;
}

.btn-filled {
    background: var(--primary-color);
    color: var(--white);
    border: 1.5px solid var(--primary-color);
}

.btn:hover {
    opacity: 0.8;
}


.btn-profile {
    display: flex;
    align-items: center;
    gap: 6px;
}
.btn-profile i {
    font-size: 18px;
}

/* Responsive */
.mobile-menu-icon {
    display: none;
    font-size: 24px;
    color: var(--primary-color);
    cursor: pointer;
}





@media (max-width: 1024px) {
    .main-nav {
    margin-left: 0px;
}

.nav-links {
    gap: 20px;
}

}



@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #ffffff;
        padding: 20px;
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
        gap: 15px;
        z-index: 999;
    }

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

    .nav-buttons {
        display: none;
    }

    .mobile-menu-icon {
        display: block;
        cursor: pointer;
    }

    .dropdown-menu {
        position: static;
        transform: none;
        width: 100%;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        display: none;
    }
    
    .dropdown.active .dropdown-menu {
        display: block;
    }
}




















/* --- Hero Section Styles --- */
.hero-section {
    background-color: #dddfe4;
    color: var(--primary-color);
    padding: 40px 0 0;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

/* Left Content Column */
.hero-content {
    flex: 1;
    max-width: 800px;
}

.sub-heading {
    text-transform: uppercase;
    font-weight: 700;
    font-size: 16px;
    display: block;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.main-title {
    font-size: 56px;
    font-weight: 900;
    line-height: 1.1; 
    margin-bottom: 25px;
}

.description {
    font-size: 18px;
    line-height: 1.6;
    color: var(--primary-color);
    margin-bottom: 40px;
}

/* Action Button and Stats */
.hero-action {
    margin-bottom: 40px;
}

.btn-large {
    padding: 15px 35px;
    font-size: 16px;
    display: inline-block;
    border-radius: 8px;
    text-decoration: none;
    background: var(--primary-color);
    color: #fff;
    border: 3px solid var(--primary-color);
    transition: all 0.3s ease;
    letter-spacing: 2px;
}

.btn-large:hover {
    background: transparent;
    color: var(--primary-color);
}

.stat-text {
    font-size: 16px;
    font-weight: 400;
}

.stat-number {
    font-weight: 900;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 2px;
}

/* Right Image Column */
.hero-image-wrapper {
    flex: 1;
    display: flex;
    justify-content: center; 
    max-width: 400px;
}

.hero-phone-img {
    max-width: 100%;
    height: auto;
}

/* --- Responsiveness for the Hero Section --- */
@media (max-width: 768px) {
    .hero-section {
        padding: 0px 0 20px;
    }
    .hero-container {
        flex-direction: column-reverse;
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
        margin-top: 40px;
    }

    .main-title {
        font-size: 40px;
    }

    .description {
        margin-bottom: 20px;
    }

    .hero-action {
        margin-bottom: 20px;
    }

    .hero-image-wrapper {
        display: none;
    }
}



















/* Trivia Section Styles */
.trivia-section {
    padding: 40px 0 0;
    background-color: var(--white);
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 900;
    color: #000;
}
.section-description {
    text-align: center;
    font-size: 16px;
    color: var(--text-light);
    max-width: 900px;
    margin: auto;
    margin-top: 10px;
}

.trivia-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    margin-top: 40px;
}

/* Image Side */
.trivia-image {
    flex: 1;
}

.trivia-image img {
    width: 100%;
    max-width: 300px;
    display: block;
    margin: 0 auto;
}

/* Details Side */
.trivia-details {
    flex: 1.5;
}

.category-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.category-list {
    list-style: none;
}

.category-list li {
    margin-bottom: 15px;
}

.category-list a {
    text-decoration: none;
    color: var(--primary-color);
    font-size: 18px;
    font-weight: 500;
    border-bottom: 1.5px solid #ccc;
    padding-bottom: 4px;
    margin-bottom: 4px;
    transition: var(--transition);
    display: inline-block;
}

.category-list a:hover {
    color: #d12e5e;
    border-bottom-color: #d12e5e;
}


.btn-outline-pill {
    display: inline-block;
    padding: 12px 40px;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 700;
    border-radius: 50px;
    font-size: 14px;
    letter-spacing: 1px;
    transition: var(--transition);
}

.btn-outline-pill:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .trivia-content {
        flex-direction: column-reverse;
        text-align: center;
    }

    .category-grid {
        text-align: left;
    }

    .trivia-image img {
        max-width: 300px;
    }
}

@media (max-width: 450px) {
    .category-grid {
        grid-template-columns: 1fr;
        gap: 0px;
        text-align: center;
    }

}























/* Popular Quizzes Section */
.popular-quizzes {
    background-color: #DDDFE4;
    padding: 40px 0 30px;
}

.section-heading {
    text-align: center;
    font-size: 42px;
    font-weight: 900;
    color: #122246;
}

.quiz-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 40px;
    margin-bottom: 30px;
}

/* Card Styling */
.quiz-card {
    position: relative;
    border-radius: 25px;
    overflow: hidden;
    height: 300px;
    display: block;
    cursor: pointer;
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures image fills the card without stretching */
    display: block;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.quiz-card:hover .card-img {
    transform: scale(1.1);
}

/* The Overlay for text readability */
.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Dark gradient from middle to bottom */
    background: linear-gradient(to bottom, transparent 10%, rgba(0, 0, 0, 0.9) 70%);
    display: flex;
    align-items: flex-end;
    padding: 30px;
}

.card-content {
    color: #ffffff;
}

.card-content h3 {
    font-size: 24px;
    margin-bottom: 12px;
    font-weight: 700;
}

.card-divider {
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    margin-bottom: 12px;
}

.card-content p {
    font-size: 15px;
    line-height: 1.4;
    opacity: 0.9;
}

/* Button Styling using #122246 */
.see-all-wrapper {
    text-align: center;
}

.btn-see-all {
    display: inline-block;
    padding: 15px 45px;
    background-color: #122246; /* Your color */
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    border-radius: 50px; /* Pill shape */
    transition: all 0.3s ease;
    border: 2px solid #122246;
}

.btn-see-all:hover {
    background-color: transparent;
    color: #122246;
}

/* Responsive */
@media (max-width: 992px) {
    .quiz-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .quiz-grid {
        grid-template-columns: 1fr;
    }
    .quiz-card {
        height: 350px;
    }
}



















/* FAQ Section */
.faq-section {
    padding: 80px 0;
    background: transparent; /* No background as requested */
    color: var(--primary-color);
}

.faq-title {
    text-align: center;
    font-size: 48px;
    font-weight: 900;
    margin-bottom: 10px;
}

.faq-subtitle {
    text-align: center;
    color: #777;
    font-style: italic;
    margin-bottom: 50px;
    font-size: 16px;
}

.faq-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

/* Accordion Item */
.faq-item {
    margin-bottom: 20px;
    transition: var(--transition);
}

.faq-question {
    list-style: none; /* Removes default arrow */
    padding: 18px 35px;
    border: 1px solid #ddd;
    border-radius: 50px; /* Pill shape */
    cursor: pointer;
    font-weight: 700;
    font-size: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.faq-question::-webkit-details-marker {
    display: none; /* Hide marker for Safari */
}

.faq-question:hover {
    border-color: var(--primary-color);
    background-color: rgba(18, 34, 70, 0.03); /* Very subtle hint of your color */
}

/* Answer Area */
.faq-answer {
    padding: 25px 35px;
    line-height: 1.6;
    color: #555;
    font-size: 16px;
    /* Subtle fade-in animation when opened */
    animation: slideDown 0.4s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Arrow Animation */
.arrow-icon {
    font-size: 18px;
    transform: rotate(45deg); /* Pointing down-right like the image */
    transition: transform 0.3s ease;
    opacity: 0.6;
}

/* Rotate arrow when open */
.faq-item[open] .arrow-icon {
    transform: rotate(135deg);
    color: var(--primary-color);
}

/* Responsive */
@media (max-width: 768px) {
    .faq-title {
        font-size: 32px;
    }
    
    .faq-question {
        font-size: 16px;
        padding: 15px 25px;
    }
}


















/* Footer Styles */
.main-footer {
    background-color: #122246;
    color: var(--white);
    padding: 40px 0 20px 0;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

.footer-col {
    flex: 1;
    min-width: 200px;
}

.footer-info {
    flex: 1.5;
}

.footer-logo-img {
    width: 120px;
    margin-bottom: 25px;
    filter: brightness(0) invert(1);
}

.footer-desc {
    font-size: 16px;
    line-height: 1.6;
    color: #b5b5b5;
    font-style: italic;
    max-width: 280px;
}

.footer-col h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--white);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 15px;
}

.footer-col ul li a {
    color: #b5b5b5;
    text-decoration: none;
    font-size: 16px;
    border-bottom: 1px solid transparent;
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: var(--white);
    border-bottom: 1px solid #b5b5b5;
}

/* Footer Bottom */
.footer-bottom {
    text-align: center;
}

.footer-divider {
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
}

.copyright {
    color: #888;
    font-size: 14px;
    margin-bottom: 20px;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 25px;
}

.social-icons a {
    color: #b5b5b5;
    font-size: 20px;
    transition: var(--transition);
}

.social-icons a:hover {
    color: var(--white);
    transform: translateY(-3px);
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer-top {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-desc {
        margin: 0 auto;
    }
    
    .footer-col ul li a {
        display: inline-block;
    }
}