/* ========== ROOT VARIABLES (Warna Baru) ========== */
:root {
    --primary: #306D29;
    --secondary: #0D530E;
    --cream: #FBF5DD;
    --beige: #E7E1B1;

    /* Background */
    --main-bg: #FBF5DD;
    --card-bg: #E7E1B1;

    /* Text */
    --heading-text: #0D530E;
    --normal-text: #306D29;

    /* Button */
    --button-bg: #306D29;
    --button-hover: #0D530E;

    /* Navbar */
    --navbar-bg: #FBF5DD;
    --navbar-hover: #E7E1B1;

    /* Border */
    --border-color: #306D29;

    /* Footer */
    --footer-bg: #0D530E;
    --footer-text: #FBF5DD;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--normal-text);
    background-color: var(--main-bg);
}

/* ========== HEADER & NAVIGASI ========== */
header {
    background: var(--navbar-bg);
    box-shadow: 0 2px 10px rgba(48, 109, 41, 0.15);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid var(--border-color);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    width: 45px;
    height: 45px;
    background: var(--cream);
    border-radius: 50%;
    padding: 5px;
    border: 2px solid var(--primary);
}

.logo h2 {
    color: var(--heading-text);
    font-size: 1.5rem;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
    padding: 8px 12px;
    border-radius: 8px;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--secondary);
    background: var(--navbar-hover);
}

.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background: var(--primary);
    margin: 5px;
    transition: 0.3s;
}

/* ========== CONTAINER ========== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}
.container h1{
    text-align: center;
}

/* ========== HERO SECTION (Beranda) ========== */
.hero-skill {
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    padding: 4rem 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
    min-height: 80vh;
}

.hero-text {
    flex: 1;
    min-width: 250px;
    color: var(--cream);
}

.hero-text h1 {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
    color: var(--cream);
}

.hero-text .skill-tag {
    font-size: 1.8rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
    color: var(--beige);
}

.hero-text .institution {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.btn-daftar {
    display: inline-block;
    background: var(--button-bg);
    color: var(--cream);
    padding: 12px 35px;
    font-size: 1.1rem;
    font-weight: bold;
    text-decoration: none;
    border-radius: 40px;
    transition: 0.3s;
    border: 2px solid transparent;
}

.btn-daftar:hover {
    background: var(--button-hover);
    transform: translateY(-3px);
    border-color: var(--beige);
}

.hero-image {
    flex: 1;
    min-width: 450px;
    display: flex;
    justify-content: center;
}

.image-placeholder {
    width: 100%;
    max-width: 600px;
    background: rgba(255,255,255,0.15);
    border-radius: 20px;
    padding: 1rem;
    text-align: center;
    backdrop-filter: blur(2px);
    border: 2px dashed var(--beige);
}

.image-placeholder img {
    width: 100%;
    height: auto;
    border-radius: 12px;
}

.image-placeholder p {
    color: var(--beige);
    margin-top: 10px;
    font-size: 0.9rem;
}

/* ========== ABOUT HOME SECTION ========== */
.about-home {
    padding: 4rem 0;
    background: var(--main-bg);
}

.about-home h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--heading-text);
    font-size: 2rem;
}

.about-home p {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 2rem auto;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-card {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(13, 83, 14, 0.1);
    transition: 0.3s;
    text-align: center;
    border: 1px solid var(--border-color);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(13, 83, 14, 0.15);
}

.feature-card h3 {
    color: var(--heading-text);
    margin-bottom: 0.5rem;
}

/* ========== PROGRAM SECTION ========== */
.page-title {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--heading-text);
    font-size: 2rem;
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.program-card {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(13, 83, 14, 0.1);
    transition: 0.3s;
    border: 1px solid var(--border-color);
}

.program-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(13, 83, 14, 0.15);
}

.program-card h3 {
    color: var(--heading-text);
    margin-bottom: 0.5rem;
}

.duration {
    display: inline-block;
    background: var(--primary);
    color: var(--cream);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

/* ========== PROFILE PAGE ========== */
.profile-section h1 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--heading-text);
    font-size: 2rem;
}

.profile-content, .visi, .misi, .struktur-card {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(13, 83, 14, 0.1);
    border: 1px solid var(--border-color);
}

.profile-content h2, .visi h3, .misi h3, .struktur h3 {
    color: var(--heading-text);
    margin-bottom: 1rem;
}

.visi-misi {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.misi ul {
    margin-left: 1.5rem;
    color: var(--normal-text);
}

.struktur-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

/* ========== FORM STYLES ========== */
form {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(13, 83, 14, 0.1);
    max-width: 600px;
    margin: 0 auto;
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--heading-text);
}

.form-group input, 
.form-group select, 
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    background: var(--cream);
    color: var(--normal-text);
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(48, 109, 41, 0.2);
}

.button-group{
    display: flex;
    flex-direction: row; /* atas bawah */
    gap: 12px; /* jarak antar tombol */
    margin-top: 20px;

}
    .btn-submit,
.btn-clear{
    width: 50%;
}
.btn-submit {
    background: var(--button-bg);
    color: var(--cream);
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: 0.3s;
    width: 100%;
}

.btn-submit:hover {
    background: var(--button-hover);
}

.btn-clear {
    background: rgb(255, 0, 0);
    color: var(--cream);
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: 0.3s;
    width: 100%;
}

.btn-clear:hover {
    background: rgb(167, 36, 36);
}
/* ========== CONTACT PAGE ========== */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.contact-info, .contact-form {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(13, 83, 14, 0.1);
    border: 1px solid var(--border-color);
}

.contact-info h3, .contact-form h3 {
    color: var(--heading-text);
    margin-bottom: 1rem;
}

.contact-info p {
    margin-bottom: 1rem;
    color: var(--normal-text);
}

.map-container {
    margin-top: 1.5rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.map-container iframe {
    width: 100%;
    height: 350px;
    border: 0;
    display: block;
}

.note {
    font-size: 0.85rem;
    color: var(--normal-text);
    margin-top: 1rem;
    text-align: center;
    opacity: 0.8;
}

/* ========== TABLE STYLES (Data Peserta) ========== */
table {
    width: 100%;
    background: var(--card-bg);
    border-collapse: collapse;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(13, 83, 14, 0.1);
}

th, td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

th {
    background: var(--primary);
    color: var(--cream);
    font-weight: 600;
}

tr {
    background: var(--cream);
}

tr:hover {
    background: var(--beige);
}

.btn-edit, .btn-delete {
    padding: 5px 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    margin: 0 3px;
    font-weight: 500;
    transition: 0.3s;
}

.btn-edit {
    background: var(--primary);
    color: var(--cream);
}

.btn-edit:hover {
    background: var(--button-hover);
}

.btn-delete {
    background: #c0392b;
    color: white;
}

.btn-delete:hover {
    background: #a93226;
}

.btn-back {
    display: inline-block;
    margin-bottom: 1rem;
    padding: 10px 20px;
    background: var(--primary);
    color: var(--cream);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: 0.3s;
}

.btn-back:hover {
    background: var(--button-hover);
}

/* ========== BUTTON PRIMARY (Umum) ========== */
.btn-primary {
    background: var(--button-bg);
    color: var(--cream);
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: 0.3s;
    display: inline-block;
    border: none;
}

.btn-primary:hover {
    background: var(--button-hover);
    transform: translateY(-2px);
}

/* ========== FOOTER ========== */
footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    text-align: center;
    padding: 1.5rem;
    margin-top: 3rem;
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        right: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--navbar-bg);
        width: 100%;
        text-align: center;
        transition: 0.5s;
        padding: 2rem 0;
        z-index: 999;
        border-bottom: 2px solid var(--border-color);
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .burger {
        display: block;
    }
    
    .hero-text h1 {
        font-size: 2.2rem;
    }
    
    .hero-text .skill-tag {
        font-size: 1.3rem;
    }
    
    .hero-skill {
        flex-direction: column;
        text-align: center;
    }
    
    .visi-misi {
        grid-template-columns: 1fr;
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .map-container iframe {
        height: 250px;
    }
    
    /* Table responsive */
    table, thead, tbody, th, td, tr {
        display: block;
    }
    
    th {
        display: none;
        
    }
    
    td {
        position: relative;
        padding-left: 50%;
        border-bottom: 1px solid var(--border-color);
    }
    
    td:before {
        content: attr(data-label);
        position: absolute;
        left: 10px;
        font-weight: bold;
        color: var(--heading-text);
    }
    /* Striped rows untuk tabel – setiap baris berbeda warna */
table tbody tr:nth-child(odd) {
    background-color: rgba(48, 109, 41, 0.08); /* warna hijau transparan untuk baris ganjil */
}

table tbody tr:nth-child(even) {
    background-color: rgba(255, 215, 0, 0.08); /* warna emas transparan untuk baris genap */
}

/* Opsional: perkuat warna pada kolom nomor (kolom pertama) */
table tbody td:first-child {
    font-weight: bold;
    color: var(--primary);
    background-color: rgba(13, 83, 14, 0.1);
}
}
