/* ========================================
   PT SOLUSI KONEKSI ANDA - CUSTOM CSS
   Bootstrap CDN 5.3.3 + Poppins
======================================== */
:root {
    --bs-primary: #1769ff;
    --bs-primary-rgb: 23, 105, 255;
    --ska-primary: #1769ff;
    --ska-primary-dark: #1056d8;
    --ska-primary-light: #e8f1ff;
    --ska-text: #20252b;
    --ska-muted: #64748b;
    --ska-background: #f7f9fc;
    --ska-border: #e2e8f0;
}

body {
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    color: var(--ska-text);
    background-color: #fff;
    line-height: 1.7;
}

h1, .h1 { font-size: 1.8rem; font-weight: 700; }
h2, .h2 { font-size: 1.5rem; font-weight: 700; }
h3, .h3 { font-size: 1.25rem; font-weight: 700; }
h4, .h4 { font-size: 1.1rem; font-weight: 700; }
h5, .h5 { font-size: 1rem; font-weight: 700; }
h6, .h6 { font-size: 0.9rem; font-weight: 700; }

p, li { font-size: 0.82rem; }
.text-secondary { color: var(--ska-muted) !important; }

/* NAVBAR */
.navbar {
    background-color: #fff;
    border-bottom: 1px solid var(--ska-border);
    padding: 12px 0;
}
.navbar-brand { color: var(--ska-text); font-size: 1.15rem; font-weight: 700; }
.navbar-brand span { color: var(--ska-primary); }
.navbar .nav-link { color: #64748b; font-size: 0.82rem; padding: 8px 12px; transition: color 0.2s ease; }
.navbar .nav-link:hover, .navbar .nav-link.active { color: var(--ska-primary); }
.navbar .btn { font-size: 0.82rem; }

/* TOMBOL */
.btn { font-family: 'Poppins', sans-serif; font-size: 0.82rem; transition: all 0.2s ease; }
.btn-primary { background-color: var(--ska-primary); border-color: var(--ska-primary); }
.btn-primary:hover { background-color: var(--ska-primary-dark); border-color: var(--ska-primary-dark); }
.btn-outline-primary { color: var(--ska-primary); border-color: var(--ska-primary); }
.btn-outline-primary:hover { background-color: var(--ska-primary); border-color: var(--ska-primary); }

/* HOME */
.home-hero { background-color: var(--ska-background); padding: 60px 0; }
.home-hero h1 { font-size: clamp(1.8rem, 3vw, 2.5rem); line-height: 1.25; letter-spacing: -0.8px; }
.home-hero p { font-size: 0.9rem; line-height: 1.8; }
.home-hero img { width: 100%; height: 320px; object-fit: cover; border-radius: 16px; }
.home-section { padding: 48px 0; }
.home-card { height: 100%; padding: 22px; background-color: #fff; border: 1px solid #f0f2f5; border-radius: 16px; box-shadow: 0 2px 5px rgba(15, 23, 42, 0.04); transition: transform 0.2s ease, box-shadow 0.2s ease; }
.home-card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(15, 23, 42, 0.07); }

/* JUDUL SECTION */
.section-title { font-size: 1.4rem; font-weight: 700; margin-bottom: 8px; }
.section-description { color: var(--ska-muted); font-size: 0.82rem; }

/* HEADER HALAMAN */
.page-heading { padding: 28px 0; background-color: #fff; border-bottom: 1px solid var(--ska-border); }
.page-heading h1 { font-size: 1.6rem; margin-bottom: 6px; }
.page-heading p { margin-bottom: 0; color: var(--ska-muted); }

/* PROFIL PERUSAHAAN & VISI MISI */
.profile-section { padding: 44px 0; }
.profile-image { width: 100%; height: 300px; object-fit: cover; border-radius: 16px; }
.profile-value-card { height: 100%; padding: 24px; background-color: #fff; border: 1px solid var(--ska-border); border-radius: 16px; transition: border-color 0.2s ease; }
.profile-value-card:hover { border-color: #b8d2ff; }

.vision-mission-section { padding: 44px 0; background-color: var(--ska-background); }
.vision-mission-card { height: 100%; padding: 24px; background-color: #fff; border: 1px solid #edf0f5; border-radius: 16px; box-shadow: 0 2px 5px rgba(15, 23, 42, 0.04); }
.vision-mission-card h3 { font-size: 1rem; margin-bottom: 12px; }

/* LAYANAN, ARTIKEL, & GALERI */
.content-card { height: 100%; overflow: hidden; background-color: #fff; border: 1px solid #edf0f5; border-radius: 14px; box-shadow: 0 2px 5px rgba(15, 23, 42, 0.04); transition: transform 0.2s ease, box-shadow 0.2s ease; }
.content-card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08); }
.content-card img { width: 100%; height: 200px; object-fit: cover; }
.content-card .card-body { padding: 18px; }
.content-card .card-title { font-size: 0.95rem; font-weight: 700; }

.gallery-image { width: 100%; height: 220px; object-fit: cover; border-radius: 14px; }

/* CTA */
.cta-section { padding: 24px 0; }
.cta-box { padding: 32px 40px; color: #fff; background-color: var(--ska-primary); border-radius: 18px; }
.cta-box h2 { font-size: 1.15rem; margin-bottom: 8px; }
.cta-box p { color: rgba(255, 255, 255, 0.75); margin-bottom: 0; }

/* FOOTER */
.site-footer { background-color: #fff; border-top: 1px solid var(--ska-border); padding: 22px 0; }
.site-footer p, .site-footer a { font-size: 0.75rem; }
.site-footer a { color: var(--ska-muted); text-decoration: none; }
.site-footer a:hover { color: var(--ska-primary); }

/* FORM & BADGE */
.form-control, .form-select { font-family: 'Poppins', sans-serif; font-size: 0.82rem; border-color: #dce2ea; border-radius: 10px; padding: 10px 12px; }
.form-control:focus, .form-select:focus { border-color: var(--ska-primary); box-shadow: 0 0 0 0.2rem rgba(23, 105, 255, 0.12); }
.badge { font-family: 'Poppins', sans-serif; font-size: 0.68rem; font-weight: 600; }

/* RESPONSIVE */
@media (max-width: 991.98px) {
    .navbar .nav-link { padding: 8px 0; }
    .home-hero { padding: 40px 0; }
    .home-hero img { height: 280px; }
    .profile-image { height: 260px; }
}

@media (max-width: 575.98px) {
    body { font-size: 12px; }
    .home-hero h1 { font-size: 1.8rem; }
    .home-hero img { height: 220px; }
    .profile-image { height: 220px; }
    .content-card img, .gallery-image { height: 190px; }
    .cta-box { padding: 24px; }
    .section-title { font-size: 1.2rem; }
}  

/* ==========================
   ADMIN DASHBOARD
   Bootstrap 5.3.3 + Poppins
========================== */
.admin-dashboard { background: #fff; color: #172033; font-family: 'Poppins', sans-serif; font-size: 13px; }
.admin-layout { min-height: 100vh; }

.admin-sidebar { position: fixed; top: 0; bottom: 0; left: 0; z-index: 1040; display: flex; flex-direction: column; width: 250px; padding: 26px 18px 20px; background: #fff; border-right: 1px solid #e9edf3; }
.admin-brand { color: #172033; font-size: 20px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.admin-sidebar-label { margin: 34px 12px 12px; color: #98a2b3; font-size: 10px; font-weight: 600; letter-spacing: 1px; }

.admin-menu-link { display: flex; align-items: center; gap: 12px; width: 100%; margin-bottom: 5px; padding: 11px 12px; border: 0; border-radius: 9px; background: transparent; color: #667085; font-size: 12px; text-align: left; text-decoration: none; transition: background .2s ease, color .2s ease; }
.admin-menu-link svg { width: 17px; height: 17px; flex-shrink: 0; }
.admin-menu-link:hover { background: #f6f8fc; color: #2165f5; }
.admin-menu-link.active { background: #edf4ff; color: #2165f5; font-weight: 600; }

.admin-sidebar-bottom { margin-top: auto; padding-top: 16px; border-top: 1px solid #edf0f4; }
.admin-logout { cursor: pointer; }

.admin-main { min-height: 100vh; margin-left: 250px; }
.admin-topbar { display: flex; align-items: center; justify-content: space-between; min-height: 72px; padding: 12px 34px; border-bottom: 1px solid #edf0f4; background: #fff; }

.admin-avatar { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border: 1px solid #e9edf3; border-radius: 50%; background: #f8fafc; color: #475467; }
.admin-avatar svg { width: 18px; height: 18px; }

.admin-content { max-width: 1600px; padding: 34px; }

.admin-stat-card, .admin-panel-card { border: 1px solid #e9edf3; border-radius: 13px; background: #fff; box-shadow: none; transition: border-color .2s ease; }
.admin-stat-card:hover, .admin-panel-card:hover { border-color: #c8d9ff; }

.admin-stat-icon { display: flex; align-items: center; justify-content: center; width: 39px; height: 39px; margin-bottom: 18px; border-radius: 10px; background: #f0f5ff; color: #2165f5; }
.admin-stat-icon svg { width: 20px; height: 20px; }

.admin-action-link { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid #f0f2f5; color: #344054; font-size: 12px; text-decoration: none; }
.admin-action-link:last-child { border-bottom: 0; }
.admin-action-link:hover { color: #2165f5; }
.admin-action-link span { display: flex; align-items: center; gap: 10px; }
.admin-action-link svg { width: 16px; height: 16px; flex-shrink: 0; }

.admin-footer { margin-top: 40px; padding-top: 18px; border-top: 1px solid #edf0f4; color: #98a2b3; font-size: 11px; }
.admin-overlay { display: none; }

@media (max-width: 767.98px) {
    .admin-sidebar { transform: translateX(-100%); transition: transform .25s ease; }
    .admin-sidebar.show { transform: translateX(0); }
    .admin-overlay.show { position: fixed; inset: 0; z-index: 1030; display: block; background: rgba(16, 24, 40, .3); }
    .admin-main { margin-left: 0; }
    .admin-topbar { min-height: 64px; padding: 12px 18px; }
    .admin-content { padding: 25px 18px; }
}


/* Kontrol galeri minimalis */
.gallery-line-control {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    width: 100%;
    margin-top: 24px;
}

.gallery-line-arrow {
    appearance: none;
    border: none;
    background: transparent;
    color: #17345c;
    width: 32px;
    height: 32px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: Arial, sans-serif;
    font-size: 19px;
    cursor: pointer;
    transition: color 0.2s ease, transform 0.2s ease;
}

.gallery-line-arrow:hover {
    color: #0d6efd;
    transform: scale(1.12);
}

.gallery-progress {
    width: 130px;
    height: 3px;
    background: #dce3ed;
    border-radius: 3px;
    overflow: hidden;
    cursor: pointer;
}

.gallery-progress-bar {
    display: block;
    height: 100%;
    width: 50%;
    background: #0d6efd;
    border-radius: 3px;
    transition: transform 0.35s ease, width 0.35s ease;
}

.delete-image-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.delete-image-btn:hover {
    color: #dc3545 !important;
    background-color: #fff1f2 !important;
}

.delete-image-btn:focus-visible {
    outline: 2px solid #dc3545;
    outline-offset: 2px;
}

/* ==============================
   DETAIL ARTIKEL
============================== */

.article-detail-container {
    max-width: 850px;
}

.article-detail-image {
    max-height: 450px;
    object-fit: cover;
}

.article-excerpt,
.article-content {
    font-size: 16px;
    line-height: 1.8;
    color: #334155;
}

.article-excerpt {
    margin-bottom: 24px;
}

@media (max-width: 576px) {
    .article-excerpt,
    .article-content {
        font-size: 15px;
        line-height: 1.8;
    }
}
