/* Reset & Variabel */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --primary: #0f172a;
    --secondary: #2563eb;
    --accent: #f59e0b;
    --light: #f8fafc;
    --muted: #64748b;
    --surface: #ffffff;
    --border: #e2e8f0;
    --text: #334155;
    --nav-text: #cbd5e1;
    --header-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    --card-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
    --social-bg: rgba(255, 255, 255, 0.06);
    --social-border: rgba(255, 255, 255, 0.08);
}

body {
    background-color: var(--light);
    color: var(--text);
    line-height: 1.7;
    transition: background-color 0.25s ease, color 0.25s ease;
}

body[data-theme="dark"] {
    --primary: #020617;
    --secondary: #60a5fa;
    --accent: #f59e0b;
    --light: #020617;
    --muted: #94a3b8;
    --surface: #111827;
    --border: #334155;
    --text: #e2e8f0;
    --nav-text: #e2e8f0;
    --header-shadow: 0 10px 30px rgba(2, 6, 23, 0.5);
    --card-shadow: 0 18px 40px rgba(2, 6, 23, 0.4);
    --social-bg: rgba(255, 255, 255, 0.08);
    --social-border: rgba(255, 255, 255, 0.12);
}

body[data-theme="dark"] .section-title,
body[data-theme="dark"] .section-description,
body[data-theme="dark"] .main-intro h2,
body[data-theme="dark"] .program-card h3,
body[data-theme="dark"] .feature-card h3,
body[data-theme="dark"] .profile-card h3,
body[data-theme="dark"] .contact-card h3,
body[data-theme="dark"] .main-intro p,
body[data-theme="dark"] .feature-card p,
body[data-theme="dark"] .profile-card p,
body[data-theme="dark"] .contact-info p,
body[data-theme="dark"] .program-card p,
body[data-theme="dark"] .form-group label,
body[data-theme="dark"] .table-empty td,
body[data-theme="dark"] .contact-map {
    color: #fff;
}

img {
    max-width: 100%;
    display: block;
}

/* Header & Navigasi */
header {
    background-color: var(--primary);
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--header-shadow);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-text {
    color: #fff;
    font-size: 1.5rem;
    font-weight: bold;
}

.logo-text span {
    color: var(--accent);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: auto;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 22px;
}

nav ul li a {
    color: var(--nav-text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.25s ease;
}

nav ul li a:hover,
nav ul li a.active {
    color: var(--accent);
}

.theme-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    padding: 0.6rem 0.95rem;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.14);
}

body[data-theme="light"] .theme-toggle {
    background: rgba(15, 23, 42, 0.08);
    color: var(--primary);
    border-color: rgba(15, 23, 42, 0.12);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.menu-toggle span {
    width: 26px;
    height: 3px;
    background-color: #fff;
    border-radius: 3px;
}

/* Hero / Banner */
.hero {
    background: linear-gradient(rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.95)), url('https://images.unsplash.com/photo-1517245386807-bb43f82c33c4?auto=format&fit=crop&w=1200&q=80') no-repeat center center/cover;
    min-height: 60vh;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 1.5rem;
}

.hero h1 {
    font-size: 3rem;
    max-width: 860px;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.15rem;
    max-width: 700px;
    margin-bottom: 2rem;
    color: #e2e8f0;
}

.btn,
.btn-sm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--accent);
    color: var(--primary);
    padding: 12px 24px;
    text-decoration: none;
    font-weight: 700;
    border-radius: 999px;
    transition: transform 0.2s ease, background-color 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn:hover,
.btn-sm:hover {
    transform: translateY(-2px);
    background-color: #e08e0b;
}

.btn-sm {
    padding: 10px 20px;
    font-size: 0.95rem;
}

.main-intro {
    display: grid;
    grid-template-columns: repeat(2, minmax(260px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.section-title {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    color: var(--primary);
}

.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 4px;
    background-color: var(--accent);
    margin: 10px auto 0;
}

.section-description {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 2rem;
    color: var(--muted);
}

.button-row {
    display: flex;
    justify-content: center;
}

.card-surface,
.contact-card,
.feature-card,
.profile-card,
.form-container,
.table-responsive table {
    background-color: var(--surface);
    border-radius: 18px;
    box-shadow: var(--card-shadow);
}

.card-surface,
.contact-card,
.feature-card,
.profile-card,
.form-container {
    padding: 2rem;
    border: 1px solid var(--border);
}

.main-intro h2,
.program-card h3,
.feature-card h3,
.profile-card h3,
.contact-card h3 {
    margin-bottom: 1rem;
    color: var(--primary);
}

.main-intro p,
.feature-card p,
.profile-card p,
.contact-info p,
.program-card p {
    color: var(--muted);
    line-height: 1.8;
}

.feature-grid,
.program-grid,
.profile-grid,
.contact-grid {
    display: grid;
    gap: 1.75rem;
}

.feature-grid,
.profile-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.program-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.contact-grid {
    grid-template-columns: repeat(2, minmax(260px, 1fr));
}

.feature-card:hover,
.program-card:hover,
.profile-card:hover,
.card-surface:hover,
.contact-card:hover {
    transform: translateY(-4px);
}

.feature-card,
.profile-card,
.contact-card,
.card-surface {
    transition: transform 0.2s ease;
}

.program-card {
    overflow: hidden;
    border: 1px solid var(--border);
    background-color: var(--surface);
}

.program-body {
    padding: 2rem;
}

.program-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.program-card h3 {
    margin: 1rem 0 0.75rem;
}

.duration {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #eff6ff;
    color: var(--secondary);
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 0.9rem;
    font-weight: 700;
}

.price {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #fff7ed;
    color: #c2410c;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 0.9rem;
    font-weight: 700;
}

.form-container {
    max-width: 700px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 1rem;
    background-color: var(--surface);
    color: var(--text);
}

.form-control:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

textarea.form-control {
    min-height: 140px;
    resize: vertical;
}

.error-msg {
    color: #ef4444;
    font-size: 0.9rem;
    margin-top: 0.6rem;
    display: none;
}

.contact-card {
    padding: 2rem;
}

.contact-card h3 {
    margin-bottom: 1rem;
}

.contact-info {
    display: grid;
    gap: 1rem;
}

.contact-info p {
    color: var(--muted);
}

.contact-map {
    min-height: 250px;
    border-radius: 16px;
    background-color: var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    font-weight: 700;
}

.button-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.btn-back {
    display: inline-block;
    margin-top: 1.5rem;
    color: var(--secondary);
    border: 1px solid var(--secondary);
    padding: 12px 20px;
    border-radius: 999px;
    background: transparent;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.btn-back:hover {
    background: rgba(37, 99, 235, 0.08);
}

.table-responsive {
    overflow-x: auto;
    margin-top: 2rem;
}

table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 16px;
    overflow: hidden;
}

th,
td {
    padding: 1rem 1.2rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

th {
    background-color: var(--primary);
    color: #fff;
    font-weight: 600;
}

tbody tr:hover {
    background-color: var(--light);
}

.table-empty td {
    text-align: center;
    padding: 2rem;
    color: var(--muted);
}

.profile-grid {
    margin-top: 2rem;
}

footer {
    background-color: var(--primary);
    color: #cbd5e1;
    padding: 2rem 5%;
    font-size: 0.95rem;
}

.site-footer {
    display: grid;
    gap: 1.75rem;
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    align-items: start;
}

.footer-block h3 {
    color: #fff;
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.footer-block p {
    color: #cbd5e1;
    margin-bottom: 0.4rem;
}

.social-links {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.5rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.8rem;
    height: 1.8rem;
    padding: 0;
    border-radius: 999px;
    background: var(--social-bg);
    color: #fff;
    text-decoration: none;
    border: 1px solid var(--social-border);
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.social-link:hover,
.social-link:focus-visible {
    background: rgba(245, 158, 11, 0.18);
    transform: translateY(-1px);
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.social-icon svg {
    width: 0.9rem;
    height: 0.9rem;
    display: block;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 1rem;
}

@media (max-width: 900px) {
    .main-intro,
    .contact-grid,
    .profile-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    header {
        flex-wrap: wrap;
        padding: 1rem 4%;
    }
    .menu-toggle {
        display: flex;
    }
    nav {
        display: none;
        width: 100%;
        margin-top: 1rem;
    }
    nav.active {
        display: block;
    }
    nav ul {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }
    .hero {
        min-height: 50vh;
    }
    .hero h1 {
        font-size: 2.2rem;
    }
}

@media (max-width: 520px) {
    body {
        font-size: 0.98rem;
    }
    .form-container,
    .contact-card,
    .feature-card,
    .profile-card {
        padding: 1.5rem;
    }
}
