/* =========================================
   ABOUT US PAGE STYLING
   ========================================= */

/* Layout Grid Utama (Kiri: Konten, Kanan: Sidebar) */
.about-main-section {
    background-color: #f8fafc;
    padding: 60px 20px;
}

.about-layout-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: start;
}

/* Konten Utama Kiri */
.about-card-main {
    background: #ffffff;
    padding: 40px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02);
    margin-bottom: 30px;
}

.about-card-main h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 20px;
}

.about-card-main p {
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.7;
    margin-bottom: 16px;
}

/* Grid Keunggulan Kecil di Bawah Teks */
.about-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.feature-box {
    background: #ffffff;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.01);
}

.feature-box i {
    font-size: 1.5rem;
    color: #dc2626;
    margin-bottom: 12px;
}

.feature-box h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 8px;
}

.feature-box p {
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.5;
    margin: 0;
}

/* =========================================
   ZIG-ZAG CENTER LINE TIMELINE STYLING
   ========================================= */
.timeline-wrapper {
    background: #ffffff;
    padding: 40px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02);
    margin-top: 30px;
}

.timeline-header {
    text-align: center;
    margin-bottom: 40px;
}

.timeline-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 8px;
}

.timeline-header p {
    font-size: 0.95rem;
    color: #64748b;
}

/* Container Utama Timeline */
.company-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 0;
}

/* Garis Tengah Vertikal */
.company-timeline::after {
    content: '';
    position: absolute;
    width: 3px;
    background: linear-gradient(180deg, #dc2626 0%, #cbd5e1 100%);
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

/* Setiap Baris Item */
.timeline-item {
    padding: 10px 35px;
    position: relative;
    width: 50%;
    box-sizing: border-box;
}

/* Posisi Kiri & Kanan */
.timeline-item.left {
    left: 0;
    text-align: right;
}

.timeline-item.right {
    left: 50%;
    text-align: left;
}

/* Titik Bulat di Garis Tengah */
.timeline-item::after {
    content: '';
    position: absolute;
    width: 14px;
    height: 14px;
    right: -7px;
    background-color: #dc2626;
    border: 3px solid #ffffff;
    top: 22px;
    border-radius: 50%;
    z-index: 2;
    box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.2);
    transition: transform 0.2s ease;
}

.timeline-item.right::after {
    left: -7px;
}

.timeline-item:hover::after {
    transform: scale(1.3);
}

/* Kotak Konten Card */
.timeline-content {
    background: #f8fafc;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    display: inline-block;
    width: 100%;
    box-sizing: border-box;
}

.timeline-item:hover .timeline-content {
    background: #ffffff;
    border-color: #dc2626;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

/* Badge Tahun */
.timeline-badge {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 800;
    color: #ffffff;
    background-color: #dc2626;
    padding: 3px 10px;
    border-radius: 6px;
    margin-bottom: 10px;
}

/* Teks Deskripsi */
.timeline-desc {
    font-size: 0.88rem;
    color: #475569;
    line-height: 1.6;
    margin: 0;
}

/* Container Utama Card Milestone */
.milestone-preview-section {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%) !important;
    border: 1px solid #e2e8f0 !important;
    border-top: 4px solid #dc2626 !important; /* Aksen garis merah khas Central Diesel */
    border-radius: 16px !important;
    padding: 50px 30px !important;
    margin: 50px auto !important;
    text-align: center !important;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05) !important;
    position: relative;
    overflow: hidden;
}

/* Label Subtitle kecil */
.milestone-preview-section .badge-sub {
    display: inline-block;
    background-color: #fee2e2;
    color: #dc2626;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 12px;
}

/* Judul Section */
.milestone-preview-section h2 {
    font-size: 1.8rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 10px;
}

/* Deskripsi Singkat */
.milestone-preview-section .section-desc {
    font-size: 0.95rem !important;
    color: #64748b !important;
    max-width: 100% !important; /* Biarkan melebar memenuhi container */
    width: auto !important;
    margin: 0 auto 25px auto !important;
    line-height: 1.5 !important;
    white-space: nowrap !important; /* Paksa tetap dalam 1 baris */
}

@media (max-width: 768px) {
    .milestone-preview-section .section-desc {
        white-space: normal !important; /* Kembali ke beberapa baris jika di layar HP sempit */
    }
}

/* Tombol Aksi yang Menarik (Themed Button) */
.milestone-preview-section .btn-primary-red {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: #ffffff !important;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 12px 24px;
    border-radius: 8px;
    border: none;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
}

.milestone-preview-section .btn-primary-red:hover {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(220, 38, 38, 0.4);
}

/* =========================================
   MODAL POP-UP MILESTONE (HIDDEN DEFAULT)
   ========================================= */

/* 1. Modal Container Utama (Sembunyi secara default) */
.milestone-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 99999 !important; /* Memastikan di atas semua elemen */
    display: none !important;  /* WAJIB: Sembunyi saat pertama dimuat */
    align-items: center !important;
    justify-content: center !important;
}

/* 2. Class Aktif saat Tombol Diklik */
.milestone-modal.active {
    display: flex !important; /* Baru muncul saat class 'active' ditambahkan lewat JS */
}

/* 3. Latar Belakang Gelap / Overlay dengan Efek Blur */
.milestone-modal-overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(15, 23, 42, 0.75) !important;
    backdrop-filter: blur(5px) !important;
}

/* 4. Kotak Konten Pop-up */
.milestone-modal-content {
    position: relative !important;
    background: #ffffff !important;
    width: 90% !important;
    max-width: 950px !important;
    height: 85vh !important;
    border-radius: 20px !important;
    z-index: 10 !important;
    display: flex !important;
    flex-direction: column !important; /* Susun vertikal: Header di atas, Scroll Body di bawah */
    overflow: hidden !important; /* Matikan scrollbar luar */
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35) !important;
}

.modal-header-sticky {
    padding: 24px 30px !important;
    border-bottom: 1px solid #e2e8f0 !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    background: #ffffff !important;
    z-index: 20 !important; /* Di atas isi timeline */
    flex-shrink: 0 !important; /* Mencegah header menyusut */
}

.modal-header-sticky h2 {
    font-size: 1.4rem !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    margin: 2px 0 !important;
}

.modal-header-sticky p {
    font-size: 0.85rem !important;
    color: #64748b !important;
    margin: 0 !important;
}

/* 5. Tombol Close (X) */
.modal-close-btn {
    background: #f1f5f9 !important;
    border: none !important;
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    font-size: 1.3rem !important;
    color: #64748b !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s ease !important;
}

.modal-close-btn:hover {
    background: #fee2e2 !important;
    color: #dc2626 !important;
}

.modal-body-scroll {
    flex: 1 !important; /* Mengisi sisa ruang modal secara vertikal */
    overflow-y: auto !important; /* Scroll khusus area ini */
    padding: 30px 20px !important;
    background-color: #fafafa !important;
}

/* Responsif Mobile (Garis geser ke kiri saat di HP) */
@media (max-width: 768px) {
    .company-timeline::after {
        left: 20px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 50px;
        padding-right: 10px;
    }
    
    .timeline-item.left,
    .timeline-item.right {
        left: 0;
        text-align: left;
    }
    
    .timeline-item.left::after,
    .timeline-item.right::after {
        left: 13px;
    }
}