/**
 * File: main.css
 * MODUL: ANTI-GAP, FIXED HEADER, & HERO DESKTOP PRECISION
 */

/* ================================================================
   1. GLOBAL RESET & BODY (ANTI-GAP)
   ================================================================ */
html, body {
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden;
}

/* Kompensasi Jarak untuk Fixed Header agar konten tidak tertutup */
#content.site-content {
    /* Tinggi total header: Top Bar (48) + Header (178) + Border (5) = 231px */
    padding-top: 231px !important; 
    margin-top: 0 !important;
    display: block !important;
    position: relative !important;
    z-index: 1 !important; 
    background: #ffffff;
}

/* Hilangkan margin hantu pada elemen pertama di bawah header */
#content.site-content > *:first-child {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Fix Scroll Behavior saat klik anchor menu */
:target {
    scroll-margin-top: 240px;
}

/* ================================================================
   HERO DESKTOP - HIGH-RESOLUTION CINEMATIC (ULTRA MODERN PRO)
   ================================================================ */
.hero-swiper {
    width: 100%;
    height: 650px !important;
}

.hero-section {
    position: relative;
    height: 650px !important;
    display: flex !important;
    align-items: center !important;
    background-size: cover !important;
    /* UPDATE: Posisi Pas Bang Ahmad 32% agar logo & bawah proporsional */
    background-position: center 32% !important; 
    background-repeat: no-repeat !important;
}

/* OVERLAY: Gradasi halus agar teks terbaca tapi foto tetap jernih */
.hero-section::before {
    content: "" !important;
    position: absolute !important;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(90deg, rgba(0, 20, 45, 0.9) 0%, rgba(0, 26, 53, 0.3) 60%, rgba(0, 26, 53, 0) 100%) !important;
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 10;
    max-width: 1250px;
    margin: 0 auto;
    padding: 0 70px !important;
}

.hero-content {
    max-width: 850px;
    text-align: left;
    transform: translateY(-20px);
}

/* Judul: Font Besar & Tegas */
.hero-title {
    color: #ffffff !important;
    font-size: 64px !important; 
    font-weight: 900 !important;
    line-height: 1.1 !important;
    margin-bottom: 25px !important;
    text-transform: uppercase;
    letter-spacing: -1.5px;
    text-shadow: 2px 4px 20px rgba(0,0,0,0.6) !important;
}

.hero-subtitle {
    color: rgba(255, 255, 255, 0.95) !important;
    font-size: 20px !important;
    line-height: 1.6 !important;
    margin-bottom: 45px !important;
    max-width: 600px;
    text-shadow: 1px 2px 10px rgba(0,0,0,0.5) !important;
}

/* Tombol Emas Modern */
.hero-actions .btn-primary {
    background: linear-gradient(135deg, #f39c12 0%, #ffcc00 100%) !important;
    color: #001a35 !important;
    padding: 18px 50px !important;
    border-radius: 50px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    display: inline-block !important;
    box-shadow: 0 10px 25px rgba(243, 156, 18, 0.4) !important;
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    border: none !important;
}

.hero-actions .btn-primary:hover {
    transform: translateY(-5px) scale(1.03) !important;
    box-shadow: 0 15px 35px rgba(243, 156, 18, 0.6) !important;
}

/* --- UPDATE: PANAH NAVIGASI PREMIUM --- */
.swiper-button-next,
.swiper-button-prev {
    color: #ffffff !important;
    width: 60px !important;
    height: 60px !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border-radius: 50% !important;
    backdrop-filter: blur(10px) !important; /* Efek Glassmorphism */
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    transition: all 0.4s ease !important;
    opacity: 0.8;
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 22px !important;
    font-weight: bold;
}

/* Hover Panah: Emas Nyala */
.swiper-button-next:hover,
.swiper-button-prev:hover {
    opacity: 1;
    transform: scale(1.1);
    color: #ffcc00 !important;
    background: rgba(255, 255, 255, 0.2) !important;
    border-color: #ffcc00 !important;
    box-shadow: 0 0 20px rgba(255, 204, 0, 0.4) !important;
}

.swiper-button-next { right: 30px !important; }
.swiper-button-prev { left: 30px !important; }

/* Dot Pagination (Titik Bawah) */
.swiper-pagination-bullet-active {
    background: #ffcc00 !important;
    width: 25px !important;
    border-radius: 5px !important;
}

/* ================================================================
   FINAL PRO STYLE: COMPACT LEADER LEFT & CENTERED TEXT (CLEAN)
   ================================================================ */

/* 1. Container & Layout Hero */
.hero-section {
    position: relative;
    overflow: hidden; /* Memastikan foto pimpinan tidak merusak layout luar */
}

.hero-section .row {
    min-height: 600px; /* Menjaga tinggi slider tetap konsisten */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 2. Foto Pak Rektor (Dikecilkan & Pojok Kiri Sesuai Gambar) */
.leader-wrapper-left {
    position: absolute;
    bottom: 0;
    left: 1%;          /* Digeser mepet ke kiri agar area tengah luas */
    height: 80%;       /* Dikecilkan agar proporsional dan tidak menabrak teks */
    z-index: 5;        /* Di bawah teks agar tidak menutupi tulisan jika layar menyempit */
    display: flex;
    align-items: flex-end;
    pointer-events: none;
}

.leader-img-left {
    height: 100% !important; /* Foto tampil utuh/tidak terpotong */
    width: auto;
    object-fit: contain;
    filter: drop-shadow(10px 5px 20px rgba(0,0,0,0.4)); /* Bayangan agar terlihat 3D */
    animation: slideInRektorFinal 1.2s ease-out;
}

@keyframes slideInRektorFinal {
    from { opacity: 0; transform: translateX(-40px); }
    to { opacity: 1; transform: translateX(0); }
}

/* ========================================================
   SECTION BERITA & PENGUMUMAN (PREMIUM MAGAZINE STYLE)
   ======================================================== */
.news-section { 
    padding: 100px 0; 
    background: #f8fafc; 
}

.news-container { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0 20px; 
}

/* Judul Section Custom */
.news-section .section-title {
    text-align: left;
    margin-bottom: 40px;
    font-size: 2.5rem;
    font-weight: 900;
    color: #002244;
    position: relative;
    padding-bottom: 15px;
}

.news-section .section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 5px;
    background: #0ea5e9;
    border-radius: 10px;
}

.news-magazine-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 40px;
    align-items: start;
}

/* --- Headline Berita (Kiri) --- */
.news-card.big-card {
    background: #ffffff;
    border-radius: 30px; 
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 34, 68, 0.08);
    height: 100%;
    border: none;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.news-thumb-big { 
    height: 480px; 
    position: relative; 
    overflow: hidden; 
}

/* Efek Overlay Halus pada Gambar */
.news-thumb-big::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(to top, rgba(0,34,68,0.4), transparent);
}

.news-thumb-big img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    transition: transform 1.2s ease; 
}

.news-card.big-card:hover .news-thumb-big img { 
    transform: scale(1.1); 
}

.news-badge {
    position: absolute; 
    top: 30px; 
    left: 30px;
    z-index: 2;
    background: #e11d48; 
    color: #fff; 
    padding: 10px 20px;
    border-radius: 14px; 
    font-weight: 800; 
    font-size: 10px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    box-shadow: 0 10px 20px rgba(225, 29, 72, 0.3);
}

.news-content-big { 
    padding: 50px; 
}

.news-date-big {
    color: #94a3b8;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 15px;
    display: block;
}

.news-title-big { 
    display: block; 
    font-size: 2.4rem; 
    font-weight: 900; 
    color: #002244; 
    text-decoration: none; 
    line-height: 1.1; 
    margin-bottom: 25px;
    transition: 0.3s;
}

.news-excerpt-big {
    color: #576574;
    line-height: 1.9;
    font-size: 1.1rem;
    margin-bottom: 30px;
}

/* --- List Berita Samping (Kanan) --- */
.news-sidebar { 
    display: flex; 
    flex-direction: column; 
    gap: 20px; 
}

.news-side-item { 
    display: flex; 
    gap: 22px; 
    align-items: center; 
    padding: 20px; 
    background: #ffffff; 
    border-radius: 25px; 
    transition: all 0.4s ease;
    border: 1px solid rgba(241, 245, 249, 0.8);
}

.news-side-item:hover { 
    transform: translateX(15px); 
    border-color: #0ea5e9;
    box-shadow: 0 15px 30px rgba(14, 165, 233, 0.1);
}

.side-thumb { 
    width: 130px; 
    height: 100px; 
    border-radius: 18px; 
    overflow: hidden; 
    flex-shrink: 0; 
    box-shadow: 0 8px 15px rgba(0,0,0,0.05);
}

.side-thumb img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
}

.side-title { 
    font-weight: 800; 
    color: #002244; 
    text-decoration: none; 
    font-size: 17px; 
    line-height: 1.4;
    margin-bottom: 8px;
    display: block;
}

/* Button Styling */
.btn-read-more {
    display: inline-flex;
    align-items: center;
    color: #ffffff;
    background: #002244;
    padding: 14px 28px;
    border-radius: 15px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    transition: 0.3s;
}

.btn-read-more:hover {
    background: #0ea5e9;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(14, 165, 233, 0.2);
}

/* ========================================================
   SECTION STATISTIK (COUNTER) - MAIN STYLE
   ======================================================== */
.stats-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #002244 0%, #004488 100%);
    color: #ffffff;
    overflow: hidden;
}

.stats-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.stat-item {
    padding: 30px 20px;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: rgba(255, 255, 255, 0.03); /* Sentuhan glassmorphism tipis */
    border-radius: 20px;
}

.stat-item:hover {
    transform: translateY(-12px);
    background: rgba(255, 255, 255, 0.08);
}

.stat-icon {
    margin-bottom: 15px;
    color: #0ea5e9; /* Biru muda cerah khas Untad */
}

.stat-icon .dashicons {
    width: 45px;
    height: 45px;
    font-size: 45px;
}

.stat-number {
    font-size: 3.2rem;
    font-weight: 850;
    margin-bottom: 5px;
    display: block;
    letter-spacing: -1px;
}

.stat-label {
    font-size: 1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* ========================================================
   MODERN PRO FOOTER - BAK UNTAD FINAL FIX
   ======================================================== */

.site-footer {
    background: #000c1d !important; /* Biru gelap solid lebih premium */
    color: #ffffff !important;
    padding: 60px 0 0 !important;
    border-top: 4px solid #ffcc00 !important;
}

/* 1. BASMI TOTAL TITIK & BULLET (Solusi Gambar {F205B519-69E9-4BE5-BBF7-FF2F03CABBB3}.png) */
.footer-column ul, 
.footer-column li, 
.footer-menu-list, 
.footer-menu-list li,
.footer-links-vertical ul,
.footer-links-vertical li {
    list-style: none !important;
    list-style-type: none !important;
    margin: 0 !important;
    padding: 0 !important;
    text-indent: 0 !important;
}

/* Paksa hapus pseudo-element titik dari tema */
.footer-column ul li::before, 
.footer-column ul li::after,
.footer-menu-list li::before,
.footer-links-vertical li::before {
    content: none !important;
    display: none !important;
}

/* 2. LAYOUT GRID SEIMBANG */
.footer-main-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1fr 1fr; /* Proporsi kolom lebih pas */
    gap: 40px;
    padding-bottom: 50px;
}

/* 3. TAUTAN MINIMALIS ELEGANT */
.column-title {
    font-size: 14px;
    font-weight: 800;
    color: #ffcc00; /* Warna judul kuning Untad */
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 25px;
}

.footer-menu-list li a {
    color: rgba(255, 255, 255, 0.6) !important;
    font-size: 14px;
    text-decoration: none !important;
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.footer-menu-list li a:hover {
    color: #ffffff !important;
    padding-left: 10px;
    background: linear-gradient(to right, rgba(255, 204, 0, 0.05), transparent);
}

/* 4. STATISTIK GLASSMORPHISM (Solusi Gambar image_981dd1.png) */
.stats-card-mini {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    padding: 25px !important;
    border-radius: 15px !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.stats-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.stats-row:last-child { border-bottom: none; }

.count-val {
    color: #ffcc00 !important;
    font-size: 18px;
    font-weight: 700;
    font-family: 'Courier New', monospace;
}

/* 5. WA BUTTON PRO */
.wa-helpdesk a {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%) !important;
    border-radius: 10px !important;
    padding: 12px 20px !important;
    transition: 0.3s;
}

.wa-helpdesk a:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
}

/* 6. LOKASI / MAP ROUNDED */
.map-wrapper {
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* 7. COPYRIGHT CLEAN */
.footer-copyright {
    background: #000814 !important;
    padding: 30px 0 !important;
    text-align: center;
}

/* ========================================================
   MODERN PRO: ARCHIVE BEASISWA (1200px Version)
   ======================================================== */

/* Hero Header Archive */
.beasiswa-hero-header {
    background: #000c1d;
    padding: 80px 0;
    text-align: center;
    border-bottom: 4px solid #ffcc00;
}

.beasiswa-title-pro {
    color: #ffcc00 !important;
    font-size: 48px !important;
    font-weight: 900;
    margin: 0;
    letter-spacing: -1px;
}

.beasiswa-subtitle {
    color: rgba(255,255,255,0.7);
    font-size: 18px;
    margin-top: 10px;
}

/* Content Area */
.beasiswa-main-content {
    background: #f1f5f9; /* Background kontras agar card terlihat pop-out */
    padding: 60px 0 100px;
}

/* Grid System dipaksa dalam 1200px */
.beasiswa-modern-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

/* Card Styling Modern */
.beasiswa-pro-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.03);
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid #eef2f7;
}

.beasiswa-pro-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.pro-card-image { position: relative; height: 210px; }
.pro-card-image img { width: 100%; height: 100%; object-fit: cover; }

.pro-card-content { padding: 25px; flex-grow: 1; }
.pro-meta { font-size: 12px; color: #718096; display: flex; align-items: center; gap: 5px; margin-bottom: 12px; }

.pro-card-content h3 a {
    color: #1a202c;
    text-decoration: none;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.4;
}

.pro-card-content h3 a:hover { color: #ffcc00; }

.pro-excerpt { color: #4a5568; font-size: 14px; line-height: 1.6; margin: 12px 0; }

.pro-btn-detail {
    margin-top: 15px;
    display: flex;
    align-items: center;
    gap: 5px;
    color: #000c1d;
    font-weight: 700;
    text-decoration: none;
    font-size: 14px;
}

/* Pagination Style */
.pagination-wrapper {
    margin: 50px 0 30px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.pagination-wrapper .page-numbers {
    padding: 10px 18px;
    background: #fff;
    border-radius: 8px;
    text-decoration: none;
    color: #000c1d;
    font-weight: 700;
    border: 1px solid #e2e8f0;
}

.pagination-wrapper .page-numbers.current { background: #ffcc00; border-color: #ffcc00; }

/* Tombol Kembali di Bawah */
.back-action-area { text-align: center; margin-top: 20px; }
.btn-pro-home {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #000c1d;
    color: #ffcc00 !important;
    padding: 12px 30px;
    border-radius: 12px;
    text-decoration: none !important;
    font-weight: 700;
}

/* Pengunci Akhir agar kartu tidak loncat */
.archive-beasiswa-page .container-mewah {
    max-width: 1200px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    display: block !important;
}

.beasiswa-modern-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 30px !important;
}

/* ========================================================
   STYLING TOMBOL LIHAT SEMUA (FRONT-PAGE ONLY)
   ======================================================== */

/* Pembungkus tombol agar berada di tengah */
.archive-btn-wrapper-pro {
    text-align: center; 
    margin-top: 50px;
    padding-bottom: 20px;
    clear: both; /* Mencegah tombol nyangkut di grid */
}

/* Desain Tombol Pill Mewah */
.btn-lihat-semua-pro {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #000c1d; /* Biru Gelap Untad */
    color: #ffcc00 !important; /* Kuning Untad */
    padding: 14px 40px;
    border-radius: 50px;
    text-decoration: none !important;
    font-weight: 700;
    font-size: 15px;
    border: 2px solid #ffcc00;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 5px 15px rgba(0, 12, 29, 0.15);
}

.btn-lihat-semua-pro:hover {
    background: #ffcc00;
    color: #000c1d !important;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(255, 204, 0, 0.3);
}

/* Animasi Icon Panah */
.btn-lihat-semua-pro .dashicons {
    transition: transform 0.3s ease;
    font-size: 18px;
}

.btn-lihat-semua-pro:hover .dashicons {
    transform: translateX(8px);
}

/* ========================================================
   STYLING TOMBOL BERITA (FRONT-PAGE)
   ======================================================== */

.berita-btn-wrapper-pro {
    text-align: center;
    margin-top: 50px;
    padding-bottom: 20px;
    clear: both;
}

.btn-berita-semua-pro {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #ffffff; /* Background putih biar beda sama beasiswa */
    color: #000c1d !important;
    padding: 14px 40px;
    border-radius: 50px;
    text-decoration: none !important;
    font-weight: 700;
    font-size: 15px;
    border: 2px solid #000c1d; /* Border biru gelap */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.btn-berita-semua-pro:hover {
    background: #000c1d;
    color: #ffffff !important;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 12, 29, 0.2);
}

.btn-berita-semua-pro .dashicons {
    transition: transform 0.3s ease;
}

.btn-berita-semua-pro:hover .dashicons {
    transform: translateX(8px);
}

/* Styling Pesan Jika Berita Kosong */
.no-content-found {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 0;
    background: #fff;
    border-radius: 20px;
    border: 2px dashed #e2e8f0;
}

.no-content-found .dashicons {
    font-size: 60px;
    color: #cbd5e0;
    margin-bottom: 15px;
}

.no-content-found p {
    color: #718096;
    font-size: 18px;
}

/* PENGUNCI MODERN PRO 1200px (SERAGAM) */
.archive-berita-page .container-mewah,
.archive-beasiswa-page .container-mewah {
    max-width: 1200px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    display: block !important;
    width: 100% !important;
}

/* Pastikan Grid Tetap 3 Kolom di Desktop */
.archive-berita-page .beasiswa-modern-grid,
.archive-beasiswa-page .beasiswa-modern-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 30px !important;
}

/* Penyesuaian Card agar tidak terlalu tinggi */
.beasiswa-pro-card .pro-card-image {
    height: 200px !important;
}

/* --- Aturan ini HANYA jalan di Desktop --- */
@media (min-width: 992px) {
    .archive-berita-page .container-mewah,
    .archive-beasiswa-page .container-mewah {
        max-width: 1200px !important;
        margin: 0 auto !important;
        display: block !important;
    }

    .beasiswa-modern-grid {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important; /* Di sini 3 kolomnya terkunci hanya untuk desktop */
        gap: 30px !important;
    }
}