/* =========================
   GLOBAL STYLES
========================= */
:root {
    --primary: #C62828;
    --secondary: #6E6E6E;
    --light: #f6f8fb;
    --dark: #0E1737;
    --font: 'Poppins', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font);
}

body {
    line-height: 1.7;
    color: var(--dark);
    background: #ffffff;
    overflow-x: hidden;
}

body.nav-open {
    overflow: hidden;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* =========================
   HEADER / NAVBAR
========================= */
header {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(8px);
    box-shadow: 0 6px 25px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* =========================
   INNER PAGE HERO
========================= */
.about-hero {
    background: radial-gradient(1200px 600px at 10% 10%, rgba(255,255,255,0.12), transparent 60%),
                linear-gradient(135deg, #8e1b1b, #c62828);
    color: #fff;
    text-align: center;
    padding: 5rem 2rem 4rem;
    position: relative;
    overflow: hidden;
}

.about-hero h1 {
    font-size: 2.6rem;
    margin-bottom: 0.6rem;
}

.about-hero p {
    max-width: 780px;
    margin: 0 auto;
    font-size: 1rem;
    opacity: 0.95;
}

.about-hero::after {
    content: "";
    position: absolute;
    right: -120px;
    bottom: -140px;
    width: 360px;
    height: 360px;
    background: rgba(255,255,255,0.12);
    border-radius: 50%;
    filter: blur(2px);
}

@media (max-width: 768px) {
    .about-hero {
        padding: 3rem 1.5rem 2.5rem;
    }

    .about-hero h1 {
        font-size: 2rem;
    }

    .about-hero p {
        font-size: 0.95rem;
    }
}

/* =========================
   TOP BAR
========================= */
.top-bar {
    background: #ffffff;
    color: var(--primary);
    font-size: 0.82rem;
    border-bottom: 1px solid rgba(198, 40, 40, 0.12);
}

.top-bar-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.35rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.top-contacts {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    flex-wrap: wrap;
    justify-self: center;
    justify-content: center;
}

.top-contacts span {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    font-weight: 400;
}

.top-contacts i {
    color: var(--primary);
}

.top-search {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 2px solid var(--primary);
    border-radius: 999px;
    padding: 0.15rem 0.35rem 0.15rem 0.7rem;
    gap: 0.5rem;
    justify-self: center;
}

.top-search input {
    border: none;
    background: transparent;
    outline: none;
    font-size: 0.82rem;
    min-width: 200px;
    color: var(--primary);
}

.top-search input::placeholder {
    color: rgba(198, 40, 40, 0.6);
}

.top-search button {
    border: none;
    background: var(--primary);
    color: #fff;
    padding: 0.3rem 0.85rem;
    border-radius: 999px;
    font-size: 0.78rem;
    cursor: pointer;
}

.top-socials {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
    justify-content: center;
    color: var(--primary);
    font-weight: 500;
}

.top-socials-label {
    font-size: 0.78rem;
    color: var(--primary);
}

.top-socials a {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid var(--primary);
    border-radius: 50%;
    color: var(--primary);
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.top-socials a:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-1px);
}

.top-spacer {
    display: none;
}

.nav-container {
    max-width: 1200px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.1rem 2rem;
}

.logo {
    font-weight: 700;
    font-size: 1.7rem;
    color: var(--primary);
    letter-spacing: 0.3px;
}

.logo span {
    font-weight: 400;
    color: var(--secondary);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2.2rem;
}

nav ul li a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

nav ul li a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: 0.3s;
}

nav ul li a:hover::after {
    width: 100%;
}

/* Desktop menu dividers */
.nav-links li + li {
    position: relative;
    padding-left: 1.1rem;
}

.nav-links li + li::before {
    content: "";
    position: absolute;
    left: 0.35rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 18px;
    background: var(--primary);
    opacity: 0.55;
}

.hamburger {
    display: none;
    width: 36px;
    height: 28px;
    cursor: pointer;
    position: relative;
    z-index: 1100;
}

.hamburger span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--dark);
    border-radius: 4px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 12px; }
.hamburger span:nth-child(3) { top: 24px; }

.hamburger.active span:nth-child(1) {
    transform: translateY(12px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-12px) rotate(-45deg);
}

.btn {
    padding: 0.55rem 1.6rem;
    background: linear-gradient(135deg, var(--primary), #a71e1e);
    color: #fff;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-weight: 600;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(198,40,40,0.3);
}

/* =========================
   HERO SECTION
========================= */
.hero {
    background: url('images/hero-bg.jpg') center/cover no-repeat;
    height: 90vh;
    display: flex;
    align-items: center;
    color: #fff;
    text-align: left;
    position: relative;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        rgba(14,23,55,0.75),
        rgba(198,40,40,0.75)
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 650px;
    margin: auto;
    margin-left: 5%;
    padding: 0 1.5rem;
}

.hero h1 {
    font-size: 3.3rem;
    margin-bottom: 1.2rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.15rem;
    margin-bottom: 2.2rem;
    color: #f1f1f1;
}

.hero-btn {
    font-size: 1rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Solid Primary Button */
.btn-primary {
    padding: 0.8rem 2rem;
    background: var(--primary);
    color: #fff;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(198,40,40,0.3);
}

/* Outline Button */
.btn-outline {
    padding: 0.8rem 2rem;
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(198,40,40,0.2);
}

/* =========================
   ABOUT / WHY DEVROOTS
========================= */
.about {
    padding: 6rem 2rem;
    background: var(--light);
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
    color: var(--dark);
}

.about-columns {
    display: flex;
    gap: 3rem;
    justify-content: center;
    align-items: flex-start;
    max-width: 1100px;
    margin: auto;
    flex-wrap: wrap;
}

.about-left {
    flex: 1;
    min-width: 380px;
    padding-right: 1rem;
}

.about-left p {
    font-size: 1rem;
    line-height: 1.8;
    color: #444;
}

/* Divider between columns */
.about-divider {
    width: 3px;
    background: linear-gradient(to bottom, var(--primary), #a71e1e);
    margin: 0 2rem;
    border-radius: 1px;
    align-self: stretch; /* 🔥 THIS IS THE KEY */
}

/* Feature list hover effect */
.about-points li {
    font-size: 1rem;
    margin-bottom: 1rem;
    position: relative;
    padding-left: 1.8rem;
    color: var(--dark);
    cursor: pointer;
    transition: transform 0.3s ease, color 0.3s ease, background 0.3s ease;
}

.about-points li::before {
    content: '✔';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
    transition: transform 0.3s ease, color 0.3s ease;
}

/* Hover effect */
.about-points li:hover {
    transform: translateX(10px);
    color: var(--primary);
    background: rgba(198,40,40,0.05);
    border-radius: 8px;
}

.about-points li:hover::before {
    transform: scale(1.2);
    color: #a71e1e;
}

.about-right {
    flex: 1;
    min-width: 380px;
}

.about-points {
    list-style: none;
    padding: 0;
}

.about-points li {
    font-size: 1rem;
    margin-bottom: 1rem;
    position: relative;
    padding-left: 1.8rem;
    color: var(--dark);
}

.about-points li::before {
    content: '✔';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

/* =========================
   FEATURED COURSES (CLEAN GRID)
========================= */
.featured-courses {
    padding: 5rem 2rem;
    background: #ffffff;
}

.featured-courses h2 {
    text-align: center;
    font-size: 2.3rem;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem;
    color: #666;
    font-size: 0.95rem;
}

/* =========================
   STATS STRIP
========================= */
.stats-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto 2.5rem;
}

.stat-card {
    background: #fff;
    border-radius: 16px;
    padding: 1.2rem 1rem;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    border: 1px solid rgba(198,40,40,0.08);
}

.stat-card h3 {
    margin: 0 0 0.3rem;
    color: #C62828;
    font-size: 1.6rem;
}

.stat-card p {
    margin: 0;
    color: #555;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .stats-strip {
        grid-template-columns: 1fr;
    }
}

/* Courses Grid */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
}

/* Course Card */
.course-card {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
}

.course-card::before {
    content: '';
    position: absolute;
    top: 10px;
    right: -20px;
    width: 100%;
    height: 80%;
    background: rgba(198,40,40,0.05);
    border-radius: 50%;
    z-index: 0;
    transition: all 0.3s ease;
}

.course-card:hover::before {
    transform: scale(1.05) rotate(5deg);
}

/* Image */
.course-image {
    position: relative;
    z-index: 1;
}

.course-image img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.course-card:hover .course-image img {
    transform: scale(1.07);
}

/* Tags */
.course-tags {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.tag {
    background: rgba(198,40,40,0.9);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 5px;
    transition: transform 0.3s ease;
}

.tag.level {
    background: rgba(14,23,55,0.9);
}

.course-card:hover .tag {
    transform: translateY(-2px);
}

/* Title & Description */
.course-card h3 {
    margin: 0.8rem 0 0.3rem;
    color: var(--primary);
    font-size: 1.15rem;
    z-index: 1;
}

.course-card p {
    font-size: 0.82rem;
    padding: 0 0.8rem;
    flex-grow: 1;
    color: #555;
    z-index: 1;
}

/* Apply Button with animated finger */
.apply-btn {
    margin: 1rem 0 1.2rem;
    padding: 0.5rem 1.2rem;
    border-radius: 25px;
    background: var(--primary);
    color: #fff;
    font-size: 0.9rem;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    transition: all 0.3s ease;
    z-index: 1;
}

.apply-btn .finger {
    display: inline-block;
    transition: transform 0.3s ease;
}

.apply-btn:hover {
    background: #a71e1e;
    transform: translateY(-2px);
}

.apply-btn:hover .finger {
    transform: rotate(20deg) translateX(2px);
}

/* View All Courses CTA */
.view-all-courses {
    margin-top: 2rem;
    text-align: center;
}

.view-all-courses .btn-outline {
    padding: 0.6rem 1.5rem;
    border: 2px solid var(--primary);
    border-radius: 30px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.view-all-courses .btn-outline:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
}

/* =========================
   PARTNERS
========================= */
.partners {
    padding: 6rem 2rem;
    background: #f8f9fa;
    text-align: center;
}

.partners .section-title {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.partners .section-subtitle {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 3rem;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 2rem;
    align-items: center;
    justify-items: center;
}

.partner-card {
    padding: 1.5rem;
    transition: transform 0.3s ease, filter 0.3s ease, border 0.3s ease;
    max-width: 160px;
    border-radius: 12px;
}

.partner-card img {
    width: 100%;
    height: auto;
    object-fit: contain;
    transition: filter 0.3s ease, transform 0.3s ease, border 0.3s ease;
    display: block;
    border-radius: 12px;
}

/* Hover: grayscale + slight lift + red outline */
.partner-card:hover img {
    filter: grayscale(100%);
    transform: scale(1.05);
    border: 2px solid #e63946; /* Red outline */
    padding: 4px; /* Optional: add small padding so border doesn't shrink image */
}

/* ===============================
   TESTIMONIALS – MODERN CARD SLIDER
================================= */
.testimonials {
    padding: 6rem 2rem 4rem;
    background: linear-gradient(180deg, #ffe5e5, #fff); /* soft red gradient to footer */
    text-align: center;
    font-family: 'Poppins', sans-serif;
}

/* =========================
   FAQ
========================= */
.faq {
    padding: 5rem 2rem;
    background: #fff;
}

.faq-list {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    gap: 1rem;
}

.faq-item {
    background: #fff;
    border-radius: 16px;
    padding: 0.4rem 1.2rem;
    box-shadow: 0 12px 28px rgba(0,0,0,0.08);
    border: 1px solid rgba(198,40,40,0.08);
}

.faq-item summary {
    cursor: pointer;
    list-style: none;
    font-weight: 600;
    color: #C62828;
    padding: 0.8rem 0;
    position: relative;
}

.faq-item summary::marker {
    content: "";
}

.faq-item summary::after {
    content: "+";
    position: absolute;
    right: 0;
    font-size: 1.2rem;
    color: #C62828;
    transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
    content: "–";
}

.faq-item p {
    margin: 0 0 1rem;
    color: #555;
}

.testimonials .section-title {
    font-size: 2.4rem;
    color: #C62828;
    margin-bottom: 0.5rem;
}

.testimonials .section-subtitle {
    font-size: 1rem;
    color: #555;
    margin-bottom: 3rem;
}

/* Slider Container */
.testimonial-slider {
    position: relative;
    overflow: hidden;
    max-width: 1000px;
    margin: 0 auto;
}

/* Individual Slide */
.testimonial-slide {
    background: #fff;
    border-radius: 16px;
    padding: 2rem 2.5rem;
    box-shadow: 0 8px 20px rgba(198, 40, 40, 0.2);
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.6s ease;
    position: absolute;
    width: 100%;
}

.testimonial-slide.active {
    opacity: 1;
    transform: translateX(0);
    position: relative;
}

/* Testimonial Text */
.testimonial-text {
    font-size: 1.05rem;
    color: #333;
    margin-bottom: 1.8rem;
    line-height: 1.7;
    font-style: italic;
}

/* Author */
.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid #C62828;
}

.testimonial-author h4 {
    margin: 0;
    font-size: 1.1rem;
    color: #C62828;
}

.testimonial-role {
    font-size: 0.85rem;
    color: #777;
}

/* Navigation Buttons */
.testimonial-slider .prev,
.testimonial-slider .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #C62828;
    color: #fff;
    border: none;
    font-size: 1.5rem;
    padding: 0.5rem 0.9rem;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
}

.testimonial-slider .prev:hover,
.testimonial-slider .next:hover {
    background: #ff4d4d;
    transform: translateY(-50%) scale(1.1);
}

.testimonial-slider .prev { left: -30px; }
.testimonial-slider .next { right: -30px; }

/* Dots */
.dots {
    margin-top: 2rem;
}

.dot {
    height: 12px;
    width: 12px;
    margin: 0 6px;
    display: inline-block;
    background-color: #C62828;
    border-radius: 50%;
    transition: all 0.3s;
    cursor: pointer;
}

.dot.active,
.dot:hover {
    background: #ff4d4d;
    transform: scale(1.3);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-container {
        position: relative;
    }

    .top-bar-inner {
        justify-content: center;
    }

    .top-contacts {
        justify-content: center;
        justify-self: center;
        text-align: center;
    }

    .top-contacts {
        flex-wrap: nowrap;
        gap: 0.6rem;
    }

    .top-contacts span {
        white-space: nowrap;
        font-size: 0.75rem;
    }

    .top-search {
        width: 100%;
    }

    .top-search input {
        min-width: 0;
        width: 100%;
    }

    .top-socials {
        width: 100%;
        justify-content: center;
    }

    nav {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: min(78vw, 320px);
        background: #ffffff;
        box-shadow: -12px 0 30px rgba(0,0,0,0.12);
        border-left: 1px solid rgba(198, 40, 40, 0.08);
        display: none;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 5.5rem 1.25rem 2rem;
    }

    .nav-links {
        flex-direction: column;
        gap: 0.35rem;
        padding: 0;
        width: 100%;
        max-width: 100%;
    }

    .nav-links li {
        padding: 0;
        border-bottom: 1px solid rgba(198, 40, 40, 0.12);
    }

    .nav-links li a {
        display: block;
        width: 100%;
        text-align: left;
        font-size: 1.05rem;
        padding: 0.7rem 0.9rem;
        border-radius: 10px;
        line-height: 1.3;
    }

    .nav-links li + li::before {
        display: none;
    }

    .nav-links li + li {
        padding-left: 0;
    }

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

    nav.active {
        display: flex;
    }

    .hamburger {
        display: block;
        position: relative;
        z-index: 1200;
    }

    .testimonial-slide {
        padding: 1.5rem 1.8rem;
    }

    .testimonial-author {
        flex-direction: column;
        gap: 0.5rem;
    }

    .testimonial-slider .prev { left: -20px; }
    .testimonial-slider .next { right: -20px; }
}


/* =============================== 
FOOTER – RED GRADIENT PREMIUM NEON
================================ */
.footer {
    background: linear-gradient(135deg, #C62828, #a71e1e);
    color: #fff;
    padding: 5rem 2rem 2rem;
    font-family: 'Poppins', sans-serif;
    position: relative;
}

/* Container: 5 Columns */
.footer-container {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* =====================
   NEON UNDERLINE ANIMATION
===================== */
@keyframes neonSlide {
    0% { width: 0; left: 0; opacity: 0; }
    50% { width: 100%; left: 0; opacity: 1; }
    100% { width: 100%; left: 0; opacity: 1; }
}

/* =====================
   HEADINGS
===================== */
.footer-column h2,
.footer-column h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: #fff;
    position: relative;
    transition: all 0.3s ease;
}

.footer-column h2::after,
.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #ff4d4d, #ff9999);
    box-shadow: 0 0 8px #ff4d4d, 0 0 15px #ff9999;
    border-radius: 2px;
    transition: width 0.5s ease;
}

.footer-column h2:hover::after,
.footer-column h3:hover::after {
    animation: neonSlide 0.5s forwards;
}

.footer-column h2:hover,
.footer-column h3:hover {
    color: #ffe5e5;
    transform: translateY(-2px);
}

/* =====================
   PARAGRAPHS
===================== */
.footer-column p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #f1f1f1;
    position: relative;
}

.footer-column p::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #ff4d4d, #ff9999);
    box-shadow: 0 0 6px #ff4d4d, 0 0 12px #ff9999;
    border-radius: 2px;
    transition: width 0.5s ease;
}

.footer-column p:hover::after {
    animation: neonSlide 0.5s forwards;
}

.footer-column p:hover {
    color: #ffe5e5;
}

/* =====================
   LIST ITEMS & LINKS
===================== */
.footer-column ul li {
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
    position: relative;
}

.footer-column ul li a {
    color: #fff;
    text-decoration: none;
    position: relative;
    display: inline-block;
    transition: all 0.3s ease;
}

.footer-column ul li a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #ff4d4d, #ff9999);
    box-shadow: 0 0 6px #ff4d4d, 0 0 12px #ff9999;
    border-radius: 2px;
    transition: width 0.5s ease;
}

.footer-column ul li a:hover::after {
    animation: neonSlide 0.5s forwards;
}

.footer-column ul li a:hover {
    color: #ffe5e5;
    font-style: italic;
    transform: translateY(-2px);
}

/* =====================
   SOCIAL ICONS
===================== */
.footer-brand .social-links a {
    margin-right: 0.8rem;
    font-size: 1.2rem;
    display: inline-block;
    position: relative;
    transition: all 0.3s ease;
}

.footer-brand .social-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #ff4d4d, #ff9999);
    box-shadow: 0 0 6px #ff4d4d, 0 0 12px #ff9999;
    border-radius: 2px;
    transition: width 0.5s ease;
}

.footer-brand .social-links a:hover::after {
    animation: neonSlide 0.5s forwards;
}

.footer-brand .social-links a:hover {
    transform: translateY(-3px) scale(1.1);
    color: #ffe5e5;
}

/* =====================
   NEWSLETTER FORM
===================== */
.footer-column form {
    display: flex;
    flex-direction: column;
    gap: 0.8rem; /* Increased gap between input and button */
    margin-top: 1rem;
}

.footer-column input {
    padding: 0.6rem 1rem;
    border-radius: 12px;
    border: none;
    outline: none;
    font-size: 0.9rem;
}

.footer-column button {
    padding: 0.6rem 1rem;
    border-radius: 12px;
    border: none;
    background: #f25252;
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.footer-column button:hover {
    transform: translateY(-2px) scale(1.05);
    background: #ff4b4b;
}

/* =====================
   BUTTONS
===================== */
.footer-column button {
    padding: 0.6rem 1rem;
    border-radius: 12px;
    border: none;
    background: #f25252;
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.footer-column button::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #ff4d4d, #ff9999);
    box-shadow: 0 0 6px #ff4d4d, 0 0 12px #ff9999;
    border-radius: 2px;
    transition: width 0.5s ease;
}

.footer-column button:hover::after {
    animation: neonSlide 0.5s forwards;
}

.footer-column button:hover {
    transform: translateY(-2px) scale(1.05);
    background: #ff4b4b;
}

/* =====================
   FOOTER BOTTOM
===================== */
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.5); /* thin white line */
    margin-top: 3rem;
    padding-top: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    position: relative;
    background: transparent;
}

.footer-bottom p {
    margin: 0;
}

.footer-bottom a {
    color: #fff;
    text-decoration: none;
    position: relative;
    transition: all 0.3s ease;
}

.footer-bottom a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #ff4d4d, #ff9999);
    box-shadow: 0 0 6px #ff4d4d, 0 0 12px #ff9999;
    border-radius: 2px;
    transition: width 0.5s ease;
}

.footer-bottom a:hover::after {
    animation: neonSlide 0.5s forwards;
}

.footer-bottom a:hover {
    color: #ffe5e5;
    font-style: italic;
}

/* =====================
   BACK TO TOP
===================== */
#footer-back-to-top {
    background: #fff;
    color: #C62828;
    border: none;
    padding: 0.4rem 0.8rem;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1rem;
    position: relative;
    transition: all 0.3s ease;
}

#footer-back-to-top::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #ff4d4d, #ff9999);
    box-shadow: 0 0 6px #ff4d4d, 0 0 12px #ff9999;
    border-radius: 2px;
    transition: width 0.5s ease;
}

#footer-back-to-top:hover::after {
    animation: neonSlide 0.5s forwards;
}

#footer-back-to-top:hover {
    transform: translateY(-3px) scale(1.05);
    background: #f25252;
    color: #fff;
}

/* =====================
   RESPONSIVE
===================== */
@media (max-width: 992px) {
    .footer-container {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}

@media (max-width: 768px) {
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* =========================
   LIVE CHAT BUTTON
========================= */
#live-chat {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.chat-btn {
    background: linear-gradient(135deg, var(--primary), #a71e1e);
    color: #fff;
    border: none;
    padding: 1rem 1.1rem;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
    transition: 0.3s;
}

.chat-btn:hover {
    transform: scale(1.08);
}

.chat-box {
    display: none;
    width: 320px;
    height: 420px;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.35);
    position: absolute;
    bottom: 70px;
    right: 0;
    flex-direction: column;
    overflow: hidden;
}

.chat-header {
    background: var(--primary);
    color: #fff;
    padding: 1rem;
    font-weight: 600;
    text-align: center;
}

.chat-messages {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    font-size: 0.9rem;
}

#chat-input {
    width: calc(100% - 90px);
    padding: 0.6rem;
    border: 1px solid #ccc;
    border-radius: 20px;
    margin: 0.5rem;
}

#send-btn {
    padding: 0.6rem 0.9rem;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    margin-right: 0.5rem;
}

#send-btn:hover {
    background: #a71e1e;
}

/* =========================
   BACK TO TOP BUTTON – LEFT FLOATING
========================= */
#back-to-top {
  position: fixed;          /* stays in viewport */
  bottom: 100px;             /* slightly above live chat */
  right: 30px;               /* left side of viewport */
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #C62828, #ff4b4b); /* red gradient */
  border-radius: 50%;
  box-shadow: 0 0 15px rgba(255, 75, 75, 0.6), 0 0 25px rgba(198, 40, 40, 0.4);
  color: #fff;
  font-size: 1.6rem;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
  z-index: 1000; 
}

#back-to-top:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 0 25px rgba(255, 75, 75, 0.8), 0 0 40px rgba(198, 40, 40, 0.6);
  background: linear-gradient(135deg, #ff4b4b, #ff9999);
}



/* =========================
   SCROLL ANIMATIONS
========================= */
.scrolled {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.8s ease-out;
}

.hero-content,
.courses,
.about,
.stats,
.featured-courses,
.testimonials,
.contact {
    opacity: 1;
    
}
/* =========================
   APPLY NOW PAGE – ILLUSTRATION
========================= */
.apply-now-section {
  background: linear-gradient(135deg, #fdf2f2, #fff0f0);
  padding: 5rem 2rem;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.apply-now-container {
  display: flex;
  max-width: 1100px;
  width: 100%;
  gap: 3rem;
  align-items: center;
}

.apply-illustration {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: float 6s ease-in-out infinite;
}

.apply-illustration img {
  max-width: 100%;
  border-radius: 20px;
  box-shadow: 0 15px 50px rgba(198, 40, 40, 0.2);
}

/* Floating animation for the illustration */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

/* Form Card */
.apply-card {
  flex: 1;
  background: #fff;
  padding: 3rem 2rem;
  border-radius: 20px;
  box-shadow: 0 10px 35px rgba(198, 40, 40, 0.2);
  transition: transform 0.3s, box-shadow 0.3s;
}

.apply-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 50px rgba(198, 40, 40, 0.3);
}

.apply-card h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: #C62828;
}

.apply-card p {
  margin-bottom: 2rem;
  color: #555;
  font-size: 1rem;
}

/* Form styling */
form .form-row {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

form .form-group {
  flex: 1;
  display: flex;
  flex-direction: column;
}

form .form-group.full-width {
  flex: 100%;
}

form label {
  font-weight: 500;
  margin-bottom: 0.4rem;
  color: #333;
}

form input, form select {
  padding: 0.8rem 1rem;
  border-radius: 12px;
  border: 1px solid #ccc;
  outline: none;
  font-size: 0.95rem;
  transition: border 0.3s, box-shadow 0.3s;
}

form input:focus, form select:focus {
  border-color: #C62828;
  box-shadow: 0 0 10px rgba(198, 40, 40, 0.3);
}

form .terms {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

form .terms a {
  color: #C62828;
  text-decoration: underline;
}

.btn-apply {
  padding: 0.9rem 2rem;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #C62828, #ff4b4b);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
}

.btn-apply:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(198, 40, 40, 0.4);
  background: linear-gradient(135deg, #ff4b4b, #ff7a7a);
}

/* Responsive */
@media (max-width: 992px) {
  .apply-now-container {
    flex-direction: column-reverse;
    gap: 2rem;
  }
}
/* =========================
   COURSES PAGE
========================= */
.courses-page {
  background: #fdf2f2;
  padding: 4rem 2rem;
  min-height: 90vh;
}

.courses-container {
  display: flex;
  max-width: 1200px;
  margin: 0 auto;
  gap: 2rem;
}

/* Sidebar */
.courses-sidebar {
  flex: 1;
  background: #fff;
  padding: 2rem 1.5rem;
  border-radius: 20px;
  box-shadow: 0 10px 35px rgba(198, 40, 40, 0.1);
  position: sticky;
  top: 120px;
  height: fit-content;
}

.courses-sidebar h3 {
  margin-bottom: 1rem;
  color: #C62828;
}

.courses-sidebar ul {
  list-style: none;
  padding: 0;
}

.courses-sidebar ul li {
  margin-bottom: 1rem;
  padding: 0.6rem 1rem;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s;
}

.courses-sidebar ul li:hover,
.courses-sidebar ul li.active {
  background: linear-gradient(135deg, #C62828, #ff4b4b);
  color: #fff;
  font-weight: 600;
  transform: translateX(5px);
}

/* Courses Content */
.courses-content {
  flex: 3;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.course-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 35px rgba(198, 40, 40, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.course-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 50px rgba(198, 40, 40, 0.2);
}

.course-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.course-card h3 {
  margin: 1rem;
  color: #C62828;
}

.course-card p {
  margin: 0 1rem 1rem;
  color: #555;
}

.course-card .apply-btn {
  display: inline-block;
  margin: 0 1rem 1rem;
  padding: 0.6rem 1.2rem;
  background: linear-gradient(135deg, #C62828, #ff4b4b);
  color: #fff;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.3s;
}

.course-card .apply-btn:hover {
  transform: translateY(-3px);
}

/* ===============================
   INSTRUCTOR PAGE
================================ */

.instructor-hero {
  padding: 6rem 2rem 4rem;
  background: linear-gradient(135deg, #8e1b1b, #c62828);
  color: #fff;
  text-align: center;
}

.instructor-hero h1 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
}

.instructor-hero p {
  font-size: 1.1rem;
  opacity: 0.9;
}

/* Application Section */
.instructor-apply {
  padding: 5rem 2rem;
  background: #f9f9f9;
}

.instructor-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 3rem;
}

/* Info Panel */
.instructor-info {
  background: #fff;
  padding: 2.5rem;
  border-radius: 18px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.08);
}

.instructor-info h2 {
  margin-bottom: 1.5rem;
  color: #c62828;
}

.instructor-info ul {
  list-style: none;
  padding: 0;
}

.instructor-info li {
  margin-bottom: 0.8rem;
  font-size: 0.95rem;
}

/* Form Card */
.instructor-form-card {
  background: #fff;
  padding: 2.8rem;
  border-radius: 22px;
  box-shadow: 0 20px 45px rgba(0,0,0,0.12);
}

.instructor-form-card h2 {
  margin-bottom: 1.8rem;
  color: #c62828;
}

/* Form */
.form-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-group {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.form-group.full-width {
  flex: 100%;
}

.form-group label {
  font-size: 0.85rem;
  margin-bottom: 0.4rem;
  font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.75rem 1rem;
  border-radius: 12px;
  border: 1px solid #ddd;
  font-family: 'Poppins', sans-serif;
  transition: border 0.3s, box-shadow 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #c62828;
  box-shadow: 0 0 0 3px rgba(198,40,40,0.15);
}

/* Submit Button */
.btn-submit {
  margin-top: 1.5rem;
  padding: 0.9rem;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #c62828, #ff4d4d);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
}

.btn-submit:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(198,40,40,0.5);
}

/* Responsive */
@media (max-width: 992px) {
  .instructor-grid {
    grid-template-columns: 1fr;
  }
}

.status.pending { color: orange; font-weight: bold; }
.status.approved { color: green; font-weight: bold; }
.status.rejected { color: red; font-weight: bold; }

.btn-success {
    background: #0f9d58;
    color: #fff;
    padding: 6px 10px;
    border-radius: 4px;
}

.btn-danger {
    background: #c62828;
    color: #fff;
    padding: 6px 10px;
    border-radius: 4px;
}

/* Courses Page Layout */
.courses-layout {
    display: flex;
    gap: 30px;
    margin-top: 50px;
}

/* Sidebar */
.courses-sidebar {
    width: 250px;
    background: #b30000; /* Red theme */
    color: #fff;
    padding: 20px;
    border-radius: 8px;
}

.courses-sidebar h2 {
    font-size: 20px;
    margin-bottom: 20px;
}

.courses-sidebar ul {
    list-style: none;
    padding: 0;
}

.courses-sidebar ul li {
    margin-bottom: 12px;
}

.courses-sidebar ul li a {
    color: #fff;
    text-decoration: none;
}

.courses-sidebar ul li a.active,
.courses-sidebar ul li a:hover {
    font-weight: bold;
    text-decoration: underline;
}

/* Courses Grid */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    flex: 1;
}

.course-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.course-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.course-card h3 {
    padding: 15px;
    font-size: 18px;
    color: #b30000; /* red title */
}

.course-card p {
    padding: 0 15px 15px;
    font-size: 14px;
    color: #555;
}

.course-card .apply-btn {
    display: block;
    text-align: center;
    background: #b30000;
    color: #fff;
    margin: 0 15px 15px;
    padding: 10px 0;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* =========================
   GLOBAL RESPONSIVE TUNING
========================= */
@media (max-width: 992px) {
    .nav-container {
        padding: 0.9rem 1.5rem;
    }

    .logo {
        font-size: 1.4rem;
    }

    .hero {
        height: auto;
        padding: 5rem 0 4rem;
    }

    .hero-content {
        margin-left: 0;
        text-align: center;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero h1 {
        font-size: 2.4rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .about-columns {
        gap: 2rem;
    }

    .about-left,
    .about-right {
        min-width: 0;
    }

    .about-divider {
        display: block;
        width: 100%;
        height: 3px;
        margin: 1rem 0;
        align-self: center;
    }

    .courses-container,
    .courses-layout {
        flex-direction: column;
    }

    .courses-sidebar {
        position: static;
        width: 100%;
        top: auto;
    }

    .instructor-grid {
        grid-template-columns: 1fr;
    }

    .footer-container {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 0.95rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .hero-actions .btn,
    .hero-actions .btn-primary,
    .hero-actions .btn-outline {
        width: 100%;
        max-width: 320px;
        text-align: center;
    }

    .featured-courses h2,
    .testimonials .section-title,
    .section-title {
        font-size: 1.8rem;
    }

    .section-subtitle {
        font-size: 0.9rem;
    }

    .courses-grid {
        grid-template-columns: 1fr;
    }

    .partners-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.2rem;
    }

    .testimonial-slider .prev,
    .testimonial-slider .next {
        display: none;
    }
}

@media (max-width: 600px) {
    .nav-container {
        padding: 0.85rem 1rem;
    }

    nav {
        margin: 0 0.5rem;
    }

    .btn,
    .btn-primary,
    .btn-outline {
        padding: 0.7rem 1.4rem;
        font-size: 0.95rem;
    }

    .about {
        padding: 4rem 1.2rem;
    }

    .featured-courses,
    .testimonials,
    .faq,
    .partners {
        padding: 4rem 1.2rem;
    }

    .course-card p {
        font-size: 0.85rem;
    }

    .chat-box {
        width: 280px;
        height: 380px;
    }

    #back-to-top {
        right: 16px;
        bottom: 90px;
    }

    #live-chat {
        right: 16px;
        bottom: 16px;
    }

    .footer {
        padding: 4rem 1.6rem 2.5rem;
    }

    .footer-bottom {
        padding-left: 0.6rem;
        padding-right: 0.6rem;
    }

    .footer-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 380px) {
    .logo {
        font-size: 1.2rem;
    }

    .hero h1 {
        font-size: 1.7rem;
    }

    .hero p {
        font-size: 0.9rem;
    }

    .course-card {
        border-radius: 14px;
    }

    .course-image img {
        height: 140px;
    }

    .course-card h3 {
        font-size: 1rem;
    }

    .course-card p {
        font-size: 0.8rem;
    }

    .apply-btn {
        width: 100%;
        max-width: 260px;
    }

    .testimonial-slide {
        padding: 1.1rem 1rem;
    }

    .testimonial-text {
        font-size: 0.95rem;
    }

    .testimonial-author img {
        width: 52px;
        height: 52px;
    }

    .dot {
        height: 10px;
        width: 10px;
        margin: 0 4px;
    }
}

