:root {
    /* Peradilan Umum (Default: Red / Maroon) */
    --primary-color: #a6192e;
    --primary-dark: #7a0b1c;
    --primary-darker: #430004;
    --accent-color: #f90;
    --accent-hover: #e68a00;
    --hero-bg: rgb(154, 33, 9);
    --hero-gradient: linear-gradient(135deg, #a92018 0%, #7c130d 100%);
    --footer-gradient: linear-gradient(135deg, #8b000b 0%, #6c0008 50%, #430004 100%);
    --primary-subtle: #fdf2f2;
    --primary-subtle-hover: #fcf4f4;
    --primary-border-subtle: #f9e5e5;
    --primary-shadow: rgba(166, 25, 46, 0.15);
    --text-dark: #333333;
    --bg-light: #f8f9fa;
    --border-color: #e0e0e0;
}

/* Template Tema: Peradilan Umum (Merah) */
[data-theme="umum"] {
    --primary-color: #a6192e;
    --primary-dark: #7a0b1c;
    --primary-darker: #430004;
    --accent-color: #f90;
    --accent-hover: #e68a00;
    --hero-bg: rgb(154, 33, 9);
    --hero-gradient: linear-gradient(135deg, #a92018 0%, #7c130d 100%);
    --footer-gradient: linear-gradient(135deg, #8b000b 0%, #6c0008 50%, #430004 100%);
    --primary-subtle: #fdf2f2;
    --primary-subtle-hover: #fcf4f4;
    --primary-border-subtle: #f9e5e5;
    --primary-shadow: rgba(166, 25, 46, 0.15);
}

/* Template Tema: Peradilan Militer (Hijau rgb(15, 85, 3)) */
[data-theme="militer"] {
    --primary-color: rgb(15, 85, 3);
    --primary-dark: #0a3e02;
    --primary-darker: #062601;
    --accent-color: #f90;
    --accent-hover: #e68a00;
    --hero-bg: rgb(15, 85, 3);
    --hero-gradient: linear-gradient(135deg, #1b7305 0%, #0a3e02 100%);
    --footer-gradient: linear-gradient(135deg, rgb(15, 85, 3) 0%, #0b4502 50%, #062601 100%);
    --primary-subtle: #f1f8f0;
    --primary-subtle-hover: #e6f3e5;
    --primary-border-subtle: #d6ebd4;
    --primary-shadow: rgba(15, 85, 3, 0.18);
}

/* Template Tema: Peradilan Agama (Hijau #02573e) */
[data-theme="agama"] {
    --primary-color: #02573e;
    --primary-dark: #013b2a;
    --primary-darker: #012319;
    --accent-color: #f90;
    --accent-hover: #e68a00;
    --hero-bg: #02573e;
    --hero-gradient: linear-gradient(135deg, #037755 0%, #013b2a 100%);
    --footer-gradient: linear-gradient(135deg, #02573e 0%, #01422f 50%, #012319 100%);
    --primary-subtle: #eef7f4;
    --primary-subtle-hover: #e1f3ed;
    --primary-border-subtle: #cce9df;
    --primary-shadow: rgba(2, 87, 62, 0.18);
}

/* Template Tema: Peradilan TUN (Biru #0e29cd) */
[data-theme="tun"] {
    --primary-color: #0e29cd;
    --primary-dark: #0a1fa0;
    --primary-darker: #061366;
    --accent-color: #f90;
    --accent-hover: #e68a00;
    --hero-bg: #0e29cd;
    --hero-gradient: linear-gradient(135deg, #223eed 0%, #0a1fa0 100%);
    --footer-gradient: linear-gradient(135deg, #0e29cd 0%, #0a20a3 50%, #061366 100%);
    --primary-subtle: #eff2fe;
    --primary-subtle-hover: #e2e7fd;
    --primary-border-subtle: #d3dcfe;
    --primary-shadow: rgba(14, 41, 205, 0.18);
}

/* Overrides for Bootstrap warning color */
.text-warning { color: var(--accent-color) !important; }
.bg-warning, .btn-warning { background-color: var(--accent-color) !important; border-color: var(--accent-color) !important; color: var(--text-dark) !important; }
.btn-warning:hover { background-color: var(--accent-hover) !important; border-color: var(--accent-hover) !important; color: var(--text-dark) !important; }
body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; background-color: #f4f6f9; color: var(--text-dark); }

/* Utilities */
.rounded-xl { border-radius: 0.75rem !important; }
.text-primary-custom { color: var(--primary-color) !important; }
.bg-primary-custom { background-color: var(--primary-color) !important; color: white !important; }
.border-primary-custom { border-color: var(--primary-color) !important; }

/* Header & Topbar */
.topbar { background-color: var(--primary-color); color: white; font-size: 0.8rem; padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,0.2); }
.lang-switch { background: transparent; color: white; border: 1px solid white; padding: 2px 10px; font-weight: bold; font-size: 0.75rem; border-radius: 4px;}
.lang-switch.active { background: white; color: var(--primary-color); }
.middle-header { background: white; padding: 15px 0; }
.title-main { color: var(--primary-color); font-weight: 900; font-size: 1.4rem; margin-bottom: 0; line-height: 1.2; letter-spacing: 0.5px;}
.title-sub { color: #555; font-size: 0.85rem; font-weight: 700; }
.navbar { background: var(--primary-dark); padding: 0; box-shadow: 0 4px 6px rgba(0,0,0,0.1); }
.navbar-nav .nav-link { color: white !important; font-weight: 700; font-size: 0.85rem; padding: 15px 20px !important; transition: 0.3s; }
.navbar-nav .nav-link:hover, .navbar-nav .nav-link.active { background: rgba(0,0,0,0.2); color: var(--accent-color) !important; }

/* Hero Slider */
/* Animated Hero Background */
.hero-section {
    background: var(--hero-bg);
    padding: 60px 0;
    position: relative;
    color: white;
    overflow: hidden;
}
.hero-box {
    background: var(--hero-gradient);
    border-radius: 30px;
    padding: 60px 40px;
    position: relative;
    overflow: hidden;
    color: white;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}
.hero-box::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    pointer-events: none;
    z-index: 1;
}
.hero-box::after {
    content: '';
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 150px;
    height: 150px;
    border-bottom: 3px solid #f9a826;
    border-right: 3px solid #f9a826;
    border-radius: 0 0 20px 0;
    pointer-events: none;
    z-index: 2;
}
.hero-box-accent-top {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 150px;
    height: 150px;
    border-top: 3px solid #f9a826;
    border-left: 3px solid #f9a826;
    border-radius: 20px 0 0 0;
    pointer-events: none;
    z-index: 2;
}
.hero-grid-pattern {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 25v10M25 30h10' stroke='rgba(255,255,255,0.07)' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
    z-index: 0;
}
.animated-circles { position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; margin: 0; padding: 0; z-index: 1; }
.animated-circles li { position: absolute; display: block; list-style: none; width: 20px; height: 20px; background: rgba(255, 255, 255, 0.05); animation: animate-circles 25s linear infinite; bottom: -150px; border-radius: 50%; }
.animated-circles li:nth-child(1) { left: 25%; width: 80px; height: 80px; animation-delay: 0s; }
.animated-circles li:nth-child(2) { left: 10%; width: 20px; height: 20px; animation-delay: 2s; animation-duration: 12s; }
.animated-circles li:nth-child(3) { left: 70%; width: 20px; height: 20px; animation-delay: 4s; }
.animated-circles li:nth-child(4) { left: 40%; width: 60px; height: 60px; animation-delay: 0s; animation-duration: 18s; }
.animated-circles li:nth-child(5) { left: 65%; width: 20px; height: 20px; animation-delay: 0s; }
.animated-circles li:nth-child(6) { left: 75%; width: 110px; height: 110px; animation-delay: 3s; }
.animated-circles li:nth-child(7) { left: 35%; width: 150px; height: 150px; animation-delay: 7s; }
.animated-circles li:nth-child(8) { left: 50%; width: 25px; height: 25px; animation-delay: 15s; animation-duration: 45s; }
.animated-circles li:nth-child(9) { left: 20%; width: 15px; height: 15px; animation-delay: 2s; animation-duration: 35s; }
.animated-circles li:nth-child(10) { left: 85%; width: 150px; height: 150px; animation-delay: 0s; animation-duration: 11s; }
@keyframes animate-circles {
    0% { transform: translateY(0) rotate(0deg); opacity: 1; }
    100% { transform: translateY(-1000px) rotate(720deg); opacity: 0; }
}
.hero-badge { display: inline-block; background: rgba(0,0,0,0.2); border-radius: 20px; padding: 4px 15px; font-size: 0.75rem; margin-bottom: 15px; text-transform: uppercase; font-weight: bold; border: 1px solid rgba(255,255,255,0.3); }
.hero-title { font-weight: 900; font-size: 2.2rem; text-transform: uppercase; text-shadow: 2px 2px 4px rgba(0,0,0,0.3); line-height: 1.2; z-index: 2; position: relative; }
.hero-mockup-wrapper { position: relative; z-index: 2; }
.animated-border-wrapper {
    position: relative;
    padding: 12px; /* 4px border + 8px gap */
    border-radius: 1.4rem;
    overflow: hidden;
    display: inline-block;
    z-index: 1;
    max-width: 100%;
}
.animated-border-wrapper::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(transparent, transparent, transparent, #ffffff);
    animation: rotate-border 5s linear infinite reverse;
    z-index: -2;
}
.animated-border-wrapper::after {
    content: '';
    position: absolute;
    inset: 4px; /* Ketebalan border putih luar */
    background: var(--hero-bg); /* Warna background agar terlihat seperti gap */
    border-radius: 1.1rem;
    z-index: -1;
}

.animated-border-inner {
    position: relative;
    padding: 4px; /* Ketebalan border kuning dalam */
    border-radius: 0.9rem;
    overflow: hidden;
    z-index: 1;
}
.animated-border-inner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(transparent, transparent, transparent, #ffd56b);
    animation: rotate-border 3s linear infinite;
    z-index: -1;
}

@keyframes rotate-border {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.slide-frame-img {
    -o-object-fit: cover;
    object-fit: cover;
    width: auto;
    max-width: 100%;
    height: 300px; /* Fixed height for all images */
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    border-radius: 0.7rem;
    display: block;
    position: relative;
    z-index: 2;
}
.btn-hero { background: linear-gradient(135deg, #ffd56b, #c49a3a); color: var(--primary-darker) !important; font-weight: 800; border-radius: 8px; padding: 10px 25px; border: 0; font-size: 0.9rem; box-shadow: 0 12px 24px rgba(0, 0, 0, .22); transition: all 0.3s ease; }
.btn-hero:hover { background: linear-gradient(135deg, #fbe39c, #d5a53f); box-shadow: 0 15px 30px rgba(0, 0, 0, .3); color: var(--primary-darker) !important; transform: translateY(-2px); }
.swiper-pagination-bullet { background: rgba(255,255,255,0.5); width: 12px; height: 12px; }
.swiper-pagination-bullet-active { background: var(--accent-color); }

/* Section Title */
.section-header { font-size: 0.85rem; font-weight: 800; text-transform: uppercase; color: var(--accent-color); margin-bottom: 5px; }
.section-title { font-size: 1.3rem; font-weight: 800; color: var(--primary-color); position: relative; padding-bottom: 10px; margin-bottom: 25px; border-bottom: 2px solid var(--border-color); }
.section-title::after { content: ''; position: absolute; left: 0; bottom: -2px; width: 60px; height: 2px; background: var(--primary-color); }

/* Akses Cepat */
.card-akses { display: flex; flex-direction: column; align-items: center; text-align: center; min-height: 122px; background: #fff; border: 1px solid var(--primary-border-subtle); border-radius: 13px; padding: 16px 10px; color: #222; box-shadow: 0 6px 18px rgba(0, 0, 0, .05); transition: .2s; text-decoration: none !important; }
.card-akses:hover, .card-akses.active { transform: translateY(-3px); box-shadow: 0 8px 20px var(--primary-shadow); border-color: var(--accent-color); }
.card-akses .icon-box { width: 52px; height: 50px; margin: 0 auto 12px auto; border-radius: 14px; border: 1px solid var(--primary-border-subtle); display: flex; align-items: center; justify-content: center; transition: 0.3s; background: white; }
.card-akses:hover .icon-box, .card-akses.active .icon-box { background: var(--primary-color) !important; border-color: var(--primary-color) !important; }
.card-akses .icon-box i { font-size: 22px; color: var(--primary-color); transition: 0.3s; }
.card-akses:hover .icon-box i, .card-akses.active .icon-box i { color: white !important; }
.card-akses .card-title { font-size: 14px; font-weight: 800; color: var(--primary-color) !important; margin-bottom: 5px; line-height: 1.25; text-decoration: none; }
.card-akses .card-subtitle { font-size: 11px; color: #555 !important; line-height: 1.35; font-weight: 500; text-decoration: none; }

/* Maklumat Buttons */
.btn-maklumat { background: var(--primary-dark); color: white; font-weight: 800; font-size: 0.9rem; text-transform: uppercase; padding: 15px; border-radius: 8px; display: flex; align-items: center; justify-content: center; gap: 10px; text-decoration: none; border: 2px solid var(--primary-dark); transition: 0.3s; }
.btn-maklumat:hover { background: white; color: var(--primary-dark); }
.btn-maklumat i { font-size: 1.2rem; }

/* Berita Cards Custom (Image 2 Match) */
.card-berita { border: 1px solid #eaeaea; border-radius: 12px; box-shadow: 0 4px 15px rgba(0,0,0,0.02); overflow: hidden; margin-bottom: 20px; background: white; position: relative; display: flex; flex-direction: column; height: 100%; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.card-berita:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0,0,0,0.1); }
.card-berita-img-wrapper { position: relative; overflow: hidden; }
.card-berita-img-wrapper::before { content: ""; position: absolute; top: 0; left: -100%; width: 50%; height: 100%; background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0) 100%); transform: skewX(-25deg); transition: none; z-index: 1; pointer-events: none; }
.card-berita:hover .card-berita-img-wrapper::before { animation: shine 1s; }
@keyframes shine { 100% { left: 125%; } }
.card-berita-img-wrapper img { width: 100%; height: 190px; object-fit: cover; transition: transform 0.5s ease; }
.card-berita:hover .card-berita-img-wrapper img { transform: scale(1.05); }
.card-berita-date { position: absolute; bottom: 10px; left: 15px; background: white; color: var(--primary-color); font-weight: 700; font-size: 0.75rem; padding: 6px 12px; border-radius: 6px; box-shadow: 0 4px 10px rgba(0,0,0,0.08); z-index: 2; display: flex; align-items: center; gap: 6px; }
.card-berita-body { padding: 30px 20px 20px 20px; flex-grow: 1; display: flex; flex-direction: column; }
.card-berita-title { font-weight: 550; color: #222; font-size: 1.05rem; line-height: 1.4; text-decoration: none; margin-bottom: 10px; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-berita-title:hover { color: var(--primary-color); }
.card-berita-author { font-size: 0.75rem; color: #888; margin-bottom: 15px; display: flex; align-items: center; gap: 6px; }
.card-berita-text { font-size: 0.85rem; color: #666; margin-bottom: 20px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; flex-grow: 1; }
.btn-readmore-custom { background: var(--primary-subtle); color: var(--primary-color); font-weight: 700; font-size: 0.8rem; padding: 10px 20px; border-radius: 8px; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; transition: 0.3s; border: none; }
.btn-readmore-custom:hover { background: var(--primary-color); color: white; }

/* Pengumuman List (Image Match) */
.pengumuman-list { border: 1px solid #eaeaea; border-radius: 8px; background: white; overflow: hidden; }
.pengumuman-item-row { display: flex; align-items: center; padding: 15px 20px; border-bottom: 1px solid #eaeaea; text-decoration: none; transition: all 0.3s ease; position: relative; }
.pengumuman-item-row:last-child { border-bottom: none; }
.pengumuman-item-row:hover { background: var(--primary-subtle-hover); padding-left: 25px; border-left: 4px solid var(--primary-color); }
.pengumuman-item-date { width: 110px; flex-shrink: 0; color: var(--primary-color); font-weight: 700; font-size: 0.75rem; transition: all 0.3s ease; }
.pengumuman-item-title { flex-grow: 1; color: #333; font-weight: 700; font-size: 0.8rem; line-height: 1.4; padding-right: 15px; transition: color 0.3s ease; }
.pengumuman-item-row:hover .pengumuman-item-title { color: var(--primary-color); }
.pengumuman-item-icon { color: var(--primary-color); opacity: 0.6; font-size: 0.9rem; transition: all 0.3s ease; }
.pengumuman-item-row:hover .pengumuman-item-icon { opacity: 1; transform: translateX(5px); }

/* RSS Grid */
.card-rss { border: 1px solid var(--border-color); border-radius: 8px; background: white; height: 100%; }
.card-rss-header { font-weight: 800; font-size: 0.75rem; color: var(--primary-color); text-transform: uppercase; padding: 10px 15px; border-bottom: 1px solid var(--border-color); }
.card-rss-body { padding: 10px; }
.rss-item { border-bottom: 1px solid #eee; padding: 12px; margin-bottom: 0; border-radius: 6px; transition: all 0.2s ease; }
.rss-item:last-child { border-bottom: none; }
.rss-item:hover { background-color: rgba(0,0,0,0.02); transform: translateX(4px); box-shadow: -2px 0 0 var(--primary-color); }
.rss-date { font-size: 0.65rem; color: #888; margin-bottom: 3px; display: flex; align-items: center; gap: 5px; }
.rss-date::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--border-color); }
.rss-link { font-size: 0.8rem; font-weight: 700; color: var(--text-dark); text-decoration: none; line-height: 1.3; display: block; }
.rss-link:hover { color: var(--primary-color); }

/* Sidebar Widgets */
.sidebar-widget { background: white; border-radius: 8px; border: 1px solid var(--border-color); margin-bottom: 20px; overflow: hidden; box-shadow: 0 2px 5px rgba(0,0,0,0.02); }
.sidebar-header { background: var(--primary-dark); color: white; padding: 12px 15px; font-weight: 800; font-size: 0.85rem; display: flex; align-items: center; gap: 10px; text-transform: uppercase; }
.sidebar-body { padding: 15px; }

/* Language Toggle Sidebar */
.lang-btn { display: inline-block; padding: 8px 15px; border: 1px solid var(--border-color); font-size: 0.8rem; font-weight: 700; color: var(--text-dark); text-decoration: none; border-radius: 4px; width: 48%; text-align: center; }
.lang-btn.active { background: var(--primary-color); color: white; border-color: var(--primary-color); }

/* Search Box Sidebar */
.search-sidebar input { border-radius: 4px 0 0 4px; font-size: 0.85rem; }
.search-sidebar button { border-radius: 0 4px 4px 0; background: var(--primary-dark); border-color: var(--primary-dark); color: white; }

/* Info Box (Jam Kerja, dll) */
.info-box { border: 1px solid var(--primary-border-subtle); background: #fffcfc; border-radius: 8px; padding: 15px; display: flex; gap: 15px; margin-bottom: 10px; transition: all 0.3s ease; }
.info-box:hover { transform: translateY(-3px); box-shadow: 0 4px 10px var(--primary-shadow); border-color: var(--primary-color); background: #fff; }
.info-icon { background: var(--primary-subtle); color: var(--primary-color); width: 40px; height: 40px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0; }
.info-text strong { display: block; font-size: 0.85rem; color: var(--text-dark); margin-bottom: 2px; }
.info-text span { display: block; font-size: 0.8rem; color: var(--primary-color); font-weight: 800; }
.info-text small { font-size: 0.7rem; color: #888; }

/* Indeks Pelayanan */
.indeks-box { display: flex; align-items: center; gap: 15px; border: 1px solid #eee; border-radius: 8px; padding: 15px; margin-bottom: 10px; transition: all 0.3s ease; }
.indeks-box:hover { transform: translateY(-3px); box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08); border-color: #ddd; background: #fafafa; }
.indeks-icon { font-size: 2rem; color: var(--accent-color); }
.indeks-score { font-size: 1.5rem; font-weight: 900; color: var(--primary-color); line-height: 1; }
.indeks-score span { font-size: 0.9rem; color: var(--text-dark); }
.indeks-label { font-size: 0.7rem; font-weight: 800; text-transform: uppercase; color: var(--text-dark); display: block; margin-bottom: 3px; }
.indeks-desc { font-size: 0.65rem; color: #888; }

/* Links List */
.link-list { list-style: none; padding: 0; margin: 0; }
.link-list li { border-bottom: 1px solid #eee; }
.link-list li:last-child { border-bottom: none; }
.link-list a { display: block; padding: 10px 0; font-size: 0.8rem; color: var(--text-dark); font-weight: 700; text-decoration: none; position: relative; padding-left: 15px; transition: 0.2s; }
.link-list a::before { content: '\f0da'; font-family: 'Font Awesome 5 Free'; font-weight: 900; position: absolute; left: 0; color: var(--primary-color); }
.link-list a:hover { color: var(--primary-color); padding-left: 20px; }

/* Social Buttons */
.social-btn { display: flex; align-items: center; gap: 10px; padding: 10px 15px; border: 1px solid #eee; border-radius: 8px; margin-bottom: 10px; color: var(--text-dark); text-decoration: none; font-weight: 700; font-size: 0.8rem; transition: 0.3s; }
.social-btn:hover { background: #f9f9f9; border-color: var(--border-color); }
.social-btn i { font-size: 1.2rem; width: 25px; text-align: center; }
.social-btn small { display: block; font-size: 0.65rem; color: #888; font-weight: normal; }

/* Stats List */
.stat-list { list-style: none; padding: 0; margin: 0; }
.stat-list li { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px dashed #eee; font-size: 0.8rem; }
.stat-list li:last-child { border-bottom: none; font-weight: 800; font-size: 0.9rem; margin-top: 5px; border-top: 2px solid var(--border-color); padding-top: 12px; }
.stat-label i { color: var(--primary-color); margin-right: 8px; width: 15px; text-align: center; }
.stat-value { font-weight: 800; color: var(--primary-color); }

/* Footer */
footer { background: var(--footer-gradient); color: white; padding: 40px 0 20px 0; font-size: 0.85rem; }
.footer-title { font-weight: 800; font-size: 0.9rem; text-transform: uppercase; margin-bottom: 20px; color: white; position: relative; padding-bottom: 10px; }
.footer-title::after { content: ''; position: absolute; left: 0; bottom: 0; width: 40px; height: 2px; background: var(--accent-color); }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: rgba(255,255,255,0.8); text-decoration: none; transition: 0.3s; }
.footer-links a:hover { color: var(--accent-color); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); margin-top: 30px; padding-top: 20px; text-align: center; font-size: 0.75rem; color: rgba(255,255,255,0.6); }

/* Submenu / Dropdown Styling */
.navbar-nav .dropdown-menu { border: 1px solid #e0e0e0; border-radius: 0; box-shadow: 0 5px 15px rgba(0,0,0,0.1); padding: 0; min-width: 250px; background: white; margin: 0; }
.navbar-nav .dropdown-item { padding: 14px 20px; border-bottom: 1px solid #eee; color: #222; font-size: 0.95rem; font-weight: normal; transition: all 0.2s ease; display: flex; justify-content: space-between; align-items: center; white-space: normal; }
.navbar-nav li:not(:last-child) > .dropdown-item { border-bottom: 1px solid #ddd; }
.navbar-nav .dropdown-item:last-child { border-bottom: none; }
.navbar-nav .dropdown-item:hover, .navbar-nav .dropdown-item:focus { background-color: var(--primary-subtle); color: var(--primary-color); padding-left: 26px; }

/* Nested Submenu (Dropdown Submenu) */
.dropdown-submenu { position: relative; }
.dropdown-submenu > .dropdown-toggle-sub::after { content: '\f054'; font-family: 'Font Awesome 5 Free'; font-weight: 900; font-size: 0.8rem; color: var(--primary-color); margin-left: 10px; transition: 0.2s; }
.dropdown-submenu:hover > .dropdown-toggle-sub::after { transform: translateX(3px); }
.dropdown-submenu > .dropdown-menu { top: 0; left: 100%; margin-top: 0; border-radius: 0; box-shadow: 2px 2px 10px rgba(0,0,0,0.1); }

/* Hover Dropdown Menu (Desktop) */
@media (min-width: 992px) {
    .navbar .dropdown:hover > .dropdown-menu,
    .navbar .dropdown-submenu:hover > .dropdown-menu {
        display: block;
    }
    .navbar .dropdown-toggle::after {
        transition: transform 0.3s ease;
        vertical-align: middle;
    }
    .navbar .dropdown:hover > .dropdown-toggle::after {
        transform: rotate(180deg);
    }
}

/* Profil Unggulan Pagination */
.swiper-pagination-profil .swiper-pagination-bullet { width: 8px; height: 8px; background: var(--primary-border-subtle); opacity: 1; margin: 0 4px !important; transition: 0.3s; }
.swiper-pagination-profil .swiper-pagination-bullet-active { width: 24px; border-radius: 4px; background: var(--primary-color); }

/* Article & News Images Hover Effect */
.page-content img, .news-content img, .fancybox-trigger-img {
    cursor: pointer;
    cursor: zoom-in;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.page-content img:hover, .news-content img:hover, .fancybox-trigger-img:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

/* Hero Slide Animations */
.swiper-slide .hero-text-anim {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}
.swiper-slide .hero-img-anim {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s ease;
}
.swiper-slide-active .hero-text-anim {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.4s;
}
.swiper-slide-active .hero-img-anim {
    opacity: 1;
    transform: translateX(0);
    transition-delay: 0.7s;
}

