/* ======== 1. Root Variables & Global Reset ======== */
:root {
    --color-primary: #07c8f9;
    --color-secondary: #09a6f3;
    --color-tertiary: #0a85ed;
    --color-accent-1: #0c63e7;
    --color-accent-2: #0d41e1;

    --color-text: #444444;
    --color-text-light: #ffffff;
    --color-heading: #333333;
    --color-bg: #ffffff;
    --color-bg-light: #f9f9f9;
    --color-border: #e0e0e0;

    --primary: #07c8f9;
    --primary-dark: #09a6f3;
    --secondary: #0a85ed;
    --accent: #0c63e7;
    --accent-dark: #0d41e1;
    --dark: #1a1a2e;
    --light: #f8f9fa;
    --gray: #6c757d;
    --white: #ffffff;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;

    --gradient-primary: linear-gradient(
        135deg,
        var(--color-primary),
        var(--color-secondary)
    );
    --gradient-secondary: linear-gradient(
        135deg,
        var(--color-tertiary),
        var(--color-accent-2)
    );

    --shadow-light: 0 4px 12px rgba(0, 0, 0, 0.05);
    --shadow-dark: 0 6px 20px rgba(0, 0, 0, 0.1);

    --font-default: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI",
        Roboto, Helvetica, Arial, sans-serif;
}

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

html {
    scroll-behavior: smooth;
    font-size: 100%; /* 16px */
}

body {
    font-family: var(--font-default);
    line-height: 1.7;
    color: var(--color-text);
    background-color: var(--color-bg);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-default);
    color: var(--color-heading);
    font-weight: 600;
}

a {
    text-decoration: none;
    color: var(--color-secondary);
    transition: all 0.3s ease;
}
a:hover {
    color: var(--color-primary);
}

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

/* ======== 2. Utility Classes ======== */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-padding {
    padding: 60px 0;
}

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

.section-title {
    margin-bottom: 30px;
}
.section-title h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--color-accent-2);
    margin-bottom: 10px;
}
.section-title h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-accent-2);
}
.section-title p,
.section-title .subtitle {
    font-size: 1.1rem;
    color: #555;
    max-width: 800px;
    margin: 0 auto 1rem auto;
}
.italic-text {
    font-style: italic;
    color: #555;
    margin: 1.5rem 0;
}

.btn {
    display: inline-block;
    padding: 0.7rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    text-align: center;
}
.btn-lg {
    padding: 0.8rem 2.2rem;
    font-size: 1.1rem;
}
.btn-primary {
    background: var(--color-accent-2);
    color: var(--color-text-light);
    border-color: var(--color-primary);
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(7, 200, 249, 0.3);
    color: #000;
}
.btn-light {
    background: var(--color-bg-light);
    color: var(--color-accent-2);
    border-color: var(--color-bg-light);
}
.btn-light:hover {
    background: var(--color-bg);
    border-color: var(--color-bg);
    transform: translateY(-3px);
}
.btn-read-more {
    font-weight: 600;
    color: var(--color-tertiary);
}
.btn-read-more i {
    margin-left: 5px;
    transition: margin-left 0.3s ease;
}
.btn-read-more:hover i {
    margin-left: 10px;
}

.grid-2-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
}
.grid-4-col {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* ======== 3. Header / Navbar ======== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    height: 80px;
}
.header.scrolled {
    background: var(--color-bg);
    height: 70px;
    box-shadow: var(--shadow-dark);
}
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;

    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 15px 5%; /* Add percentage padding instead of 0 */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}
.nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    margin-right: auto; /* Push logo to the left */
}
.nav-logo img {
    height: 40px;
    margin-right: 10px;
}
.nav-logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-accent-2);
    margin: 0;
}
.nav-links {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 2rem;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    margin: 0 auto;
}
.nav-link {
    font-weight: 600;
    color: var(--color-accent-1);
    position: relative;
    padding: 5px 0;
}
.nav-link::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--color-primary);
    transition: width 0.3s ease;
}
.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}
.nav-cta {
    margin-left: auto; /* Push CTA button to the right */
}
.mobile-menu-toggle {
    display: none;
    font-size: 1.8rem;
    color: var(--color-tertiary);
    cursor: pointer;
    background: none;
    border: none;
}

/* ======== 4. Hero Section ======== */
.hero {
    height: 70vh;
    /* height: 100vh; */
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-text-light);

    /* background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
        url("../images/hero/hero.jpg") no-repeat center center; */
    background: linear-gradient(rgba(22, 6, 247, 0.7), rgba(4, 193, 250, 0.7));
    background-size: cover;
    background-blend-mode: multiply;
    position: relative;
    padding-top: 40px;
}
.hero-content {
    max-width: 800px;
    padding: 0 20px;
}
.hero-content h2 {
    font-size: 3.2rem;
    font-weight: 700;
    color: var(--color-text-light);
    margin-bottom: 1.5rem;
}
.hero-content p {
    font-size: 1.2rem;
    font-weight: 300;
    margin-bottom: 2rem;
    opacity: 0.9;
}
.hero .btn-primary {
    border-color: var(--color-text-light);
}

/* ======== 5. Welcome Section ======== */
.welcome-image img {
    border-radius: 10px;
    box-shadow: var(--shadow-dark);
}

/* ======== 6. Stats Counter Section ======== */
.stats-section {
    padding: 60px 0;
    background: var(--gradient-primary);
    color: var(--color-text-light);
}
.stat-item {
    text-align: center;
}
.stat-item i {
    font-size: 3rem;
    margin-bottom: 10px;
    opacity: 0.8;
}
.stat-number {
    display: block;
    font-size: 2.8rem;
    font-weight: 700;
}
.stat-item p {
    font-size: 1rem;
    font-weight: 500;
    opacity: 0.9;
}

/* ======== 7. Why Choose Us (Accordion) ======== */
.why-us-section {
    background: var(--color-bg-light);
}
.why-us-image img {
    border-radius: 10px;
    box-shadow: var(--shadow-light);
}
.accordion-item {
    margin-bottom: 10px;
    border: 1px solid var(--color-border);
    border-radius: 5px;
    background: var(--color-bg);
}
.accordion-header {
    width: 100%;
    background: none;
    border: none;
    padding: 1.2rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-tertiary);
    cursor: pointer;
    text-align: left;
}
.accordion-header i {
    transition: transform 0.3s ease;
}
.accordion-header.active i {
    transform: rotate(180deg);
}
.accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}
.accordion-body p {
    padding: 0 1.5rem 1.2rem 1.5rem;
}

/* ======== 8. How It Works (Icon Boxes) ======== */
.how-it-works-section {
    background: var(--color-bg);
}
.how-it-works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 40px;
}
.how-card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    padding: 2.5rem 1.5rem;
    text-align: center;
    border-radius: 10px;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
}
.how-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-dark);
}
.how-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--color-primary);
    color: var(--color-text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 1.5rem auto;
    transition: all 0.3s ease;
}
.how-card:hover .how-icon {
    background: var(--color-accent-2);
}
.how-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--color-accent-2);
}

/* ======== 9. Exam Categories (Cards) ======== */
.exams-section {
    background: var(--color-bg-light);
}
.exams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}
.exam-card {
    background: var(--color-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
}
.exam-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-dark);
}
.exam-card-image {
    height: 250px;
    overflow: hidden;
}
.exam-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.exam-card-content {
    padding: 2rem;
}
.exam-category-tag {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: var(--color-secondary);
    color: var(--color-text-light);
    border-radius: 5px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}
.exam-card-content h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}
.exam-card-content p {
    margin-bottom: 1.5rem;
    color: #555;
}

/* ======== 10. Testimonials Section ======== */
.testimonials-section {
    background: var(--gradient-secondary);
    color: var(--color-text-light);
}
.testimonials-section .section-title h2,
.testimonials-section .section-title p {
    color: var(--color-text-light);
}
.testimonial-slider-wrapper {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border-radius: 10px;
    padding: 3rem;
    text-align: center;
}
.testimonial-slide {
    display: none;
    animation: fadeIn 0.6s ease;
}
.testimonial-slide.active {
    display: block;
}
.testimonial-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.3);
    margin: 0 auto 1rem auto;
}
.testimonial-slide h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-text-light);
    margin-bottom: 0.25rem;
}
.testimonial-slide h4 {
    font-size: 1rem;
    font-weight: 400;
    color: var(--color-primary);
    margin-bottom: 1rem;
}
.testimonial-slide p {
    font-size: 1.1rem;
    font-style: italic;
    font-weight: 300;
    line-height: 1.6;
}
.testimonial-slide p i {
    font-size: 1rem;
    color: var(--color-primary);
    opacity: 0.7;
}
.slider-dots {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
}
.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    margin: 0 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}
.slider-dot.active {
    background: var(--color-primary);
}

/* ======== 11. Final CTA Section ======== */
.cta-section {
    padding: 60px 0;
    background: linear-gradient(
        135deg,
        var(--primary) 0%,
        var(--accent-dark) 100%
    );
    color: var(--color-text-light);
}
.cta-section h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-text-light);
    margin-bottom: 1.5rem;
}
.cta-section p {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto 2rem auto;
    opacity: 0.9;
}
.cta-section .btn-light {
    color: var(--color-secondary);
}

/* ======== 12. Footer ======== */
.footer {
    background: var(--dark);
    color: var(--color-text-light);
    font-size: 0.95rem;
}
.footer-top {
    padding: 60px 0 30px 0;
    background: var(--dark); /* Darker variant */
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}
.footer-col h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text-light);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 10px;
}
.footer-col h4::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 3px;
    background: var(--color-primary);
}
.footer-contact .footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}
.footer-contact .footer-logo img {
    height: 40px;
    margin-right: 10px;
    background: #fff;
    border-radius: 50%;
}
.footer-contact .footer-logo h4 {
    margin: 0;
    padding: 0;
}
.footer-contact .footer-logo h4::after {
    display: none;
}
.footer-contact p {
    color: #ffffff;
}
.footer-contact a {
    color: #07c8f9;
    font-weight: 500;
}
.footer-contact a:hover {
    color: #ffffff;
    text-decoration: underline;
}
.footer-col p {
    color: #ffffff;
    line-height: 1.8;
}
.footer-col strong {
    color: #ffffff;
    font-weight: 600;
}
.footer-links ul {
    list-style: none;
}
.footer-links li {
    margin-bottom: 0.75rem;
}
.footer-links a {
    color: var(--color-text-light);
    opacity: 0.8;
}
.footer-links a:hover {
    opacity: 1;
    color: var(--color-primary);
}
.footer-links i {
    font-size: 0.8rem;
    margin-right: 8px;
    color: var(--color-primary);
}
.footer-bottom {
    padding: 25px 0;
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* ======== 13. Mobile Menu (Drawer) ======== */
.mobile-nav-active .nav-links {
    transform: translateX(0);
}
.mobile-nav-active .mobile-menu-toggle i {
    transform: rotate(90deg);
}

/* ======== 14. Scroll Animations ======== */
[data-animation] {
    opacity: 0;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
[data-animation="fade-in-up"] {
    transform: translateY(40px);
}
[data-animation="fade-in-left"] {
    transform: translateX(-40px);
}
[data-animation="fade-in-right"] {
    transform: translateX(40px);
}
[data-animation].is-visible {
    opacity: 1;
    transform: translateY(0) translateX(0);
}

/* ======== 15. Responsive Design ======== */
@media (max-width: 992px) {
    .nav-links {
        display: none;
    }
    .nav-cta {
        display: none;
    }
    .mobile-menu-toggle {
        display: block;
    }
    .nav-links.mobile-active {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 70px;
        right: 0;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--color-bg);
        padding-top: 2rem;
        gap: 1.5rem;
        align-items: flex-start;
        padding-left: 5%;
        box-shadow: var(--shadow-dark);
        z-index: 999;
    }
    .grid-2-col,
    .grid-4-col {
        grid-template-columns: 1fr;
    }
    .why-us-image,
    .welcome-image {
        order: -1; /* Move image to top on mobile */
        margin-bottom: 20px;
    }
    .hero-content h2 {
        font-size: 2.5rem;
    }
    .hero-content p {
        font-size: 1.1rem;
    }
    .stat-item {
        margin-bottom: 30px;
    }
    .exams-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    /*Commendt Out
     .hero {
        height: 100vh;
    } */
    .hero {
        height: 100vh;
        padding-top: 30px;
    }
    .hero-content h2 {
        padding-top: 10px;
        font-size: 2.5rem;
    }
    .header {
        height: 70px;
    }
    .nav-logo h1 {
        font-size: 1.5rem;
    }
    .how-it-works-grid {
        grid-template-columns: 1fr;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 5px;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    padding: 8px 0;
    min-width: 200px;
    z-index: 1000;
    list-style: none;
}

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

.dropdown-item {
    display: block;
    padding: 8px 16px;
    color: #333;
    text-decoration: none;
    transition: background-color 0.3s;
}

.dropdown-item:hover {
    background-color: #f5f5f5;
}
.copyright a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

/* User Avatar Dropdown Styles */
.nav-item.dropdown .nav-link {
    padding: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-item.dropdown .dropdown-menu {
    min-width: 200px;
    margin-top: 0.5rem;
}

.dropdown-item {
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
    .nav-item.dropdown {
        width: 100%;
        text-align: center;
        margin: 10px 0;
    }

    .nav-item.dropdown .nav-link {
        justify-content: center;
    }

    .dropdown-menu {
        width: 100%;
        text-align: center;
    }

    .dropdown-item {
        justify-content: center;
    }
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.header.header.scrolled.navbar {
    height: 70px;
}