/* ---------------------------------------------------------
   GLOBAL COURSE PAGE STYLES
------------------------------------------------------------ */

.course-section {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.section-title {
    font-size: 36px;
    font-weight: 800;
    color: #003366;
    text-align: center;
}

.section-subtitle {
    text-align: center;
    max-width: 700px;
    margin: 10px auto 40px;
    font-size: 16px;
    color: #555;
}

/* ---------------------------------------------------------
   HERO SECTION
------------------------------------------------------------ */

.course-hero {
    position: relative;
    padding: 120px 0 100px;
    overflow: hidden;
    background: #f7fbff;
}

/* 🔹 Background image behind the gradient for ALL course pages */
.course-hero::before {
    content: "none";
}

.course-hero-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(
            120deg,
            rgba(209, 235, 255, 0.75) 0%,
            rgba(245, 250, 255, 0.70) 70%
        ),
        url('../images/web-img4.png');   /* change name if needed */

    background-size: cover, cover;
    background-position: center, center;
    background-repeat: no-repeat, no-repeat;

    background-blend-mode: normal; /* gives that tinted look */
    z-index: 1;
}

/* Floating glowing shapes */
.course-hero-glow {
    position: absolute;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.5;
    animation: floatGlow 6s ease-in-out infinite alternate;
    z-index: 2;
}

.course-hero-glow-yellow {
    background: #ffeb3b;
    top: -80px;
    left: -60px;
}

.course-hero-glow-blue {
    background: #2196f3;
    bottom: -80px;
    right: -60px;
}

@keyframes floatGlow {
    0% { transform: translateY(0); opacity: 0.4; }
    100% { transform: translateY(-30px); opacity: 0.6; }
}

.course-hero-inner {
    position: relative;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

/* Left side */
.course-hero-left h1 {
    font-size: 42px;
    font-weight: 800;
    color: #002a4f;
}

.course-hero-subtitle {
    font-size: 18px;
    color: #444;
    max-width: 600px;
}

.course-badge {
    display: inline-block;
    background: #003366;
    color: #fff;
    padding: 8px 18px;
    font-size: 14px;
    border-radius: 30px;
    margin-bottom: 12px;
}

/* Buttons */
.btn-primary-course {
    background: #004aad;
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    transition: 0.3s;
}

.btn-primary-course:hover {
    background: #003f91;
}

.btn-outline-course {
    border: 2px solid #004aad;
    color: #004aad;
    padding: 12px 22px;
    border-radius: 8px;
    font-weight: 600;
    margin-left: 12px;
    transition: 0.3s;
}

.btn-outline-course:hover {
    background: #004aad;
    color: #fff;
}

/* Metrics */
.course-hero-metrics {
    display: flex;
    gap: 25px;
    margin-top: 30px;
}

.metric-number {
    font-size: 26px;
    font-weight: 700;
    color: #002a4f;
}

.metric-label {
    font-size: 12px;
    color: #666;
}

/* Right card */
.course-hero-card {
    background: #fff;
    padding: 24px;
    border-radius: 14px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.05);
    max-width: 360px;
}

.course-hero-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: #003366;
}

.course-hero-card ul {
    padding-left: 18px;
}

.course-hero-card li {
    margin-bottom: 6px;
}

/* ---------------------------------------------------------
   SCROLL ANIMATION ELEMENTS
------------------------------------------------------------ */

.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: 0.7s ease-out;
}

.animate-on-scroll.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* ---------------------------------------------------------
   ROADMAP CARDS
------------------------------------------------------------ */

/* ROADMAP SECTION BACKGROUND */
.course-roadmap {
    background: linear-gradient(135deg, #eaf3ff 0%, #d4e7ff 50%, #b8d4ff 100%);
    padding: 80px 0;
}


.roadmap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.curriculum-card {
    background: #ffffff;
    padding: 24px;
    border-radius: 12px;
    border-left: 6px solid #004aad;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.curriculum-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: #003366;
}

.curriculum-card span {
    font-weight: 400;
    font-size: 14px;
    color: #777;
}

.curriculum-card ul {
    padding-left: 20px;
}

/* ---------------------------------------------------------
   TECH STACK
------------------------------------------------------------ */

.stack-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
}

.stack-card {
    background: linear-gradient(135deg, rgba(255, 221, 87, 0.25) 0%, rgba(0, 102, 204, 0.25) 100%);
    backdrop-filter: blur(6px);
    border-radius: 16px;
    padding: 24px;
    border: 1px solid rgba(0, 102, 204, 0.35);
    box-shadow: 0 12px 32px rgba(0, 0, 50, 0.12);
    transition: 0.3s ease-in-out;
}

/* Hover effect */
.stack-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 0, 50, 0.25);
    background: linear-gradient(135deg, rgba(255, 221, 87, 0.35) 0%, rgba(0, 102, 204, 0.35) 100%);
    border-color: rgba(255, 221, 87, 0.8);
}


/* ---------------------------------------------------------
   CAREER SECTION
------------------------------------------------------------ */

.career-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.career-card {
    background: #ffffff;
    padding: 24px;
    border-radius: 12px;
    border-left: 5px solid #ff9800;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

/* ---------------------------------------------------------
   DETAILS SECTION (duration, prereq, placement)
------------------------------------------------------------ */

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
}

.details-card {
    background: #ffffff;
    padding: 24px;
    border-radius: 12px;
    border: 1px solid #eef3ff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.04);
}

.details-highlight {
    border-left: 6px solid #27b100;
}

.details-actions {
    margin-top: 15px;
}

/* ---------------------------------------------------------
   RESPONSIVE
------------------------------------------------------------ */

@media (max-width: 992px) {
    .course-hero-inner {
        flex-direction: column;
        text-align: center;
    }

    .btn-outline-course {
        margin-left: 0;
        margin-top: 12px;
    }

    .course-hero-metrics {
        justify-content: center;
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    .course-hero-left h1 {
        font-size: 32px;
    }

    .section-title {
        font-size: 30px;
    }
}

/* ---------------------------------------------------------
   COURSE DETAILS STRIP (DARK BAND WITH CARDS)
------------------------------------------------------------ */

.course-details-section {
    background: radial-gradient(circle at top left, #10224d 0%, #020b23 60%, #020617 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

/* subtle glow behind cards */
.course-details-section::before,
.course-details-section::after {
    content: "";
    position: absolute;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    filter: blur(130px);
    opacity: 0.45;
    z-index: 1;
}

.course-details-section::before {
    background: #1d4ed8;
    top: -80px;
    left: -40px;
}

.course-details-section::after {
    background: #facc15;
    bottom: -80px;
    right: -40px;
}

/* center header in dark section */
.course-details-section .section-title {
    color: #e5f0ff;
}

.course-details-section .section-subtitle {
    color: #cbd5f5;
}

/* reuse but tweak grid */
.details-grid {
    position: relative;
    z-index: 5;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-top: 20px;
}

.details-card {
    background: #ffffff;
    padding: 24px 22px 26px;
    border-radius: 16px;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.25);
    border: 1px solid #e3edff;
    position: relative;
    overflow: hidden;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.details-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: #003366;
    margin-bottom: 12px;
}

.details-card ul {
    padding-left: 20px;
    margin-bottom: 0;
    color: #1f2933;
    font-size: 14px;
}

/* icon badge */
.details-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: #e5edff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #003366;
    margin-bottom: 10px;
    font-size: 18px;
}

.details-icon-blue {
    background: #e0f2fe;
    color: #0369a1;
}

.details-icon-yellow {
    background: #fef3c7;
    color: #b45309;
}

/* pill icon for placement */
.details-icon-pill {
    border-radius: 999px;
}

/* hover effect */
.details-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.32);
    border-color: #2563eb;
}

/* highlight last card */
.details-highlight {
    border-left: 6px solid #22c55e;
}

.details-placement {
    background: linear-gradient(145deg, #ffffff, #f1f8ff);
}

/* CTA buttons area */
/* CTA buttons area */
.details-actions {
    margin-top: 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: center; /* centers buttons */
}

/* Same width for both buttons */
.details-actions a {
    display: inline-block;
    width: 260px;          /* <—— SET SAME WIDTH */
    text-align: center;
    padding: 14px 0;
    border-radius: 10px;
    font-weight: 600;
    font-size: 16px;
}


.details-outline-light {
    border-color: #2563eb;
    color: #2563eb;
}

.details-outline-light:hover {
    background: #2563eb;
    color: #ffffff;
}

/* scroll animation base (already used elsewhere) */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
}

.animate-on-scroll.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* responsive tweaks */
@media (max-width: 768px) {
    .course-details-section {
        padding: 60px 0;
    }

    .details-card {
        padding: 20px 18px 22px;
    }
}

/* ---------------------------------------------------------
   COURSES HOME PAGE (courses.blade)
------------------------------------------------------------ */

/* ========== BASE ========== */
.courses-home-section {
    padding: 4.5rem 0;
    position: relative;
    overflow: hidden;
}

.courses-home-section h2 {
    margin-bottom: 0.75rem;
}

.courses-home-section p {
    margin-bottom: 0.75rem;
}

.courses-home-container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 1rem;
}

.courses-home-text-muted {
    color: #4b5563;
}

/* Scroll animation for course home */
.ch-animate-init {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.ch-animate-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========== HERO ========== */
.courses-home-hero {
    position: relative;
    padding: 3.5rem 0 4.5rem;
    color: #0b1120;
}

/* Background image behind gradients */
.courses-home-hero::before {
    content: "";
    position: absolute;
    inset: 0;

    /* path from public/ (put your image in public/images/) */
    background-image: url('../images/web-img4.png'); /* change file name if needed */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    opacity: 0.80;          /* how visible the image is */
    mix-blend-mode: normal; /* blends nicely with gradients */
    z-index: 0;             /* sits at very back */
}

.courses-home-hero-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top left, #facc15 0, transparent 55%),
        radial-gradient(circle at bottom right, #0ea5e9 0, transparent 55%),
        linear-gradient(135deg, #eff6ff, #e0f2fe);
    opacity: 0.45;
    z-index: 1; /* above image */
}

.courses-home-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #0f172a, #1d4ed8);
    mix-blend-mode: multiply;
    z-index: 2; /* above gradient bg */
}

.courses-home-hero-inner {
    position: relative;
    z-index: 5;
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    gap: 2.5rem;
    align-items: center;
}

.courses-home-badge {
    display: inline-block;
    padding: 0.3rem 1.1rem;
    border-radius: 999px;
    background: rgba(248, 250, 252, 0.15);
    border: 1px solid rgba(191, 219, 254, 0.9);
    color: #e5f2ff;
    font-size: 0.85rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 0.9rem;
}

.courses-home-hero h1 {
    font-size: 2.4rem;
    color: #e5f2ff;
    margin-bottom: 0.75rem;
}

.courses-home-hero-subtitle {
    color: #c7ddff;
    font-size: 1rem;
    max-width: 540px;
}

.courses-home-hero-buttons {
    margin-top: 1.3rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.btn-course-primary,
.btn-course-outline {
    display: inline-block;
    padding: 0.85rem 1.7rem;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.25s ease;
}

.btn-course-primary {
    background: linear-gradient(135deg, #facc15, #f97316);
    color: #0b1120;
    border: none;
}

.btn-course-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 16px 40px rgba(250, 204, 21, 0.45);
}

.btn-course-outline {
    background: transparent;
    color: #e5f2ff;
    border: 1.6px solid rgba(226, 232, 240, 0.8);
}

.btn-course-outline:hover {
    background: rgba(15, 23, 42, 0.45);
    transform: translateY(-2px);
}

/* Hero metrics */
.courses-home-hero-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.75rem;
}

.courses-home-metric {
    min-width: 130px;
    padding: 0.75rem 1rem;
    border-radius: 0.9rem;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(191, 219, 254, 0.55);
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.85);
}

.courses-home-metric-number {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: #facc15;
}

.courses-home-metric-label {
    font-size: 0.78rem;
    color: #e5e7eb;
}

/* Hero card right */
.courses-home-hero-right {
    display: flex;
    justify-content: flex-end;
}

.courses-home-hero-card {
    background: rgba(15, 23, 42, 0.7);
    border-radius: 1rem;
    padding: 1.7rem 1.5rem;
    max-width: 360px;
    border: 1px solid rgba(191, 219, 254, 0.75);
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.9);
    color: #e5f2ff;
}

.courses-home-hero-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    color: #f9fafb;
}

.courses-home-hero-card p {
    font-size: 0.94rem;
    color: #dbeafe;
}

.courses-home-hero-card ul {
    padding-left: 1.1rem;
    margin: 0.6rem 0 0;
    font-size: 0.9rem;
    color: #e5e7eb;
}

/* ========== WHY CHOOSE SECTION ========== */
.courses-home-why {
    background: linear-gradient(135deg, #f9fafb, #eff6ff);
}

.ch-section-header-center {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 2.4rem;
}

.ch-section-header-center h2 {
    font-size: 1.9rem;
    color: #0f172a;
}

.ch-section-header-center p {
    color: #1d4ed8;
    font-size: 1rem;
}

.courses-home-why-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.courses-home-why-card {
    background: #ffffff;
    border-radius: 1rem;
    padding: 1.5rem 1.4rem;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
    border-top: 3px solid #0ea5e9;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.courses-home-why-card:nth-child(2) {
    border-top-color: #facc15;
}

.courses-home-why-card:nth-child(3) {
    border-top-color: #22c55e;
}

.courses-home-why-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.45rem;
    color: #0f172a;
}

.courses-home-why-card p {
    font-size: 0.93rem;
    color: #475569;
}

.courses-home-why-card ul {
    padding-left: 1.1rem;
    font-size: 0.9rem;
    margin-bottom: 0;
    color: #4b5563;
}

.courses-home-why-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.13);
}

/* ========== TRACKS GRID ========== */
.courses-home-tracks {
    background: #ffffff;
}

.courses-home-tracks-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.3rem;
}

.courses-home-track-card {
    background: linear-gradient(135deg,
            rgba(0, 40, 90, 0.15) 0%,
            rgba(0, 60, 130, 0.15) 70%);
    border: 1px solid rgba(0, 90, 180, 0.3);
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 12px 32px rgba(0, 0, 50, 0.15);
    backdrop-filter: blur(4px);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.courses-home-track-card h3 {
    font-size: 1.05rem;
    margin-bottom: 0.35rem;
    color: #0f172a;
}

.courses-home-track-tag {
    display: inline-block;
    font-size: 0.78rem;
    padding: 0.18rem 0.65rem;
    border-radius: 999px;
    background: #e0f2fe;
    color: #075985;
    margin-bottom: 0.6rem;
}

.courses-home-track-card p {
    font-size: 0.9rem;
    color: #4b5563;
    margin-bottom: 0.4rem;
}

.courses-home-track-card ul {
    padding-left: 1.1rem;
    font-size: 0.87rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.courses-home-track-meta {
    font-size: 0.83rem;
    color: #0f172a;
    font-weight: 600;
}

.courses-home-track-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.13);
    border-color: #bfdbfe;
}

/* ========== “HELP ME CHOOSE” / COMPARISON ========== */
.courses-home-compare {
    background: linear-gradient(135deg, #e7f2a3, #d3f2fb);
}

.courses-home-compare-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
}

.courses-home-compare-card {
    background: #ffffff;
    border-radius: 1rem;
    padding: 1.6rem 1.5rem;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
    border: 1px solid #e5e7eb;
}

.courses-home-compare-card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.6rem;
    color: #0f172a;
}

.courses-home-compare-card ul {
    padding-left: 1.15rem;
    font-size: 0.93rem;
    color: #4b5563;
    margin-bottom: 0;
}

.courses-home-compare-note {
    font-size: 0.9rem;
    color: #1f2937;
    margin-top: 0.5rem;
}

/* ========== CTA SECTION ========== */
.courses-home-cta {
    background: radial-gradient(circle at top left, #1e3a8a, #020617);
    color: #e5e7eb;
}

.courses-home-cta-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 2rem;
    align-items: center;
}

.courses-home-cta h2 {
    font-size: 1.8rem;
    margin-bottom: 0.75rem;
    color: #ffffff;
}

.courses-home-cta p {
    margin-bottom: 0.6rem;
}

.courses-home-cta ul {
    padding-left: 1.15rem;
    margin-bottom: 0.9rem;
    font-size: 0.95rem;
}

.courses-home-cta-box {
    background: rgba(15, 23, 42, 0.8);
    border-radius: 1rem;
    padding: 1.6rem 1.5rem;
    border: 1px solid rgba(148, 163, 184, 0.7);
    box-shadow: 0 22px 55px rgba(15, 23, 42, 0.9);
}

.courses-home-cta-highlight {
    font-size: 0.95rem;
    margin-bottom: 0.9rem;
    color: #e5f2ff;
}

.courses-home-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 0.6rem;
}

.courses-home-cta-contact {
    font-size: 0.9rem;
    color: #cbd5f5;
}

/* ========== RESPONSIVE (COURSES HOME) ========== */
@media (max-width: 991px) {
    .courses-home-hero-inner {
        grid-template-columns: minmax(0, 1fr);
    }

    .courses-home-hero-right {
        justify-content: flex-start;
        margin-top: 1rem;
    }

    .courses-home-why-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .courses-home-tracks-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .courses-home-compare-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .courses-home-cta-inner {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 767px) {
    .courses-home-hero h1 {
        font-size: 2rem;
    }

    .courses-home-section {
        padding: 3.4rem 0;
    }

    .courses-home-why-grid,
    .courses-home-tracks-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .courses-home-hero-buttons {
        flex-direction: column;
    }

    .courses-home-hero-buttons a {
        width: 100%;
        text-align: center;
    }

    .courses-home-cta-actions {
        flex-direction: column;
    }

    .courses-home-cta-actions a {
        width: 100%;
        text-align: center;
    }
}
