* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;

}

body {
    background: #f5f6f8;
    color: #333;
    overflow-x: hidden;
}

/* ================= NAVBAR ================= */
.navbar {
    background: white;
    padding: 15px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo {
    width: 35px;
}

.brand {
    font-weight: bold;
    font-size: 18px;
    color: #5a67d8;
}

/* ================= HERO ================= */
.hero {
    background: url("assets/intermediate_dashboard.jpeg") center/cover no-repeat;
    height: 220px;
    display: flex;
    align-items: center;
    padding: 40px;
    color: black;
}

.hero-content h1 {
    font-size: 28px;
    margin-bottom: 10px;
}

/* ================= COURSE INFO ================= */
.course-info {
    display: flex;
    gap: 20px;
    padding: 20px 0;
    flex-wrap: wrap;
}

.info-card {
    background: white;
    flex: 1;
    min-width: 120px;
    padding: 20px;
    border-radius: 8px;
}

/* ================= MAIN CONTENT ================= */
.main-content {
    display: flex;
    gap: 30px;
    padding: 20px 40px 40px;
}

.left-section {
    flex: 2;
}

.right-section {
    flex: 1;
}

/* Syllabus */

.syllabus-section {
    position: relative;
    margin-top: 20px;
}

.syllabus-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 30px;
}

/* Timeline vertical line */
.timeline {
    position: relative;
    padding-left: 60px;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 28px;
    top: 0;
    width: 2px;
    height: 100%;
    background: #dcdcdc;
}

/* Each item */
.timeline-item {
    position: relative;
    margin-bottom: 35px;
}

/* Left circle icons */
.timeline-icon {
    position: absolute;
    left: -45px;
    top: 5px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f1f3f6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    border: 2px solid #e0e0e0;
}

.timeline-icon.done {
    background: #3b82f6;
    color: white;
    border: none;
}

/* Card */
.timeline-content {
    background: #f9fafc;
    padding: 20px 25px;
    border-radius: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
    transition: 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-2px);
}

/* Module text */
.module-title {
    font-size: 16px;
    font-weight: 600;
    color: #222;
}

/* Week text */
.week {
    font-size: 14px;
    font-weight: 600;
    color: #3b82f6;
}

/* ================= INSTRUCTORS ================= */

.instructors-card {
    background: #f3f4f6;
    padding: 40px;
    border-radius: 18px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.04);
}

.section-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 30px;
    color: #111827;
}

.instructor {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 28px;
}

.instructor:last-child {
    margin-bottom: 0;
}

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

.instructor-info h4 {
    font-size: 17px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 6px;
}

.instructor-info p {
    font-size: 15px;
    color: #4b5563;
    font-weight: 400;
}

@media (max-width: 600px) {
    .instructor {
        gap: 15px;
    }

    .instructor img {
        width: 45px;
        height: 45px;
    }
}

/* ================= BATCHES ================= */

.batches-card {
    background: #f3f4f6;
    padding: 35px;
    border-radius: 18px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.04);
}

.batch-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.batch-header h2 {
    font-size: 22px;
    font-weight: 600;
    color: #111827;
}


.batch-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
}

.batch-item h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.batch-item p {
    font-size: 14px;
    color: #6b7280;
}

.divider {
    height: 1px;
    background: #e5e7eb;
    margin: 10px 0;
}

/* Status pills */
.status {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

.status.available {
    background: #d1fae5;
    color: #065f46;
}

.status.filling {
    background: #fee2e2;
    color: #b45309;
}

@media (max-width: 992px) {
    .batch-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* ================= FOOTER ================= */
.footer {
    text-align: center;
    padding: 20px;
    background: white;
    font-size: 14px;
}

/* ================= RESPONSIVE ================= */

/* ================= PAGE WRAPPER ================= */

.page-wrapper {
    width: 100%;
    max-width: 1400px;
    /* Controls desktop width */
    margin: 0 auto;
    /* This centers everything */
    padding: 40px 40px 60px;
}

/* Desktop layout — all sections stacked vertically */
.desktop-layout {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Inner column: syllabus + instructors + batches stacked */
.inner-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
    width: 100%;
    min-width: 0;
}

/* Make sure cards fill their grid */
.desktop-layout>div {
    width: 100%;
    min-width: 0;
}

/* ================= IMPROVED RESPONSIVENESS ================= */

/* Large Tablets */
/* @media (max-width: 1200px) {

    .desktop-layout {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .right-section {
        grid-column: span 2;
    }
} */


/* Tablets */
@media (max-width: 992px) {

    .page-wrapper {
        padding: 30px 25px 50px;
    }

    .inner-content {
        gap: 20px;
    }

    .instructors-card,
    .batches-card {
        margin-top: 0;
    }
}

@media (max-width: 600px) {

    .page-wrapper {
        padding: 20px 15px 40px;
    }

    .navbar {
        padding: 15px 20px;
    }

    .hero {
        height: auto;
        min-height: 160px;
        padding: 20px;
    }

    .hero-content h1 {
        font-size: 20px;
    }

    .course-info {
        gap: 12px;
    }

    .timeline {
        padding-left: 45px;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-icon {
        left: -35px;
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    .timeline-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 18px;
    }

    .module-title {
        font-size: 15px;
    }

    .week {
        font-size: 13px;
    }

    .instructors-card,
    .batches-card {
        padding: 25px;
    }

    .footer {
        font-size: 12px;
        padding: 15px;
    }
}

/* ============================================================
   DARK MODE
   ============================================================ */
html.dark body {
    background: #0f172a;
    color: #e2e8f0;
}

html.dark .navbar {
    background: #0b1220;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

html.dark .brand {
    color: #a78bfa;
}

html.dark .info-card {
    background: #1e293b;
    color: #e2e8f0;
}

html.dark .info-card h4 {
    color: #94a3b8;
}

html.dark .info-card p {
    color: #ffffff;
}

html.dark .timeline::before {
    background: #334155;
}

html.dark .timeline-icon {
    background: #1e293b;
    border-color: #334155;
    color: #94a3b8;
}

html.dark .timeline-icon.done {
    background: #3b82f6;
    border-color: transparent;
    color: #ffffff;
}

html.dark .timeline-content {
    background: #1e293b;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

html.dark .module-title {
    color: #e2e8f0;
}

html.dark .instructors-card {
    background: #1e293b;
}

html.dark .section-title {
    color: #ffffff;
}

html.dark .instructor-info h4 {
    color: #f1f5f9;
}

html.dark .instructor-info p {
    color: #94a3b8;
}

html.dark .batches-card {
    background: #1e293b;
}

html.dark .batch-header h2 {
    color: #ffffff;
}

html.dark .batch-item h4 {
    color: #f1f5f9;
}

html.dark .batch-item p {
    color: #94a3b8;
}

html.dark .divider {
    background: #334155;
}

html.dark .status.available {
    background: #064e3b;
    color: #6ee7b7;
}

html.dark .status.filling {
    background: #450a0a;
    color: #fca5a5;
}

html.dark .footer {
    background: #0b1220;
    color: #64748b;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

html.dark .hero-content h1 {
    color: #ffffff;
}

html.dark .hero-content p {
    color: #e2e8f0;
}

html.dark .page-wrapper {
    background: #0f172a;
}

html.dark .desktop-layout {
    background: #0f172a;
}
.apply-btn-wrapper {
    text-align: center;
    margin-top: 10px;
    margin-bottom: 40px;
}

.apply-btn {
    background: transparent;
    color: var(--btn-text-color);
    border: 2px solid #4da6ff;
    padding: 14px 40px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 30px;
    cursor: pointer;
    backdrop-filter: blur(8px);
    box-shadow: 0 0 15px rgba(77, 166, 255, 0.4);
    animation: pulseZoom 1.5s infinite;
    transition: all 0.3s ease;
}

.apply-btn:hover {
    background: rgba(77, 166, 255, 0.15);
    transform: scale(1.08);
}

@keyframes pulseZoom {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.08);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}