/* ============================================================
   MCFS - UIN Salatiga | Islamic Academic Modern Design System
   Palette: Deep Green + Elegant Gold + Cream White
   ============================================================ */

/* ===== RESET & BASE ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    /* Core palette - Islamic Academic */
    --primary: #0F6B3C;          /* UIN Deep Green */
    --primary-dark: #0A4D2A;
    --primary-mid: #1A8C4E;
    --primary-light: #E8F5EC;
    --accent: #C9A14A;           /* Elegant Gold */
    --accent-dark: #A68334;
    --accent-light: #E8D28A;
    --accent-soft: #FAF3DF;
    --gold: #C9A14A;

    --dark: #0F1F15;             /* Deep forest for text */
    --dark-soft: #1C2F22;
    --light: #FAFAF5;            /* Cream off-white */
    --white: #FFFFFF;
    --gray: #6B7A72;
    --gray-light: #B8C2BC;
    --border: #E4EAE5;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #0F6B3C 0%, #1A8C4E 100%);
    --gradient-gold: linear-gradient(135deg, #C9A14A 0%, #E8D28A 100%);
    --gradient-emerald: linear-gradient(135deg, #0A4D2A 0%, #1A8C4E 50%, #C9A14A 100%);
    --gradient-dark: linear-gradient(135deg, #0F1F15 0%, #0A4D2A 100%);

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(15, 107, 60, 0.08);
    --shadow-md: 0 8px 28px rgba(15, 107, 60, 0.12);
    --shadow-lg: 0 20px 60px rgba(15, 107, 60, 0.20);
    --shadow-gold: 0 10px 30px rgba(201, 161, 74, 0.3);
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    color: var(--dark);
    line-height: 1.7;
    background: var(--light);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
body > footer.footer { margin-top: auto; }

h1, h2, h3, h4 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; transition: all 0.3s ease; }
ul { list-style: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.text-center { text-align: center; }
.mt-40 { margin-top: 40px; }

/* ===== NAVBAR - Glassmorphism ===== */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid rgba(15, 107, 60, 0.08);
}
.navbar.scrolled {
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 4px 32px rgba(15, 107, 60, 0.08);
}
.nav-container {
    max-width: 1280px; margin: 0 auto;
    padding: 14px 28px;
    display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
    display: flex; align-items: center; gap: 14px;
    transition: transform 0.3s;
}
.nav-logo:hover { transform: translateY(-1px); }
.nav-logo img {
    width: 48px; height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent);
    box-shadow: 0 4px 12px rgba(201, 161, 74, 0.3);
}
.nav-logo span {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 20px;
    color: var(--primary);
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    letter-spacing: 0.5px;
}
.nav-logo small {
    font-size: 10px;
    color: var(--gray);
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.nav-menu { display: flex; gap: 4px; align-items: center; }
.nav-menu > li > a {
    padding: 10px 18px;
    color: var(--dark);
    font-weight: 500;
    font-size: 15px;
    border-radius: 10px;
    display: flex; align-items: center; gap: 6px;
    position: relative;
    transition: all 0.3s;
}
.nav-menu > li > a:hover {
    color: var(--primary);
    background: var(--primary-light);
}
.nav-menu > li > a.active {
    color: var(--primary);
    font-weight: 600;
}
.nav-menu > li > a.active::after {
    content: '';
    position: absolute;
    bottom: 0; left: 50%;
    transform: translateX(-50%);
    width: 24px; height: 3px;
    background: var(--gradient-gold);
    border-radius: 3px;
}

.dropdown { position: relative; }
.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px); left: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    min-width: 220px;
    padding: 8px;
    box-shadow: var(--shadow-md);
    border-radius: 14px;
    border: 1px solid var(--border);
    opacity: 0; visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s;
}
.dropdown:hover .dropdown-menu {
    opacity: 1; visibility: visible;
    transform: translateY(0);
}
.dropdown-menu li a {
    display: block;
    padding: 11px 16px;
    border-radius: 8px;
    color: var(--dark);
    font-size: 14px;
    font-weight: 500;
}
.dropdown-menu li a:hover {
    background: var(--primary-light);
    color: var(--primary);
    padding-left: 22px;
}

.btn-admin {
    background: var(--gradient-primary);
    color: white !important;
    padding: 10px 22px !important;
    border-radius: 50px !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 14px rgba(15, 107, 60, 0.25);
}
.btn-admin:hover {
    background: var(--dark) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(15, 107, 60, 0.35);
}
.btn-admin::after { display: none !important; }

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none; border: none;
    cursor: pointer; padding: 8px;
}
.hamburger span {
    width: 26px; height: 3px;
    background: var(--primary);
    border-radius: 3px;
    transition: all 0.3s;
}

/* ===== HERO - Full-bleed Elegant ===== */
.hero {
    min-height: 100vh;
    position: relative;
    display: flex; align-items: center; justify-content: center;
    color: white;
    overflow: hidden;
    text-align: center;
    padding: 100px 24px 60px;
}
/* Hero split (home baru) - bukan centered, padding lebih ramping */
.hero.split-2-col,
.hero-split-section {
    text-align: left;
    align-items: center;
    justify-content: flex-start;
    min-height: auto;
    padding: 120px 24px 80px;
}
.hero-bg {
    position: absolute; inset: 0;
    background: url('../assets/images/fakultas.jpeg') center/cover no-repeat;
    filter: brightness(0.45) saturate(1.1);
    transform: scale(1.08);
    will-change: transform;
    animation: slowZoom 25s ease-in-out infinite alternate;
}
/* Hero split: background lebih gelap di kiri supaya teks kontras,
   tapi kanan lebih terang supaya video card kelihatan */
.hero-split-section .hero-overlay {
    background:
        radial-gradient(circle at 20% 30%, rgba(201, 161, 74, 0.18) 0%, transparent 50%),
        linear-gradient(90deg,
            rgba(10, 31, 18, 0.92) 0%,
            rgba(10, 31, 18, 0.75) 45%,
            rgba(10, 31, 18, 0.55) 100%);
}
@keyframes slowZoom {
    from { transform: scale(1.08); }
    to { transform: scale(1.18); }
}
.hero-overlay {
    position: absolute; inset: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(201, 161, 74, 0.18) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(15, 107, 60, 0.35) 0%, transparent 50%),
        linear-gradient(180deg,
            rgba(10, 31, 18, 0.65) 0%,
            rgba(10, 31, 18, 0.45) 40%,
            rgba(10, 31, 18, 0.85) 100%);
}
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 960px;
    animation: heroFadeIn 1.2s ease-out;
}
@keyframes heroFadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
.hero-logo {
    width: 130px; height: 130px;
    border-radius: 50%;
    margin: 0 auto 28px;
    box-shadow: 0 0 0 6px rgba(201, 161, 74, 0.3), 0 0 60px rgba(201, 161, 74, 0.4);
    object-fit: cover;
    border: 3px solid var(--accent);
}
.floating { animation: float 4s ease-in-out infinite; }
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

.hero-title {
    font-size: clamp(36px, 7vw, 78px);
    margin-bottom: 24px;
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.05;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}
.gradient-text {
    background: linear-gradient(90deg, #FFFFFF 0%, #E8D28A 50%, #C9A14A 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: shine 4s linear infinite;
}
@keyframes shine { to { background-position: 200% center; } }

.hero-subtitle {
    font-size: clamp(16px, 1.8vw, 21px);
    opacity: 0.95;
    margin-bottom: 44px;
    font-weight: 400;
    letter-spacing: 0.3px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}
.hero-buttons {
    display: flex; gap: 18px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== HERO SPLIT (2 kolom: kiri teks, kanan video) ===== */
.hero-split {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 60px;
    align-items: center;
    width: 100%;
    animation: heroFadeIn 1.2s ease-out;
}
.hero-split-left { max-width: 640px; }
.hero-split-right { display: flex; justify-content: center; align-items: center; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 18px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(201, 161, 74, 0.55);
    color: var(--accent-light);
    border-radius: 50px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    margin-bottom: 26px;
    backdrop-filter: blur(8px);
}
.hero-badge i { color: var(--accent); font-size: 6px; }

.hero-title-split {
    font-size: clamp(34px, 6vw, 64px);
    margin-bottom: 22px;
    font-weight: 800;
    line-height: 1.05;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.45);
}
.hero-title-split .hero-line {
    display: block;
    overflow: hidden;
}
.hero-title-split .hero-line.green {
    color: #FFFFFF;
    background: linear-gradient(90deg, #4ECCA3 0%, #6FE5BD 60%, #B7F3D9 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.hero-title-split .hero-line.gold {
    background: linear-gradient(90deg, #E8D28A 0%, #C9A14A 50%, #A68334 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-subtitle-split {
    font-size: clamp(15px, 1.6vw, 18px);
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: 34px;
    max-width: 560px;
    line-height: 1.75;
}

.hero-buttons-split {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}
.btn-primary-green {
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: 0 10px 28px rgba(15, 107, 60, 0.55);
}
.btn-primary-green:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(15, 107, 60, 0.7);
    background: linear-gradient(135deg, #1A8C4E 0%, #0F6B3C 100%);
}
.btn-outline-pill {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(10px);
}
.btn-outline-pill:hover {
    background: #fff;
    color: var(--primary);
    border-color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 14px 32px rgba(255, 255, 255, 0.25);
}

.hero-quote {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--accent-light);
    font-size: 16px;
    font-weight: 500;
    margin-top: 6px;
}
.hero-quote i {
    color: var(--accent);
    font-size: 16px;
}
.hero-quote em {
    font-style: italic;
    letter-spacing: 0.3px;
}

/* ===== VIDEO CARD ===== */
.video-card {
    position: relative;
    width: 100%;
    max-width: 560px;
    border-radius: 20px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(201, 161, 74, 0.35);
    z-index: 3; /* pastikan di atas hero-overlay */
}
.video-wrap {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 */
    background: #000;
}
.video-wrap iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    z-index: 2; /* iframe di paling atas supaya bisa diklik */
}
.video-wrap.video-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding-bottom: 0;
    min-height: 280px;
    color: rgba(255, 255, 255, 0.6);
    background: linear-gradient(135deg, #0A4D2A 0%, #0F1F15 100%);
}
.video-wrap.video-empty i {
    font-size: 56px;
    color: var(--accent);
    margin-bottom: 12px;
}
.video-wrap.video-empty p { color: rgba(255, 255, 255, 0.7); font-size: 14px; }

/* Overlay judul - posisi di BAWAH video card, bukan menutupi iframe.
   Kalau menutupi iframe, iframe tidak bisa diklik. */
.video-overlay {
    position: relative;
    padding: 18px 22px;
    background: linear-gradient(180deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.9) 100%);
    pointer-events: none;
    z-index: 1;
}
.video-overlay-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 20px;
    color: #fff;
    line-height: 1.2;
    text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}
.video-overlay-sub {
    margin-top: 4px;
    font-size: 13px;
    color: var(--accent-light);
    font-weight: 500;
    letter-spacing: 0.3px;
}

/* ===== BUTTONS ===== */
.btn {
    padding: 15px 34px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 15px;
    display: inline-flex; align-items: center; gap: 10px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
    letter-spacing: 0.2px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}
.btn-primary {
    background: var(--gradient-gold);
    color: var(--dark);
    box-shadow: 0 10px 28px rgba(201, 161, 74, 0.4);
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(201, 161, 74, 0.55);
    background: linear-gradient(135deg, #E8D28A 0%, #C9A14A 100%);
}
.btn-outline {
    background: rgba(255, 255, 255, 0.08);
    color: white;
    border-color: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
}
.btn-outline:hover {
    background: white;
    color: var(--primary);
    border-color: white;
    transform: translateY(-3px);
    box-shadow: 0 14px 32px rgba(255, 255, 255, 0.25);
}

.scroll-indicator {
    position: absolute;
    bottom: 36px; left: 50%;
    transform: translateX(-50%);
    color: var(--accent-light);
    font-size: 22px;
    animation: bounce 2.2s infinite;
    z-index: 2;
}
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-12px); }
    60% { transform: translateX(-50%) translateY(-6px); }
}

/* ===== SECTIONS ===== */
.section { padding: 100px 0; position: relative; }
.section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 64px;
}
.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: var(--accent-soft);
    color: var(--accent-dark);
    border: 1px solid var(--accent-light);
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 2px;
    text-transform: uppercase;
}
.section-tag::before {
    content: '';
    width: 6px; height: 6px;
    background: var(--accent);
    border-radius: 50%;
}
.section-header h2 {
    font-size: clamp(30px, 4.5vw, 48px);
    margin-bottom: 18px;
    color: var(--dark);
    font-weight: 800;
}
.section-header p {
    color: var(--gray);
    font-size: 17px;
    line-height: 1.7;
}

/* About Grid */
.about-section { background: var(--white); }
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}
.about-card {
    background: var(--white);
    padding: 44px 32px;
    border-radius: 24px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}
.about-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: var(--gradient-gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s;
}
.about-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-light);
}
.about-card:hover::before { transform: scaleX(1); }
.about-card h3 {
    font-size: 22px;
    color: var(--primary);
    margin-bottom: 12px;
}
.about-card p {
    color: var(--gray);
    font-size: 15px;
    line-height: 1.7;
}

.card-icon {
    width: 84px; height: 84px;
    border-radius: 22px;
    display: flex; align-items: center; justify-content: center;
    color: white;
    font-size: 34px;
    margin: 0 auto 24px;
    transition: transform 0.5s;
    box-shadow: var(--shadow-md);
}
.about-card:hover .card-icon {
    transform: rotate(-6deg) scale(1.1);
}
.gradient-bg-1 { background: var(--gradient-primary); }
.gradient-bg-2 { background: var(--gradient-gold); color: var(--dark) !important; }
.gradient-bg-3 { background: var(--gradient-emerald); }

/* Services Preview */
.services-preview {
    background:
        linear-gradient(180deg, var(--light) 0%, #F0EDE0 100%);
    position: relative;
}
.services-preview::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
}
.service-item {
    background: white;
    padding: 44px 24px;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s;
    cursor: pointer;
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}
.service-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.4s;
    z-index: 0;
}
.service-item > * { position: relative; z-index: 1; }
.service-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    color: white;
}
.service-item:hover::after { opacity: 1; }
.service-item:hover h4 { color: white; }
.service-item:hover i { color: var(--accent-light); }
.service-item i {
    font-size: 42px;
    color: var(--primary);
    margin-bottom: 18px;
    transition: all 0.4s;
}
.service-item h4 {
    font-size: 17px;
    color: var(--dark);
    transition: color 0.4s;
    font-weight: 600;
}

/* ===== SERVICES PREVIEW (Foto) - Grid 2 kolom, card HORIZONTAL (foto kiri + teks kanan) ===== */
.services-grid-photo {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}
.service-card-photo {
    display: flex;
    flex-direction: row;          /* HORIZONTAL: foto kiri + body kanan */
    align-items: stretch;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    position: relative;
    min-height: 160px;
}
.service-card-photo:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-light);
}
.service-photo {
    position: relative;
    width: 42%;                   /* foto ambil ~42% lebar card */
    flex-shrink: 0;
    background: var(--primary-light);
    overflow: hidden;
}
.service-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.service-card-photo:hover .service-photo img {
    transform: scale(1.08);
}
.service-photo-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-light) 0%, #DDEFE3 100%);
    color: var(--primary);
    font-size: 42px;
}
.service-body {
    padding: 20px 22px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: relative;
    flex: 1;
    justify-content: center;
}
.service-body h4 {
    font-family: 'Poppins', sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.3;
    padding-right: 44px;          /* ruang untuk arrow di kanan */
}
.service-body p {
    color: var(--gray);
    font-size: 13.5px;
    line-height: 1.6;
    flex: 1;
}
.service-arrow {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary);
    display: flex; align-items: center; justify-content: center;
    font-size: 13px;
    transition: all 0.3s ease;
}
.service-card-photo:hover .service-arrow {
    background: var(--gradient-gold);
    color: var(--dark);
    transform: translateY(-50%) translateX(2px);
}
@media (max-width: 900px) {
    .services-grid-photo { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    .service-card-photo { flex-direction: column; min-height: auto; }
    .service-photo { width: 100%; aspect-ratio: 16 / 9; }
    .service-body h4 { padding-right: 44px; }
}

/* News Grid */
.news-preview { background: var(--white); }
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}
.news-card {
    background: white;
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
}
.news-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-light);
}
.news-image {
    position: relative;
    height: 160px;
    overflow: hidden;
    background: var(--primary-light);
}
.news-image img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.6s;
}
.news-card:hover .news-image img { transform: scale(1.08); }
.news-photo-count {
    position: absolute;
    bottom: 10px; right: 10px;
    background: rgba(15, 31, 21, 0.82);
    color: white;
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 5px;
    backdrop-filter: blur(8px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
}
.news-photo-count i { color: var(--accent-light); }
.news-category {
    position: absolute;
    top: 10px; left: 10px;
    background: var(--gradient-gold);
    color: var(--dark);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}
.news-body { padding: 16px 18px 18px; flex: 1; display: flex; flex-direction: column; }
.news-date {
    font-size: 12px;
    color: var(--gray);
    margin-bottom: 8px;
    font-weight: 500;
}
.news-date i { color: var(--accent); margin-right: 5px; }
.news-title {
    font-size: 15px;
    margin-bottom: 8px;
    color: var(--dark);
    line-height: 1.4;
    font-weight: 700;
    flex: 0 0 auto;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-excerpt {
    color: var(--gray);
    font-size: 13px;
    margin-bottom: 12px;
    line-height: 1.55;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-link {
    color: var(--primary);
    font-weight: 600;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: gap 0.3s;
}
.news-link:hover {
    color: var(--accent-dark);
    gap: 10px;
}

/* Stats */
.stats-section {
    background:
        radial-gradient(circle at 80% 20%, rgba(201, 161, 74, 0.18), transparent 50%),
        radial-gradient(circle at 20% 80%, rgba(26, 140, 78, 0.22), transparent 50%),
        linear-gradient(135deg, #1B5E4A 0%, #134134 60%, #0A2E22 100%);
    color: white;
    padding: 90px 0;
    position: relative;
    overflow: hidden;
}
/* Islamic geometric watermark pattern (subtle) */
.stats-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(45deg, rgba(255,255,255,0.025) 0 1px, transparent 1px 22px),
        repeating-linear-gradient(-45deg, rgba(255,255,255,0.025) 0 1px, transparent 1px 22px),
        radial-gradient(circle at 50% 50%, rgba(201, 161, 74, 0.08) 0%, transparent 35%);
    background-size: 44px 44px, 44px 44px, 320px 320px;
    pointer-events: none;
}
.stats-section .container { position: relative; z-index: 1; }
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    text-align: center;
    position: relative;
    z-index: 1;
}
.stat-item { position: relative; }
.stat-number {
    font-size: 64px;
    font-weight: 800;
    font-family: 'Poppins', sans-serif;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1;
    letter-spacing: -2px;
}
.stat-label {
    font-size: 15px;
    opacity: 0.85;
    margin-top: 12px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ===== STATS GRID DIVIDER (4 kolom, dark green, divider vertikal) ===== */
.stats-grid-divider {
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    padding: 36px 16px;
    backdrop-filter: blur(6px);
}
.stats-grid-divider .stat-item {
    padding: 18px 24px;
    text-align: center;
    border-right: 1px solid rgba(255, 255, 255, 0.18);
}
.stats-grid-divider .stat-item:last-child { border-right: none; }
.stats-grid-divider .stat-icon {
    width: 56px; height: 56px;
    margin: 0 auto 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 26px;
    color: var(--accent-light);
    background: rgba(201, 161, 74, 0.12);
    border: 1px solid rgba(201, 161, 74, 0.32);
    border-radius: 14px;
}
.stats-grid-divider .stat-number {
    font-size: clamp(34px, 4vw, 52px);
    color: #fff;
    background: none;
    -webkit-text-fill-color: #fff;
}
.stats-grid-divider .stat-label {
    color: rgba(255, 255, 255, 0.82);
    font-size: 13px;
    margin-top: 10px;
    letter-spacing: 0.6px;
    text-transform: none;
    font-weight: 500;
}

/* Page Header */
.page-header {
    background: var(--gradient-dark);
    color: white;
    padding: 160px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../assets/images/fakultas.jpeg') center/cover;
    opacity: 0.18;
    filter: blur(1px);
}
.page-header::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 50% 100%, rgba(201, 161, 74, 0.25), transparent 60%);
}
.page-header .container { position: relative; z-index: 2; }
.page-header h1 {
    font-size: clamp(34px, 5.5vw, 54px);
    margin-bottom: 14px;
    font-weight: 800;
    letter-spacing: -1px;
}
.page-header h1::after {
    content: '';
    display: block;
    width: 80px; height: 4px;
    background: var(--gradient-gold);
    border-radius: 3px;
    margin: 20px auto 0;
}
.page-header p {
    font-size: 18px;
    opacity: 0.92;
    max-width: 600px;
    margin: 0 auto;
}

/* Sejarah */
.sejarah-content {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 60px;
    align-items: center;
}
.sejarah-image { position: relative; }
.sejarah-image::before {
    content: '';
    position: absolute;
    top: -20px; left: -20px;
    right: 20px; bottom: 20px;
    background: var(--gradient-gold);
    border-radius: 24px;
    z-index: -1;
    opacity: 0.3;
}
.sejarah-image img {
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    width: 100%;
    object-fit: cover;
}
.sejarah-text h3 {
    font-size: 30px;
    margin-bottom: 22px;
    color: var(--primary);
    line-height: 1.3;
}
.sejarah-text p {
    color: var(--gray);
    margin-bottom: 16px;
    line-height: 1.9;
    font-size: 15.5px;
}

/* Visi Misi */
.visi-misi-section {
    background: linear-gradient(180deg, var(--light) 0%, #F0EDE0 100%);
    position: relative;
}
.vm-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}
.vm-card {
    background: white;
    padding: 44px 36px;
    border-radius: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: all 0.4s;
    position: relative;
}
.vm-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-light);
}
.vm-card:nth-child(1) { border-top: 4px solid var(--primary); }
.vm-card:nth-child(2) { border-top: 4px solid var(--accent); }
.vm-icon {
    width: 72px; height: 72px;
    border-radius: 20px;
    background: var(--gradient-primary);
    color: white;
    display: flex; align-items: center; justify-content: center;
    font-size: 30px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-md);
}
.vm-card:nth-child(2) .vm-icon {
    background: var(--gradient-gold);
    color: var(--dark);
}
.vm-card h3 {
    color: var(--primary);
    margin-bottom: 18px;
    font-size: 24px;
}
.vm-card:nth-child(2) h3 { color: var(--accent-dark); }
.vm-card p, .vm-card li {
    color: var(--gray);
    line-height: 1.9;
    font-size: 15px;
}
.vm-card ul li {
    padding-left: 30px;
    position: relative;
    margin-bottom: 12px;
}
.vm-card ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    width: 22px; height: 22px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 12px;
}

/* Struktur */
.struktur-section {
    background:
        linear-gradient(180deg, white 0%, var(--light) 100%);
}
.struktur-level {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}
.person-card {
    background: white;
    padding: 32px 28px;
    border-radius: 22px;
    text-align: center;
    box-shadow: var(--shadow-md);
    min-width: 260px;
    transition: all 0.4s;
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}
.person-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
}
.person-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}
.person-avatar {
    width: 88px; height: 88px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: white;
    display: flex; align-items: center; justify-content: center;
    font-size: 38px;
    margin: 0 auto 20px;
    box-shadow: var(--shadow-md);
    border: 3px solid white;
}
/* Pasfoto 2x3 pada kartu pimpinan/officer (rasio 2:3, portrait) */
.person-avatar.has-photo {
    width: 66px;
    height: 99px;
    border-radius: 8px;
    border: 3px solid var(--accent-light);
    background: var(--light);
    overflow: hidden;
    padding: 0;
}
.person-avatar-foto {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.person-card.director::before { background: var(--gradient-gold); }
.person-card.director .person-avatar {
    background: var(--gradient-gold);
    color: var(--dark);
}
.person-card.officer::before { background: var(--gradient-primary); }
.person-card h3 {
    font-size: 18px;
    margin-bottom: 6px;
    color: var(--dark);
}
.person-role {
    color: var(--primary);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.3px;
}
.person-card.director .person-role { color: var(--accent-dark); }

.divisions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}
.division-card {
    background: white;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.4s;
    border: 1px solid var(--border);
}
.division-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}
.division-header {
    padding: 30px 24px;
    color: white;
    text-align: center;
}
.division-header i {
    font-size: 40px;
    margin-bottom: 12px;
    display: block;
}
.division-header h3 {
    font-size: 22px;
    font-weight: 700;
}
.division-body { padding: 22px; }
.member {
    display: flex; gap: 16px;
    align-items: center;
    padding: 14px 16px;
    border-radius: 14px;
    margin-bottom: 8px;
    transition: all 0.3s;
    border: 1px solid transparent;
}
.member:hover {
    background: var(--light);
    border-color: var(--border);
}
.member i {
    font-size: 20px;
    color: var(--gray);
    width: 28px; text-align: center;
}
.member.coordinator i {
    color: var(--accent);
    font-size: 22px;
}
.member.coordinator {
    background: var(--accent-soft);
    border-color: var(--accent-light);
}
/* Pasfoto 2x3 kecil pada daftar anggota divisi */
.member-avatar {
    width: 28px;
    text-align: center;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.member-avatar-foto {
    width: 44px;
    height: 66px;
    object-fit: cover;
    border-radius: 6px;
    border: 2px solid var(--accent-light);
    box-shadow: var(--shadow-sm);
}
.member.has-photo .member-avatar { width: auto; }
.member.has-photo {
    padding-top: 18px;
    padding-bottom: 18px;
}
.member.coordinator .member-avatar-foto {
    border-color: var(--accent);
}
.member h4 {
    font-size: 15px;
    margin-bottom: 2px;
    color: var(--dark);
    font-weight: 600;
}
.member span {
    font-size: 12px;
    color: var(--gray);
    font-weight: 500;
}

/* Filter Bar */
.filter-bar {
    display: flex; gap: 16px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}
.search-input, .filter-select {
    padding: 15px 22px;
    border: 2px solid var(--border);
    border-radius: 50px;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s;
    background: white;
    color: var(--dark);
}
.search-input { flex: 1; min-width: 240px; }
.search-input:focus, .filter-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-light);
}

.no-result {
    text-align: center;
    padding: 80px 20px;
    color: var(--gray);
}
.no-result i {
    font-size: 72px;
    margin-bottom: 20px;
    opacity: 0.25;
    color: var(--primary);
}

/* Modal */
.modal {
    display: none;
    position: fixed; inset: 0;
    z-index: 2000;
    background: rgba(10, 31, 18, 0.75);
    backdrop-filter: blur(6px);
    align-items: center; justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s;
}
.modal.active { display: flex; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal-content {
    background: white;
    border-radius: 20px;
    max-width: 760px; width: 100%;
    max-height: 92vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.4s;
    box-shadow: var(--shadow-lg);
    -webkit-overflow-scrolling: touch;
}
@keyframes slideUp {
    from { transform: translateY(40px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
.modal-close {
    position: absolute;
    top: 14px; right: 14px;
    font-size: 26px;
    cursor: pointer;
    color: white;
    z-index: 10;
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(10px);
    transition: all 0.3s;
    line-height: 1;
}
.modal-close:hover {
    background: var(--accent);
    color: var(--dark);
    transform: rotate(90deg);
}
.modal-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 20px 20px 0 0;
}
.modal-body-content { padding: 28px 30px 32px; }
.modal-body-content h2 {
    font-size: 26px;
    margin-bottom: 14px;
    color: var(--primary);
    line-height: 1.35;
}
.modal-meta {
    display: flex; gap: 20px;
    color: var(--gray);
    font-size: 13.5px;
    margin-bottom: 22px;
    flex-wrap: wrap;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border);
}
.modal-meta span { display: flex; align-items: center; gap: 6px; }
.modal-meta i { color: var(--accent); }
.modal-text { color: var(--dark); line-height: 1.85; font-size: 15px; }
.modal-text p { margin-bottom: 14px; }

/* Galeri Foto dalam Modal Berita */
.modal-gallery { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--border); }
.modal-gallery h4 {
    font-size: 17px;
    color: var(--primary);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.modal-gallery h4 i { color: var(--accent); }
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
}
.gallery-item {
    position: relative;
    aspect-ratio: 4 / 3;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.3s, transform 0.3s;
}
.gallery-item:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-zoom {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 31, 21, 0.45);
    color: white;
    font-size: 22px;
    opacity: 0;
    transition: opacity 0.3s;
}
.gallery-item:hover .gallery-zoom { opacity: 1; }

/* Lightbox / Viewer Foto */
.gallery-viewer {
    position: fixed;
    inset: 0;
    background: rgba(8, 18, 12, 0.94);
    z-index: 5000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 40px;
    backdrop-filter: blur(6px);
}
.gallery-viewer.active { display: flex; }
.gallery-viewer img {
    max-width: 90vw;
    max-height: 88vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.6);
}
.gallery-viewer-close {
    position: absolute;
    top: 24px; right: 32px;
    width: 48px; height: 48px;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid rgba(255,255,255,0.2);
}
.gallery-viewer-close:hover { background: var(--accent); color: var(--dark); transform: rotate(90deg); }

/* Layanan Grid */
.layanan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    align-items: stretch; /* semua kartu setinggi kartu tertinggi */
}
.layanan-card {
    background: white;
    padding: 44px 34px;
    border-radius: 22px;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s;
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
    display: flex;          /* FLEX COLUMN supaya tombol bisa dorong ke bawah */
    flex-direction: column;
    height: 100%;
}
.layanan-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 5px; height: 100%;
    background: var(--gradient-primary);
    transition: all 0.4s;
}
.layanan-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-light);
}
.layanan-card:hover::before {
    width: 100%;
    opacity: 0.04;
    background: var(--gradient-gold);
}
.layanan-card > * { position: relative; }
.layanan-icon {
    width: 72px; height: 72px;
    border-radius: 20px;
    background: var(--gradient-primary);
    color: white;
    display: flex; align-items: center; justify-content: center;
    font-size: 30px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-md);
    transition: all 0.4s;
}
.layanan-card:hover .layanan-icon {
    background: var(--gradient-gold);
    color: var(--dark);
    transform: rotate(-5deg) scale(1.08);
}
.layanan-card h3 {
    margin-bottom: 14px;
    color: var(--primary);
    font-size: 22px;
}
.layanan-card p {
    color: var(--gray);
    line-height: 1.8;
    font-size: 15px;
    /* deskripsi fleksibel - ikut membesar sesuai konten, sisanya dorong CTA ke bawah */
    flex: 1 1 auto;
}
.layanan-card { cursor: pointer; }
.layanan-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;       /* <-- INI KUNCI: dorong tombol ke paling bawah kartu */
    padding: 10px 18px;
    border-radius: 50px;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 13px;
    font-weight: 700;
    transition: all 0.3s;
    align-self: flex-start;
}
.layanan-card:hover .layanan-cta {
    background: var(--gradient-gold);
    color: var(--dark);
}
.layanan-cta i { font-size: 15px; }

/* ===== LAYANAN CARD PHOTO (Foto-based) untuk halaman layanan.php ===== */
.layanan-card-photo {
    padding: 0;
    border-radius: 18px;
    overflow: hidden;
}
.layanan-card-photo::before { display: none; }
.layanan-card-photo .layanan-photo {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--primary-light);
}
.layanan-card-photo .layanan-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.layanan-card-photo:hover .layanan-photo img {
    transform: scale(1.07);
}
.layanan-card-photo-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-light) 0%, #DDEFE3 100%);
    color: var(--primary);
    font-size: 52px;
}
.layanan-card-photo .layanan-card-body {
    padding: 26px 28px 28px;
    display: flex;
    flex-direction: column;
    flex: 1;
    position: relative;
}
.layanan-card-photo .layanan-card-body h3 {
    margin-bottom: 12px;
    color: var(--primary);
    font-size: 22px;
    font-weight: 700;
}
.layanan-card-photo .layanan-card-body p {
    color: var(--gray);
    line-height: 1.75;
    font-size: 15px;
    margin-bottom: 20px;
    flex: 1 1 auto;
}
.layanan-card-photo .layanan-cta {
    align-self: flex-start;
    margin-top: auto;
}

.cta-section {
    background: var(--gradient-dark);
    padding: 100px 0;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(201, 161, 74, 0.2), transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(15, 107, 60, 0.3), transparent 50%);
}
.cta-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
}
.cta-content h2 {
    font-size: clamp(30px, 4.5vw, 44px);
    margin-bottom: 22px;
    font-weight: 800;
}
.cta-content p {
    font-size: 18px;
    margin-bottom: 36px;
    opacity: 0.92;
    line-height: 1.7;
}

/* Regulasi */
.regulasi-list { max-width: 1080px; margin: 0 auto; }
.regulasi-card {
    background: white;
    padding: 28px 32px;
    border-radius: 18px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s;
    display: flex; gap: 26px;
    align-items: center;
    border: 1px solid var(--border);
    border-left: 5px solid var(--primary);
}
.regulasi-card:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-md);
    border-left-color: var(--accent);
}
.regulasi-icon {
    width: 64px; height: 64px;
    border-radius: 16px;
    background: var(--gradient-primary);
    color: white;
    display: flex; align-items: center; justify-content: center;
    font-size: 28px;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s;
}
.regulasi-card:hover .regulasi-icon {
    background: var(--gradient-gold);
    color: var(--dark);
    transform: rotate(-5deg);
}
.regulasi-content { flex: 1; min-width: 0; }
.regulasi-content h3 {
    font-size: 19px;
    margin-bottom: 8px;
    color: var(--primary);
}
.regulasi-content p {
    color: var(--gray);
    font-size: 14px;
    line-height: 1.7;
}
.regulasi-date {
    font-size: 12px;
    color: var(--accent-dark);
    font-weight: 700;
    margin-top: 10px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.regulasi-action { flex-shrink: 0; }
.regulasi-download {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    border-radius: 12px;
    background: var(--gradient-primary);
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 6px 18px rgba(15, 107, 60, 0.25);
    transition: all 0.3s;
    white-space: nowrap;
}
.regulasi-download i { font-size: 18px; }
.regulasi-download span { display: flex; flex-direction: column; line-height: 1.3; }
.regulasi-download small { font-size: 11px; opacity: 0.85; font-weight: 500; letter-spacing: 0.4px; text-transform: uppercase; }
.regulasi-download strong { font-size: 14px; font-weight: 700; max-width: 160px; overflow: hidden; text-overflow: ellipsis; }
.regulasi-download:hover {
    transform: translateY(-3px);
    background: var(--gradient-gold);
    color: var(--dark);
    box-shadow: var(--shadow-gold);
}
.regulasi-noberkas {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    border-radius: 12px;
    background: var(--light);
    border: 1px dashed var(--border);
    color: var(--gray);
    font-size: 13px;
    white-space: nowrap;
}
.regulasi-noberkas i { color: var(--gray-light); font-size: 16px; }
.regulasi-noberkas small { font-weight: 600; }

/* Footer */
.footer {
    background: var(--dark);
    color: white;
    padding: 80px 0 24px;
    position: relative;
}
.footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: var(--gradient-gold);
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.3fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}
.footer-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
}
.footer-brand img {
    width: 54px; height: 54px;
    border-radius: 50%;
    border: 2px solid var(--accent);
}
.footer-brand h3 {
    font-size: 26px;
    color: var(--accent);
    font-weight: 800;
}
.footer-col > p {
    color: #A8B3AC;
    line-height: 1.8;
    font-size: 14px;
}
.footer-col h4 {
    font-size: 16px;
    margin-bottom: 22px;
    color: white;
    position: relative;
    padding-bottom: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
}
.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 40px; height: 3px;
    background: var(--gradient-gold);
    border-radius: 3px;
}
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a {
    color: #A8B3AC;
    font-size: 14px;
    transition: all 0.3s;
}
.footer-col ul li a:hover {
    color: var(--accent);
    padding-left: 8px;
}
.contact-list li {
    color: #A8B3AC;
    font-size: 14px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
    line-height: 1.6;
}
.contact-list li i {
    color: var(--accent);
    margin-top: 3px;
}
.social-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.social-links a {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: white;
    display: flex; align-items: center; justify-content: center;
    font-size: 17px;
    transition: all 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.social-links a:hover {
    background: var(--gradient-gold);
    color: var(--dark);
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: var(--shadow-gold);
}
.footer-bottom {
    text-align: center;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #A8B3AC;
    font-size: 14px;
}

/* Fade in animation */
.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.9s cubic-bezier(0.4, 0, 0.2, 1);
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 968px) {
    .nav-menu {
        position: fixed;
        top: 76px; left: 0; right: 0;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        padding: 24px;
        gap: 8px;
        box-shadow: var(--shadow-md);
        transform: translateX(-100%);
        transition: transform 0.4s;
        max-height: calc(100vh - 76px);
        overflow-y: auto;
    }
    .nav-menu.active { transform: translateX(0); }
    .nav-menu > li { width: 100%; }
    .nav-menu > li > a { width: 100%; padding: 14px 18px; }
    .hamburger { display: flex; }
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: var(--light);
        margin-top: 4px;
        border: none;
    }
    .sejarah-content { grid-template-columns: 1fr; gap: 40px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
    .section { padding: 70px 0; }
    .section-header { margin-bottom: 48px; }

    /* Hero split -> 1 kolom di tablet */
    .hero-split {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: left;
    }
    .hero-split-right { order: -1; }
    .video-card { max-width: 100%; }

    /* Services preview photo -> 2 kolom di tablet */
    .services-grid-photo { grid-template-columns: repeat(2, 1fr); }

    /* Stats divider -> 2x2 di tablet */
    .stats-grid-divider { grid-template-columns: repeat(2, 1fr); gap: 0; }
    .stats-grid-divider .stat-item:nth-child(2n) { border-right: none; }
    .stats-grid-divider .stat-item:nth-child(-n+2) { border-bottom: 1px solid rgba(255, 255, 255, 0.18); }
}

@media (max-width: 576px) {
    .footer-grid { grid-template-columns: 1fr; }
    .hero-buttons { flex-direction: column; align-items: stretch; }
    .hero-buttons .btn { justify-content: center; }
    .regulasi-card { flex-direction: column; text-align: center; align-items: stretch; gap: 18px; }
    .regulasi-icon { align-self: center; }
    .regulasi-action { text-align: center; }
    .regulasi-download, .regulasi-noberkas { width: 100%; justify-content: center; }
    .regulasi-download strong { max-width: none; }
    .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 10px; }
    .stat-number { font-size: 48px; }
    .modal-body-content { padding: 20px; }
    .modal-body-content h2 { font-size: 21px; }
    .modal-image { height: 200px; border-radius: 20px 20px 0 0; }
    .modal-meta { gap: 14px; font-size: 12.5px; }
    .modal-gallery h4 { font-size: 15px; }
    .nav-logo span { font-size: 17px; }
    .nav-logo img { width: 42px; height: 42px; }
    .hero-logo { width: 110px; height: 110px; }

    /* Mobile: hero split single column, services 1 col */
    .hero-split { gap: 28px; }
    .hero-split-right { order: -1; }
    .services-grid-photo { grid-template-columns: 1fr; }
    .hero-buttons-split { flex-direction: column; align-items: stretch; }
    .hero-buttons-split .btn { justify-content: center; }
    .stats-grid-divider { grid-template-columns: 1fr; padding: 24px 8px; }
    .stats-grid-divider .stat-item {
        border-right: none !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.18);
        padding: 18px 12px;
    }
    .stats-grid-divider .stat-item:last-child { border-bottom: none; }
    .video-overlay-title { font-size: 18px; }
    .video-overlay { padding: 18px 18px 16px; }
}

/* ============================================================
   TASK 9 - ROMBAK LAYOUT HALAMAN BERITA
   ============================================================ */

/* ===== PAGE HEADER BERITA (background foto fakultas + overlay gelap) ===== */
.page-header-berita {
    background: url('../assets/images/fakultas.jpeg') center/cover no-repeat;
    background-attachment: fixed;
    padding: 140px 0 80px;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(201, 161, 74, 0.3);
}
/* Overlay gelap supaya teks putih kontras */
.page-header-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(201, 161, 74, 0.18) 0%, transparent 50%),
        linear-gradient(180deg,
            rgba(10, 31, 18, 0.78) 0%,
            rgba(10, 31, 18, 0.62) 50%,
            rgba(10, 31, 18, 0.85) 100%);
    pointer-events: none;
}
.page-header-berita::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 85% 15%, rgba(201, 161, 74, 0.12), transparent 45%),
        radial-gradient(circle at 10% 90%, rgba(15, 107, 60, 0.10), transparent 50%);
    pointer-events: none;
    z-index: 1;
}
.page-header-berita .container { position: relative; z-index: 2; }

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 18px;
    font-weight: 500;
}
.breadcrumb a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    transition: color 0.2s;
}
.breadcrumb a:hover { color: var(--accent-light); }
.breadcrumb i {
    font-size: 9px;
    color: rgba(255, 255, 255, 0.5);
}
.breadcrumb span { color: #fff; font-weight: 600; }

.page-header-berita h1 {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(34px, 4.5vw, 42px);
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    letter-spacing: -0.8px;
    margin-bottom: 14px;
    text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}
.page-header-berita .page-desc {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.92);
    line-height: 1.65;
    max-width: 640px;
    margin-bottom: 18px;
    text-shadow: 0 1px 6px rgba(0,0,0,0.4);
}
.page-header-berita .page-quote {
    display: inline-block;
    font-style: italic;
    font-size: 15.5px;
    color: var(--accent-light);
    font-weight: 500;
    position: relative;
    padding-bottom: 12px;
    margin-top: 4px;
    text-shadow: 0 1px 6px rgba(0,0,0,0.5);
}
.page-header-berita .page-quote::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 64px;
    height: 3px;
    border-radius: 3px;
    background: linear-gradient(90deg, transparent, #ca8a04, #eab308, #ca8a04, transparent);
}

/* ===== SEARCH & FILTER BERITA ===== */
.berita-search-section {
    background: var(--white);
    padding: 28px 0 8px;
    border-bottom: 1px solid var(--border);
}
.berita-search-bar {
    display: flex;
    gap: 12px;
    align-items: stretch;
    margin-bottom: 18px;
}
.berita-search-input {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}
.berita-search-input > i {
    position: absolute;
    left: 18px;
    color: var(--gray);
    font-size: 14px;
    pointer-events: none;
}
.berita-search-input input {
    width: 100%;
    padding: 13px 20px 13px 44px;
    border: 2px solid var(--border);
    border-radius: 50px;
    font-size: 14.5px;
    font-family: inherit;
    background: #f9fafb;
    color: var(--dark);
    transition: all 0.25s;
}
.berita-search-input input::placeholder { color: var(--gray-light); }
.berita-search-input input:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 4px var(--primary-light);
}
.berita-search-select {
    position: relative;
    display: flex;
    align-items: center;
}
.berita-search-select select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding: 13px 44px 13px 20px;
    border: 2px solid var(--border);
    border-radius: 50px;
    font-size: 14.5px;
    font-family: inherit;
    background: #f9fafb;
    color: var(--dark);
    cursor: pointer;
    transition: all 0.25s;
    min-width: 180px;
}
.berita-search-select select:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 4px var(--primary-light);
}
.berita-search-select > i {
    position: absolute;
    right: 18px;
    color: var(--gray);
    font-size: 11px;
    pointer-events: none;
}
.berita-search-btn {
    padding: 13px 26px;
    border: none;
    border-radius: 50px;
    background: var(--gradient-primary);
    color: white;
    font-family: inherit;
    font-weight: 600;
    font-size: 14.5px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s;
    box-shadow: 0 6px 18px rgba(15, 107, 60, 0.25);
}
.berita-search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(15, 107, 60, 0.35);
}
.berita-search-btn:active { transform: translateY(0); }

.berita-filter-pills {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 4px 0 10px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}
.berita-filter-pills::-webkit-scrollbar { height: 4px; }
.berita-filter-pills::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

.filter-pill {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 18px;
    border: 1.5px solid var(--border);
    border-radius: 50px;
    background: white;
    color: var(--gray);
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s;
    white-space: nowrap;
}
.filter-pill i { font-size: 12px; }
.filter-pill:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-1px);
}
.filter-pill.active {
    background: #166534;
    border-color: #166534;
    color: white;
    box-shadow: 0 6px 16px rgba(22, 101, 52, 0.28);
}
.filter-pill.active i { color: #fde68a; }

/* ===== LAYOUT 2 KOLOM BERITA ===== */
.section-berita { padding: 48px 0 80px; background: var(--light); }
.berita-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
    align-items: start;
}
.berita-main { min-width: 0; }
.berita-sidebar {
    position: sticky;
    top: 100px;
}

/* ===== GRID BERITA 3 KOLOM ===== */
.berita-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* ===== CARD BERITA VERTIKAL ===== */
.news-card-v {
    background: white;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.news-card-v:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-light);
}
.news-card-v .news-thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--primary-light);
}
.news-card-v .news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.news-card-v:hover .news-thumb img { transform: scale(1.08); }

.news-card-v .news-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, #ca8a04 0%, #eab308 100%);
    color: white;
    padding: 5px 13px;
    border-radius: 50px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.7px;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(202, 138, 4, 0.4);
}
.news-card-v .news-gallery-count {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(15, 31, 21, 0.78);
    color: white;
    padding: 5px 11px;
    border-radius: 50px;
    font-size: 11.5px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    backdrop-filter: blur(6px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}
.news-card-v .news-gallery-count i { color: var(--accent-light); font-size: 11px; }

.news-card-v .news-content {
    padding: 16px 18px 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.news-card-v .news-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 12px;
    color: var(--gray);
    margin-bottom: 10px;
    font-weight: 500;
    flex-wrap: wrap;
}
.news-card-v .news-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.news-card-v .news-meta i { color: var(--primary); font-size: 11px; }

.news-card-v h3.news-title-v {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.4;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.25s;
}
.news-card-v:hover h3.news-title-v { color: var(--primary); }

.news-card-v .news-excerpt-v {
    font-size: 13px;
    color: var(--gray);
    line-height: 1.6;
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

.news-card-v .news-read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #15803d;
    font-weight: 600;
    font-size: 13px;
    transition: gap 0.25s, color 0.25s;
    align-self: flex-start;
}
.news-card-v:hover .news-read-more {
    gap: 10px;
    color: var(--primary-dark);
}

/* ===== SIDEBAR WIDGET ===== */
.sidebar-widget {
    background: white;
    border-radius: 14px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    padding: 22px 20px;
}
.sidebar-widget-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}
.sidebar-widget-head h4 {
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: var(--dark);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.sidebar-widget-head h4 i { color: #dc2626; font-size: 14px; }
.sidebar-see-all {
    font-size: 11.5px;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: gap 0.25s;
}
.sidebar-see-all:hover { gap: 8px; }

.popular-list { display: flex; flex-direction: column; gap: 12px; }
.popular-item {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 8px;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s;
}
.popular-item:hover { background: var(--primary-light); }
.popular-num {
    flex: 0 0 26px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: white;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 8px rgba(15, 107, 60, 0.25);
}
.popular-thumb {
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--primary-light);
}
.popular-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.popular-info { flex: 1; min-width: 0; }
.popular-info h5 {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: var(--dark);
    line-height: 1.35;
    margin-bottom: 3px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.popular-item:hover .popular-info h5 { color: var(--primary); }
.popular-info .popular-date {
    font-size: 11px;
    color: var(--gray);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.popular-info .popular-date i { font-size: 9px; color: var(--accent); }

/* ===== RESPONSIVE BERITA ===== */
@media (max-width: 1024px) {
    .berita-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .berita-sidebar { display: none; }
    .berita-grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .page-header-berita { padding: 110px 0 44px; background-attachment: scroll; }
    .page-header-berita h1 { font-size: 30px; }
}
@media (max-width: 640px) {
    .berita-search-bar {
        flex-direction: column;
        gap: 10px;
    }
    .berita-search-input,
    .berita-search-select,
    .berita-search-btn { width: 100%; }
    .berita-search-btn { justify-content: center; }
    .berita-search-select select { width: 100%; }
    .berita-grid-3 { grid-template-columns: 1fr; }
    .section-berita { padding: 32px 0 56px; }
    .berita-filter-pills { padding-bottom: 6px; }
    .filter-pill { padding: 8px 15px; font-size: 13px; }
}