
/**
 *   Written By Arya W.R.
 *   Designed to be compatible with PHP 5 or newer
 *   Tested on PHP 7.x 
 *
 *   All innovation copryright (c) 2026 UPT TI Universitas Bung Karno
 *
 **/

/* ========== RESET & GLOBAL ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #fef7f5;
    color: #2d1e1a;
    line-height: 1.5;
}

:root {
    --maroon-deep: #6a1b1a;
    --maroon-primary: #8b2c2a;
    --maroon-light: #b14542;
    --maroon-soft: #f3e2e1;
    --gold-accent: #c9a03d;
    --dark-bg: #3e1b1a;
}

/* ========== HEADER MODERN (STICKY + GLASS) ========== */
.modern-header {
    background: rgba(106, 27, 26, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 240, 0.25);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background 0.2s;
}

.modern-header:hover {
    background: rgba(106, 27, 26, 0.97);
}

.header-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0.8rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    position: relative;
}

/* Logo diperbesar 50% dari sebelumnya (50px -> 75px) */
.logo-img {
    height: 75px;
    width: auto;
    margin-right: 1rem;
    transition: transform 0.2s;
}
.logo-img:hover {
    transform: scale(1.02);
}

.brand-area {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.brand-text h1 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: white;
    margin: 0;
}

/* Tagline tanpa garis vertikal */
.brand-text .tagline {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    font-style: italic;
}

/* Tombol Hamburger */
.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    transition: 0.2s;
    padding: 0.2rem 0.5rem;
}
.menu-toggle:hover {
    color: #ffd966;
}

/* Navigasi Menu */
.glass-nav {
    background: transparent;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-menu a:hover {
    color: #ffd966;
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(106, 27, 26, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 0.5rem 0;
    min-width: 200px;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 100;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    padding: 0;
}

.dropdown-menu a {
    padding: 0.6rem 1.2rem;
    display: block;
    font-weight: 500;
    font-size: 0.9rem;
    white-space: nowrap;
}

.dropdown-menu a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffd966;
}

/* ========== RESPONSIVE MOBILE ========== */
@media (max-width: 768px) {
    .header-container {
        flex-direction: row;
        justify-content: space-between;
        padding: 0.8rem 1rem;
    }

    .brand-area {
        flex: 1;
        justify-content: flex-start;
    }

    .brand-text .tagline {
        border-left: none;
        padding-left: 0;
        display: block;
        font-size: 0.7rem;
    }

    .brand-text h1 {
        font-size: 1.2rem;
    }

    /* Logo mobile diperbesar 50% dari 40px -> 60px */
    .logo-img {
        height: 60px;
    }

    .menu-toggle {
        display: block;
        z-index: 1001;
    }

    .glass-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: rgba(106, 27, 26, 0.98);
        backdrop-filter: blur(16px);
        transition: right 0.3s ease;
        z-index: 1000;
        padding: 5rem 1.5rem 2rem;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.3);
    }

    .glass-nav.active {
        right: 0;
    }

    .nav-menu {
        flex-direction: column;
        gap: 1.5rem;
        width: 100%;
    }

    .nav-menu a {
        font-size: 1.1rem;
        justify-content: space-between;
    }

    .dropdown {
        position: relative;
    }

    .dropdown-menu {
        position: static;
        background: rgba(0, 0, 0, 0.3);
        backdrop-filter: none;
        opacity: 0;
        visibility: hidden;
        transform: none;
        transition: opacity 0.2s, visibility 0.2s;
        margin-top: 0.5rem;
        padding-left: 1rem;
        border-radius: 8px;
        border: none;
        box-shadow: none;
    }

    .dropdown.open .dropdown-menu {
        opacity: 1;
        visibility: visible;
    }

    .dropdown-menu a {
        white-space: normal;
        padding: 0.5rem 1rem;
        font-size: 0.95rem;
    }

    .dropdown-menu a:hover {
        background: rgba(255, 255, 255, 0.1);
    }
}

/* ========== CONTAINER UMUM ========== */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

/* ========== SLIDER ========== */
.slider-section {
    background: #2d1e1a;
    padding: 1rem 0 0 0;
}

.slider-container {
    position: relative;
    max-width: 1280px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 24px;
    box-shadow: 0 20px 35px -12px rgba(0, 0, 0, 0.3);
}

.slides {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.slide {
    min-width: 100%;
    position: relative;
}

.slide img {
    width: 100%;
    height: auto;
    max-height: 480px;
    object-fit: cover;
    display: block;
}

.prev,
.next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(106, 27, 26, 0.75);
    color: white;
    border: none;
    cursor: pointer;
    padding: 12px 18px;
    font-size: 1.5rem;
    border-radius: 50%;
    transition: 0.2s;
    z-index: 10;
}

.prev {
    left: 20px;
}

.next {
    right: 20px;
}

.prev:hover,
.next:hover {
    background-color: var(--maroon-primary);
}

.dots {
    text-align: center;
    position: absolute;
    bottom: 20px;
    width: 100%;
    z-index: 10;
}

.dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin: 0 6px;
    background-color: #bbb;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.2s;
}

.dot.active,
.dot:hover {
    background-color: var(--gold-accent);
}

/* ========== SECTION TITLE ========== */
.section-title {
    font-size: 2rem;
    font-weight: 700;
    border-left: 8px solid var(--maroon-primary);
    padding-left: 1rem;
    margin-bottom: 2rem;
    color: #3e1b1a;
}

/* ========== TAB BERITA ========== */
.tab-berita {
    background: white;
    border-radius: 28px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.tab-buttons {
    display: flex;
    background: var(--maroon-soft);
    border-bottom: 2px solid var(--maroon-light);
}

.tab-btn {
    flex: 1;
    padding: 1rem;
    font-weight: 700;
    font-size: 1.1rem;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: 0.2s;
    color: #4a2a28;
}

.tab-btn.active {
    background-color: var(--maroon-primary);
    color: white;
}

.tab-content {
    padding: 2rem;
    display: none;
    animation: fade 0.3s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fade {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.berita-list {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}

.berita-item {
    border-bottom: 1px solid #f0e0de;
    padding-bottom: 1rem;
    cursor: pointer;
    transition: background 0.2s;
}
.berita-item:hover {
    background-color: #fef2f0;
    border-radius: 12px;
    padding-left: 8px;
}

.berita-item h3 {
    color: var(--maroon-deep);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.berita-date {
    font-size: 0.8rem;
    color: #b97a76;
    margin-bottom: 0.5rem;
    display: inline-block;
}

.berita-desc {
    color: #3e2c29;
}

/* ========== STRUKTUR ORGANISASI ========== */
.struktur-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 1rem;
}

.struktur-card {
    background: white;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s, box-shadow 0.2s;
    text-align: center;
}

.struktur-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 32px rgba(106, 27, 26, 0.15);
}

.struktur-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    background: #f0dbd9;
}

.struktur-card h3 {
    margin-top: 1.2rem;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--maroon-deep);
}

.jabatan {
    color: var(--maroon-light);
    font-weight: 600;
    margin: 0.5rem 0 1rem;
}

.struktur-card p {
    padding: 0 1rem 1.5rem;
    font-weight: 500;
}

/* ========== DOKUMEN SECTION ========== */
.dokumen-desc {
    margin-bottom: 2rem;
    color: #5a3a36;
    font-weight: 500;
    background: #f9edea;
    padding: 0.8rem 1.5rem;
    border-radius: 40px;
    display: inline-block;
}

.doc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.doc-card {
    background: white;
    border-radius: 28px;
    padding: 1.5rem;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.06);
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid #f5e2df;
}

.doc-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 30px rgba(106, 27, 26, 0.12);
}

.doc-icon {
    font-size: 2.8rem;
    color: var(--maroon-primary);
    margin-bottom: 1rem;
}

.doc-info h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: #2d1e1a;
}

.doc-meta {
    font-size: 0.8rem;
    color: #b97a76;
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.doc-desc {
    color: #5c3e3a;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

.download-doc {
    background-color: var(--maroon-primary);
    color: white;
    border: none;
    padding: 0.7rem 1rem;
    border-radius: 40px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: fit-content;
    margin-top: auto;
}

.download-doc:hover {
    background-color: var(--maroon-deep);
    transform: scale(0.98);
}

/* ========== FORM KONTAK ========== */
.kontak-form {
    background: white;
    padding: 2rem;
    border-radius: 32px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.05);
    margin-top: 1rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #5a2e2b;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 1px solid #e2cbc8;
    border-radius: 28px;
    font-family: inherit;
    transition: 0.2s;
    background: #fefaf9;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--maroon-primary);
    box-shadow: 0 0 0 3px rgba(139, 44, 42, 0.2);
}

.btn-kirim {
    background-color: var(--maroon-primary);
    color: white;
    border: none;
    padding: 0.9rem 2.5rem;
    border-radius: 40px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-kirim:hover {
    background-color: var(--maroon-deep);
    transform: scale(1.02);
}

/* ========== FOOTER ========== */
footer {
    background-color: var(--maroon-deep);
    color: #f2dedc;
    text-align: center;
    padding: 2rem;
    margin-top: 2rem;
    font-size: 0.9rem;
}

/* ========== MODAL UNTUK DETAIL BERITA ========== */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
}

.modal-content {
    background-color: #fffef7;
    margin: 10% auto;
    padding: 2rem;
    border-radius: 32px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    position: relative;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    color: #aaa;
    transition: 0.2s;
}
.close-modal:hover {
    color: var(--maroon-primary);
}

#modalJudul {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: var(--maroon-deep);
    border-left: 5px solid var(--maroon-primary);
    padding-left: 1rem;
}

.modal-date {
    font-size: 0.9rem;
    color: #b97a76;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

#modalDeskripsi {
    font-size: 1rem;
    line-height: 1.6;
    color: #2d1e1a;
}

/* Responsif modal */
@media (max-width: 768px) {
    .modal-content {
        margin: 20% auto;
        padding: 1.5rem;
        width: 95%;
    }
    #modalJudul {
        font-size: 1.4rem;
    }
}