/* ==========================================================================
   1. GLOBAL STYLES, FONTS, VARIABLES
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden; /* Prevents horizontal scroll on mobile */
}

:root {
    --primary-color: #0A2463; /* Navy Blue */
    --secondary-color: #F8F9FA; /* Light Gray / Off-white */
    --accent-color: #D83121;   /* Strong Red */
    --light-blue-bg: #e8ebf5;
    --text-color: #333333;
    --light-text-color: #FFFFFF;
    --border-color: #DEE2E6;
    --shadow-color: rgba(10, 36, 99, 0.08);
    --font-primary: 'Roboto', sans-serif;
    --font-heading: 'Poppins', sans-serif;
}

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

body { 
    font-family: var(--font-primary); 
    color: var(--text-color); 
    line-height: 1.6; 
    background-color: var(--secondary-color); 
    overflow-x: hidden;
}

.hero-container{
    max-width: 1500px;
    margin: 0 auto;
    padding: 0px 20px;
}

.container { 
    max-width: 1200px; /* Standardized width */
    margin: 0 auto; 
    padding: 0 20px; 
}

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

h1 { font-size: 3.5rem; line-height: 1.1; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.1rem; }

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

a:hover { 
    color: var(--accent-color); 
}

.section-title { 
    text-align: center; 
    margin-bottom: 50px; 
}

.section-subtitle { 
    text-align: center; 
    max-width: 600px; 
    margin: 0 auto 50px; 
    color: #6c757d; 
}

section { 
    padding: 100px 0; 
    background: #fff; 
}

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

/* ==========================================================================
   2. HEADER & NAVIGATION (RESPONSIVE UPDATE)
   ========================================================================== */

header { 
    background-color: var(--light-text-color); 
    box-shadow: 0 2px 10px rgba(0,0,0,0.05); 
    position: sticky; 
    top: 0; 
    z-index: 1000; 
    width: 100%;
}

nav { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    height: 110px; 
    /* Ensures equal spacing from left and right */
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    z-index: 1001; /* Keep logo above mobile menu */
}
.logo span {
    color: var(--accent-color);
}
.logo img {
    max-width: 180px; 
    height: auto; 
    display: block; 
}

/* Nav Links Container */
.nav-links { 
    list-style: none; 
    display: flex; 
    gap: 30px; 
    align-items: center;
}

.nav-link { 
    font-weight: 500; 
    padding-bottom: 5px; 
    border-bottom: 2px solid transparent; 
    transition: all 0.3s ease; 
}

.nav-link.active, .nav-link:hover { 
    color: var(--accent-color); 
    border-bottom-color: var(--accent-color); 
}

.nav-auth { 
    display: flex; 
    align-items: center; 
    gap: 15px; 
    z-index: 1001;
}

.nav-cart { 
    position: relative; 
    font-size: 1.4rem; 
    color: var(--text-color); 
    margin-right: 10px;
}

.cart-badge { 
    position: absolute; 
    top: -5px; 
    right: -8px; 
    background-color: var(--accent-color); 
    color: white; 
    border-radius: 50%; 
    width: 20px; 
    height: 20px; 
    font-size: 0.75rem; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    font-weight: bold; 
}

/* Hamburger Menu Icon (Hidden on Desktop) */
.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    z-index: 1002;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
}

/* ==========================================================================
   3. REUSABLE COMPONENTS (Buttons, Grids, etc.)
   ========================================================================== */

.btn { 
    padding: 10px 20px; 
    border-radius: 5px; 
    font-weight: 500; 
    border: none; 
    cursor: pointer; 
    display: inline-block; 
    text-align: center; 
    transition: all 0.3s ease; 
    font-family: var(--font-primary);
}
.btn1 { 
    padding: 10px 20px; 
    border-radius: 5px; 
    font-weight: 500; 
    border: none; 
    cursor: pointer; 
    display: inline-block; 
    text-align: center; 
    transition: all 0.3s ease; 
    font-family: var(--font-primary);
}
.btn-primary { 
    background-color: var(--primary-color); 
    color: var(--light-text-color); 
}

.btn-primary:hover { 
    background-color: #081c4a; 
}

.btn-secondary { 
    background: transparent; 
    border: 1px solid var(--primary-color); 
    color: var(--primary-color); 
}

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

.grid-3 { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 30px; 
}

.grid-4 { 
    display: grid; 
    grid-template-columns: repeat(4, 1fr); 
    gap: 30px; 
}

/* ==========================================================================
   4. HOMEPAGE SECTIONS
   ========================================================================== */

/* ----- Hero Section ----- */
section.hero { 
    padding: 0; 
    position: relative; 
    height: 85vh; 
    background-size: cover; 
    background-position: center center; 
    background-image: url('truck2.avif'); 
    transition: background-image 1.5s ease-in-out; 
}
.hero {
    overflow: hidden; 
    position: relative; 
    background-image: none !important; 
}

.hero-slideshow-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    opacity: 0; 
    transition: opacity 1.5s ease-in-out; 
    z-index: 0; 
}

.hero-slideshow-image.active {
    opacity: 1; 
    z-index: 1; 
}
.hero-overlay {
    position: absolute; 
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(10, 36, 99, 0.7), rgba(10, 36, 99, 0.7));
    display: flex;
    align-items: center;
    text-align: left;
    z-index: 2; 
}

/* Added container constraint to hero content for consistent padding */
.hero-content {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-content h1 { 
    color: var(--light-text-color); 
    font-family: var(--font-heading); 
    font-weight: 700; 
    font-size: 4.5rem;
}

.hero-content h1 span { 
    font-family: var(--font-heading); 
    font-size: 5rem; 
    letter-spacing: 2px; 
}

.hero-content p { 
    color: var(--light-text-color); 
    font-size: 1.1rem; 
    max-width: 550px; 
    margin: 20px 0 30px; 
    opacity: 0.9; 
}

.btn-hero { 
    background: white; 
    color: var(--primary-color); 
    padding: 12px 12px 12px 24px; 
    border-radius: 50px; 
    font-weight: 700; 
    display: inline-flex; 
    align-items: center; 
    gap: 15px; 
    transition: all 0.3s ease; 
}

.btn-hero:hover { 
    background-color: var(--secondary-color); 
    box-shadow: 0 5px 15px rgba(0,0,0,0.2); 
    transform: translateY(-2px); 
}

.arrow-circle { 
    background-color: var(--primary-color); 
    color: white; 
    width: 40px; 
    height: 40px; 
    border-radius: 50%; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    font-size: 1.5rem; 
}

/* ----- Stats Section ----- */
.stats-section { 
    padding: 80px 0; 
}

.stats-section .grid-4 { 
    text-align: center; 
}

/* ----- Why Choose Us Section ----- */
.features-section-dynamic { 
    padding-top: 100px; 
}

.feature-card-dynamic { 
    background: white; 
    padding: 40px 30px; 
    text-align: center; 
    border-radius: 15px; 
    box-shadow: 0 5px 20px var(--shadow-color); 
    transition: transform 0.3s ease, box-shadow 0.3s ease; 
    cursor: pointer; 
    height: 100%; /* Ensure equal height in grid */
}

.feature-card-dynamic:hover { 
    transform: scale(1.05); 
    box-shadow: 0 10px 30px rgba(10, 36, 99, 0.15); 
}

.feature-card-dynamic .icon-circle { 
    background-color: var(--light-blue-bg); 
    color: var(--primary-color); 
    width: 60px; 
    height: 60px; 
    margin: 0 auto 20px; 
    border-radius: 50%; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    font-size: 1.5rem; 
}

.feature-card-dynamic h3 { 
    margin-bottom: 10px; 
}

.feature-card-dynamic p { 
    max-height: 0; 
    opacity: 0; 
    overflow: hidden; 
    transition: max-height 0.5s ease-out, opacity 0.5s ease-out; 
}

.feature-card-dynamic:hover p { 
    max-height: 100px; 
    opacity: 1; 
}

/* ----- NEW Parallax Divider Section ----- */
.parallax-section {
    padding: 0; 
    height: 400px;
    background-image: url('truck6.png'); 
    background-attachment: fixed; 
    background-position: center;
    background-repeat: no-repeat;
    background-size:cover;
    position: relative;
}

.parallax-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 36, 99, 0.2); 
}


/* ----- Popular Courses Section (Centered, No Scroll) ----- */
.popular-courses-section { 
    padding-bottom: 100px; 
    background-color: var(--secondary-color);
}

.course-scroll-outer-wrapper {
    overflow: hidden; 
    padding: 20px 0;
}

.course-scroll-inner-wrapper { 
    display: flex; 
    gap: 30px; 
    justify-content: center; 
    align-items: stretch;
    flex-wrap: wrap; 
    margin: 0 auto;
    width: 100%;
    padding: 0 20px;
}

.course-card-v2 { 
    background: #fff; 
    border: 1px solid var(--border-color); 
    border-radius: 15px; 
    box-shadow: 0 5px 25px var(--shadow-color); 
    width: 350px; 
    max-width: 100%; /* Prevents overflow on mobile */
    position: relative; 
    display: flex; 
    flex-direction: column; 
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.course-card-v2:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(10, 36, 99, 0.12);
}

.offer-applied {
    position: relative;
    cursor: pointer;
    background-color: #e6f7ff; 
    color: #007bff; 
    padding: 3px 8px; 
    border-radius: 3px; 
    font-size: 0.8rem; 
    display: inline-flex; 
    align-items: center; 
    gap: 5px;
}
.offer-applied .tooltip {
    position: absolute;
    bottom: 125%; 
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: #fff;
    padding: 8px 12px;
    border-radius: 5px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 10;
}
.offer-applied:hover .tooltip {
    opacity: 1;
    visibility: visible;
}
.offer-applied .tooltip::after { 
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
}

.bestseller-tag { 
    position: absolute; 
    top: 15px; 
    left: -8px; 
    background: var(--accent-color); 
    color: white; 
    padding: 5px 15px; 
    font-size: 0.8rem; 
    font-weight: bold; 
    border-radius: 3px; 
    z-index: 10;
}

.course-card-image { 
    width: 100%; 
    height: 180px; 
    object-fit: cover; 
    border-radius: 15px 15px 0 0; 
}

.course-card-content { 
    padding: 20px; 
    display: flex; 
    flex-direction: column; 
    flex-grow: 1; 
}
.course-grid-section .course-grid {
    justify-content: center;
    display: flex; 
    flex-wrap: wrap; 
}

.course-card-ratings { 
    font-weight: bold; 
    color: #f0b429; 
    margin-bottom: 10px; 
}

.course-card-ratings .fa-star { 
    color: #f0b429; 
}

.course-card-title { 
    font-size: 1.25rem; 
    line-height: 1.4; 
    margin-bottom: 10px; 
}

.course-card-desc { 
    font-size: 0.9rem; 
    color: #555; 
    line-height: 1.5; 
    height: 4.5em; 
    overflow: hidden; 
    margin-bottom: 15px; 
}

.course-card-pricing { 
    margin-bottom: 15px; 
    display: flex; 
    align-items: center; 
    gap: 10px; 
}

.course-card-pricing s { 
    color: #777; 
    font-size: 1rem; 
}

.course-card-pricing strong { 
    color: var(--primary-color); 
    font-size: 1.5rem; 
}

.quantity-selector { 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    gap: 15px; 
    margin-bottom: 20px; 
}

.quantity-btn { 
    background: var(--light-blue-bg); 
    border: none; 
    width: 30px; 
    height: 30px; 
    border-radius: 50%; 
    font-size: 1.2rem; 
    cursor: pointer; 
}

.quantity-value { 
    font-size: 1.2rem; 
    font-weight: bold; 
}

.course-card-actions { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 10px; 
    margin-top: auto; 
}

.course-card-actions .btn { 
    width: 100%; 
    padding: 12px; 
}
/* Explore More Courses Button */
.explore-more-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 50px;
}

.explore-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    background-color: var(--primary-color);
    border-radius: 30px;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.explore-more-btn .arrow {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.explore-more-btn:hover {
    background-color: var(--primary-dark-color);
    transform: translateY(-2px);
}

.explore-more-btn:hover .arrow {
    transform: translateX(6px);
}
/* ----- Testimonials Section ----- */
section.testimonials-section { 
    background-color: var(--secondary-color); 
    padding-bottom: 100px;
    overflow: hidden; /* Prevent horizontal scroll */
}

.testimonial-scroller {
    width: 100%;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 20%, black 80%, transparent);
}

.testimonial-scroller-inner {
    display: flex;
    width: fit-content;
    gap: 30px; 
    animation: scroll-testimonials 60s linear infinite;
}

.testimonial-scroller-inner:hover {
    animation-play-state: paused;
}

.testimonial-card { 
    background: var(--light-blue-bg); 
    border-radius: 20px; 
    padding: 30px; 
    position: relative; 
    width: 400px; 
    flex-shrink: 0; 
}

.testimonial-card::before { 
    content: ''; 
    position: absolute; 
    bottom: -15px; 
    left: 30px; 
    width: 0; 
    height: 0; 
    border-left: 15px solid transparent; 
    border-right: 15px solid transparent; 
    border-top: 15px solid var(--light-blue-bg); 
}

.quote { 
    font-style: italic; 
    color: var(--primary-color); 
}

.testimonial-author { 
    display: flex; 
    align-items: center; 
    gap: 15px; 
    margin-top: 20px; 
}

.testimonial-author img { 
    width: 50px; 
    height: 50px; 
    border-radius: 50%; 
    object-fit: cover; 
}

.testimonial-author h4 { 
    margin: 0; 
}

.stars { 
    color: #f0b429; 
    font-size: 0.9rem; 
}

@keyframes scroll-testimonials {
    to {
        transform: translateX(-50%);
    }
}


/* ----- Partners Logo Scroller ----- */
section.partners-section { 
    background: #fff; 
    padding-top: 60px; 
    overflow: hidden;
}
.logo-scroller { 
    width: 100%; 
    overflow: hidden; 
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent); 
}

.scroller-inner { 
    display: flex; 
    width: fit-content; 
    animation: scroll 30s linear infinite; 
}

.scroller-inner:hover { 
    animation-play-state: paused; 
}

.scroller-inner img { 
    height: 45px; 
    margin: 0 40px; 
}

@keyframes scroll { 
    to { transform: translateX(-50%); } 
}

/* ----- Pre-Footer CTA ----- */
section.cta-section { 
    padding: 30px 0;
    background-color: var(--primary-color); 
    color: white; 
    text-align: center; 
}

.cta-section h2, .cta-section p { 
    color: white; 
}

.cta-section p { 
    max-width: 600px; 
    margin: 15px auto 30px; 
    opacity: 0.9; 
    padding: 0 20px;
}

.cta-buttons { 
    display: flex; 
    justify-content: center; 
    gap: 100px; 
    flex-wrap: wrap; /* Wraps on smaller screens */
}

.btn-cta-outline { 
    background: transparent; 
    color: white; 
    border: 2px solid white; 
    padding: 6px 6px 6px 24px; 
    border-radius: 50px; 
    font-weight: 700; 
    display: inline-flex; 
    align-items: center; 
    gap: 15px; 
    transition: all 0.3s ease; 
}

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

.arrow-circle-cta { 
    background-color: white; 
    color: var(--primary-color); 
    width: 40px; 
    height: 40px; 
    border-radius: 50%; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    font-size: 1.5rem; 
    transition: all 0.3s ease; 
}

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

.btn-cta-solid { 
    background: white; 
    color: var(--primary-color); 
    padding: 14px 30px; 
    border-radius: 50px; 
    font-weight: 700; 
    transition: all 0.3s ease; 
}

.btn-cta-solid:hover { 
    background: var(--secondary-color); 
    transform: translateY(-2px); 
    box-shadow: 0 4px 10px rgba(0,0,0,0.2); 
}

/* ----- Footer Section (Final Compact Version) ----- */

#page-footer {
    position: relative;
    color: white;
}

/* Main footer area with dark blue background */
.footer-main {
    background-color:  #05143a;
    padding: 10px 0 15px 0;
}

/* Flex container for the main top section */
.footer-main-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
    padding-bottom: 25px; /* Space above the divider line */
}

/* Left column with logo and help links */
.footer-left-column {
    display: flex;
    flex-direction: column;
    gap: 20px; /* Space between logo and "Need Help?" */
}

.footer-logo-link img {
    max-width: 100px; /* Controls logo size */
    height: auto;
    margin-top: 20px;
}

.footer-help b {
    display: block;
    margin-bottom: 12px;
    font-size: 12px;
    font-weight: bold;
}

.footer-help a {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 0.95rem;
    transition: opacity 0.3s;
}

.footer-help a:hover {
    opacity: 0.8;
}

.footer-help i {
    font-size: 1.4rem;
}

/* Right column with navigation links */
.footer-right-column {
    display: flex;
    flex-wrap: wrap;
    gap: 40px 60px; /* Vertical and horizontal gap between links */
    justify-content: flex-start;
}

.footer-right-column a {
    color: white;
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: bold;
    transition: opacity 0.3s;
    padding: 30px;
}

.footer-right-column a:hover {
    opacity: 0.8;
}

/* Centered links at the bottom of the blue section */
.footer-secondary-links {
    text-align: center;
    padding-top: 5px;
    /* This border acts as the divider line */
}

.footer-secondary-links a {
    color: white;
    text-decoration: none;
    margin: 0 5px;
    font-size: 0.9rem;
    font-weight: 500;
}

.footer-secondary-links a:hover {
    text-decoration: underline;
}

/* Sub-footer with gray background */
.footer-sub {
    background-color: #4a4a4a;
    color: #cccccc;
    padding: 10px 0;
    text-align: center;
    font-size: 0.8rem;
    line-height: 1.6;
}

.footer-sub p {
    margin: 0;
}

.footer-sub p:first-child {
    margin-bottom: 15px;
}

/* Scroll-to-top button */
.scroll-to-top {
    position: fixed; /* Fixed so it stays on screen */
    bottom: 20px;
    right: 20px;
    background-color: var(--primary-color);
    color: white;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1rem;
    text-decoration: none;
    transition: background-color 0.3s;
    z-index: 999;
    border-radius: 5px;
    opacity: 0.8;
}

.scroll-to-top:hover {
    background-color: var(--accent-color);
    opacity: 1;
}

/* ==========================================================================
   5. SECONDARY & NEW PAGE STYLES
   ========================================================================== */

/* ----- Reusable Page Hero ----- */
.page-hero { background: linear-gradient(rgba(10, 36, 99, 0.85), rgba(10, 36, 99, 0.85)), url('https://images.unsplash.com/photo-1590794582101-5c82245b0d87?q=80&w=2070&auto=format&fit=crop') no-repeat center center/cover; padding: 80px 0; text-align: center; color: white; }
.page-hero h1, .page-hero p { color: white; }
.page-hero p { max-width: 550px; margin: 15px auto 0; opacity: 0.9; font-size: 1.1rem; padding: 0 20px;}

/* ----- General Courses Page ----- */
.search-bar-container { margin-top: 30px; display: flex; max-width: 600px; margin-left: auto; margin-right: auto; background: white; border-radius: 50px; padding: 8px; box-shadow: 0 5px 20px rgba(0,0,0,0.1); }
.search-bar-container input { flex-grow: 1; border: none; outline: none; padding: 0 20px; font-size: 1rem; background: transparent; }
.search-bar-container button { border-radius: 50px; padding: 10px 30px; font-size: 1rem; }
.course-grid-section { background-color: var(--secondary-color); padding: 80px 0; }

/* ----- Course Details Page ----- */
.course-hero-main {
    padding: 60px 0;
    background-color: #fff;
    min-height: calc(100vh - 110px);
    display: flex;
    align-items: center;
}

.course-details-grid-new {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: center;
}

.course-image-and-meta {
    display: flex;
    flex-direction: column;
}

.course-image-wrapper {
    position: relative;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow: hidden;
}

.course-image-wrapper img {
    width: 100%;
    display: block;
}

.image-meta-info {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.meta-button {
    background-color: var(--secondary-color);
    color: var(--text-color);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--border-color);
}

.meta-button .fa-star {
    color: #f0b429;
}

.course-info-wrapper h1 {
    font-size: 2.8rem;
    line-height: 1.2;
    margin-bottom: 20px;
}

.course-info-wrapper .course-primary-description {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 20px;
}

.course-info-wrapper p {
    color: #444;
}

.enroll-section {
    margin: 0;
    padding: 0;
    text-align: left;
}

.btn-enroll-main {
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 10px;
}

.subtle-divider {
    border: none;
    height: 1px;
    background-color: var(--border-color);
    margin: 30px 0;
}

.course-content-section {
    padding: 80px 0;
    background-color: var(--secondary-color);
}

.course-content-block-new {
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    border: 1px solid var(--border-color);
}

.course-content-block-new h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.course-content-block-new p {
    margin-bottom: 15px;
}

.learning-list-new {
    list-style: none;
    padding-left: 0;
}

.learning-list-new li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 12px;
    font-size: 1rem;
}

.learning-list-new .fa-check {
    color: var(--primary-color);
    margin-top: 5px;
}

.specifications-block ul.spec-list {
    list-style: none;
    padding: 0;
}

.specifications-block li {
    display: flex;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    gap: 15px;
}

.specifications-block li:last-child {
    border-bottom: none;
}

.specifications-block li strong {
    color: var(--text-color);
    flex-basis: 40%;
    flex-shrink: 0;
}

.info-block {
    background: #fff;
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 30px;
    border-left: 5px solid var(--primary-color);
    border: 1px solid var(--border-color);
}
.info-block h3 {
    margin-bottom: 15px;
    border-bottom: none;
    padding-bottom: 0;
    font-size: 1.5rem;
}
.info-block ul {
    list-style: none;
    padding: 0;
    margin-top: 15px;
}
.info-block li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}
.info-block .fa-check-circle {
    color: var(--primary-color);
}

/* ----- Contact Page ----- */
.contact-section { background-color: var(--secondary-color); padding: 80px 0; }
.contact-main-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; align-items: start; }
.contact-details-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.contact-detail-card { background: #fff; border: 1px solid var(--border-color); border-radius: 10px; padding: 25px; text-align: center; transition: transform 0.3s, box-shadow 0.3s; }
.contact-detail-card:hover { transform: translateY(-5px); box-shadow: 0 8px 25px var(--shadow-color); }
.contact-detail-card .icon { font-size: 2rem; color: var(--primary-color); margin-bottom: 15px; }
.contact-detail-card h4 { margin-bottom: 5px; }
.contact-detail-card p { font-size: 0.95rem; color: #555; }
.contact-form-wrapper { background: #fff; border-radius: 15px; padding: 40px; border: 1px solid var(--border-color); }
.contact-form-wrapper h3 { margin-bottom: 20px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 500; font-size: 0.9rem; }
.form-group input, .form-group textarea { width: 100%; padding: 12px; border-radius: 5px; border: 1px solid var(--border-color); font-family: var(--font-primary); font-size: 1rem; }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--primary-color); box-shadow: 0 0 0 2px rgba(10, 36, 99, 0.2); }
.contact-form-wrapper .btn-primary { width: 100%; padding: 14px; font-size: 1.1rem; }

/* ==========================================================================
   6. CHECKOUT / CART PAGES
   ========================================================================== */
.checkout-section { padding: 80px 0; }
.checkout-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; align-items: flex-start; }
.checkout-main-content { display: flex; flex-direction: column; gap: 30px; }

/* ----- Step 1: Shopping Cart View Styles ----- */
.cart-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.cart-title { font-size: 2.5rem; margin-bottom: 5px; }
.cart-subtitle { color: #666; }
.clear-cart-btn { background: none; border: none; color: var(--accent-color); font-weight: 500; cursor: pointer; display: flex; align-items: center; gap: 8px; font-size: 0.9rem; }
.cart-items-wrapper { display: flex; flex-direction: column; gap: 20px; }
.cart-item { background: #fff; border-radius: 10px; border: 1px solid var(--border-color); padding: 25px; display: flex; flex-direction: column; }
.cart-item-main { display: flex; gap: 20px; align-items: flex-start; }
.cart-item-main img { width: 120px; height: 90px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.cart-item-details { flex-grow: 1; }
.cart-item-details h3 { font-size: 1.2rem; }
.cart-item-details p { font-size: 0.9rem; color: #555; margin: 5px 0 15px; }
.cart-item-pricing { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--primary-color); }
.cart-item-pricing s { color: #777; font-size: 1rem; font-weight: normal; }
.cart-item-pricing strong { font-size: 1.4rem; }
.cart-item-delete { background: var(--accent-color); color: white; border: none; border-radius: 8px; width: 40px; height: 40px; font-size: 1rem; cursor: pointer; transition: background-color 0.3s; }
.cart-item-delete:hover { background-color: #b0271a; }
.cart-item-footer { border-top: 1px solid var(--border-color); margin-top: 20px; padding-top: 20px; display: flex; justify-content: space-between; align-items: center; }
.cart-item-quantity { display: flex; align-items: center; gap: 15px; }
.cart-item-quantity .quantity-btn { background: var(--light-blue-bg); border: 1px solid var(--border-color); width: 32px; height: 32px; border-radius: 5px; font-size: 1.2rem; cursor: pointer; }
.cart-item-quantity .quantity-value { font-size: 1.1rem; font-weight: bold; }
.cart-item-subtotal { font-size: 0.9rem; color: #555; }
.cart-item-subtotal strong { color: var(--text-color); }
.empty-cart-message { text-align: center; padding: 40px; font-size: 1.1rem; color: #666; }

/* ----- Step 2: Create Account View Styles ----- */
.checkout-form-wrapper { 
    background: #fff; 
    border-radius: 10px; 
    border: 1px solid var(--border-color);
    position: relative; 
    overflow: hidden; 
}
.form-header { text-align: center; padding: 30px; border-bottom: 1px solid var(--border-color); }
.form-header .fa-user-circle { font-size: 2.5rem; color: var(--primary-color); margin-bottom: 10px; }
.form-header h2 { font-size: 1.8rem; }
.form-header p { color: #666; font-size: 0.95rem; }
.billing-form { padding: 30px; }
.form-row { display: flex; gap: 20px; }
.form-row .form-group { flex-grow: 1; }
.form-group-with-icon { position: relative; }
.form-group-with-icon input { padding-right: 45px; }
.icon-button { position: absolute; right: 1px; top: 32px; height: 45px; width: 45px; background: none; border: none; font-size: 1rem; color: #888; cursor: pointer; }

/* ===== Loading Spinner Styles ===== */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}
.loading-overlay.visible {
    opacity: 1;
    visibility: visible;
}
.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid var(--light-blue-bg);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ----- Right Column: Order Summary ----- */
.order-summary-wrapper { background: #fff; border: 1px solid var(--border-color); border-radius: 10px; padding: 30px; position: sticky; top: 120px; }
.order-summary-wrapper h3 { font-size: 1.5rem; padding-bottom: 15px; border-bottom: 1px solid var(--border-color); margin-bottom: 20px; }
.summary-cart-items { display: flex; flex-direction: column; gap: 15px; }
.summary-cart-item { display: flex; gap: 15px; align-items: center; }
.summary-item-details { flex-grow: 1; }
.summary-item-details h4 { font-size: 0.95rem; font-weight: 500; margin-bottom: 2px; }
.summary-item-details p { font-size: 0.9rem; font-weight: normal; color: #555; }
.what-you-get-box { background-color: var(--light-blue-bg); border-radius: 10px; padding: 20px; margin-top: 20px; }
.what-you-get-box h4 { margin-bottom: 15px; }
.what-you-get-box ul { list-style: none; }
.what-you-get-box li { margin-bottom: 8px; display: flex; align-items: center; gap: 10px; font-size: 0.9rem; }
.what-you-get-box .fa-check-circle { color: var(--primary-color); }
.price-breakdown { margin: 25px 0; }
.price-breakdown hr { border: 0; border-top: 1px solid var(--border-color); margin: 15px 0; }
.summary-price-row { display: flex; justify-content: space-between; margin-bottom: 5px; font-size: 1rem; }
.summary-price-row.total { font-size: 1.5rem; font-weight: bold; }
.one-time-payment-text { text-align: right; font-size: 0.8rem; color: #666; }
.checkout-btn-full { width: 100%; padding: 15px; font-size: 1.1rem; text-align: center; }
.summary-footer-links { text-align: center; margin-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.summary-footer-links a { color: var(--primary-color); font-weight: 500; font-size: 0.9rem; }
.secure-payment-text { text-align: center; font-size: 0.85rem; color: #666; margin-top: 15px; }

/* ==========================================================================
   7. RESPONSIVE MEDIA QUERIES (Fixing Issues)
   ========================================================================== */

/* TABLET & MOBILE VIEW (< 992px) */
@media(max-width: 992px) {
    /* 1. NAVBAR - Show Hamburger, Hide Top Links */
    .hamburger {
        display: flex; /* Show the 3 lines */
    }

    /* Hide the Login/Register buttons in the top bar to prevent cut-off */
    .nav-auth .btn1 {
        display: none; 
    }
    
    /* Keep Cart Visible */
    .nav-cart {
        display: block;
        margin-right: 15px;
    }

    /* Mobile Menu Dropdown Style */
    .nav-links {
        display: none; /* Hidden until toggled via JS */
        position: absolute;
        top: 90px; /* Directly below header */
        left: 0;
        width: 100%;
        background-color: white;
        flex-direction: column;
        align-items: flex-start;
        padding: 0;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        border-top: 1px solid #eee;
        z-index: 1000;
    }

    /* Class to add via JavaScript: document.querySelector('.nav-links').classList.toggle('active'); */
    .nav-links.active {
        display: flex;
    }

    .nav-link {
        width: 100%;
        padding: 15px 25px;
        border-bottom: 1px solid #f0f0f0;
    }

    /* 2. LAYOUT ADJUSTMENTS */
    .grid-4, .stats-section .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .course-details-grid-new { grid-template-columns: 1fr; }
    .checkout-grid { grid-template-columns: 1fr; }
    .contact-main-grid { grid-template-columns: 1fr; }
    
    /* 3. FOOTER STACKING */
    .footer-main-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-left-column { width: 100%; align-items: center; margin-bottom: 20px; }
    
    /* Fix for missing links: Ensure proper wrapping and spacing */
    .footer-right-column {
        width: 100%;
        justify-content: center;
        gap: 15px;
    }
    
    .footer-help a { justify-content: center; }
}

/* MOBILE PHONE VIEW (< 768px) */
@media(max-width: 768px) {
    h1 { font-size: 2.5rem; }
    .hero-content h1 { font-size: 2.2rem; }
    .hero-content h1 span { font-size: 2.6rem; }
    
    .grid-3 { grid-template-columns: 1fr; }
    .grid-4, .stats-section .grid-4 { grid-template-columns: 1fr; }
    
    .contact-details-grid { grid-template-columns: 1fr; }
    
    /* Cart Items Vertical */
    .cart-item-main { flex-direction: column; align-items: flex-start; }
    .cart-item-main img { width: 100%; height: auto; }
    
    .cta-buttons { flex-direction: column; width: 100%; }
    .cta-buttons .btn { width: 100%; }
    
    /* Ensure footer links are tappable */
    .footer-right-column {
        flex-direction: column;
        gap: 10px;
    }
    
    .testimonial-card { width: 300px; }
}

/* SMALL MOBILE VIEW (< 576px) */
@media(max-width: 576px) {
    nav { height: 80px; padding: 0 15px; }
    .nav-links { top: 80px; }
    .logo { font-size: 1.4rem; }
    .logo img { max-width: 130px; }
    
    .billing-form .form-row { flex-direction: column; gap: 0; }
}
/* ==========================================================================
   8. ANIMATIONS
   ========================================================================== */
.fade-in-element {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-element.is-visible {
    opacity: 1;
    transform: translateY(0);
}