/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', sans-serif;
    background-color: #1969c4;
    color: #eee;
    line-height: 1.6;
}

/* HEADER */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(34, 34, 34, 0.8);
    padding: 1rem 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    position: sticky;
    top: 0;
    backdrop-filter: blur(6px);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    z-index: 1000;
}

header.scrolled {
    background-color: rgba(34, 34, 34, 0.95);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.logo-container {
    display: flex;
    gap: 10px;
    /* Jarak antar logo */
    align-items: center;
}

.logo {
    height: 50px;
    /* Sesuaikan ukuran logo */
}

nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

nav a {
    color: #eee;
    text-decoration: none;
    position: relative;
    transition: color 0.3s ease;
}

nav a::after {
    content: "";
    display: block;
    width: 0;
    height: 2px;
    background: #08f;
    transition: width 0.3s ease;
    position: absolute;
    bottom: -4px;
    left: 0;
}

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

nav a:hover {
    color: #08f;
}

/* UTAMA */
.container {
    padding: 2rem;
}

.hero {
    text-align: center;
    margin-bottom: 4rem;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    animation: fadeSlideDown 1s ease-out;
}

.hero p {
    font-size: 1.2rem;
    color: #ccc;
}

@keyframes fadeSlideDown {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.btn {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.75rem 1.5rem;
    background-color: #08f;
    color: #fff;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: background 0.3s ease;
    text-decoration: none;
}

.btn:hover {
    background-color: #06c;
}

/* KARTU FITUR */
.cards {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 2rem;
}

.cards a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.card {
    background: linear-gradient(145deg, #1a1a1a, #141414);
    padding: 2rem;
    border-radius: 30px;
    box-shadow:
        4px 4px 8px #0b0b0b,
        -4px -4px 8px #262626;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    text-align: center;
    flex: 1 1 250px;
    max-width: 300px;
    min-height: 160px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    user-select: none;
    outline: none;
}

.card:hover {
    transform: scale(1.05) translateY(-8px);
    box-shadow:
        8px 8px 16px #060606,
        -8px -8px 16px #3333ff;
    outline: 2px solid #08f;
    outline-offset: 4px;
}

.card h2 {
    white-space: nowrap;
    margin-bottom: 0.5rem;
    color: #08f;
    font-weight: 700;
    font-size: 1.6rem;
    transition: color 0.3s ease;
}

.card p {
    color: #aaa;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.card:hover h2 {
    color: #0af;
}

.card:hover p {
    color: #ddd;
}

/* GALERI */
.gallery {
    margin-top: 4rem;
    text-align: center;
}

.slideshow-container {
    position: relative;
    max-width: 800px;
    margin: 2rem auto;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 136, 255, 0.4);
}

.slide {
    opacity: 0;
    width: 100%;
    height: 500px;
    border-radius: 16px;
    transition: opacity 0.7s ease;
    user-select: none;
    position: absolute;
    top: 0;
    left: 0;
}

.slide.active {
    opacity: 1;
    position: relative;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
}

/* NAVIGASI SLIDE */
.prev,
.next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    padding: 14px;
    background-color: rgba(0, 0, 0, 0.6);
    color: #08f;
    border: none;
    font-size: 28px;
    font-weight: bold;
    transform: translateY(-50%);
    border-radius: 50%;
    z-index: 10;
    transition: background-color 0.3s ease, color 0.3s ease;
    user-select: none;
}

.prev:hover,
.next:hover {
    background-color: rgba(0, 136, 255, 0.9);
    color: #fff;
}

.prev {
    left: 14px;
}

.next {
    right: 14px;
}

/* INDIKATOR SLIDE */
.dot-container {
    text-align: center;
    margin-top: 1rem;
}

.dot {
    cursor: pointer;
    height: 12px;
    width: 12px;
    margin: 0 4px;
    background-color: #444;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.3s ease;
}

.dot.active,
.dot:hover {
    background-color: #08f;
}

/* FOOTER */
footer {
    text-align: center;
    padding: 1.5rem;
    background: #222;
    margin-top: 4rem;
    font-size: 0.9rem;
    color: #777;
}

/* RESPONSIVE */
@media (max-width: 600px) {
    .cards {
        flex-direction: column;
        gap: 0.8rem;
        padding: 0 1rem;
    }

    .card {
        width: 100%;
        padding: 1rem;
        border-radius: 12px;
        min-height: auto;
    }

    .card h2 {
        font-size: 1.3rem;
        margin: 0;
    }

    .card p {
        display: none;
    }
}

.hero h1 {
    font-size: 2rem;
}

.hero p {
    font-size: 1rem;
}

.slide {
    height: 300px;
}

/* ========================= */
/* KALDIK TABLE STYLING */
/* ========================= */
.kaldik-table {
    margin-top: 2rem;
    overflow-x: auto;
}

.kaldik-table table {
    width: 100%;
    border-collapse: collapse;
    background: #111;
    color: #eee;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.6);
}

.kaldik-table th,
.kaldik-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #333;
}

.kaldik-table th {
    background: #08f;
    color: #fff;
    font-weight: bold;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.kaldik-table tr:hover {
    background-color: rgba(0, 136, 255, 0.15);
    transition: background 0.3s ease;
}

.kaldik-table td:first-child {
    font-weight: bold;
    color: #0af;
}

/* Responsive untuk tabel */
@media (max-width: 768px) {
    .kaldik-table table {
        font-size: 0.85rem;
    }

    .kaldik-table th,
    .kaldik-table td {
        padding: 8px 10px;
    }
}

/* ========================= */
/* STYLING UNTUK PPDB */
/* ========================= */

.ppdb-container {
    text-align: center;
    padding: 3rem 2rem;
    border-radius: 20px;
    max-width: 1100px;
    margin: 3rem auto;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #fff;
}

.ppdb-container h1 {
    margin: 0.5rem 0;
    font-size: 2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.ppdb-container p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
    color: #eee;
}

.ppdb-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

/* Card PPDB */
.ppdb-grid .card {
    background: #fff;
    color: #333;
    border-radius: 18px;
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ppdb-grid .card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

/* Ikon */
.icon {
    font-size: 2.3rem;
    margin-bottom: 1rem;
}

/* Warna ikon */
.formulir {
    color: #0d6efd;
}

.brosur {
    color: #ff9800;
}

.biaya {
    color: #4caf50;
}

.video {
    color: #e91e63;
}

.ekskul {
    color: #9c27b0;
}

.tenaga {
    color: #00bcd4;
}

.wa1 {
    color: #25d366;
}

.wa2 {
    color: #128c7e;
}

/* Judul Card */
.ppdb-grid .card h2 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
    color: #222;
}

/* Link tombol */
.ppdb-grid .card a {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    color: #fff;
    margin-top: 0.5rem;
}

.ppdb-grid .card .formulir-link {
    background: #0d6efd;
}

.ppdb-grid .card .brosur-link {
    background: #ff9800;
}

.ppdb-grid .card .biaya-link {
    background: #4caf50;
}

.ppdb-grid .card .video-link {
    background: #e91e63;
}

.ppdb-grid .card .ekskul-link {
    background: #9c27b0;
}

.ppdb-grid .card .tenaga-link {
    background: #00bcd4;
}

.ppdb-grid .card .wa1-link {
    background: #25d366;
}

.ppdb-grid .card .wa2-link {
    background: #128c7e;
}

.ppdb-grid .card a:hover {
    filter: brightness(1.15);
    transform: scale(1.05);
}