﻿/* New Course Syllabus - Synchronized to Screenshot */

:root {
    /* Updated Color Palette */
    --bg-main: #ffffff; /* Page background is actually white in the image */
    --card-bg: #171f32; /* Deep dark slate/navy for the module cards */
    --topbar-bg: #050a1f; /* Deepest blue for the top bar */
    --navbar-bg: #ffffff; /* White navbar */
    --magenta: #e80054; /* Pink/Magenta */
    --magenta-hover: #c40046;
    --cyan: #00b4d8; /* Cyan accent */
    --white: #ffffff;
    /* Text Colors */
    --text-dark: #333333; /* Default text for the white background */
    --text-light: #ffffff; /* White text for inside the dark cards */
    --text-muted: #94a3b8; /* Grayed out text for list items */
    --navy-text: #0b1035; /* Dark text for headings outside cards */
    /* Structural Elements */
    --timeline-line: #cbd5e1; /* Light gray for the timeline line on a white bg */
    /* Change this specific variable for the card backgrounds */
    --card-bg: #131c31;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: var(--bg-main);
    color: var(--text-dark); /* Updated for white background */
    overflow-x: hidden;
}

/* --- Navigation & Header --- */
.top-bar {
    background-color: var(--topbar-bg);
    color: var(--white);
    padding: 8px 5%;
    display: flex;
    justify-content: space-between;
    font-size: 12px;
}

.navbar {
    background-color: var(--navbar-bg);
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo-container {
    display: flex;
    align-items: center;
    font-weight: 800;
    font-size: 26px;
    letter-spacing: -0.5px;
}

.logo-ai {
    color: var(--magenta);
    margin-right: 5px;
    font-size: 32px;
}

.logo-text {
    color: var(--navy-text);
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.logo-sub {
    font-size: 10px;
    color: var(--text-muted);
    letter-spacing: 1.5px;
}

.nav-links {
    display: flex;
    gap: 25px;
    list-style: none;
    font-size: 14px;
    font-weight: 600;
    color: var(--navy-text);
}

.nav-actions {
    display: flex;
    gap: 15px;
}

.btn {
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    border: none;
    transition: all 0.3s ease;
}

.btn-magenta {
    background-color: var(--magenta);
    color: var(--white);
}

    .btn-magenta:hover {
        background-color: var(--magenta-hover);
        transform: translateY(-2px);
    }

.btn-navy {
    background-color: var(--topbar-bg); /* Matched to dark navy */
    color: var(--white);
}

    .btn-navy:hover {
        background-color: #16205c;
        transform: translateY(-2px);
    }

/* --- Hero / Main Section --- */
.hero {
    position: relative;
    background: var(--bg-main);
    padding: 100px 5%;
    overflow: hidden;
    display: flex;
    align-items: center;
    min-height: 60vh;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--navy-text); /* Fixed for white background */
    max-width: 800px;
}

    .hero-content h4 {
        color: var(--cyan);
        text-transform: uppercase;
        letter-spacing: 3px;
        margin-bottom: 15px;
        font-weight: 600;
    }

    .hero-content h1 {
        font-size: 3.5rem;
        line-height: 1.2;
        margin-bottom: 20px;
    }

/* --- Graphic Design Visual Layout --- */
.curriculum-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 80px 5%;
}

.course-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 120px;
    gap: 50px;
    transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

    .course-row.in-view {
        opacity: 1;
        transform: translateY(0);
    }

    .course-row:nth-child(even) {
        flex-direction: row-reverse;
    }

/* Image Showcase Side */
.visual-side {
    flex: 1;
    position: relative;
    max-width: 500px;
}

    .visual-side img {
        width: 100%;
        height: auto;
        border-radius: 12px;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15); /* Softened shadow for white bg */
        position: relative;
        z-index: 2;
        animation: floatImage 6s ease-in-out infinite;
    }

.course-row:nth-child(even) .visual-side img {
    animation-delay: -3s;
}

@keyframes floatImage {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

.visual-bg {
    position: absolute;
    /* Adjusted offset to bottom-left to match screenshot */
    top: 15px;
    left: -15px;
    width: 100%;
    height: 100%;
    border: 3px solid var(--cyan);
    border-radius: 12px;
    z-index: 1;
    transition: all 0.3s ease;
}

.course-row:nth-child(even) .visual-bg {
    left: auto;
    right: -15px;
    border-color: var(--magenta);
}

/* Content Timeline Side */
.content-side {
    flex: 1.5;
    position: relative;
}

.course-badge {
    display: inline-block;
    background: var(--topbar-bg);
    color: var(--white);
    padding: 6px 15px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 15px;
    position: relative;
    z-index: 2;
}

.course-row:nth-child(even) .course-badge {
    background: var(--magenta);
}

.course-title {
    font-size: 2.2rem;
    color: var(--navy-text); /* Fixed for white background */
    margin-bottom: 30px;
    position: relative;
    z-index: 2;
    line-height: 1.3;
}

/* Timeline Style Modules */
.module-timeline {
    position: relative;
    padding-left: 30px;
    border-left: 2px dashed var(--timeline-line); /* Darker dashed line for white bg */
    z-index: 2;
}

.module-item {
    position: relative;
    margin-bottom: 30px;
    background: var(--card-bg); /* This pulls exactly what you set in :root */
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 4px solid transparent;
}

    /* Add the magenta stripe on the first card exactly like the image */
    .module-item:first-child,
    .module-item:hover {
        border-left: 4px solid var(--magenta);
    }

    .module-item:hover {
        transform: translateX(10px);
        box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    }

    .module-item::before {
        content: '';
        position: absolute;
        left: -38px; /* Adjusted to align perfectly with timeline border */
        top: 25px;
        width: 12px;
        height: 12px;
        border-radius: 50%;
        background: var(--cyan);
        border: 3px solid var(--bg-main); /* Creates a cutout effect against the white bg */
    }

    .module-item h3 {
        color: var(--text-light); /* White text inside dark card */
        font-size: 18px;
        margin-bottom: 15px;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .module-item ul {
        list-style: none;
    }

        .module-item ul li {
            font-size: 14px;
            color: var(--text-muted); /* Gray text inside dark card */
            margin-bottom: 10px;
            padding-left: 20px;
            position: relative;
            line-height: 1.6;
        }

            .module-item ul li::before {
                content: '▹';
                position: absolute;
                left: 0;
                top: 0;
                color: var(--magenta);
                font-weight: bold;
                font-size: 16px;
            }

/* Responsive */
@media (max-width: 1024px) {
    .course-row, .course-row:nth-child(even) {
        flex-direction: column;
    }

    .visual-side {
        max-width: 100%;
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .course-title {
        font-size: 1.8rem;
    }

    .nav-links, .top-bar {
        display: none;
    }
}




/* Heading css for Stream */

/* Update your existing .hero class */
.hero {
    position: relative;
    background: var(--bg-main);
    padding: 100px 5%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center; /* <--- This centers the inner content horizontally */
    min-height: 60vh;
    text-align: center; /* <--- Forces all text inside to center align */
}

/* Add these rules for the content wrapper and paragraph */
.hero-content {
    max-width: 900px; /* Constrains the width so it doesn't stretch edge-to-edge */
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center; /* Centers the h4, h1, and p vertically within the wrapper */
}

    .hero-content h4 {
        margin-bottom: 15px; /* Adjust spacing as needed */
    }

    .hero-content h1 {
        margin-bottom: 20px;
        line-height: 1.2;
    }

    .hero-content p {
        max-width: 750px; /* Keeps the paragraph from getting too wide, making it easier to read */
        margin: 0 auto;
        line-height: 1.6;
    }