/* ===================================================
   PATCH CSS - Dinas Pertanian Bantaeng
   Tambahkan link stylesheet ini di header.php
   <link rel="stylesheet" href="<?= ASSET_ROOT ?>assets/css/patch.css">
   =================================================== */

/* 1. Slider overlay - kurangi efek buram/gelap agar terlihat profesional */
.hero-slide-overlay,
.hero-slide::after {
    background: linear-gradient(
        105deg,
        rgba(15, 40, 25, 0.55) 0%,
        rgba(15, 40, 25, 0.30) 45%,
        rgba(15, 40, 25, 0.08) 75%,
        transparent 100%
    ) !important;
}

/* Konten slider lebih jelas */
.hero-slide-content {
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.hero-title {
    text-shadow: 0 2px 12px rgba(0,0,0,0.4) !important;
}
.hero-subtitle {
    text-shadow: 0 1px 6px rgba(0,0,0,0.3) !important;
    opacity: 0.95 !important;
}

/* 2. Slider navigation buttons */
.swiper-button-next,
.swiper-button-prev {
    background: rgba(255,255,255,0.15) !important;
    backdrop-filter: blur(4px);
    width: 44px !important;
    height: 44px !important;
    border-radius: 50% !important;
    border: 1px solid rgba(255,255,255,0.3) !important;
    transition: all 0.2s !important;
}
.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: rgba(255,255,255,0.3) !important;
}
.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 16px !important;
    color: white !important;
}

/* 3. Pagination dots */
.swiper-pagination-bullet {
    background: rgba(255,255,255,0.6) !important;
    width: 8px !important;
    height: 8px !important;
    opacity: 1 !important;
}
.swiper-pagination-bullet-active {
    background: #e9c46a !important;
    width: 24px !important;
    border-radius: 4px !important;
}

/* 4. Rich text editor styles (di tampilan berita) */
.detail-content p { margin-bottom: 16px; line-height: 1.9; }
.detail-content h2 { font-size: 22px; font-weight: 700; margin: 24px 0 12px; color: #1b4332; }
.detail-content h3 { font-size: 18px; font-weight: 700; margin: 20px 0 10px; }
.detail-content ul, .detail-content ol { padding-left: 24px; margin-bottom: 16px; }
.detail-content li { margin-bottom: 6px; }
.detail-content blockquote { border-left: 4px solid #52b788; padding: 12px 16px; background: #f0faf4; border-radius: 0 8px 8px 0; margin: 16px 0; font-style: italic; color: #2d6a4f; }
.detail-content img { max-width: 100%; border-radius: 10px; margin: 12px 0; box-shadow: 0 2px 12px rgba(0,0,0,0.1); }
.detail-content a { color: #2d6a4f; font-weight: 600; }
.detail-content table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.detail-content th, .detail-content td { border: 1px solid #e8f5e9; padding: 10px 14px; }
.detail-content th { background: #f0faf4; font-weight: 700; }

/* 5. Admin - responsive tabel */
@media (max-width: 768px) {
    .admin-sidebar { width: 72px !important; }
    .admin-sidebar .nav-text,
    .admin-sidebar .sidebar-header .logo-text,
    .admin-sidebar .nav-section-title,
    .admin-sidebar .user-info { display: none !important; }
    .admin-main { margin-left: 72px !important; }
}
