/* about.php — moved from its inline <style> block (loaded at the same position). */
:root {
    --primary-color: #5fb3b3;
    --secondary-color: #88c999;
    --accent-color: #f0e6a6;
    --dark-bg: #2d3748;
    --teal-dark: #2d5a5a;
    --light-mint: #b8e6c1;
    --success-color: #48bb78;
    --info-color: #4299e1;
    --warning-color: #ed8936;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Sarabun', sans-serif;
    font-size: 16px;
    line-height: 1.75;
    background: #f7f9fc;
    color: #2d3748;
}

h1,
h2,
h3,
h4,
h5 {
    font-family: 'Prompt', 'Sarabun', sans-serif;
    line-height: 1.35;
    letter-spacing: -0.01em;
}

/* ── Hero ── */
.hero-section {
    background: linear-gradient(140deg, #3d9b9b 0%, #5fb3b3 45%, #88c999 100%);
    color: white;
    padding: 5rem 0 7rem;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 64px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 64'%3E%3Cpath fill='%23f7f9fc' d='M0,32 C360,64 1080,0 1440,32 L1440,64 L0,64 Z'/%3E%3C/svg%3E") no-repeat bottom / cover;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-section h1 {
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 700;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    letter-spacing: -0.02em;
}

.hero-section .lead {
    font-size: 1.15rem;
    font-weight: 300;
    opacity: 0.93;
}

/* ── Section headings ── */
.section-heading {
    position: relative;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.section-heading::after {
    content: '';
    display: block;
    width: 52px;
    height: 4px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    margin: 0.5rem auto 0;
}

.gradient-text {
    background: linear-gradient(135deg, #3d9b9b, #4caf7a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Cards ── */
.card {
    border: none;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.07);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
    overflow: hidden;
    background: #fff;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

.card-body {
    padding: 2rem 1.75rem;
}

/* ── Feature icons ── */
.feature-icon {
    width: 76px;
    height: 76px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.9rem;
    margin: 0 auto 1.25rem;
    box-shadow: 0 8px 24px rgba(95, 179, 179, 0.35);
}

.card h4.h5 {
    font-size: 1.05rem;
    font-weight: 600;
    color: #1a2e2e;
    margin-bottom: 0.6rem;
}

.card .text-muted {
    font-size: 0.93rem;
    line-height: 1.7;
}

/* ── Stat cards ── */
.stat-card {
    background: white;
    border-top: 4px solid var(--primary-color);
    border-radius: 16px !important;
}

.stat-card .card-body {
    padding: 2rem 1.5rem;
}

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    margin: 0 auto 1rem;
}

.stat-number {
    font-family: 'Prompt', sans-serif;
    font-size: 2.75rem;
    font-weight: 700;
    color: #1a2e2e;
    line-height: 1;
    margin: 0 0 0.3rem;
}

.stat-label {
    color: #718096;
    font-size: 0.88rem;
    font-weight: 500;
    margin: 0;
    letter-spacing: 0.02em;
}

/* ── Timeline ── */
.timeline {
    position: relative;
    padding-left: 2.25rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
    border-radius: 1px;
}

.timeline-item {
    position: relative;
    margin-bottom: 1.75rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2.25rem;
    top: 6px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: white;
    border: 3px solid var(--primary-color);
    box-shadow: 0 0 0 3px rgba(95, 179, 179, 0.2);
}

.timeline-item h5 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.2rem;
}

.timeline-item p {
    font-size: 0.92rem;
    color: #4a5568;
    margin: 0;
}

/* ── Buttons ── */
.btn-primary {
    background: linear-gradient(135deg, #5fb3b3, #88c999);
    border: none;
    border-radius: 50px;
    padding: 0.7rem 2rem;
    font-family: 'Sarabun', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    transition: all 0.25s ease;
    box-shadow: 0 4px 14px rgba(95, 179, 179, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(95, 179, 179, 0.45);
}

.btn-outline-primary {
    border-radius: 50px;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    font-family: 'Sarabun', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.68rem 2rem;
    transition: all 0.25s ease;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.btn-light {
    border-radius: 50px;
    font-family: 'Sarabun', sans-serif;
    font-weight: 600;
    padding: 0.7rem 2rem;
}

/* ── Sections ── */
.section-padding {
    padding: 5rem 0;
}

.bg-light-custom {
    background: linear-gradient(160deg, #f0f7f7 0%, #edf5f0 100%) !important;
}

/* ── Contact icons ── */
.contact-icon-wrap {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    margin: 0 auto 0.9rem;
    box-shadow: 0 6px 18px rgba(95, 179, 179, 0.3);
}

/* ── Misc ── */
.lead {
    font-size: 1.1rem;
    font-weight: 400;
    line-height: 1.75;
}

/* KU MOOC landing-page visual language */
body {
    font-family: 'IBM Plex Sans Thai', sans-serif;
    background: #fbfdfc;
    color: #10231d;
}

h1,
h2,
h3,
h4,
h5 {
    font-family: 'IBM Plex Sans Thai', sans-serif;
    letter-spacing: -.015em;
}

.hero-section {
    background: var(--ku-hero-bg);
    color: #10231d;
    padding: 5.5rem 0 6rem;
}

.hero-section::before,
.hero-section::after {
    display: none;
}

.hero-section h1 {
    color: #062f25;
    text-shadow: none;
}

.hero-section .lead {
    color: #62756d;
}

.section-padding {
    padding: 4.6rem 0;
}

#features {
    scroll-margin-top: 90px;
}

.bg-light-custom {
    background: #f0faf5 !important;
}

.card,
.stat-card {
    border: 1px solid #dceae3;
    border-radius: 20px;
    box-shadow: 0 10px 28px rgba(18, 85, 54, .07);
}

.card:hover,
.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 35px rgba(18, 85, 54, .12);
}

.stat-number {
    color: #067647;
}

.btn-primary,
.btn-success {
    background-color: #067647 !important;
    border-color: #067647 !important;
}

.btn-outline-primary {
    color: #067647 !important;
    border-color: #067647 !important;
}

.btn-outline-primary:hover {
    background: #067647 !important;
    color: #fff !important;
}

@media (max-width: 768px) {
    .hero-section {
        padding: 3.5rem 0 5rem;
    }

    .section-padding {
        padding: 3rem 0;
    }

    .stat-number {
        font-size: 2.25rem;
    }

    .card-body {
        padding: 1.5rem 1.25rem;
    }
}
