/* =========================================
   Halaman: Aktivitas Harian KNH
========================================= */
.activity-hero {
    background: linear-gradient(to bottom, rgba(15, 41, 30, 0.8) 0%, rgba(15, 41, 30, 0.95) 100%), url('/assets/img/knh2.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 180px 0 120px;
    text-align: center;
    color: #fff;
}
.activity-hero-content { max-width: 900px; margin: 0 auto; position: relative; z-index: 2; }
.activity-hero-content .sub-title { color: #B7FFB1; border-color: #BFECB9; margin-bottom: 20px; }
.activity-hero-content h1 { font-size: 3.8rem; margin-bottom: 25px; text-shadow: 0 4px 20px rgba(0,0,0,0.4); color: #fff; line-height: 1.2; letter-spacing: -0.02em; }
.activity-hero-content p { color: rgba(255,255,255,0.9); font-size: 1.15rem; line-height: 1.8; font-weight: 300; max-width: 800px; margin: 0 auto; }

.daily-timeline-section { padding: 100px 0 120px; background: #fdfbfd; position: relative; overflow: hidden; }
.timeline-header { text-align: center; margin-bottom: 80px; }
.timeline-header h2 { font-size: 2.8rem; color: var(--primary-dark); margin-bottom: 15px; }
.timeline-header p { font-size: 1.1rem; color: var(--text-gray); max-width: 700px; margin: 0 auto; }

.timeline-container { position: relative; max-width: 1050px; margin: 0 auto; z-index: 1; }
.timeline-container::after {
    content: ''; position: absolute; width: 4px; background: linear-gradient(to bottom, var(--light-green-bg) 0%, var(--brand-green) 50%, var(--light-green-bg) 100%);
    top: 0; bottom: 0; left: 50%; transform: translateX(-50%); border-radius: 4px;
    z-index: 1;
}

.time-row { position: relative; width: 100%; margin-bottom: 70px; display: flex; justify-content: space-between; align-items: center; clear: both; }
.time-row:last-child { margin-bottom: 0; }

.time-badge {
    position: absolute; left: 50%; transform: translateX(-50%);
    width: 90px; height: 40px; background: var(--primary-dark); color: #fff;
    border-radius: 50px; display: flex; justify-content: center; align-items: center;
    font-weight: 800; font-size: 1rem; 
    z-index: 20;
    box-shadow: 0 0 0 6px #fdfbfd, 0 5px 15px rgba(0,0,0,0.15); 
    border: 2px solid var(--brand-green);
}

.time-card {
    width: 43%; background: #fff; border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.04); border: 1px solid #eee;
    position: relative; transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex; flex-direction: column; z-index: 5;
    padding: 0; overflow: hidden; 
}
.time-card:hover { transform: translateY(-10px); box-shadow: 0 25px 50px rgba(45, 174, 65, 0.1); border-color: var(--brand-green); }

.tc-image-wrap { width: 100%; height: 220px; position: relative; overflow: hidden; border-bottom: 1px solid #f0f0f0; }
.tc-image-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.time-card:hover .tc-image-wrap img { transform: scale(1.08); }

.tc-content-wrap { padding: 30px; display: flex; flex-direction: column; }

.time-card::before {
    content: ''; position: absolute; 
    top: 250px; 
    width: 20px; height: 20px;
    background: #fff; transform: rotate(45deg); transition: 0.4s;
    z-index: 6;
}

.row-left .time-card { margin-right: auto; border-right: 5px solid var(--brand-green); }
.row-left .time-card::before { right: -10px; border-top: 1px solid #eee; border-right: 1px solid #eee; }
.row-left:hover .time-card::before { right: -11px; border-top-color: var(--brand-green); border-right-color: var(--brand-green); }

.row-right .time-card { margin-left: auto; border-left: 5px solid #F59E0B; }
.row-right .time-card::before { left: -10px; border-bottom: 1px solid #eee; border-left: 1px solid #eee; }
.row-right:hover .time-card::before { left: -11px; border-bottom-color: var(--brand-green); border-left-color: var(--brand-green); }
.row-right:hover .time-card { border-left-color: var(--brand-green); }

.tc-header { display: flex; align-items: center; gap: 15px; margin-bottom: 15px; }
.tc-icon { width: 50px; height: 50px; background: var(--light-green-bg); color: var(--brand-green); border-radius: 14px; display: flex; justify-content: center; align-items: center; font-size: 1.3rem; flex-shrink: 0; transition: 0.4s; }
.time-card:hover .tc-icon { background: var(--brand-green); color: #fff; transform: rotate(-10deg) scale(1.1); box-shadow: 0 10px 20px rgba(45,174,65,0.3);}

.tc-header h3 { font-size: 1.3rem; color: var(--primary-dark); margin: 0; line-height: 1.3; }
.tc-category { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; font-weight: 700; color: var(--text-gray); margin-bottom: 10px; display: block; }
.tc-content-wrap p { font-size: 1rem; color: var(--text-gray); line-height: 1.6; margin: 0; }
/* Subtitle Timeline */
.sub-title.act-time-sub {
    color: var(--text-gray);
    border-color: var(--text-gray);
}

/* =========================================
   SISTEM WARNA KATEGORI & IKON TIMELINE
========================================= */

/* Biru (Medis / Fisioterapi) */
.tc-text-blue { color: #3B82F6; }
.tc-icon-blue {
    color: #3B82F6;
    background: #DBEAFE;
}

/* Oranye (Nutrisi / Observasi) */
.tc-text-orange { color: #F59E0B; }
.tc-icon-orange {
    color: #F59E0B;
    background: #FEF3C7;
}

/* Hijau (Aktivitas Outdoor / Hygiene) */
.tc-text-green { color: var(--brand-green); }
/* Note: Ikon hijau sudah dicover oleh class bawaan .tc-icon di file global CSS */

/* Ungu (Aktivitas Kognitif) */
.tc-text-purple { color: #A78BFA; }
.tc-icon-purple {
    color: #A78BFA;
    background: #F3E8FF;
}

/* Slate/Abu-abu gelap (Istirahat Malam) */
.tc-text-slate { color: #475569; }
.tc-icon-slate {
    color: #475569;
    background: #F1F5F9;
}

/* =========================================
   CTA BOTTOM AKTIVITAS
========================================= */
.act-cta-title {
    font-size: 2.8rem;
    margin-bottom: 20px;
    color: #ffffff;
}

.act-cta-desc {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
    font-size: 1.15rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.act-cta-btn-group {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Tombol Internal ke Fasilitas */
.btn-act-outline {
    padding: 16px 35px;
    border-radius: 30px;
    color: #ffffff;
    border: 2px solid #ffffff;
    font-weight: 800;
    font-size: 1.05rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-act-outline:hover {
    background: #ffffff;
    color: var(--primary-dark);
}
@media (max-width: 968px) {
    .timeline-container { padding-left: 0; }
    .timeline-container::after { left: 40px; transform: none; }
    .time-badge { left: 40px; transform: translateX(-50%); width: 70px; font-size: 0.9rem; }
    .time-row { flex-direction: column; align-items: flex-end; }
    .time-card { width: calc(100% - 90px); margin-left: auto !important; margin-right: 0 !important; border-left: 5px solid var(--brand-green) !important; border-right: 1px solid #eee !important; }
    .time-card::before { 
        left: -10px !important; right: auto !important; 
        border-bottom: 1px solid #eee !important; border-left: 1px solid #eee !important; 
        border-top: 1px solid transparent !important; border-right: 1px solid transparent !important; 
    }
    .time-card:hover::before { left: -11px !important; border-bottom-color: var(--brand-green) !important; border-left-color: var(--brand-green) !important; }
}
@media (max-width: 768px) {
    .activity-hero { padding: 140px 0 80px; background-attachment: scroll; }
    .activity-hero-content h1 { font-size: 2.6rem; }
    .timeline-container::after { left: 20px; }
    .time-badge { left: 20px; padding: 5px 0; height: 35px; width: 65px; font-size: 0.8rem;}
    .time-card { width: calc(100% - 60px); }
    .tc-image-wrap { height: 180px; }
    .time-card::before { top: 210px !important; }
    .tc-content-wrap { padding: 25px 20px; }
    .tc-header h3 { font-size: 1.1rem; }
	.act-cta-title {
        font-size: 2rem;
    }
    .act-cta-desc {
        font-size: 1rem;
    }  
}