/* =====================================================
 *   PT. AULIA SENTRAL MULTIDATA
 *   STYLE.CSS - SUPER PREMIUM LIGHT & DARK THEME
 *   ===================================================== */

/* === RESET & ROOT === */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary: #0f766e;
    --primary-soft: #14b8a6;
    --accent: #facc15;
    --accent-soft: #fde047;
    --surface: #ffffff;
    --surface-soft: #f8fafc;
    --border-subtle: rgba(148, 163, 184, 0.35);
    --text-main: #0f172a;
    --text-muted: #475569;
    --radius-card: 18px;
    --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.16);
    --transition-fast: 0.18s ease-out;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.7;
    color: var(--text-main);
    background:
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.14), transparent 55%),
    radial-gradient(circle at bottom right, rgba(45, 212, 191, 0.14), transparent 55%),
    #f8fafc;
    min-height: 100vh;
    transition:
    background-color 0.25s ease,
    color 0.25s ease,
    background 0.3s ease;
}

/* Layout helper */
.container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 16px;
}

/* =====================================================
 *   TYPOGRAPHY
 *   ===================================================== */

h1, h2, h3 {
    letter-spacing: -0.03em;
}

h1 {
    font-size: clamp(2.1rem, 2.5vw + 1.6rem, 2.8rem);
    line-height: 1.15;
    margin-bottom: 10px;
}

h2 {
    font-size: clamp(1.7rem, 2vw + 1.2rem, 2.1rem);
    margin-bottom: 10px;
}

h3 {
    font-size: 1.1rem;
}

/* =====================================================
 *   HEADER / NAVBAR (SUPER PREMIUM)
 *   ===================================================== */

.main-header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: flex-start;  /* logo di kiri, menu + toggle di kanan */
    padding: 10px 0;
    gap: 12px;                    /* jarak antar elemen sedikit lebih rapat */
}

/* logo di kiri, elemen lain (menu + tombol theme) ngumpul di kanan */
.logo {
    margin-right: auto;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-main);
    font-weight: 700;
    font-size: 0.95rem;
}

.logo img {
    width: 40px;
    height: 40px;
    margin-right: 8px;
}

/* Desktop nav */
.nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.97rem;
    position: relative;
    padding-bottom: 4px;
    transition: color 0.2s ease-out;
}

/* Underline gradient */
.nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 0;
    background: linear-gradient(90deg, var(--primary), var(--primary-soft));
    border-radius: 999px;
    transition: width 0.18s ease-out;
}

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

.nav a:hover::after {
    width: 100%;
}

/* === ACTIVE MENU (link sedang dilihat) === */
.nav a.active {
    color: var(--primary);
    font-weight: 700;
}

.nav a.active::after {
    width: 100%;
}

/* nav toggle input (disembunyikan) */
.nav-toggle {
    display: none;
}

/* label hamburger */
.nav-toggle-label {
    display: none;
    cursor: pointer;
    width: 28px;
    height: 22px;
    position: relative;
}

.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
    position: absolute;
    content: "";
    height: 3px;
    width: 100%;
    background: #0f172a;
    border-radius: 999px;
    transition: all 0.2s;
}

.nav-toggle-label span {
    top: 50%;
    transform: translateY(-50%);
}

.nav-toggle-label span::before {
    top: -8px;
}

.nav-toggle-label span::after {
    top: 8px;
}

/* Theme toggle (dark/light) */
.theme-toggle {
    border: 1px solid rgba(148, 163, 184, 0.7);
    background: rgba(15, 23, 42, 0.95);
    border-radius: 999px;
    padding: 6px 10px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    line-height: 1;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.75);
    transition:
    transform var(--transition-fast),
    box-shadow var(--transition-fast),
    background 0.15s ease-out,
    border-color 0.15s ease-out;
    color: #e5e7eb;
}

.theme-toggle:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.9);
}

.theme-icon {
    pointer-events: none;
}

/* =====================================================
 *   HERO
 *   ===================================================== */

.hero {
    position: relative;
    min-height: 60vh;
    background-image: url("../img/hero-bg.jpg");
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    color: #f9fafb;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.40), transparent 55%),
    radial-gradient(circle at bottom right, rgba(45, 212, 191, 0.40), transparent 55%),
    linear-gradient(135deg, #0f172a, #1e3a8a);
    background-size: 200% 200%;
    animation: heroGradient 14s ease-in-out infinite;
}

.hero-content {
    position: relative;
    padding: 36px 0 36px;
}

.hero-text {
    max-width: 640px;
}

/* animasi masuk halus */
.hero-text > * {
    opacity: 0;
    transform: translateY(14px);
    animation: fadeUp 0.7s ease-out forwards;
}

.hero-text h1 {
    animation-delay: 0.15s;
}

.hero-text p {
    animation-delay: 0.25s;
    max-width: 620px;
    color: #e0f2fe;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    animation-delay: 0.35s;
}

/* dekor blob */
.hero::before,
.hero::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    filter: blur(38px);
    opacity: 0.6;
    pointer-events: none;
}

.hero::before {
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, #22d3ee, transparent 65%);
    top: -60px;
    right: 5%;
}

.hero::after {
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, #22c55e, transparent 65%);
    bottom: -40px;
    left: 2%;
}

/* =====================================================
 *   BUTTONS
 *   ===================================================== */

.btn {
    display: inline-block;
    padding: 10px 22px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: 2px solid transparent;
    text-decoration: none;
    transition:
    transform var(--transition-fast),
    box-shadow var(--transition-fast),
    background-color 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.18);
}

.btn-primary {
    background-color: var(--accent);
    color: #1f2937;
    border-color: var(--accent);
}

.btn-primary:hover {
    background-color: var(--accent-soft);
    border-color: var(--accent-soft);
    transform: translateY(-2px) scale(1.01);
}

.btn-outline {
    background-color: transparent;
    color: #e0f2fe;
    border-color: rgba(224, 242, 254, 0.9);
}

.btn-outline:hover {
    background-color: #e0f2fe;
    color: #0f172a;
    transform: translateY(-2px) scale(1.01);
}

.btn-block {
    width: 100%;
}

/* =====================================================
 *   SECTIONS (UMUM)
 *   ===================================================== */

.section {
    padding: 36px 0;
    background-color: var(--surface-soft);
    scroll-margin-top: 80px;
}

.section-gray {
    background: radial-gradient(circle at top, rgba(148,163,184,0.18), transparent 55%), #e5f3f1;
}

/* khusus jarak atas Visi-Misi */
#visi-misi.section {
    padding-top: 0;
}

.section-title {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 6px;
    color: var(--text-main);
    position: relative;
    display: inline-block;
    padding-bottom: 6px;
}

.section-title::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 56px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--primary), var(--primary-soft));
}

.section-subtitle {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 24px;
    color: #64748b;
}

.section-inner {
    width: 100%;
}

/* Grid 2 kolom (profil) */
.section-inner.two-columns {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 32px;
    align-items: center;
}

.section-text p {
    margin-bottom: 12px;
    color: var(--text-muted);
}

.section-image img {
    max-width: 100%;
    border-radius: 22px;
    box-shadow: 0 22px 45px rgba(15, 23, 42, 0.20);
    display: block;
}

/* list fitur */
.feature-list {
    margin-top: 10px;
    padding-left: 20px;
    color: #475569;
}

.feature-list li {
    margin-bottom: 6px;
    list-style: disc;
}

/* =====================================================
 *   CARDS / PRODUK
 *   ===================================================== */

.cards-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.card {
    background-color: #ffffff;
    border-radius: var(--radius-card);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(148,163,184,0.25);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition:
    transform var(--transition-fast),
    box-shadow var(--transition-fast),
    border-color 0.18s ease;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-soft);
    border-color: rgba(56,189,248,0.6);
}

/* Gambar di kartu Produk */
.service-card .service-image {
    padding: 16px 16px 0;
}

.service-card .service-image img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 18px;
    display: block;
    transition: transform 0.4s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.04);
}

.card-body {
    padding: 16px 18px 18px;
}

.card-body h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--text-main);
}

.card-body p {
    font-size: 0.92rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

/* =====================================================
 *   BERITA
 *   ===================================================== */

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.news-card {
    background-color: #ffffff;
    border-radius: var(--radius-card);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(148,163,184,0.25);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.news-image-wrapper {
    position: relative;
    height: 160px;
    overflow: hidden;
}

.news-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.news-card:hover .news-image-wrapper img {
    transform: scale(1.04);
}

.news-date {
    position: absolute;
    left: 16px;
    top: 16px;
    background: rgba(15, 23, 42, 0.90);
    color: #f9fafb;
    padding: 6px 10px;
    border-radius: 12px;
    text-align: center;
    font-size: 0.7rem;
    line-height: 1.1;
    box-shadow: 0 10px 25px rgba(0,0,0,0.6);
}

.news-date .day {
    display: block;
    font-size: 1rem;
    font-weight: 700;
}

.news-date .month {
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.news-body {
    padding: 14px 16px 16px;
}

.news-body h3 {
    font-size: 1rem;
    margin-bottom: 6px;
    color: var(--text-main);
}

.news-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.78rem;
    color: #6b7280;
    margin-bottom: 8px;
}

.news-meta span::before {
    content: "•";
    margin: 0 6px 0 2px;
    color: #9ca3af;
}

.news-meta span:first-child::before {
    content: "";
    margin: 0;
}

.news-body p {
    font-size: 0.9rem;
    color: #4b5563;
    margin-bottom: 8px;
}

.news-link {
    display: inline-block;
    font-size: 0.86rem;
    font-weight: 500;
    color: var(--primary);
    text-decoration: none;
    margin-top: 2px;
}

.news-link:hover {
    text-decoration: underline;
}

/* =====================================================
 *   GALERI (KARTU + MODAL)
 *   ===================================================== */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.gallery-card {
    background-color: #ffffff;
    border-radius: var(--radius-card);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(148,163,184,0.25);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.gallery-card-image {
    height: 170px;
    overflow: hidden;
}

.gallery-card-image a {
    display: block;
    height: 100%;
}

.gallery-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
    cursor: pointer;
}

.gallery-card:hover .gallery-card-image img {
    transform: scale(1.04);
}

.gallery-card-body {
    padding: 14px 16px 16px;
}

.gallery-card-body h3 {
    font-size: 1rem;
    margin-bottom: 6px;
    color: var(--text-main);
}

.gallery-card-body p {
    font-size: 0.9rem;
    color: #4b5563;
}

/* Modal */
.gallery-modal {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.96);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease-out;
    z-index: 999;
    padding: 16px;
}

.gallery-modal.open {
    opacity: 1;
    pointer-events: auto;
}

.gallery-modal-image {
    max-width: 90vw;
    max-height: 80vh;
    border-radius: 14px;
    box-shadow: 0 20px 55px rgba(0, 0, 0, 0.9);
    background: #020617;
}

.gallery-caption {
    margin-top: 10px;
    text-align: center;
    color: #e5e7eb;
    font-size: 0.9rem;
}

.gallery-close {
    position: absolute;
    top: 20px;
    right: 24px;
    font-size: 2rem;
    font-weight: 700;
    color: #e5e7eb;
    cursor: pointer;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.9);
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: rgba(15, 23, 42, 0.82);
    padding: 10px 14px;
    border-radius: 999px;
    cursor: pointer;
    font-size: 1.4rem;
    color: #f9fafb;
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.7);
}

.gallery-nav.prev {
    left: 24px;
}

.gallery-nav.next {
    right: 24px;
}

.gallery-nav:hover {
    background: rgba(15, 23, 42, 0.96);
}

/* small (gallery & close button) */
@media (max-width: 480px) {
    .gallery-nav {
        padding: 6px 10px;
        font-size: 1.2rem;
    }
    .gallery-close {
        top: 12px;
        right: 16px;
        font-size: 1.6rem;
    }
}

/* =====================================================
 *   VISI & MISI
 *   ===================================================== */

.visi-misi-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
    margin-top: 20px;
}

.visi-box,
.misi-box {
    background: #ffffff;
    padding: 20px 24px;
    border-radius: var(--radius-card);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.10);
    border: 1px solid rgba(148,163,184,0.25);
    transition:
    transform var(--transition-fast),
    box-shadow var(--transition-fast),
    border-color 0.18s ease;
}

.visi-box:hover,
.misi-box:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-soft);
    border-color: rgba(56,189,248,0.6);
}

.visi-box h3,
.misi-box h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--text-main);
    font-weight: 700;
}

.visi-box p,
.misi-box ul {
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.7;
}

.misi-box ul {
    padding-left: 20px;
}

.misi-box ul li {
    margin-bottom: 6px;
}

/* =====================================================
 *   STRUKTUR ORGANISASI
 *   ===================================================== */

.org-flex {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    align-items: stretch;
    justify-items: center;
    margin-top: 24px;
}

.org-item {
    background: #ffffff;
    border-radius: 20px;
    padding: 26px 22px;
    width: 100%;
    max-width: 260px;
    text-align: center;
    box-shadow: 0 12px 32px rgba(15,23,42,0.08);
    border: 1px solid rgba(148,163,184,0.25);
    transition: 0.25s ease;
}

.org-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(15,23,42,0.16);
    border-color: rgba(56,189,248,0.6);
}

.org-icon {
    font-size: 2.6rem;
    margin-bottom: 12px;
}

.org-item h3 {
    font-size: 1.05rem;
    margin-bottom: 4px;
    color: var(--text-main);
}

.org-item p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* =====================================================
 *   KONTAK (SECTION BAWAH)
 *   ===================================================== */

.contact-section {
    padding-top: 36px;
    padding-bottom: 36px;
}

.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 40px;
    align-items: flex-start;
}

/* kiri */
.contact-kicker {
    font-size: 0.8rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--primary);
    font-weight: 650;
    margin-bottom: 6px;
}

.contact-title {
    font-size: 1.9rem;
    line-height: 1.3;
    margin-bottom: 10px;
    color: var(--text-main);
}

.contact-text {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.contact-info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-info-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
}

.contact-icon {
    font-size: 1.1rem;
    line-height: 1.4;
    margin-top: 2px;
}

.contact-info-list strong {
    font-size: 0.95rem;
    color: var(--text-main);
}

.contact-info-list p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
}

/* kanan: form */
.contact-form-main {
    background-color: #ffffff;
    border-radius: var(--radius-card);
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.12);
    padding: 18px 20px 20px;
    border: 1px solid rgba(148,163,184,0.35);
}

.contact-form-main .form-row {
    display: flex;
    gap: 12px;
    margin-bottom: 10px;
}

.contact-form-main .form-group {
    margin-bottom: 10px;
}

.contact-form-main input,
.contact-form-main select,
.contact-form-main textarea {
    width: 100%;
    border-radius: 12px;
    border: 1px solid #cbd5e1;
    background-color: #f1f5f9;
    padding: 8px 10px;
    font-size: 0.9rem;
    outline: none;
    transition:
    border-color 0.15s ease-out,
    box-shadow 0.15s ease-out,
    background-color 0.15s ease-out;
    resize: vertical;
    color: var(--text-main);
}

.contact-form-main input::placeholder,
.contact-form-main textarea::placeholder {
    color: #94a3b8;
}

.contact-form-main input:focus,
.contact-form-main select:focus,
.contact-form-main textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 1px rgba(45, 212, 191, 0.3);
    background-color: #ffffff;
}

/* =====================================================
 *   COPYRIGHT FOOTER (BOLD & LEFT)
 *   ===================================================== */

.copyright-footer {
    background: #030314;
    padding: 18px 0;
    color: #cbd5f5;
    border-top: 1px solid rgba(148, 163, 184, 0.14);

    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.copyright-inner {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 16px;
}

.copyright-inner p {
    margin: 0;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.35px;
    color: #cbd5f5;
}

/* =====================================================
 *   ANIMATIONS
 *   ===================================================== */

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heroGradient {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* =====================================================
 *   DARK MODE - PREMIUM
 *   html.dark dikasih oleh JS
 *   ===================================================== */

.dark body {
    color: #e5e7eb;
    background:
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.08), transparent 55%),
    radial-gradient(circle at bottom right, rgba(45, 212, 191, 0.08), transparent 55%),
    #020617;
}

/* header */
.dark .main-header {
    background:
    radial-gradient(circle at top left, rgba(56,189,248,0.30), transparent 55%),
    radial-gradient(circle at bottom right, rgba(56,189,248,0.18), transparent 55%),
    rgba(15,23,42,0.98);
    border-bottom-color: rgba(51, 65, 85, 0.8);
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.9);
}

.dark .logo {
    color: #e5e7eb;
}

.dark .nav a {
    color: #e5e7eb;
}

.dark .nav a:hover {
    color: #5eead4;
}

.dark .nav-toggle-label span,
.dark .nav-toggle-label span::before,
.dark .nav-toggle-label span::after {
    background: #e5e7eb;
}

/* hero */
.dark .hero-overlay {
    background:
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.30), transparent 55%),
    radial-gradient(circle at bottom right, rgba(45, 212, 191, 0.30), transparent 55%),
    linear-gradient(135deg, #020617, #020617);
    animation: none;
}

.dark .hero-text p {
    color: #cbd5f5;
}

/* section background */
.dark .section,
.dark .section-gray {
    background-color: #020617;
    background-image: none;
}

.dark .section#profil {
    background:
    radial-gradient(circle at top, rgba(30,64,175,0.55), transparent 55%),
    #020617;
}

.dark .section-title {
    color: #e5e7eb;
}

.dark .section-subtitle {
    color: #9ca3af;
}

.dark .section-image img {
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.95);
}

.dark .section-text p {
    color: #cbd5f5;
}

.dark .feature-list {
    color: #cbd5f5;
}

/* cards / berita / galeri / form */
.dark .card,
.dark .news-card,
.dark .gallery-card {
    background-color: #020617;
    border: 1px solid #1f2937;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.9);
}

.dark .card-body h3,
.dark .news-body h3,
.dark .gallery-card-body h3 {
    color: #e5e7eb;
}

.dark .card-body p,
.dark .news-body p,
.dark .gallery-card-body p {
    color: #cbd5f5;
}

.dark .news-meta {
    color: #9ca3af;
}

.dark .news-link {
    color: #5eead4;
}

/* copyright dark */
.dark .copyright-footer {
    background: #00010d;
    border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.dark .copyright-inner p {
    color: #94a3b8;
}

/* theme toggle dark */
.dark .theme-toggle {
    background: rgba(15, 23, 42, 0.9);
    border-color: rgba(51, 65, 85, 1);
    color: #e5e7eb;
}

.dark .theme-toggle:hover {
    box-shadow: 0 10px 30px rgba(15, 23, 42, 1);
}

/* Visi & Misi */
.dark .visi-box,
.dark .misi-box {
    background: #020617;
    border: 1px solid #1f2937;
    box-shadow: 0 20px 50px rgba(15,23,42,0.9);
}

.dark .visi-box h3,
.dark .misi-box h3 {
    color: #f1f59;
}

.dark .visi-box p,
.dark .misi-box ul {
    color: #cbd5f5;
}

/* Struktur organisasi */
.dark .org-item {
    background: #020617;
    border: 1px solid #1f2937;
    box-shadow: 0 20px 50px rgba(15,23,42,0.9);
}

.dark .org-item h3 {
    color: #e5e7eb;
}

.dark .org-item p {
    color: #cbd5f5;
}

/* Kontak */
.dark .contact-title {
    color: #f1f5f9;
}

.dark .contact-text,
.dark .contact-info-list p,
.dark .contact-info-list strong {
    color: #cbd5f5;
}

.dark .contact-icon {
    color: #94a3b8;
}

.dark .contact-form-main {
    background: #020617;
    border: 1px solid #1f2937;
    box-shadow: 0 20px 50px rgba(15,23,42,0.9);
}

.dark .contact-form-main input,
.dark .contact-form-main select,
.dark .contact-form-main textarea {
    background: #020617;
    border-color: #1f2937;
    color: #e5e7eb;
}

.dark .contact-form-main input::placeholder,
.dark .contact-form-main textarea::placeholder {
    color: #64748b;
}

.dark .contact-form-main input:focus,
.dark .contact-form-main select:focus,
.dark .contact-form-main textarea:focus {
    border-color: #14b8a6;
    box-shadow: 0 0 0 1px rgba(45,212,191,0.6);
}

/* tombol di kontak tetap kuning terang */
.dark #kontak .btn-primary {
    background-color: #facc15;
    border-color: #facc15;
    color: #111827;
}

/* =====================================================
 *   RESPONSIVE - MOBILE NAV SUPER PREMIUM
 *   ===================================================== */

@media (max-width: 1024px) {
    .nav-toggle-label {
        display: block;
    }

    .nav ul {
        position: absolute;
        top: 64px;
        right: 12px;
        flex-direction: column;
        padding: 14px 0;
        border-radius: 22px;
        width: 260px;

        background: rgba(255, 255, 255, 0.97);   /* light mode */
        box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
        border: 1px solid rgba(148, 163, 184, 0.25);

        transform: translateY(10px);
        opacity: 0;
        pointer-events: none;
        transition: all 0.2s ease-out;
    }

    .nav ul a {
        color: #0f172a;
        font-size: 1rem;
        font-weight: 600;
        text-align: center;
        width: 100%;
        display: block;
    }

    .nav ul li {
        padding: 10px 22px;
    }

    /* garis pemisah antar item */
    .nav ul li + li {
        border-top: 1px solid rgba(148, 163, 184, 0.3);
    }

    .nav ul li:hover {
        background: rgba(15, 23, 42, 0.03);
    }

    /* animasi icon X */
    .nav-toggle:checked + .nav-toggle-label span {
        background: transparent;
    }
    .nav-toggle:checked + .nav-toggle-label span::before {
        top: 0;
        transform: rotate(45deg);
    }
    .nav-toggle:checked + .nav-toggle-label span::after {
        top: 0;
        transform: rotate(-45deg);
    }
    .nav-toggle:checked ~ .nav ul {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    /* DARK MODE */
    .dark .nav ul {
        background: rgba(2, 6, 23, 0.97);
        box-shadow: 0 18px 40px rgba(0, 0, 0, 0.9);
        border: 1px solid rgba(51, 65, 85, 0.7);
    }

    .dark .nav ul a {
        color: #e5e7eb;
    }

    .dark .nav ul li + li {
        border-top: 1px solid rgba(51, 65, 85, 0.7);
    }

    .dark .nav ul li:hover {
        background: rgba(15, 23, 42, 0.6);
    }

    /* grid lainnya tetap */
    .cards-grid {
        grid-template-columns: minmax(0, 1fr);
    }
    .news-grid {
        grid-template-columns: minmax(0, 1fr);
    }
    .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .section-inner.two-columns {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 640px) {
    .contact-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
    }

    .contact-form-main .form-row {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero {
        min-height: 70vh;
    }

    .org-flex {
        grid-template-columns: 1fr;
    }

    .visi-misi-grid {
        grid-template-columns: 1fr;
    }
}

/* Layout khusus layar sedang (termasuk HP yang pakai "situs desktop") */
@media (max-width: 1024px) {
    /* Hero supaya lebih padat dan tengah */
    .hero-content {
        padding-top: 24px;
        padding-bottom: 28px;
    }

    .hero-text {
        max-width: 100%;
    }

    .hero-actions {
        flex-wrap: wrap;
    }

    /* Section profil dan lain-lain jangan 2 kolom sempit di kiri,
       tapi jadi 1 kolom penuh (biar gak ada setengah layar kosong) */
    .section-inner.two-columns {
        grid-template-columns: minmax(0, 1fr);
    }

    .section-image {
        margin-top: 18px;
    }
}
