/* --- VARIABLES --- */
:root {
    --cotecna-blue: #00004d;    /* Biru Tua Gelap */
    --cotecna-green: #00c08b;   /* Hijau Cerah */
    --cotecna-gray: #f4f6f8;    /* Background Abu Sidebar */
    --text-color: #555;
}

/* --- 1. HERO SECTION (BANNER ATAS) --- */
.news-hero {
    /* Ganti URL ini dengan gambar banner yang Anda inginkan */
    background-image: url('https://images.unsplash.com/photo-1625246333195-78d9c38ad449?q=80&w=1770&auto=format&fit=crop'); 
    background-size: cover;
    background-position: center;
    height: 350px;
    position: relative;
    width: 100%;
    overflow: hidden;
}

/* Dekorasi Garis Hijau Miring di Bawah Banner */
.news-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 35%; /* Panjang garis hijau */
    height: 15px; /* Tebal garis */
    background-color: var(--cotecna-green);
    clip-path: polygon(0 0, 95% 0, 100% 100%, 0% 100%); /* Efek miring */
    z-index: 2;
}

/* --- 2. TYPOGRAPHY & CONTENT --- */
.custom-breadcrumb .breadcrumb-item a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.9rem;
}

.custom-breadcrumb .breadcrumb-item.active {
    color: var(--cotecna-green); /* Warna hijau untuk halaman aktif */
    font-weight: 600;
}

.news-title {
    color: var(--cotecna-blue);
    font-weight: 700;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    letter-spacing: -0.5px;
}

.news-body p {
    color: var(--text-color);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 1rem;
    text-align: justify;
}

.news-body h3 {
    color: var(--cotecna-blue);
    font-weight: 600;
    font-size: 1.5rem;
}

/* --- 3. SIDEBAR (KOTAK KANAN) --- */
.sidebar-box {
    background-color: var(--cotecna-gray);
    padding: 2.5rem;
    border-left: 5px solid transparent; /* Border kiri transparan default */
    transition: all 0.3s ease;
}

/* Efek Hover pada Sidebar (Muncul garis hijau di kiri) */
.sidebar-box:hover {
    border-left: 5px solid var(--cotecna-green);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.sidebar-title {
    color: var(--cotecna-green);
    font-weight: 700;
    font-size: 1.4rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.sidebar-text {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 2rem;
}

.btn-sidebar {
    background-color: var(--cotecna-green);
    color: white;
    font-weight: 600;
    border-radius: 0; /* Tombol kotak tajam */
    padding: 12px 20px;
    border: none;
    transition: transform 0.2s ease, background-color 0.2s;
}

.btn-sidebar:hover {
    background-color: #00a375; /* Hijau lebih gelap saat hover */
    color: white;
    transform: translateY(-3px); /* Naik sedikit saat hover */
}

/* --- 4. STICKY ICONS (FLOATING RIGHT) --- */
.sticky-sidebar-icons {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    flex-direction: column;
    z-index: 1040; /* Di atas konten tapi di bawah modal bootstrap */
}

.icon-box {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    margin-bottom: 1px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.bg-dark-blue {
    background-color: var(--cotecna-blue);
}

.icon-box:hover {
    width: 65px; /* Melebar saat hover */
    background-color: var(--cotecna-green);
    color: white;
}

/* --- 5. ANIMATIONS --- */
/* Fade In Biasa */
.fade-in {
    animation: fadeIn 1.2s ease-out forwards;
}

/* Slide Up (Konten Kiri) */
.slide-up {
    opacity: 0;
    animation: slideUp 0.8s ease-out 0.3s forwards; /* Delay 0.3s */
}

/* Slide In Right (Sidebar Kanan) */
.slide-in-right {
    opacity: 0;
    animation: slideInRight 0.8s ease-out 0.5s forwards; /* Delay 0.5s */
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { 
        opacity: 0; 
        transform: translateY(40px);
    }
    to { 
        opacity: 1; 
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from { 
        opacity: 0; 
        transform: translateX(40px);
    }
    to { 
        opacity: 1; 
        transform: translateX(0);
    }
}

/* Responsif untuk HP */
@media (max-width: 768px) {
    .news-hero {
        height: 200px;
    }
    .sidebar-box {
        margin-top: 30px;
    }
}

