/* ================================================================
   REDESIGN CSS — Fakultas Website
   Diload setelah CSS lama, override via class baru
   ================================================================ */

/* ─── CSS VARIABLES ──────────────────────────────────────────── */
:root {
    --green-dark:      #0D4B2C;
    --green-main:      #1A7A45;
    --green-light:     #2EA05A;
    --primary-rgb:     13, 75, 44;    /* = --green-dark, di-override head.php */
    --primary-mid-rgb: 26, 122, 69;   /* = --green-main, di-override head.php */
    --gold:            #D4A017;
    --gold-light:  #F0C040;
    --bg-soft:     #F4F7F4;
    --bg-card:     #FFFFFF;
    --text-dark:   #1A2B1F;
    --text-mid:    #4A6358;
    --text-soft:   #7A9487;
    --radius:      12px;
    --shadow-sm:   0 2px 8px rgba(0,0,0,.06);
    --shadow-md:   0 6px 24px rgba(0,0,0,.10);
    --shadow-lg:   0 12px 40px rgba(0,0,0,.14);
}

/* ─── BASE ───────────────────────────────────────────────────── */
body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg-soft);
    color: var(--text-dark);
}

/* ─── TOPBAR ─────────────────────────────────────────────────── */
.rd-topbar {
    background: var(--green-dark);
    padding: 6px 0;
    font-size: 12px;
    color: rgba(255,255,255,.75);
}
.rd-topbar .rd-inner {
    max-width: 1200px; margin: auto;
    display: flex; justify-content: space-between; align-items: center;
    padding: 0 20px;
}
.rd-topbar a {
    color: rgba(255,255,255,.75); text-decoration: none;
    margin-left: 16px; transition: color .2s;
    display: inline-flex; align-items: center; gap: 5px;
}
.rd-topbar a:hover { color: var(--gold-light); }
.rd-topbar-masuk {
    background: rgba(255,255,255,.15);
    color: #fff !important;
    padding: 3px 12px !important;
    border-radius: 20px !important;
    font-weight: 600 !important;
    border: 1px solid rgba(255,255,255,.3) !important;
    transition: background .2s, border-color .2s !important;
}
.rd-topbar-masuk:hover {
    background: rgba(255,255,255,.28) !important;
    color: #fff !important;
    border-color: rgba(255,255,255,.6) !important;
}

/* ─── NAVBAR ─────────────────────────────────────────────────── */
.rd-navbar {
    background: #fff;
    box-shadow: 0 2px 16px rgba(0,0,0,.08);
    position: sticky; top: 0; z-index: 1000;
    padding: 0;
}
.rd-navbar .rd-inner {
    max-width: 1200px; margin: auto;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 20px; height: 72px;
}
.rd-brand {
    display: flex; align-items: center; gap: 12px;
    text-decoration: none; flex-shrink: 0;
}
.rd-brand .rd-logo-wrap {
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.rd-brand .rd-logo-wrap img {
    height: 60px !important;
    width: auto !important;
    max-width: 160px;
    object-fit: contain;
}
.rd-brand .rd-logo-wrap i { color: var(--green-main); font-size: 22px; }
.rd-brand-text { line-height: 1.2; }
.rd-brand-text .rd-brand-title { font-size: 14px; font-weight: 700; color: var(--green-dark); display: block; }
.rd-brand-text .rd-brand-sub   { font-size: 11px; color: var(--text-soft); display: block; }

/* nav list */
.rd-nav { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.rd-nav > li { position: relative; }
.rd-nav > li > a {
    display: flex; align-items: center; gap: 5px;
    padding: 8px 11px; font-size: 12.5px; font-weight: 500;
    color: var(--text-mid); text-decoration: none;
    border-radius: 8px; transition: color .2s;
    white-space: nowrap; height: 72px;
    border-bottom: 3px solid transparent;
}
.rd-nav > li > a .rd-chev {
    font-size: 9px; margin-top: 1px; transition: transform .22s;
}
.rd-nav > li:hover > a .rd-chev { transform: rotate(180deg); }
.rd-nav > li > a:hover  { color: var(--green-main); }
.rd-nav > li > a.rd-active {
    color: var(--green-main); font-weight: 700;
    border-bottom-color: var(--green-main);
    border-radius: 8px 8px 0 0;
}

/* dropdown */
.rd-drop {
    display: none;
    position: absolute; top: 100%; left: 0;
    background: #fff; border-radius: 12px;
    min-width: 215px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(0,0,0,.07);
    padding: 8px 0; z-index: 999;
    animation: rdDropIn .18s ease;
}
/* Flip ke kiri saat mendekati tepi kanan viewport */
.rd-drop.rd-flip { left: auto; right: 0; }
@keyframes rdDropIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}
.rd-nav > li:hover > .rd-drop { display: block; }
.rd-drop li { list-style: none; }
.rd-drop li a {
    display: flex; align-items: center; gap: 9px;
    padding: 9px 18px; font-size: 12.5px; font-weight: 500;
    color: var(--text-mid); text-decoration: none; transition: all .15s;
}
.rd-drop li a i { width: 16px; text-align: center; color: var(--green-main); font-size: 12px; flex-shrink: 0; }
.rd-drop li a:hover { background: var(--bg-soft); color: var(--green-main); padding-left: 22px; }
.rd-drop hr { border: none; border-top: 1px solid #f0f0f0; margin: 6px 12px; }

/* mega dropdown 2 kolom */
.rd-drop.rd-mega {
    min-width: 400px;
    display: none;
    flex-direction: row;
}
.rd-nav > li:hover > .rd-drop.rd-mega { display: flex; }
.rd-mega-col { flex: 1; padding: 4px 0; }
.rd-mega-col + .rd-mega-col { border-left: 1px solid #f0f0f0; }
.rd-mega-title {
    display: block; padding: 8px 18px 4px;
    font-size: 10px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1px;
    color: var(--text-soft);
}

/* tombol admin */
.rd-nav .rd-btn-admin {
    background: var(--green-main) !important; color: #fff !important;
    padding: 8px 16px !important; border-radius: 8px !important;
    font-weight: 600 !important; height: auto !important;
    border-bottom: none !important; margin-left: 4px;
}
.rd-nav .rd-btn-admin:hover { background: var(--green-dark) !important; }

/* ─── HERO SLIDER ────────────────────────────────────────────── */
.rd-hero {
    position: relative; height: 560px; overflow: hidden;
}

/* slide statis pertama: gradient ikut warna tema */
.rd-slide-static {
    background: linear-gradient(
        135deg,
        var(--green-dark) 0%,
        var(--green-main) 50%,
        var(--green-dark) 100%
    );
}

/* setiap slide: hanya kontainer fade, tidak membawa background sendiri */
.rd-slide {
    position: absolute; inset: 0; opacity: 0;
    transition: opacity 1.2s ease;
    z-index: 1; overflow: hidden;
}
.rd-slide.rd-active { opacity: 1; z-index: 2; }

/* layer foto */
.rd-slide-bg {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
}

.rd-slide-overlay {
    position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(
        to right,
        rgba(var(--primary-rgb), .88) 0%,
        rgba(var(--primary-rgb), .65) 55%,
        rgba(var(--primary-rgb), .28) 100%
    );
}
/* Layer konten — hanya tampil saat slide pertama aktif */
.rd-content-slides {
    position: absolute; inset: 0; z-index: 10;
    opacity: 0; pointer-events: none;
    transition: opacity 0.7s ease;
}
.rd-hero.rd-on-first .rd-content-slides {
    opacity: 1; pointer-events: auto;
}
.rd-content-slide {
    position: absolute; inset: 0;
    display: flex; align-items: center;
}
.rd-content-slide .rd-inner {
    max-width: 1200px; margin: auto; padding: 0 20px;
    display: flex; gap: 48px; align-items: center; width: 100%;
}

/* animasi konten: reset saat tidak aktif */
.rd-hero-text {
    flex: 1; opacity: 0; transform: translateX(-30px); transition: none;
}
.rd-hero-prodi {
    opacity: 0; transform: translateX(30px); transition: none;
}

/* animasi masuk saat content-slide aktif */
.rd-content-slide.rd-active .rd-hero-text {
    opacity: 1; transform: translateX(0);
    transition: opacity 0.6s ease 0.3s, transform 0.6s ease 0.3s;
}
.rd-content-slide.rd-active .rd-hero-prodi {
    opacity: 1; transform: translateX(0);
    transition: opacity 0.6s ease 0.45s, transform 0.6s ease 0.45s;
}
.rd-hero-badge {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(212,160,23,.22); border: 1px solid var(--gold);
    color: var(--gold-light); font-size: 12px; font-weight: 600;
    padding: 5px 14px; border-radius: 20px; margin-bottom: 18px;
    backdrop-filter: blur(4px);
}
.rd-content-slide h1 {
    font-size: 44px; font-weight: 800; line-height: 1.15;
    color: #fff; margin-bottom: 14px;
    text-shadow: 0 2px 16px rgba(0,0,0,.35);
}
.rd-content-slide h1 span { color: var(--gold-light); }
.rd-content-slide p {
    font-size: 15px; color: rgba(255,255,255,.85); line-height: 1.7;
    max-width: 480px; margin-bottom: 26px;
    text-shadow: 0 1px 8px rgba(0,0,0,.3);
}
.rd-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.rd-btn-primary {
    background: var(--gold); color: var(--green-dark);
    padding: 12px 24px; border-radius: 10px; font-weight: 700; font-size: 14px;
    text-decoration: none; display: inline-flex; align-items: center; gap: 8px;
    transition: all .25s; box-shadow: 0 4px 20px rgba(212,160,23,.4);
}
.rd-btn-primary:hover { background: var(--gold-light); transform: translateY(-2px); }
.rd-btn-outline {
    background: rgba(255,255,255,.12); color: #fff;
    border: 2px solid rgba(255,255,255,.5);
    padding: 12px 24px; border-radius: 10px; font-weight: 600; font-size: 14px;
    text-decoration: none; display: inline-flex; align-items: center; gap: 8px;
    transition: all .25s; backdrop-filter: blur(4px);
}
.rd-btn-outline:hover { border-color: #fff; background: rgba(255,255,255,.2); }

/* prodi panel kanan slider */
.rd-hero-prodi {
    background: rgba(255,255,255,.10); backdrop-filter: blur(14px);
    border: 1px solid rgba(255,255,255,.2); border-radius: 16px;
    padding: 22px; min-width: 270px;
    box-shadow: 0 8px 32px rgba(0,0,0,.25);
}
.rd-hero-prodi h4 {
    color: var(--gold-light); font-size: 11px; font-weight: 700;
    margin-bottom: 12px; text-transform: uppercase; letter-spacing: 1.5px;
}
.rd-prodi-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.rd-prodi-tag {
    background: rgba(255,255,255,.12); border-radius: 8px;
    padding: 6px 9px; font-size: 11px; color: rgba(255,255,255,.92); font-weight: 500;
    border: 1px solid rgba(255,255,255,.1); transition: background .2s;
}
.rd-prodi-tag:hover { background: rgba(255,255,255,.22); }

/* kontrol slider */
.rd-slider-arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    z-index: 20; width: 44px; height: 44px; border-radius: 50%;
    background: rgba(255,255,255,.15); border: 2px solid rgba(255,255,255,.35);
    color: #fff; font-size: 15px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all .22s; backdrop-filter: blur(6px);
}
.rd-slider-arrow:hover {
    background: var(--gold); border-color: var(--gold);
    color: var(--green-dark); transform: translateY(-50%) scale(1.1);
}
.rd-slider-arrow.rd-prev { left: 20px; }
.rd-slider-arrow.rd-next { right: 20px; }
.rd-slider-dots {
    position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%);
    z-index: 20; display: flex; gap: 8px; align-items: center;
}
.rd-dot {
    width: 8px; height: 8px; border-radius: 4px;
    background: rgba(255,255,255,.4); cursor: pointer;
    transition: all .3s; border: none; padding: 0;
}
.rd-dot.rd-active { width: 28px; background: var(--gold); }
.rd-slide-caption {
    position: absolute; bottom: 20px; right: 72px; z-index: 20;
    background: rgba(0,0,0,.38); backdrop-filter: blur(6px);
    border-radius: 8px; padding: 5px 12px;
    font-size: 11px; color: rgba(255,255,255,.75);
    border: 1px solid rgba(255,255,255,.12);
}
.rd-slider-progress {
    position: absolute; bottom: 0; left: 0; z-index: 20;
    height: 3px; background: var(--gold); width: 0%;
}

/* ─── STATS BAR ──────────────────────────────────────────────── */
.rd-stats {
    background: #fff;
    box-shadow: var(--shadow-md);
    border-bottom: 3px solid var(--green-light);
}
.rd-stats .rd-inner {
    max-width: 1200px; margin: auto; padding: 0 20px;
    display: flex;
}
.rd-stat-item {
    display: flex; align-items: center; gap: 14px;
    padding: 20px 24px; flex: 1;
    border-right: 1px solid #eee;
}
.rd-stat-item:last-child { border-right: none; }
.rd-stat-icon {
    width: 46px; height: 46px; border-radius: 12px;
    background: linear-gradient(135deg, var(--green-main), var(--green-light));
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.rd-stat-icon i { color: #fff; font-size: 18px; }
.rd-stat-number { font-size: 22px; font-weight: 800; color: var(--green-dark); line-height: 1; }
.rd-stat-label  { font-size: 11.5px; color: var(--text-soft); font-weight: 500; margin-top: 2px; }

/* ─── MAIN LAYOUT ────────────────────────────────────────────── */
.rd-main {
    max-width: 1200px; margin: 36px auto; padding: 0 20px;
    display: grid; grid-template-columns: 1fr 340px; gap: 32px;
}

/* ─── SECTION HEADING ────────────────────────────────────────── */
.rd-section-head {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 20px;
}
.rd-section-head h2 {
    font-size: 20px; font-weight: 700; color: var(--green-dark);
    display: flex; align-items: center; gap: 10px; margin: 0;
}
.rd-section-head h2::before {
    content: ''; width: 4px; height: 22px; border-radius: 2px;
    background: var(--green-main); display: block; flex-shrink: 0;
}
.rd-section-head a {
    font-size: 13px; color: var(--green-main);
    text-decoration: none; font-weight: 500;
    display: inline-flex; align-items: center; gap: 4px;
}
.rd-section-head a:hover { text-decoration: underline; }

/* ─── BERITA FEATURED ────────────────────────────────────────── */
.rd-news-featured {
    border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow-md); background: var(--bg-card);
    margin-bottom: 20px;
}
.rd-news-featured .rd-thumb {
    height: 240px; overflow: hidden; position: relative;
    background: var(--green-dark);
}
.rd-news-featured .rd-thumb img {
    width: 100%; height: 100%; object-fit: cover; display: block;
}
.rd-cat-badge {
    position: absolute; top: 14px; left: 14px;
    background: var(--gold); color: var(--green-dark);
    font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 6px;
}
.rd-news-featured .rd-body { padding: 20px; }
.rd-news-featured .rd-body h3 {
    font-size: 17px; font-weight: 700; color: var(--text-dark);
    margin: 0 0 8px; line-height: 1.45;
}
.rd-news-featured .rd-body h3 a { color: inherit; text-decoration: none; }
.rd-news-featured .rd-body h3 a:hover { color: var(--green-main); }
.rd-news-featured .rd-body p {
    font-size: 13px; color: var(--text-mid); line-height: 1.7;
    margin: 0 0 14px;
}
.rd-news-meta {
    display: flex; align-items: center; gap: 14px;
    font-size: 12px; color: var(--text-soft);
}
.rd-news-meta i { margin-right: 3px; }
.rd-read-more {
    font-size: 13px; font-weight: 600; color: var(--green-main);
    text-decoration: none; display: inline-flex; align-items: center; gap: 4px;
}
.rd-read-more:hover { color: var(--green-dark); }

/* ─── BERITA LIST CARD ───────────────────────────────────────── */
.rd-news-list { display: flex; flex-direction: column; gap: 14px; }
.rd-news-card {
    background: var(--bg-card); border-radius: var(--radius);
    box-shadow: var(--shadow-sm); display: flex; gap: 14px;
    padding: 14px; transition: all .2s; text-decoration: none;
}
.rd-news-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.rd-news-card .rd-thumb-sm {
    width: 100px; height: 80px; border-radius: 8px;
    overflow: hidden; flex-shrink: 0; background: var(--green-main);
}
.rd-news-card .rd-thumb-sm img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rd-news-card .rd-info { flex: 1; min-width: 0; }
.rd-news-card .rd-info h4 {
    font-size: 13.5px; font-weight: 600; color: var(--text-dark);
    margin: 0 0 6px; line-height: 1.45;
}
.rd-news-card .rd-info h4 a { color: inherit; text-decoration: none; }
.rd-news-card .rd-info h4 a:hover { color: var(--green-main); }
.rd-news-card .rd-meta {
    font-size: 11.5px; color: var(--text-soft);
    display: flex; gap: 10px; flex-wrap: wrap;
}
.rd-news-card .rd-meta i { margin-right: 3px; }

/* ─── SIDEBAR ────────────────────────────────────────────────── */
.rd-sidebar { display: flex; flex-direction: column; gap: 24px; }

/* Dekan card */
.rd-dekan-card {
    background: var(--bg-card); border-radius: var(--radius);
    box-shadow: var(--shadow-sm); overflow: hidden;
}
.rd-dekan-header {
    height: 160px;
    background: linear-gradient(135deg, var(--green-dark), var(--green-main));
    display: flex; align-items: flex-start; justify-content: center;
    padding-top: 22px;
}
.rd-dekan-header h3 {
    color: rgba(255,255,255,.95); font-size: 17px; font-weight: 700;
    letter-spacing: .5px; margin: 0;
    text-shadow: 0 1px 4px rgba(0,0,0,.3);
}
.rd-dekan-photo-wrap {
    display: flex; justify-content: center;
    margin-top: -110px; margin-bottom: 12px;
}
.rd-dekan-photo {
    width: 220px; height: 220px; border-radius: 50%;
    border: 5px solid #fff; box-shadow: var(--shadow-md);
    overflow: hidden; background: #ddd;
}
.rd-dekan-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rd-dekan-info { text-align: center; padding: 0 20px 20px; }
.rd-dekan-info h4 { font-size: 15px; font-weight: 700; color: var(--text-dark); margin: 0 0 4px; }
.rd-dekan-info p  { font-size: 12px; color: var(--text-soft); margin: 0; line-height: 1.6; }

/* card panel (agenda, pengumuman) */
.rd-panel {
    background: var(--bg-card); border-radius: var(--radius);
    box-shadow: var(--shadow-sm); overflow: hidden;
}
.rd-panel-title {
    padding: 14px 18px; color: #fff; font-size: 14px; font-weight: 600;
    display: flex; align-items: center; gap: 8px; margin: 0;
}
.rd-panel-title.green { background: linear-gradient(135deg, var(--green-dark), var(--green-main)); }
.rd-panel-title.red   { background: linear-gradient(135deg, #C62828, #E53935); }
.rd-panel-body { padding: 8px; }

/* agenda item */
.rd-agenda-item {
    display: flex; gap: 12px; padding: 12px 10px;
    border-radius: 8px; transition: background .2s; cursor: pointer;
}
.rd-agenda-item:hover { background: var(--bg-soft); }
.rd-agenda-date {
    min-width: 46px; height: 52px; border-radius: 10px;
    background: linear-gradient(135deg, var(--green-main), var(--green-light));
    display: flex; flex-direction: column; align-items: center;
    justify-content: center; flex-shrink: 0;
}
.rd-agenda-date .rd-day { font-size: 18px; font-weight: 800; color: #fff; line-height: 1; }
.rd-agenda-date .rd-mon { font-size: 10px; font-weight: 600; color: rgba(255,255,255,.85); text-transform: uppercase; }
.rd-agenda-detail h5 {
    font-size: 13px; font-weight: 600; color: var(--text-dark);
    margin: 0 0 4px; line-height: 1.4;
}
.rd-agenda-detail h5 a { color: inherit; text-decoration: none; }
.rd-agenda-detail h5 a:hover { color: var(--green-main); }
.rd-agenda-detail p {
    font-size: 11.5px; color: var(--text-soft);
    display: flex; align-items: center; gap: 4px; margin: 0;
}

/* pengumuman item */
.rd-pengumuman-item {
    padding: 12px 10px; border-bottom: 1px solid #f0f0f0;
    cursor: pointer; transition: background .2s; border-radius: 8px;
}
.rd-pengumuman-item:hover { background: var(--bg-soft); }
.rd-pengumuman-item:last-child { border-bottom: none; }
.rd-pengumuman-item h5 {
    font-size: 13px; font-weight: 600; color: var(--text-dark);
    margin: 0 0 4px; line-height: 1.4;
}
.rd-pengumuman-item h5 a { color: inherit; text-decoration: none; }
.rd-pengumuman-item h5 a:hover { color: var(--green-main); }
.rd-pengumuman-item .rd-pdate {
    font-size: 11px; color: var(--text-soft);
    display: flex; align-items: center; gap: 6px;
}
.rd-pengumuman-item .rd-pdate i { font-size: 10px; }

/* ─── GALERI ─────────────────────────────────────────────────── */
.rd-gallery-section {
    background: var(--green-dark); padding: 48px 0;
}
.rd-gallery-section .rd-inner { max-width: 1200px; margin: auto; padding: 0 20px; }
.rd-gallery-section .rd-section-head h2 { color: #fff; }
.rd-gallery-section .rd-section-head h2::before { background: var(--gold); }
.rd-gallery-section .rd-section-head a { color: var(--gold-light); }
.rd-gallery-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}
.rd-gallery-item {
    border-radius: 10px; overflow: hidden;
    aspect-ratio: 1; cursor: pointer; position: relative;
    background: rgba(255,255,255,.08);
}
.rd-gallery-item > a {
    display: block; width: 100%; height: 100%;
    position: relative;
}
.rd-gallery-item img {
    width: 100%; height: 100%; object-fit: cover;
    display: block; transition: transform .3s;
}
.rd-gallery-item:hover img { transform: scale(1.08); }
.rd-gallery-item .rd-goverlay {
    position: absolute; inset: 0;
    background: rgba(var(--primary-rgb), .7);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: opacity .3s;
}
.rd-gallery-item:hover .rd-goverlay { opacity: 1; }
.rd-gallery-item .rd-goverlay i { color: #fff; font-size: 24px; }
.rd-gallery-item.rd-large {
    grid-column: span 2; grid-row: span 2; aspect-ratio: auto;
}

/* ─── FOOTER ─────────────────────────────────────────────────── */
.rd-footer {
    background: var(--green-dark); padding: 48px 0 0;
    color: rgba(255,255,255,.85);
}
.rd-footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 48px; padding: 48px 20px 40px;
}
.rd-footer-prodi {
    column-count: 1;
}
/* sosial media memenuhi lebar kolom */
.rd-social-full {
    width: 100%;
    display: flex;
    gap: 8px;
}
.rd-social-full a {
    flex: 1;
    width: auto;          /* batalkan width:36px dari .rd-social a */
    min-width: 0;
    height: 56px;
    border-radius: 10px;
    justify-content: center;
    font-size: 22px;
}
.rd-footer h4 {
    color: #fff; font-size: 14px; font-weight: 700;
    margin: 0 0 16px; padding-bottom: 8px;
    border-bottom: 2px solid var(--gold); display: inline-block;
}
.rd-footer p { font-size: 13px; line-height: 1.9; color: rgba(255,255,255,.7); margin: 0; }
.rd-footer ul { list-style: none; margin: 0; padding: 0; }
.rd-footer ul li a {
    color: rgba(255,255,255,.7); text-decoration: none;
    display: flex; align-items: center; gap: 6px;
    font-size: 13px; line-height: 2; transition: color .2s;
}
.rd-footer ul li a::before { content: '›'; color: var(--gold); font-weight: 700; }
.rd-footer ul li a:hover { color: var(--gold-light); }
.rd-footer-contact { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 12px; }
.rd-footer-contact i { color: var(--gold); margin-top: 3px; flex-shrink: 0; font-size: 13px; }
.rd-footer-contact span { font-size: 13px; color: rgba(255,255,255,.7); line-height: 1.6; }
.rd-footer-bottom {
    max-width: 1200px; margin: 0 auto; padding: 16px 20px;
    border-top: 1px solid rgba(255,255,255,.1);
    text-align: center;
}
.rd-footer-bottom p { font-size: 12px; color: rgba(255,255,255,.5); margin: 0; }
.rd-social { display: flex; gap: 10px; }
.rd-social a {
    width: 36px; height: 36px; border-radius: 8px;
    background: rgba(255,255,255,.1);
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,.8); text-decoration: none;
    transition: all .2s; font-size: 15px;
}
.rd-social a:hover { background: var(--gold); color: var(--green-dark); }

/* ─── UTILITY ────────────────────────────────────────────────── */
.rd-inner { max-width: 1200px; margin: auto; padding: 0 20px; }

/* ─── BREADCRUMB BAR ─────────────────────────────────────────── */
.rd-breadcrumb-bar {
    background: var(--bg-card);
    border-bottom: 1px solid rgba(0,0,0,.07);
    padding: 10px 0;
}
.rd-breadcrumb {
    display: flex; align-items: center; gap: 6px;
    list-style: none; margin: 0; padding: 0;
    font-size: 13px; color: var(--text-soft);
}
.rd-breadcrumb li + li::before { content: '/'; margin-right: 6px; color: var(--text-soft); }
.rd-breadcrumb li a { color: var(--green-main); text-decoration: none; }
.rd-breadcrumb li a:hover { text-decoration: underline; }
.rd-breadcrumb li.active { color: var(--text-mid); }

/* ─── ARTICLE DETAIL PAGE ────────────────────────────────────── */
.rd-article-wrap { padding: 36px 0 48px; }
.rd-two-col {
    display: grid; grid-template-columns: 1fr 320px; gap: 32px;
    margin-bottom: 40px;
    align-items: start;
}
.rd-article-card { display: flex; flex-direction: column; }
.rd-article-hero {
    position: relative; overflow: hidden;
    border-radius: var(--radius) var(--radius) 0 0;
    background: var(--green-dark); min-height: 200px;
}
.rd-article-hero img {
    width: 100%; height: auto; max-height: 460px;
    object-fit: cover; display: block;
}
.rd-article-hero-caption {
    position: absolute; bottom: 0; left: 0; right: 0;
    background: linear-gradient(to top, rgba(var(--primary-rgb),.92) 0%, transparent 100%);
    padding: 60px 24px 22px;
}
.rd-article-hero-caption h1 {
    color: #fff; font-size: 22px; font-weight: 700;
    margin: 0; line-height: 1.45; text-shadow: 0 1px 4px rgba(0,0,0,.3);
}
.rd-article-meta {
    display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
    padding: 14px 24px; border-bottom: 1px solid rgba(0,0,0,.06);
    font-size: 12.5px; color: var(--text-soft);
}
.rd-article-meta i { margin-right: 4px; color: var(--green-main); }
.rd-article-body {
    padding: 24px;
    font-size: 15px; line-height: 1.85; color: var(--text-dark);
}
.rd-article-body img { max-width: 100%; height: auto; border-radius: 8px; margin: 8px 0; }
.rd-article-body p { margin-bottom: 16px; }
.rd-article-body a { color: var(--green-main); }

/* sidebar post items */
.rd-sidebar-post {
    display: flex; gap: 12px; padding: 10px 0;
    border-bottom: 1px solid rgba(0,0,0,.06); align-items: flex-start;
}
.rd-sidebar-post:last-child { border-bottom: none; }
.rd-sidebar-post-thumb {
    flex-shrink: 0; width: 72px; height: 56px; border-radius: 8px;
    overflow: hidden; background: var(--green-main); display: block;
}
.rd-sidebar-post-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rd-sidebar-post-info { flex: 1; min-width: 0; }
.rd-sidebar-post-info h4 {
    font-size: 13px; font-weight: 600; color: var(--text-dark);
    margin: 0 0 6px; line-height: 1.4;
}
.rd-sidebar-post-info h4 a { color: inherit; text-decoration: none; }
.rd-sidebar-post-info h4 a:hover { color: var(--green-main); }
.rd-sidebar-post-info span { font-size: 11.5px; color: var(--text-soft); }
.rd-sidebar-post-info span i { margin-right: 3px; }

/* related articles */
.rd-related-section { margin-top: 8px; }
.rd-related-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.rd-related-card { display: flex; flex-direction: column; }
.rd-related-thumb {
    display: block; height: 160px; overflow: hidden;
    background: var(--green-dark);
    border-radius: var(--radius) var(--radius) 0 0;
}
.rd-related-thumb img {
    width: 100%; height: 100%; object-fit: cover; display: block;
    transition: transform .3s ease;
}
.rd-related-card:hover .rd-related-thumb img { transform: scale(1.04); }
.rd-related-body { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.rd-related-body h4 {
    font-size: 13.5px; font-weight: 600; color: var(--text-dark);
    margin: 0 0 10px; line-height: 1.45; flex: 1;
}
.rd-related-body h4 a { color: inherit; text-decoration: none; }
.rd-related-body h4 a:hover { color: var(--green-main); }
.rd-related-body .rd-news-meta { margin-bottom: 12px; }

/* ─── BERITA / ARTIKEL LIST PAGE ────────────────────────────── */
.rd-list-wrap {
    padding: 36px 0 48px;
    background: var(--bg-soft);
}

/* Filter bar */
.rd-filter-bar {
    background: var(--bg-card); border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 14px 20px; margin-bottom: 28px;
    display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
}
.rd-filter-select {
    flex: 1; min-width: 180px; max-width: 340px;
    padding: 9px 14px; font-family: inherit; font-size: 14px;
    color: var(--text-dark); background: var(--bg-soft);
    border: 1px solid rgba(0,0,0,.12); border-radius: 8px;
    outline: none; cursor: pointer; appearance: none;
}
.rd-filter-select:focus { border-color: var(--green-main); box-shadow: 0 0 0 2px rgba(var(--primary-mid-rgb),.15); }
.rd-filter-btn {
    padding: 9px 22px; border-radius: 8px;
    background: var(--green-main); color: #fff;
    border: none; font-family: inherit; font-size: 14px; font-weight: 600;
    cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
    transition: background .2s; white-space: nowrap;
}
.rd-filter-btn:hover { background: var(--green-dark); }

/* Card */
.rd-pgcard {
    background: var(--bg-card); border-radius: var(--radius);
    box-shadow: var(--shadow-sm); overflow: hidden;
    display: flex; flex-direction: column;
    height: 100%;
    transition: transform .2s, box-shadow .2s;
    margin-bottom: 24px;
}
.rd-pgcard:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.rd-pgcard-thumb {
    display: block; width: 100%; height: 190px; overflow: hidden;
    background: var(--green-dark); flex-shrink: 0;
}
.rd-pgcard-thumb img {
    width: 100%; height: 100%; object-fit: cover; display: block;
    transition: transform .35s ease;
}
.rd-pgcard:hover .rd-pgcard-thumb img { transform: scale(1.05); }
.rd-pgcard-body {
    padding: 16px 18px 18px;
    flex: 1; display: flex; flex-direction: column; gap: 8px;
}
.rd-pgcard-body h3 {
    font-size: 14.5px; font-weight: 700; color: var(--text-dark);
    margin: 0; line-height: 1.5; flex: 1;
}
.rd-pgcard-body h3 a { color: inherit; text-decoration: none; }
.rd-pgcard-body h3 a:hover { color: var(--green-main); }
.rd-pgcard-meta {
    font-size: 12px; color: var(--text-soft);
    display: flex; gap: 12px; flex-wrap: wrap;
}
.rd-pgcard-meta i { margin-right: 3px; color: var(--green-main); }

/* Empty state */
.rd-empty-state {
    text-align: center; padding: 60px 20px; color: var(--text-soft);
    background: var(--bg-card); border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}
.rd-empty-state i { font-size: 48px; margin-bottom: 14px; display: block; }
.rd-empty-state p { font-size: 15px; margin: 0; }

/* Pagination */
.rd-pagination { display: flex; justify-content: center; padding-top: 8px; }
.rd-pagination .pagination {
    display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap;
}
.rd-pagination .pagination > li > a,
.rd-pagination .pagination > li > span {
    display: flex; align-items: center; justify-content: center;
    min-width: 36px; height: 36px; padding: 0 10px; border-radius: 8px;
    font-size: 13px; font-weight: 600; text-decoration: none;
    background: var(--bg-card); color: var(--text-mid);
    border: 1px solid rgba(0,0,0,.1); transition: all .2s;
    float: none;
}
.rd-pagination .pagination > li.active > span,
.rd-pagination .pagination > li > a:hover {
    background: var(--green-main); color: #fff; border-color: var(--green-main);
}
.rd-pagination .pagination > li.disabled > span { opacity: .45; pointer-events: none; }

/* ─── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .rd-footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .rd-content-slide h1 { font-size: 36px; }
    .rd-hero-prodi { min-width: 220px; }
    .rd-related-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    /* Navbar mobile */
    .rd-nav {
        display: none; position: fixed; inset: 0; top: 72px;
        background: #fff; flex-direction: column; align-items: flex-start;
        padding: 16px 0; overflow-y: auto; z-index: 999;
        box-shadow: 0 8px 40px rgba(0,0,0,.2);
    }
    .rd-nav.rd-open { display: flex; }
    .rd-nav > li { width: 100%; }
    .rd-nav > li > a {
        height: auto; padding: 12px 20px; border-radius: 0;
        border-bottom: 1px solid #f0f0f0;
    }
    .rd-drop {
        display: none; position: static;
        box-shadow: none; border: none; border-radius: 0;
        padding: 0 0 0 16px; background: var(--bg-soft);
        animation: none;
    }
    .rd-nav > li.rd-mob-open > .rd-drop { display: block; }
    .rd-drop.rd-mega { flex-direction: column; min-width: unset; }
    .rd-nav > li.rd-mob-open > .rd-drop.rd-mega { display: flex; }
    .rd-mega-col + .rd-mega-col { border-left: none; border-top: 1px solid #e0e0e0; }

    /* Hamburger */
    .rd-hamburger {
        display: flex; flex-direction: column; gap: 5px; cursor: pointer;
        padding: 8px; background: none; border: none;
    }
    .rd-hamburger span {
        display: block; width: 24px; height: 2px;
        background: var(--green-dark); border-radius: 2px; transition: all .3s;
    }
    .rd-hamburger.rd-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .rd-hamburger.rd-open span:nth-child(2) { opacity: 0; }
    .rd-hamburger.rd-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    /* Hero */
    .rd-hero { height: 420px; }
    .rd-content-slide .rd-inner { flex-direction: column; gap: 20px; }
    .rd-content-slide h1 { font-size: 26px; }
    .rd-hero-prodi { display: none; }
    .rd-hero-actions { flex-wrap: wrap; }

    /* Stats */
    .rd-stats .rd-inner { flex-wrap: wrap; }
    .rd-stat-item { min-width: 50%; flex: none; border-right: none; border-bottom: 1px solid #eee; }

    /* Main layout */
    .rd-main { grid-template-columns: 1fr; }
    /* Article detail */
    .rd-two-col { grid-template-columns: 1fr; }
    .rd-related-grid { grid-template-columns: repeat(2, 1fr); }
    .rd-article-hero-caption h1 { font-size: 18px; }

    /* Gallery */
    .rd-gallery-grid { grid-template-columns: repeat(3, 1fr); }
    .rd-gallery-item.rd-large { grid-column: span 1; grid-row: span 1; aspect-ratio: 1; }

    /* Footer */
    .rd-footer-grid { grid-template-columns: 1fr; gap: 24px; padding-bottom: 24px; }
    .rd-footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}

@media (max-width: 480px) {
    .rd-hero { height: 340px; }
    .rd-content-slide h1 { font-size: 22px; }
    .rd-gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .rd-stat-item { min-width: 100%; }
    .rd-news-card { flex-direction: column; }
    .rd-news-card .rd-thumb-sm { width: 100%; height: 140px; }
    .rd-related-grid { grid-template-columns: 1fr; }
    .rd-article-hero-caption h1 { font-size: 16px; }
}
