 /* ===============================
   RESET & GLOBAL
================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Poppins', sans-serif;
}

body {
    background-color: #F5F9FF;
    color: #333;
    line-height: 1.6;
}

a {
    text-decoration: none;
}

/* ===============================
   NAVBAR
================================ */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 40px;
    background: linear-gradient(135deg, #1f7a6e, #1e5aa8);
    color: white;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    font-weight: 600;
}

.logo img {
    height: 46px;
    border-radius: 50%;
}

.menu {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 22px;
}

.menu a {
    color: white;
    font-weight: 500;
    transition: 0.3s;
}

.menu a:hover {
    opacity: 0.85;
}
.menu a.menu-ppdb {
    background: #FFD600;
    color: #eef1f3;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 700;
    transition: 0.3s ease;
}

.menu a.menu-ppdb:hover {
    background: #ffca28;
    color: #0b3c6d;
}


/* Highlight menu PPDB */
.running-text {
    width: 100%;
    overflow: hidden;
    background: #f5f9ff;
    border-bottom: 1px solid #e0e6ef;
}

.running-content {
    display: inline-block;
    padding: 8px 0;
    white-space: nowrap;
    font-weight: 600;
    color: #0f4c81;
    animation: scrollText 18s linear infinite;
}
.running-text.ppdb {
    background: #FFD600;          /* kuning PPDB */
    color: #0f4c81;               /* biru sekolah */
    font-weight: 700;
  
}

.running-text.ppdb .running-content {
    animation-duration: 16s;      /* sedikit lebih cepat */
}

@keyframes scrollText {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(-100%);
    }
}

/* ===============================
   PROFIL SEKOLAH
================================ */
.profil-section {
    background: linear-gradient(135deg, #f5f9ff, #eaf2ff);
    padding: 80px 20px;
    text-align: center;
}

/* Judul section */
.profil-section .section-title {
    font-size: 36px;
    font-weight: 700;
    color: #0f4c81;
    margin-bottom: 16px;
}

/* Deskripsi */
.profil-section .section-desc {
    max-width: 800px;
    margin: 0 auto 50px;
    font-size: 17px;
    color: #555;
    line-height: 1.7;
}

/* Container card */
.profil-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

/* Card */
.profil-cards .card {
    background: #ffffff;
    padding: 32px 26px;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hover efek */
.profil-cards .card:hover {
    transform: translateY(-10px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
}

/* Judul card */
.profil-cards .card h3 {
    font-size: 20px;
    font-weight: 700;
    color: #0f4c81;
    margin-bottom: 12px;
}

/* Isi card */
.profil-cards .card p {
    font-size: 15px;
    color: #555;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
    .profil-section {
        padding: 60px 16px;
    }

    .profil-section .section-title {
        font-size: 28px;
    }
}


/* ===============================
   HERO
================================ */


body {
    margin: 0;
    padding: 0;
}

.hero {
    width: 100%;
    min-height: calc(100vh - 80px);

    background: url("RAMADHAN.png") center / contain no-repeat;
    background-color: transparent;

    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;

    color: #fff;
}

.hero-content {
    padding: 20px;
}



/* Kotak teks */
.hero-content {
    background: rgba(0, 0, 0, 0.45);
    padding: 12px 10px;      /* DIPERKECIL */
    border-radius: 10px;
    max-width: 550px;        /* BATAS LEBAR */
    margin:10px auto;
    margin-top: -50px;

}


/* Judul utama */
.hero-content h1 {
    font-size: 44px;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 4px 12px rgba(0,0,0,0.6);
    border-left: 6px solid #FFD600;
    padding-left: 16px;
}

/* Paragraf */
.hero-content p {
    font-size: 20px;
    margin-top: 10px;
}

/* Sub teks */
.hero-sub {
    font-size: 16px;
    opacity: 0.9;
    margin-top: 12px;
}

/* ===============================
   SECTION UMUM
================================ */
.section {
    padding: 80px 40px;
    text-align: center;
}

.section h2 {
    font-size: 32px;
    margin-bottom: 14px;
    color: #1e5aa8;
}

.section-desc {
    max-width: 760px;
    margin: 0 auto 45px;
    font-size: 16px;
    color: #555;
}

/* ===============================
   CARD (Profil & Jurusan)
================================ */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
}

.card {
    background: rgb(253, 253, 253);
    padding: 32px 26px;
    border-radius: 14px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 18px 40px rgba(0,0,0,0.15);
}

.card h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: #1f7a6e;
}


/* ===============================
   PPDB STEPS (VERSI 2 – GRADASI)
================================ */
.ppdb-steps {
    list-style: none;
    padding: 0;
    margin: 40px auto;
    display: flex;
    gap: 25px;
    justify-content: center;
    flex-wrap: wrap;
}

.ppdb-steps li {
    width: 300px;
    padding: 28px 22px;
    border-radius: 18px;
    text-align: center;
    position: relative;
    color: #fff;
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Gradasi tiap kolom */
.ppdb-steps li:nth-child(1) {
    background: linear-gradient(135deg, #43cea2, #185a9d);
}

.ppdb-steps li:nth-child(2) {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.ppdb-steps li:nth-child(3) {
    background: linear-gradient(135deg, #11998e, #38ef7d);
}

/* garis aksen kiri */
.ppdb-steps li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 35px;
    width: 6px;
    height: 50px;
    background: rgba(255,255,255,0.9);
    border-radius: 0 6px 6px 0;
}

/* Judul */
.ppdb-steps h3 {
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
}

/* Deskripsi */
.ppdb-steps p {
    font-size: 14px;
    line-height: 1.6;
    color: #f1f5f9;
}

/* Hover elegan */
.ppdb-steps li:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 45px rgba(0,0,0,0.18);
}


/* Tombol PPDB */
.btn-ppdb {
    display: inline-block;
    margin-top: 40px;
    padding: 16px 40px;
    background: linear-gradient(135deg, #43cea2, #185a9d);
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    border-radius: 50px;
    box-shadow: 0 14px 35px rgba(24, 90, 157, 0.45);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-ppdb:hover {
    transform: scale(1.08);
    box-shadow: 0 18px 45px rgba(30, 90, 168, 0.6);
}
/* Form pendaftaran */
.form-wrapper {
    display: flex;
    justify-content: center;
    padding: 40px 20px;
}

.form-ppdb {
    width: 100%;
    max-width: 500px;
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 16px;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 6px;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 14px;
}

.form-group textarea {
    resize: vertical;
}

button {
    width: 100%;
    background: #FFD600;
    color: #0f4c81;
    border: none;
    padding: 12px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 25px;
    cursor: pointer;
}

button:hover {
    background: #ffca28;
}

/* ===============================
   GALERI
================================ */
.gallery {
    background: white;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 22px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

.gallery-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: 0.4s ease;
}

.gallery-item span {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.55);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    opacity: 0;
    transition: 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.12);
}

.gallery-item:hover span {
    opacity: 1;
}

/* ===============================
   FOOTER
================================ */
footer {
    background: #1e5aa8;
    color: white;
    text-align: center;
    padding: 18px;
    font-size: 14px;
}
.map-section {
    margin-top: 50px;
    padding: 25px;
    background: #f5f9ff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    text-align: center;
}

.map-section h3 {
    color: #0f4c81;
    margin-bottom: 8px;
    font-size: 20px;
}

.map-section p {
    margin-bottom: 15px;
    font-size: 15px;
    color: #333;
}

.map-section iframe {
    border-radius: 12px;
}

.btn-map {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    background: #FFD600;
    color: #0f4c81;
    font-weight: 700;
    border-radius: 25px;
    text-decoration: none;
}

.btn-map:hover {
    background: #ffca28;
}
/* ===============================
   SOSIAL MEDIA
================================ */
.footer-social h4 {
    margin-bottom: 12px;
    font-size: 16px;
}

.social-icons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap; /* agar ikon pindah baris jika layar sempit */
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #1E4FA1;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 13px;
    color: #fff;
    text-decoration: none;
    transition: background-color 0.3s, color 0.3s;
}

.social-icons a:hover {
    background-color: #FFD100;
    color: #000;
}

/* ===============================
   RESPONSIVE
================================ */
@media (max-width: 900px) {
    .ppdb-steps {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        padding: 20px;
    }

    .menu {
        flex-wrap: wrap;
        justify-content: center;
        margin-top: 12px;
    }
}
