/* ===== GLOBAL STYLES ===== */
body {
    font-family: 'Poppins', Arial, sans-serif;
    line-height: 1.7;
    background: #f5f7fa;
    color: #333;
    margin: 0;
    padding: 0;
}

h1, h2, h3 {
    color: #0ea5e9;
}

p {
    color: #555;
    margin: 0 0 10px 0;
}

/* ===== COURSE HERO / DETAILS ===== */
.course-hero {
    padding: 20px;
}

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

.course-hero h1 i {
    margin-right: 10px;
    color: #0ea5e9;
}

.course-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 15px;
}

.course-meta-item {
    background: #eef6fc;
    padding: 10px 15px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    font-size: 14px;
}

.course-meta-item i {
    margin-right: 8px;
    color: #0ea5e9;
}

/* ===== SECTION CARD ===== */
.section {
    background: #ffffff;
    padding: 25px 30px;
    border-radius: 10px;
    margin: 25px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: 0.3s;
}

.section:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 25px rgba(0,0,0,0.1);
}

/* ===== EXAMPLE BOX ===== */
.example {
    background: #eef6fc;
    border-left: 5px solid #0ea5e9;
    padding: 12px 15px;
    border-radius: 6px;
    margin: 12px 0;
    display: flex;
    align-items: center;
    font-style: italic;
}

.example i {
    margin-right: 8px;
    color: #0ea5e9;
}

/* ===== LIST WITH ICONS ===== */
.ai-features li,
.ai-summary li {
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
}

.ai-features i,
.ai-summary i {
    margin-right: 10px;
    color: #0ea5e9;
    min-width: 20px;
}

/* ===== FLOWCHART ===== */
.flowchart {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 20px 0;
}

.flow-node {
    background: #eef6fc;
    border-left: 5px solid #0ea5e9;
    padding: 12px 20px;
    margin: 10px 0;
    border-radius: 6px;
    font-weight: 600;
    width: 80%;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.flow-node i {
    margin-right: 10px;
    color: #0ea5e9;
}

.flow-arrow i {
    color: #0ea5e9;
    font-size: 18px;
}

/* ===== SECTION 2: AI TYPES ===== */
.ai-types {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ai-type {
    background: #eef6fc;
    border-left: 5px solid #0ea5e9;
    padding: 20px;
    border-radius: 8px;
    transition: 0.3s;
}

.ai-type:hover {
    transform: translateY(-4px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.ai-type i.fa-2x {
    color: #0ea5e9;
}

/* ===== SECTION 3: DEFINITIONS ===== */
.ai-definition {
    margin-bottom: 20px;
}

.ai-definition i {
    margin-right: 8px;
    color: #0ea5e9;
}

/* ===== SECTION 4: USE CASES ===== */
.ai-usecase {
    margin-bottom: 20px;
}

.ai-usecase i {
    margin-right: 8px;
    color: #0ea5e9;
}

/* ===== QUIZ ===== */
.quiz-btn {
    padding: 12px 25px;
    margin: 10px 0;
    background-color: #0ea5e9;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    cursor: pointer;
    transition: 0.3s;
}

.quiz-btn i {
    margin-right: 6px;
}

.quiz-btn:hover {
    background-color: #0284c7;
}

.quiz-question {
    margin-bottom: 20px;
}

.quiz-question h3 {
    margin-bottom: 8px;
}

/* ===== SUMMARY ===== */
.ai-summary i {
    color: #22c55e;
}

/* ===== Headings ===== */
.section-title {
    font-size: 32px;
    font-weight: 700;
    color: #0ea5e9;
    margin-bottom: 10px;
}

.sub-title {
    font-size: 18px;
    color: #555;
    margin-bottom: 30px;
}

/* ===== Module Styling ===== */
.module {
    background-color: #fff;
    padding: 25px;
    margin-bottom: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.module:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.module h3 {
    background: #f0f8ff;
    padding: 10px 15px;
    border-left: 5px solid #0ea5e9;
    border-radius: 6px;
}

/* ===== Exercise Box ===== */
.exercise {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
    border: 1px solid #e0e0e0;
}

.exercise h4 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #0ea5e9;
}

textarea {
    width: 100%;
    height: 220px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #ccc;
    resize: vertical;
    background-color: #fdfdfd;
}

button {
    display: inline-block;
    margin-top: 10px;
    padding: 12px 25px;
    font-size: 15px;
    font-weight: 600;
    background-color: #0ea5e9;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

button:hover {
    background-color: #0284c7;
    transform: translateY(-2px);
}

/* ===== iFrame Styling ===== */
iframe {
    width: 100%;
    height: 350px;
    border: 1px solid #ccc;
    margin-top: 15px;
    border-radius: 8px;
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 1024px) {
    .course-hero h1 { font-size: 26px; }
    .section-title { font-size: 28px; }
    .module h3 { font-size: 22px; }
}

@media (max-width: 768px) {
    .flow-node {
        width: 100%;
    }

    .course-meta {
        flex-direction: column;
        gap: 10px;
    }

    .course-hero h1 { font-size: 22px; }
    .section-title { font-size: 24px; }
    .sub-title { font-size: 16px; }
    .module { padding: 15px; margin-bottom: 25px; }
    .module h3 { font-size: 20px; }
    .section { padding: 15px 20px; margin: 15px 0; }

    .ai-features li, .ai-summary li { flex-wrap: wrap; }
    .ai-type { padding: 15px; }

    iframe { height: 250px; }
    textarea { height: 180px; }

    h1 { font-size: 24px; }
    h2 { font-size: 20px; }
    h3 { font-size: 18px; }
    .ai-type i.fa-2x { font-size: 1.5em; }
}

@media (max-width: 480px) {
    body { font-size: 14px; }
    .quiz-btn, button { width: 100%; text-align: center; }
}