/* =========================================
   1. SETUP FONT LOKAL (OPEN SANS - WOFF2)
   ========================================= */
@font-face {
    font-family: 'Open Sans';
    src: url('../fonts/OpenSans-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Open Sans';
    src: url('../fonts/OpenSans-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Open Sans';
    src: url('../fonts/OpenSans-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* =========================================
   2. VARIABLES & RESET
   ========================================= */
:root {
    --primary-blue: #0033A0; /* Biru Benhur UNEJ */
    --primary-red: #D50000;  /* Merah */
    --dark: #1a1a1a;
    --gray: #666;
    --light: #f8f9fa;
    --white: #ffffff;
    --shadow: 0 5px 15px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    /* Menggunakan Open Sans sebagai font utama */
    font-family: 'Open Sans', 'Segoe UI', Tahoma, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--white);
    overflow-x: hidden;
}

/* Memastikan elemen form/tombol mewarisi font */
button, .btn, .accordion-btn, .btn-about {
    font-family: 'Open Sans', sans-serif;
}

/* =========================================
   3. UTILITIES
   ========================================= */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.text-blue { color: var(--primary-blue); }
.text-red { color: var(--primary-red); }
.text-gray { color: var(--gray); }
.text-dark { color: var(--dark); }
.text-white { color: var(--white); }

.bg-light { background-color: var(--light); }
.bg-blue { background-color: var(--primary-blue); }

.section-padding { padding: 80px 0; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }

/* Titles & Lines */
.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.line {
    width: 60px;
    height: 4px;
    background: var(--primary-red);
    margin: 0 auto;
}

.white-line { background: var(--white); }
.white-title h2 { color: var(--white); }

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary-blue);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-red);
    transform: translateY(-3px);
}

.btn-outline {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
    margin-left: 10px;
}

.btn-outline:hover {
    background: var(--primary-blue);
    color: var(--white);
}

/* =========================================
   4. NAVIGATION
   ========================================= */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--white);
    box-shadow: var(--shadow);
    z-index: 1000;
    padding: 15px 0;
    transition: var(--transition);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-blue);
}

.logo span { color: var(--primary-red); }

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
}

.nav-links li { margin-left: 30px; }

.nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 600;
    transition: var(--transition);
}

.nav-links a:hover { color: var(--primary-blue); }

.btn-nav {
    padding: 8px 20px;
    background: var(--primary-blue);
    color: var(--white) !important;
    border-radius: 5px;
}

.btn-nav:hover { background: var(--primary-red) !important; }

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* =========================================
   HERO SECTION (FULL BG & PARALLAX)
   ========================================= */
#home {
    background-image: url('../img/hero-bg.webp'); 
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
    position: relative;
    min-height: 100vh;
    width: 100%;
    
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Start from left */
    color: #ffffff;
}

/* Overlay */
#home::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, rgba(0, 51, 160, 0.95) 0%, rgba(0, 20, 80, 0.7) 100%);
    z-index: 1;
}

/* Container Text */
.hero-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    text-align: left; 
    padding: 0 15px;
}

.hero-content {
    max-width: 800px;
}

/* Badge "Selamat Datang" */
#home .badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(5px);
    color: #ffffff;
    padding: 12px 35px;
    border-radius: 50px;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 30px;
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 25px;
    font-weight: 800;
    color: #ffffff;
}

/* Pewarnaan Teks Hero */
.text-highlight-blue {
    color: #4da6ff;
}

.text-highlight-red {
    color: #B22222; /* Merah Bata */
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.6;
    max-width: 700px;
}

/* Tombol Hero */
.cta-group {
    display: flex;
    gap: 15px;
    justify-content: flex-start; 
}

.btn-light {
    background: #ffffff;
    color: #B22222;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid #ffffff;
}

.btn-light:hover {
    background: transparent;
    color: #ffffff;
}

.btn-outline-light {
    background: transparent;
    color: #ffffff;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    border: 2px solid rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    background: #ffffff;
    color: #0033A0;
    border-color: #ffffff;
}

/* =========================================
   6. ABOUT SECTION & BUTTONS
   ========================================= */
/* --- Tambahan Style untuk Ikon di Tombol Tentang --- */

/* Memberi jarak antara ikon dan teks */
.btn-about i {
    margin-right: 10px; 
    font-size: 1.1rem; /* Sedikit lebih besar dari teks */
    color: var(--primary-blue); /* Ikon berwarna Biru Benhur */
    transition: color 0.3s ease;
}

/* Saat tombol di-hover, ikon berubah jadi merah (opsional, agar dinamis) */
.btn-about:hover i {
    color: var(--primary-red);
}

.about-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.about-icon {
    font-size: 4rem;
    color: var(--primary-blue);
    margin-bottom: 20px;
}

/* -- Tombol Tentang (Baru) -- */
.about-buttons {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.btn-about {
    display: inline-block;
    padding: 12px 40px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark);
    text-decoration: none;
    border-radius: 30px;
    background: linear-gradient(to bottom, #f0f0f0 0%, #e0e0e0 100%);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1), 0 1px 3px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid #d0d0d0;
}

.btn-about:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15), 0 2px 4px rgba(0,0,0,0.12);
    background: linear-gradient(to bottom, #e8e8e8 0%, #d8d8d8 100%);
    color: var(--primary-blue);
}

/* =========================================
   7. ALUR & CARDS
   ========================================= */
.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.card {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    border-bottom: 4px solid transparent;
}

.card:hover {
    transform: translateY(-10px);
    border-bottom: 4px solid var(--primary-red);
}

.card-icon {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 20px;
}

.card h3 {
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.card p {
    font-size: 0.9rem;
    color: var(--gray);
}

/* =========================================
   8. SECTION UNDUHAN (ACCORDION)
   ========================================= */
/* Override khusus Section Unduhan (Segoe UI & 1.25rem) */
#unduhan {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
}

#unduhan .accordion-btn {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
    font-size: 1.25rem;
    font-weight: 600;
}

#unduhan .download-list a {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
    font-size: 1.25rem;
}

.accordion-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

/* Tombol Accordion */
.accordion-btn {
    background-color: var(--white);
    color: var(--dark);
    cursor: pointer;
    padding: 20px 25px;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    font-size: 1.1rem;
    transition: 0.3s;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accordion-btn i {
    margin-right: 10px;
    color: var(--primary-blue);
}

.accordion-btn .arrow {
    margin-right: 0;
    color: var(--gray);
    transition: transform 0.3s ease;
    font-size: 0.9rem;
}

.accordion-btn:hover {
    background-color: #f8f9fa;
    color: var(--primary-blue);
}

.accordion-btn.active {
    background-color: var(--primary-blue);
    color: var(--white);
    border-bottom: none;
}

.accordion-btn.active i, 
.accordion-btn.active .arrow {
    color: var(--white);
}

.accordion-btn.active .arrow {
    transform: rotate(180deg);
}

/* Panel Konten */
.accordion-content {
    padding: 0 25px;
    background-color: var(--white);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    border-bottom: 1px solid #eee;
}

/* List Download */
.download-list {
    list-style: none;
    padding: 20px 0;
}

.download-list li { margin-bottom: 15px; }
.download-list li:last-child { margin-bottom: 0; }

.download-list a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #444;
    padding: 12px 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    font-weight: 500;
}

.download-list a:hover {
    background-color: #fff;
    border-color: var(--primary-blue);
    transform: translateX(5px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    color: var(--primary-blue);
}

.icon-left {
    font-size: 1.2rem;
    margin-right: 15px;
    width: 20px;
    text-align: center;
}

.icon-download {
    margin-left: auto;
    opacity: 0.3;
}

.download-list a:hover .icon-download {
    opacity: 1;
    color: var(--primary-red);
}

/* =========================================
   9. SECTION FORM ETIK (LINK CARD)
   ========================================= */
#form-etik {
    background-color: var(--white);
    background-image: radial-gradient(#f1f8ff 15%, transparent 16%), radial-gradient(#f1f8ff 15%, transparent 16%);
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px;
}

.link-card-wrapper {
    max-width: 700px;
    margin: 0 auto;
}

.link-card {
    background: var(--white);
    padding: 50px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 51, 160, 0.15);
    border-top: 5px solid var(--primary-blue);
    transition: transform 0.3s ease;
}

.link-card:hover { transform: translateY(-5px); }

.card-icon-big {
    font-size: 4rem;
    margin-bottom: 25px;
    background: #f0f4ff;
    width: 100px;
    height: 100px;
    line-height: 100px;
    border-radius: 50%;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.link-card h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--primary-blue);
}

.link-card p {
    color: var(--gray);
    margin-bottom: 30px;
    font-size: 1.1rem;
    line-height: 1.6;
}

.btn-large {
    padding: 15px 40px;
    font-size: 1.1rem;
    border-radius: 50px;
    box-shadow: 0 5px 15px rgba(213, 0, 0, 0.3);
}

.btn-large i { margin-right: 10px; }

.note-text {
    margin-top: 20px;
    color: #888;
    font-style: italic;
}

/* =========================================
   10. CONTACT & FOOTER
   ========================================= */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: center;
}

.contact-item i {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--white);
    opacity: 0.8;
}

/* Footer (Navy Blue Dark) */
footer {
    background-color: #000040;
    color: #ffffff;
    padding: 40px 0;
    font-size: 14px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}


.footer-logo {
    max-width: 100%;      /* Agar tidak melebihi lebar layar HP */
    width: 250px;         /* Lebar optimal desktop */
    height: auto;
    display: block;
}

/* Penyesuaian Mobile: Tengahkan logo jika layar kecil */
@media (max-width: 768px) {
    .footer-logo {
        margin: 0 auto 1rem auto; /* Tengah secara horizontal */
        width: 280px; /* Sedikit lebih kecil di HP */
    }
    
    .visitor-box {
        display: block;
        border-top: 1px solid rgba(255,255,255,0.2);
        width: 100%;
    }
}

.footer-left h3 {
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
    color: #ffffff;
}

.footer-left p {
    margin: 0 0 4px 0;
    line-height: 1.4;
    font-weight: 400;
    opacity: 0.9;
}

.footer-right {
    text-align: right;
}

.footer-right .copyright {
    margin: 0 0 10px 0;
    font-size: 0.85rem;
    opacity: 0.9;
}

.social-links {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

.social-links a {
    color: #ffffff;
    font-size: 1.2rem;
    text-decoration: none;
    transition: opacity 0.3s;
    margin-left: 0;
}

.social-links a:hover {
    opacity: 0.7;
    color: #ffffff;
}

/* =========================================
   11. PANDUAN PAGE SPECIFIC
   ========================================= */
.page-header {
    background: var(--primary-blue);
    color: var(--white);
    padding: 120px 0 60px 0;
    text-align: center;
}

.guide-step {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
    align-items: flex-start;
}

.step-number {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: var(--primary-red);
    color: var(--white);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    font-weight: bold;
}

.step-content {
    background: var(--white);
    padding: 20px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    width: 100%;
    border-left: 5px solid var(--primary-blue);
}

.step-content h3 {
    color: var(--primary-blue);
    margin-bottom: 10px;
}

.parallax-bg {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* =========================================
   12. RESPONSIVE BREAKPOINTS
   ========================================= */
@media (max-width: 992px) {
    .hero h1 { font-size: 2.5rem; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    
    #home {
        background-attachment: scroll;
        align-items: center;
        padding-top: 100px;
        padding-bottom: 50px;
    }
    
    .hero-container, 
    .requirement-container, 
    .guide-step { 
        flex-direction: column; 
        text-align: center; 
    }
    
    .hero-container { text-align: center; }
    .hero-content { margin: 0 auto; }
    
    .cta-group, .about-buttons {
        justify-content: center;
        flex-direction: column; /* Tombol jadi vertikal di HP */
        align-items: center;
    }

    .btn-outline-light { margin-left: 0; }
    .hero-content h1 { font-size: 2.5rem; }
    #home .badge { font-size: 1.2rem; }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 25px;
    }
    .footer-left, .footer-right {
        text-align: center;
        width: 100%;
    }
    .social-links { justify-content: center; }
    
    .step-number { margin: 0 auto 15px auto; }
    
    .btn-about {
        width: 100%; /* Tombol tentang jadi lebar penuh di HP */
        text-align: center;
    }
}

/* =========================================
   STYLE KHUSUS HALAMAN TIM (TABEL)
   ========================================= */

/* Wrapper agar tabel bisa di-scroll horizontal pada layar kecil */
.table-container {
    overflow-x: auto;
    background: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.custom-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px; /* Mencegah tabel terlalu gepeng di HP */
    font-family: 'Open Sans', sans-serif;
}

/* Header Tabel */
.custom-table thead {
    background-color: var(--primary-blue);
    color: var(--white);
}

.custom-table th, 
.custom-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.custom-table th {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

/* Striped Rows (Warna selang-seling) */
.custom-table tbody tr:nth-of-type(even) {
    background-color: #f9f9f9;
}

/* Hover Effect pada baris */
.custom-table tbody tr:hover {
    background-color: #f1f8ff; /* Biru sangat muda */
}

/* Highlight Row untuk Dekan */
.highlight-row {
    background-color: #fff8e1 !important; /* Kuning tipis */
    border-left: 5px solid var(--primary-red);
}

/* Badge Role (untuk jabatan penting) */
.badge-role {
    background: var(--primary-blue);
    color: #fff;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}