:root {
    --primary: #D81324;
    --secondary: #519beb;
    --light: #F2F2F2;
    --dark: #949090;
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #ffffff;
}

/* Menambahkan Background Logo Samar */
body::before {
    content: "";
    background-image: url('img/logo1.png'); 
    background-repeat: no-repeat;
    background-position: center;
    
    /* UKURAN UNTUK DESKTOP (Komputer/Laptop) */
    background-size: 600px; 
    
    opacity: 0.07; 
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    z-index: -1; 
    pointer-events: none;
}

/* --- PERBAIKAN UNTUK MODE MOBILE (HP) --- */
@media (max-width: 576px) {
    body::before {
        /* Kecilkan ukuran logo agar tidak memenuhi layar HP */
        background-size: 300px; 
        
        /* Opsional: turunkan opacity sedikit lagi jika dirasa masih terlalu jelas */
        opacity: 0.07; 
    }
}


/* Pastikan judul dan elemen lain juga mengikuti */
h1, h2, h3, h4, h5, h6, .navbar-brand, .nav-link {
    font-family: 'Poppins', sans-serif;
}


/*** Navbar Global ***/
.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

.navbar-light .navbar-nav .nav-link {
    margin-right: 30px;
    padding: 25px 0;
    color: var(--dark);
    font-size: 15px;
    text-transform: uppercase;
    outline: none;
    font-weight: 500;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
    color: var(--primary);
}

/* Pengaturan Logo Agar Tidak Penyet */
.img-logo-nav {
    width: 200px; /* Ukuran default desktop */
    height: auto;
    max-width: 100%;
    display: block;
    object-fit: contain;
}

/* Tinggi Navbar Desktop */
.navbar-light .navbar-brand {
    height: 75px;
    display: flex;
    align-items: center;
}

/*** RESPONSIVE SETTINGS (Untuk HP & Tablet) ***/
@media (max-width: 991.98px) {
    .navbar-light .navbar-brand {
        height: 60px; /* Tinggi navbar mengecil di HP */
    }

    .img-logo-nav {
        width: 140px; /* Lebar logo mengecil di HP agar tidak kebesaran */
        max-height: 45px;
    }

    .navbar-light .navbar-nav .nav-link {
        margin-right: 0;
        padding: 10px 15px;
        border-bottom: 1px solid #f0f0f0;
    }

    .navbar-light .navbar-nav {
        border-top: 1px solid #EEEEEE;
        padding-bottom: 10px;
    }
}

/* Sticky Navbar */
.navbar-light.sticky-top {
    top: -100px;
    transition: .5s;
}

/* Dropdown Menu Desktop */
@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        border: none;
        margin-top: 0;
        top: 150%;
        opacity: 0;
        visibility: hidden;
        transition: .5s;
    }

    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}

.letter-spacing-2 { letter-spacing: 2px; }
.fw-extrabold { font-weight: 800; }




/* --- Sticky Column (Judul Samping) --- */
@media (min-width: 992px) {
    .sticky-top-custom {
        position: sticky;
        top: 120px;
        z-index: 10;
    }
}

/* --- Box Statistik --- */
.stats-box {
    background: #ffffff;
    padding: 20px;
    border-radius: 15px;
    border-bottom: 5px solid #D81324;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    text-align: center;
}
.stats-box strong { font-size: 2.2rem; display: block; color: #D81324; line-height: 1; margin-bottom: 5px; }
.stats-box span { font-size: 0.85rem; font-weight: 600; color: #666; text-transform: uppercase; }

/* --- Timeline History --- */
.timeline-item {
    border-left: 3px solid #D81324;
    padding-left: 25px;
    position: relative;
}
.timeline-item::after {
    content: '';
    width: 16px;
    height: 16px;
    background: #D81324;
    border: 3px solid #fff;
    border-radius: 50%;
    position: absolute;
    left: -10px;
    top: 5px;
    box-shadow: 0 0 0 3px rgba(216, 19, 36, 0.2);
}

/* Style untuk List Misi dengan Titik Merah */
.mission-list {
    list-style: none;
    padding-left: 0;
}

.mission-list li {
    position: relative;
    padding-left: 35px;
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: #444;
    line-height: 1.6;
}

/* Membuat Bullet Point Merah Bulat */
.mission-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px; /* Atur posisi vertikal titik */
    width: 12px;
    height: 12px;
    background-color: #D81324;
    border-radius: 50%;
}

/* Efek Tumpukan Gambar */
.gallery-stack {
    display: flex;
    flex-direction: column;
    border-radius: 20px;
    margin-bottom: 0;
    overflow: hidden; /* Tambahkan ini agar ujung gambar mengikuti lengkungan border */
    gap: 0;           /* Memastikan tidak ada jarak antar elemen flex */
}

.gallery-stack img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;   /* KUNCI: Menghilangkan whitespace/garis putih di bawah gambar */
    margin: 0;        /* Memastikan tidak ada margin bawaan */
}

/* Responsif untuk Tablet dan HP */
@media (max-width: 991px) {
    .mission-list li {
        font-size: 1rem;
    }
    .gallery-stack {
        margin-top: 20px;
    }
}

/* --- Utility Square Button --- */
.btn-sm-square {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* --- Mobile Fix --- */
@media (max-width: 768px) {
    .about-header { padding-top: 10px !important; }
    .misi-grid { grid-template-columns: 1fr; }
    .display-5 { font-size: 2.2rem; }
    .stats-box strong { font-size: 1.8rem; }
}

/* Footer Custom Styling */
.footer-custom {
    background-color: #ffffff;
    border-top: 1px solid #eee;
    color: #333;
    font-family: 'poppins', sans-serif;
}

.footer-logo .tagline {
    font-size: 0.8rem;
    letter-spacing: 2px;
    margin-top: 5px;
    display: block;
}

.footer-logo .tagline strong {
    display: block;
    font-size: 0.9rem;
    letter-spacing: 4px;
}

.description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #444;
    text-align: justify;
}

.section-title {
    font-weight: 700;
    font-size: 1.1rem;
    color: #1a2a4e; /* Warna gelap khas header */
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links li a {
    color: #444;
    text-decoration: none;
    font-size: 0.95rem;
    transition: 0.3s;
}

.footer-links li a:hover {
    color: #D81324;
}

.award-img {
    height: 60px;
    width: auto;
    object-fit: contain;
}

.copyright-text {
    font-weight: 700;
    font-size: 1rem;
    color: #000;
}

/* Penyesuaian Responsif */
@media (max-width: 991.98px) {
    .copyright-text {
        text-align: center !important;
        margin-top: 30px;
    }
}

.footer-custom {
    background-color: #ffffff;
    border-top: 1px solid #f1f1f1;
    padding-top: 20px;
}

.footer-links li a:hover {
    color: #D81324 !important; /* Warna merah saat di-hover */
    padding-left: 5px;
    transition: 0.3s;
}

.copyright-text h5 {
    font-size: 1.1rem;
    margin: 0;
}

/* CSS untuk merapikan Link Footer */
.footer-link-list li {
    margin-bottom: 15px;
}

.footer-link-list li a {
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.footer-link-list li a:hover {
    color: #D81324;
    padding-left: 5px;
}

/* Memastikan gambar award tetap proporsional */
.awards img {
    max-width: 100%;
    object-fit: contain;
}

/* Mengatur ukuran teks Copyright */
.copyright-area h5 {
    font-size: 1.2rem;
    color: #000;
}

