body {
    font-family: 'Prompt', sans-serif;
    background-color: #f8f9fa;
}

:root {
    --ci-primary: #1a537e;
    --ci-secondary: #ffc107;
}

.bg-ci {
    background-color: var(--ci-primary);
}

.text-ci {
    color: var(--ci-primary);
}

.btn-ci {
    background-color: var(--ci-primary);
    color: #fff;
}

.btn-ci:hover {
    background-color: #0d154f;
    color: #fff;
}



.news,
.activity,
.schedule {
    min-height: 80vh;
    /* padding-top: 120px; */
    padding-bottom: 80px;
    background-color: #f8f9fa;
    /* แยก section ชัด */
}

.section-40 {
    min-height: 40vh;
    padding-top: 80px;
    /* เผื่อ navbar fixed */
    padding-bottom: 60px;
    display: flex;
    align-items: center;
    /* จัด content กลางแนวตั้ง */
}

.section-title {
    font-weight: 600;
    margin-bottom: 30px;
}




.navbar .nav-link.active {
    color: #ffc107 !important;
    font-weight: 600;
}



section {
    scroll-margin-top: 100px;
}



.activity-card {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .08);
    transition: all .3s ease;
}

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

.activity-img {
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 15px;
}

.activity-img img {
    width: 100%;
    /* height: 500px; */
    object-fit: cover;
    transition: transform .4s ease;
}

.activity-card:hover img {
    transform: scale(1.08);
}

.activity-body h5 {
    margin-top: 10px;
}



.timeline-premium {
    position: relative;
    margin: 60px auto;
    padding: 0;
}

/* เส้นกลาง */
.timeline-premium::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom,
            var(--ci-primary),
            var(--ci-secondary));
    transform: translateX(-50%);
    border-radius: 2px;
}

/* item */
.timeline-item {
    position: relative;
    width: 50%;
    padding: 30px 40px;
}

/* สลับซ้าย-ขวา */
.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
    text-align: left;
}

/* dot */
.timeline-item .dot {
    position: absolute;
    top: 42px;
    width: 18px;
    height: 18px;
    background: var(--ci-primary);
    border-radius: 50%;
    box-shadow: 0 0 0 6px rgba(26, 83, 126, .15);
    z-index: 2;
}

.timeline-item:nth-child(odd) .dot {
    right: -9px;
}

.timeline-item:nth-child(even) .dot {
    left: -9px;
}

/* card */
.timeline-item .card {
    background: #fff;
    border-radius: 16px;
    padding: 20px 24px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .12);
    transition: all .35s ease;
}

.timeline-item .card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 45px rgba(0, 0, 0, .18);
}

/* time */
.timeline-item .time {
    display: inline-block;
    font-weight: 600;
    font-size: .95rem;
    color: #fff;
    background: var(--ci-primary);
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 8px;
}

/* title */
.timeline-item h6 {
    font-weight: 600;
    margin-bottom: 4px;
    color: #212529;
}

/* text */
.timeline-item p {
    font-size: .9rem;
    color: #6c757d;
    margin-bottom: 0;
}

/* highlight */
.timeline-item.highlight .dot {
    background: var(--ci-secondary);
    box-shadow: 0 0 0 6px rgba(255, 193, 7, .25);
}

.timeline-item.highlight .time {
    background: var(--ci-secondary);
    color: #212529;
}




@media (max-width: 768px) {

    /* ================= Hero ================= */
    .hero {
        min-height: auto;
        padding-top: 120px;
        /* เผื่อ navbar fixed */
        padding-bottom: 60px;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero .lead {
        font-size: 1rem;
    }


    /* ================= News ================= */
    .news .card-img-top {
        height: 180px;
        object-fit: cover;
    }

    /* ================= Activity ================= */
    .activity-card {
        padding: 16px;
    }

    .activity-img img {
        height: 180px;
        object-fit: cover;
    }


    /* ================= Navbar ================= */
    .navbar-collapse {
        background-color: var(--ci-primary);
        padding: 12px 16px 20px;
    }

    .navbar .btn-warning {
        width: 100%;
        margin-top: 10px;
    }
}

@media (max-width: 768px) {

    .timeline-premium::before {
        left: 24px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 64px;
        padding-right: 16px;
        left: 0 !important;
        text-align: left !important;
    }

    .timeline-item .dot {
        left: 16px !important;
        right: auto;
    }

    .timeline-item .card {
        border-radius: 14px;
    }
}