:root {
    --maroon: #800000;
    --dark-maroon: #660000;
    --light-maroon: #a52a2a;
    --text-light: #f4f4f4;
    --text-dark: #333;
    --bg-light: #f9f9f9;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
}

header {
    background-color: var(--maroon);
    color: var(--text-light);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Logo dan tagline */
.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-img {
    height: 50px;
    width: auto;
}

.logo-text h2 {
    font-size: 1.5rem;
    color: #fff;
    margin: 0;
    line-height: 1.2;
}

.logo-text .tagline {
    font-size: 0.8rem;
    color: #f0f0f0;
    margin: 0;
    line-height: 1.2;
    opacity: 0.9;
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-menu li {
    margin-left: 20px;
}

.nav-menu a {
    color: var(--text-light);
    text-decoration: none;
    padding: 5px 10px;
    transition: background 0.3s;
    border-radius: 5px;
}

.nav-menu a:hover {
    background-color: var(--dark-maroon);
}

.section {
    padding: 60px 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

h1, h2 {
    color: var(--maroon);
    margin-bottom: 20px;
}

/* ===== BERANDA DENGAN BACKGROUND GAMBAR LOKAL ===== */
#beranda {
    /* Gambar lokal dengan overlay gelap */
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), 
                url('../web-images/kampuskimia.jpg') center/cover fixed;
    color: white;
    text-align: center;
    min-height: 60vh;
    display: flex;
    align-items: center;
}

#beranda h1 {
    background-color: rgba(128, 0, 0, 0.8); /* Maroon transparan */
    display: inline-block;
    padding: 15px 30px;
    border-radius: 10px;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    margin-bottom: 20px;
    font-size: 2.5rem;
}

#beranda p {
    color: #fff;
    font-size: 1.2rem;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}
/* ===== AKHIR BERANDA ===== */

.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    text-align: center;
    border-left: 5px solid var(--maroon);
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-5px);
}

/* Slider */
.slider-container {
    position: relative;
    max-width: 800px;
    margin: 40px auto;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.slider-wrapper {
    display: flex;
    transition: transform 0.5s ease;
}

.slide {
    min-width: 100%;
    position: relative;
}

.slide img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

.slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(128,0,0,0.8));
    color: white;
    padding: 20px;
    text-align: center;
    font-size: 1.2rem;
    font-weight: bold;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(128,0,0,0.7);
    color: white;
    border: none;
    padding: 12px 18px;
    cursor: pointer;
    font-size: 1.5rem;
    border-radius: 5px;
    transition: background 0.3s;
}

.slider-btn:hover {
    background: var(--maroon);
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

.slider-dots {
    text-align: center;
    margin-top: 10px;
}

.dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin: 0 5px;
    background: #ccc;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
}

.dot.active {
    background: var(--maroon);
}

/* ===== STRUKTUR ORGANISASI dengan FOTO ===== */
.struktur-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.struktur-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s;
    border-top: 4px solid var(--maroon);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.struktur-card:hover {
    transform: translateY(-5px);
}

.struktur-card.full-width {
    grid-column: span 2;
}

/* Foto anggota */
.struktur-card .foto {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--maroon);
    margin-bottom: 15px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.struktur-card .jabatan {
    font-size: 0.9rem;
    color: var(--maroon);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    font-weight: bold;
}

.struktur-card .nama {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.4;
}

/* Responsif struktur */
@media (max-width: 768px) {
    .struktur-grid {
        grid-template-columns: 1fr;
    }
    .struktur-card.full-width {
        grid-column: span 1;
    }
    .struktur-card .foto {
        width: 100px;
        height: 100px;
    }
}

/* ===== DOKUMEN (PDF CARD) ===== */
.dokumen-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.dokumen-card {
    background: white;
    border-radius: 8px;
    padding: 25px 20px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s;
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.dokumen-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.dokumen-card .pdf-icon {
    font-size: 3rem;
    color: var(--maroon);
    margin-bottom: 15px;
}

.dokumen-card h3 {
    color: var(--maroon);
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.dokumen-card p {
    color: #666;
    margin-bottom: 20px;
    font-size: 0.95rem;
    flex-grow: 1;
}

.btn-download {
    display: inline-block;
    background-color: var(--maroon);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-download i {
    margin-right: 8px;
}

.btn-download:hover {
    background-color: var(--dark-maroon);
}

/* ===== AKHIR DOKUMEN ===== */

#aduan {
    background-color: #f0f0f0;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: var(--maroon);
}

input[type="text"],
input[type="tel"],
input[type="email"],
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    transition: border 0.3s;
}

input:focus,
textarea:focus {
    border-color: var(--maroon);
    outline: none;
    box-shadow: 0 0 0 2px rgba(128,0,0,0.2);
}

textarea {
    resize: vertical;
}

.btn {
    background-color: var(--maroon);
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: background 0.3s;
    display: inline-block;
}

.btn:hover {
    background-color: var(--dark-maroon);
}

.note {
    font-size: 0.9rem;
    color: #666;
    margin-top: 15px;
    font-style: italic;
}

footer {
    background-color: var(--dark-maroon);
    color: var(--text-light);
    text-align: center;
    padding: 20px;
    margin-top: 20px;
}

/* Responsif umum */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        text-align: center;
    }
    .logo {
        flex-direction: column;
        text-align: center;
        gap: 5px;
        margin-bottom: 10px;
    }
    .logo-img {
        height: 40px;
    }
    .nav-menu {
        margin-top: 10px;
        flex-wrap: wrap;
        justify-content: center;
    }
    .nav-menu li {
        margin: 5px;
    }
    #beranda h1 {
        font-size: 2rem;
        padding: 10px 20px;
    }
    #beranda p {
        font-size: 1rem;
    }
    .section {
        padding: 40px 15px;
    }
    .slide img {
        height: 250px;
    }
    .slider-btn {
        padding: 8px 12px;
        font-size: 1.2rem;
    }
}