/* ===============================
   GLOBAL RESET
================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
    /* prevents right side space */
    background: #f9fafc;
    color: #222;
}

/* NAVBAR */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 60px;
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.logo {
    display: flex;
    align-items: center;
    font-size: 18px;
    font-weight: 600;
}

.logo-link {
    text-decoration: none;
    color: inherit;
}

.logo-img {
    width: 32px;
    height: 32px;
    margin-right: 8px;
    object-fit: contain;
}

/* ===============================
   HERO SECTION
================================= */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 60px 8%;
    gap: 40px;
}

/* LEFT CONTENT */
.hero-left {
    flex: 1;
}

.badge {
    display: inline-block;
    background: #e6f0ff;
    color: #1a73e8;
    font-size: 14px;
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 18px;
    font-weight: 500;
}

.hero-left h1 {
    font-size: 42px;
    line-height: 1.3;
    margin-bottom: 20px;
    word-wrap: break-word;
}

.hero-left p {
    font-size: 17px;
    color: #555;
    margin-bottom: 30px;
    max-width: 500px;
}

/* BUTTONS */
.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.primary-btn {
    background: #1a73e8;
    color: white;
    padding: 12px 22px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    transition: 0.3s ease;
    display: inline-block;
    text-decoration: none;
}

.primary-btn:hover {
    background: #0f5fd6;
}

.secondary-btn {
    background: transparent;
    border: 2px solid #1a73e8;
    color: #1a73e8;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    transition: 0.3s ease;
}

.secondary-btn:hover {
    background: #1a73e8;
    color: white;
}

/* RIGHT IMAGE */
.hero-right {
    flex: 1;
    display: flex;
    justify-content: center;
}

.hero-right img {
    width: 100%;
    max-width: 420px;
    height: auto;
    border-radius: 12px;
    display: block;
}


/* ===============================
   RESPONSIVE
================================= */
@media (max-width: 992px) {
    .hero {
        padding: 40px 6%;
    }

    .hero-left h1 {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: left;
        padding: 30px 5%;
    }

    .hero-left,
    .hero-right {
        width: 100%;
    }

    .hero-left h1 {
        font-size: 30px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .primary-btn,
    .secondary-btn {
        width: 100%;
    }

    .hero-right {
        margin-top: 25px;
    }
}

@media (max-width: 480px) {
    .hero-left h1 {
        font-size: 26px;
    }

    .hero-left p {
        font-size: 15px;
    }
}

/* ================= COURSE STATS ================= */

.course-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 40px 60px;
    background: #f5f7fa;
}

.stat-card {
    background: white;
    padding: 25px 40px;
    border-radius: 12px;
    min-width: 220px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
    transition: 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
}

.stat-card h4 {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 8px;
}

.stat-card p {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
}

/* Responsive */
@media (max-width: 900px) {
    .course-stats {
        flex-direction: column;
        align-items: center;
    }

    .stat-card {
        width: 100%;
        max-width: 400px;
        text-align: center;
    }
}

/* ================= SYLLABUS TIMELINE ================= */

.syllabus {
    padding: 70px 60px;
    background: #f5f7fa;
}

.syllabus-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 40px;
    color: #111827;
}

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

/* Vertical line */
.timeline::before {
    content: "";
    position: absolute;
    left: 28px;
    top: 0;
    width: 2px;
    height: 100%;
    background: #d1d5db;
}

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

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

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

/* Card content */
.timeline-content {
    background: white;
    padding: 22px 30px;
    border-radius: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
    transition: 0.3s ease;
}

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

.module-title {
    font-size: 17px;
    font-weight: 600;
    color: #111827;
}

.week {
    font-size: 14px;
    font-weight: 600;
    color: #2563eb;
}

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

@media (max-width: 768px) {

    .syllabus {
        padding: 50px 25px;
    }

    .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 ================= */

.instructors {
    padding: 70px 60px;
    background: white;
}

.instructors h2 {
    font-size: 28px;
    margin-bottom: 40px;
}

.instructor-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.mentor {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #f3f4f6;
    padding: 20px;
    border-radius: 14px;
    transition: 0.3s ease;
}

.mentor:hover {
    transform: translateY(-4px);
}

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

.mentor h4 {
    font-size: 17px;
    margin-bottom: 5px;
}

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

/* Responsive */
@media (max-width: 768px) {

    .modules,
    .instructors {
        padding: 50px 25px;
    }

    .module-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

/* ================= SCHEDULE SECTION ================= */

.schedule {
    padding: 70px 60px;
    background: #f5f7fa;
}

.schedule h2 {
    font-size: 28px;
    margin-bottom: 40px;
}

/* Grid Layout */
.schedule-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

/* Individual Card */
.schedule-card {
    background: linear-gradient(135deg, #4338ca, #3730a3);
    color: white;
    padding: 25px;
    border-radius: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: 0.3s ease;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.schedule-card:hover {
    transform: translateY(-5px);
}

.schedule-info h4 {
    font-size: 18px;
    margin-bottom: 6px;
}

.schedule-info p {
    font-size: 14px;
    opacity: 0.9;
}

/* Button */
.schedule-card button {
    background: white;
    color: #3730a3;
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s ease;
}

.schedule-card button:hover {
    background: #e0e7ff;
}

/* Responsive */
@media (max-width: 768px) {
    .schedule {
        padding: 50px 25px;
    }

    .schedule-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .schedule-card button {
        width: 100%;
    }
}

footer {
    display: flex;
    text-align: center;
    justify-content: center;
    align-items: center;
}

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

html.dark .navbar {
    background: #0b1220;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

html.dark .navbar #themeToggle {
    color: #94a3b8;
}

html.dark .navbar #themeToggle:hover {
    color: #9f6bff;
}

html.dark .logo,
html.dark .logo-link {
    color: #ffffff;
}

html.dark .badge {
    background: rgba(159, 107, 255, 0.15);
    color: #c4b5fd;
    border: 1px solid rgba(159, 107, 255, 0.3);
}

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

html.dark .hero-left p {
    color: #94a3b8;
}

html.dark .course-stats {
    background: #020617;
}

html.dark .stat-card {
    background: #1e293b;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

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

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

html.dark .syllabus {
    background: #0f172a;
}

html.dark .syllabus-title {
    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 {
    background: #020617;
}

html.dark .instructors h2 {
    color: #ffffff;
}

html.dark .mentor {
    background: #1e293b;
    border: 1px solid #334155;
}

html.dark .mentor h4 {
    color: #f1f5f9;
}

html.dark .mentor p {
    color: #94a3b8;
}

html.dark .schedule {
    background: #0f172a;
}

html.dark .schedule h2 {
    color: #ffffff;
}

html.dark .secondary-btn {
    border-color: #9f6bff;
    color: #9f6bff;
}

html.dark .secondary-btn:hover {
    background: rgba(159, 107, 255, 0.12);
    color: #ffffff;
}

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