/* General Reset and Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Poppins';
}

/* Paksa tidak ada scroll horizontal */
body, html {
    overflow-x: hidden;
}

:root {
    --primary-color: #004d99;
    /* Navy Blue */
    --secondary-color: #ffcc00;
    /* Yellow accent */
    --text-dark: #333;
    --text-light: #fff;
    --background-light: #f4f4f4;
    --page-width: 80%;
    /* Footer Colors */
    --footer-bg: #1a1a1a;
    --footer-text: #ccc;
}

/* ================= Animasi Scroll ================= */
.scroll-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s ease-out;
}

.scroll-left.show {
    opacity: 1;
    transform: translateX(0);
}

.scroll-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s ease-out;
}

.scroll-right.show {
    opacity: 1;
    transform: translateX(0);
}

.scroll-zoom {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.8s ease-out;
}

.scroll-zoom.show {
    opacity: 1;
    transform: scale(1);
}

.scroll-rotate {
    opacity: 0;
    transform: rotate(-15deg) translateY(30px);
    transition: all 0.8s ease-out;
}

.scroll-rotate.show {
    opacity: 1;
    transform: rotate(0deg) translateY(0);
}


body {
    line-height: 1.6;
    color: var(--text-dark);
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

ul {
    list-style: none;
}

/* Helper class for section content alignment */
.content-container {
    max-width: var(--page-width);
    margin: 0 auto;
    padding: 0 15px;
    /* Add some horizontal padding */
}

.section-title {
    text-align: center;
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 40px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: var(--secondary-color);
    margin: 10px auto 0;
}

/* --- Header Section (Top Navigation Bar) --- */

header {
    background-color: var(--text-light);
    border-bottom: 1px solid #eee;
}

/* ================= NAVBAR ================= */
.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.social-icons a {
    color: #ffffff; /* warna default ikon */
    margin-left: 15px;
    font-size: 1.2rem;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: #ffffff; /* warna saat hover */
}

header {
    width: 100%;
    background: #ffffff;
    /* nanti bebas kamu ganti */
}

.social-icons a {
    color: #ffffff;       /* warna icon */
    text-decoration: none;
    font-size: 22px;   /* ukuran icon */
    margin: 0 5px;     /* jarak antar icon */
}

.social-icons a:not(:last-child)::after {
    content: "|";
    margin-left: 5px;
    color: #ffffff;       /* warna garis pemisah */
}



/* MAIN NAV WRAPPER */
.main-nav {
    width: 100%;
    height: 90px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-inline: 200px;
    background: linear-gradient(to right, #101524, #101524);
}

/* ========== LOGO + TEXT ========== */
/* LOGO WRAP */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* LOGO IMG */
.logo img {
    height: 90px;
    width: 90px;
    object-fit: contain;
    padding: 10px;
    border-radius: 14px;
    backdrop-filter: blur(3px);
}

/* TEXT */
.logo-text {
    position: relative; /* WAJIB */
    font-family: 'Poppins';
    font-weight: bold;
    color: white;
    font-size: 1.4rem;
    letter-spacing: 1px;
    padding-left: 12px; /* jarak dari garis */
    white-space: nowrap;
}

/* GARIS TEGAK (DEKET KE LOGO) */
.logo-text::before {
    content: "";
    position: absolute;
    left: -8px; /* geser ke kiri biar nempel logo */
    top: 50%;
    transform: translateY(-50%);
    width: 2px;
    height: 80%;
    background-color: #fff;
}

/* DEFAULT (DESKTOP) = GARIS VERTIKAL */
.logo-text {
    position: relative;
    padding-left: 12px;
}

.logo-text::before {
    content: "";
    position: absolute;
    left: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 2px;
    height: 80%;
    background-color: #fff;
}


/* ===== TABLET (<=992px) ===== */
@media (max-width: 992px) {
    .logo-text::before {
        height: 70%;
        left: -6px;
    }
}


/* ===== MOBILE (<=768px) ===== */
@media (max-width: 768px) {

    .logoSec {
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }

    .logo-text {
        padding-left: 0;
        padding-top: 12px;
    }

    .logo-text::before {
        left: 50%;
        top: 0;
        transform: translateX(-50%);
        width: 60%;
        height: 2px;
    }
}


/* ===== SMALL MOBILE (<=480px) ===== */
@media (max-width: 480px) {

    .logo-text {
        font-size: 1rem;
        padding-top: 10px;
    }

    .logo-text::before {
        width: 50%;
    }
}


/* ===== EXTRA SMALL (<=360px) ===== */
@media (max-width: 360px) {

    .logo-text {
        font-size: 0.9rem;
    }

    .logo-text::before {
        width: 45%;
    }
}
/* ========== NAV LINK MENU ========== */
.nav-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-links li {
    list-style: none;
    position: relative;
}

.nav-links a {
    color: white;
    font-weight: bold;
    padding: 10px 15px;
    display: inline-block;
    transition: 0.3s;
}

/* UNDERLINE HOVER ANIMATION */
.nav-links a::after {
    content: "";
    width: 0%;
    height: 4%;
    background-color: yellow;
    position: absolute;
    bottom: 0;
    left: 0;
    transition: 0.5s;
}

.nav-links li:hover a::after {
    width: 95%;
}

/* ========== BUTTON PENDAFTARAN ========== */
.btn-daftar {
    background-color: #0066cc;
    color: white;
    padding: 10px 22px;
    border-radius: 5px;
    font-weight: bold;
    white-space: nowrap;
    transition: 0.3s;
}

.btn-daftar:hover {
    background-color: #1a82e6;
}

/* === HERO IMAGE SLIDER === */
.hero-slider {
    position: relative;
    width: 100%;
    height: 550px;
    /* bisa disesuaikan */
    overflow: hidden;
}

/* Tiap slide */
.hero-slider .slide {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

/* Slide aktif */
.hero-slider .slide.active {
    opacity: 1;
}

/* Dots */
.slider-dots {
    position: absolute;
    bottom: 20px;
    width: 100%;
    text-align: center;
    z-index: 10;
}

.slider-dots .dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin: 0 5px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: 0.3s;
}

.slider-dots .dot.active {
    background: white;
    width: 35px;
    border-radius: 10px;
}

/* ================= WELCOME SECTION ================= */
.welcome-bg {
    width: 100%;
    background: linear-gradient(to bottom, #ffffff, #f6f4f4);
    /* putih atas → abu bawah */
}

.welcome-section {
    display: flex;
    padding: 50px 0;
    gap: 40px;
    align-items: center;
}

.welcome-section>div {
    padding: 0 15px;
}

/* Bagian gambar */
.welcome-image {
    width: 50%;
    border-radius: 8px;
    overflow: hidden;
}

.welcome-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
}

/* Bagian teks */
.welcome-text {
    width: 50%;
}

.welcome-text h2 {
    color: var(--primary-color);
    font-size: 2.2rem;
    font-weight: bold;
    margin-bottom: 20px;
}

/* ================= PROFIL RINGKAS ================= */
.profile-bg {
    width: 100%;
    background: linear-gradient(to bottom, #fffdfd, #ffffff);
    /* putih atas → abu bawah */
}

.profile-section {
    padding: 50px 0;
}

.profile-content {
    text-align: center;
    line-height: 1.8;
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--primary-color);
}

/* ============================
   CARDS SECTION
============================ */
.cards-section {
    padding: 80px 0;
}

.cards-bg {
    width: 100%;
    background: linear-gradient(to bottom, #f6f4f4, #ffffff);
}

.cards-grid {
    display: grid;
    gap: 24px;
}

/* 1–3 card */
.cards-grid:not(:has(.info-card:nth-child(4))) {
    grid-template-columns: repeat(3, 1fr);
}

/* 4 card */
.cards-grid:has(.info-card:nth-child(4)):not(:has(.info-card:nth-child(5))) {
    grid-template-columns: repeat(4, 1fr);
}

/* ===== 5 CARD ===== */
.cards-grid:has(.info-card:nth-child(5)):not(:has(.info-card:nth-child(6))) {
    grid-template-columns: repeat(6, 1fr);
}

/* ukuran sama (KHUSUS 5 card) */
.cards-grid:has(.info-card:nth-child(5)):not(:has(.info-card:nth-child(6)))
.info-card {
    grid-column: span 2;
}

/* 2 card bawah → CENTER */
.cards-grid:has(.info-card:nth-child(5)):not(:has(.info-card:nth-child(6)))
.info-card:nth-child(4) {
    grid-column: 2 / span 2;
}

.cards-grid:has(.info-card:nth-child(5)):not(:has(.info-card:nth-child(6)))
.info-card:nth-child(5) {
    grid-column: 4 / span 2;
}

/* ===== 6 CARD ===== */
.cards-grid:has(.info-card:nth-child(6)) {
    grid-template-columns: repeat(3, 1fr);
}

.cards-grid:has(.info-card:nth-child(6)) .info-card {
    grid-column: auto;
}

/* ===== 8 CARD (3-3-2, 2 agak tengah) ===== */
.cards-grid:has(.info-card:nth-child(8)):not(:has(.info-card:nth-child(9))) {
    grid-template-columns: repeat(6, 1fr);
}

.cards-grid:has(.info-card:nth-child(8)):not(:has(.info-card:nth-child(9)))
.info-card {
    grid-column: span 2;
}

/* 2 card terakhir agak tengah */
.cards-grid:has(.info-card:nth-child(8)):not(:has(.info-card:nth-child(9)))
.info-card:nth-child(7) {
    grid-column: 2 / span 2;
}

.cards-grid:has(.info-card:nth-child(8)):not(:has(.info-card:nth-child(9)))
.info-card:nth-child(8) {
    grid-column: 4 / span 2;
}

@media (max-width: 768px) {
    .cards-grid {
        grid-template-columns: 1fr !important;
    }

    .info-card {
        grid-column: auto !important;
    }
}

.info-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: 0.3s ease;
}

.info-card img {
    pointer-events: none;
}

.info-card:hover {
    transform: translateY(-6px);
}

.card-img {
    width: 100%;
    height: 260px;
    object-fit: cover;
}

.card-body {
    padding: 18px;
}

.card-title {
    font-size: 18px;
    font-weight: 700;
    text-align: center;
    line-height: 1.3;
}


/* ============================
   POPUP OVERLAY
============================ */
.popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    display: none;
    justify-content: center;
    align-items: flex-start;
    padding-top: 40px;
    backdrop-filter: blur(4px);
    z-index: 9999;
}

/* ============================
   POPUP CONTENT BOX
============================ */
.popup-content {
    background: #ffffff;
    width: min(92%, 900px);
    padding: clamp(16px, 3vw, 28px);
    border-radius: clamp(10px, 2vw, 16px);

    font-family: "Poppins";
    font-size: clamp(14px, 1.6vw, 16px);
    font-weight: 400; /* isi normal */
    line-height: 1.6;
    color: #1f2937;

    position: relative;
    animation: fadeIn 0.3s ease;
    max-height: 90vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;

    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* ============================
   JUDUL POPUP
============================ */
.popup-content h1,
.popup-content h2,
.popup-content h3 {
    font-weight: 700; /* BOLD */
    margin-bottom: 12px;
    line-height: 1.3;
}

/* ============================
   ISI CONTENT
============================ */
.popup-content p,
.popup-content span,
.popup-content li {
    font-weight: 400; /* normal */
}

/* Close button */
.popup-close {
    position: absolute;
    top: 12px;
    right: 18px;
    font-size: 35px;
    cursor: pointer;
    user-select: none;
}

/* ============================
   FIRST BODY (JIKA DIPAKE)
============================ */
.popup-body {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

/* Gambar kiri */
.popup-image img {
    width: 280px;
    border-radius: 10px;
}

/* Deskripsi utama */
.popup-text {
    flex: 1;
}

.popup-text h2 {
    margin-bottom: 10px;
}

/* ============================
   ROW PER-SECTION (TKJ, Peluang Kerja, dll)
============================ */
.popup-row {
    display: flex;
    gap: 25px;
    margin-bottom: 40px;
    align-items: center;
}

/* Row gambar kiri */
.row-left {
    flex-direction: row;
}

/* Row gambar kanan */
.row-right {
    flex-direction: row-reverse;
}

/* Gambar besar */
.popup-big-img {
    width: 340px;
    height: 250px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* Text tiap section */
.popup-text h2,
.popup-text h3 {
    margin-bottom: 10px;
}

/* ============================
   PRESTASI GALLERY
============================ */
.prestasi-section {
    margin-top: 20px;
}

.gallery-title {
    margin-bottom: 10px;
    font-size: 20px;
    font-weight: bold;
}

.prestasi-gallery {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.prestasi-gallery img {
    width: 180px;
    height: 120px;
    object-fit: cover;
    border-radius: 10px;
}

/* Deskripsi bawah gallery */
.bottom-description {
    margin-top: 15px;
    font-size: 1rem;
    line-height: 1.6;
    text-align: justify;
}

/* ============================
   SLIDER PRESTASI TEXT
============================ */
.prestasi-slider {
    margin-top: 15px;
    background: #f0f0f0;
    padding: 15px;
    border-radius: 10px;
    overflow: hidden;
    white-space: nowrap;
    animation: slidePrestasi 12s linear infinite;
}

.slide {
    display: inline-block;
    margin-right: 50px;
    font-weight: bold;
}

/* ============================
   ANIMASI
============================ */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slidePrestasi {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

/* --- Program and Activities Section (Baru Ditambahkan) --- */
.program-aktivitas-section {
    padding: 80px 0;
    background-color: var(--background-light);
}

.program-aktivitas-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 50px;
}

.program-aktivitas-text {
    flex: 1;
    padding-right: 20px;
}

.program-aktivitas-text h2 {
    font-size: 2.8rem;
    color: #279d92;
    /* Warna hijau toska dari gambar */
    line-height: 1.2;
    margin-bottom: 20px;
}

.program-aktivitas-text p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

.program-aktivitas-text a {
    color: #279d92;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
}

.program-aktivitas-text a:hover {
    text-decoration: underline;
}

.program-aktivitas-text a svg {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.program-aktivitas-text a:hover svg {
    transform: translateX(5px);
}

.program-aktivitas-image-wrapper {
    flex: 1;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.program-aktivitas-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
}

/* Special overlay for "Program Internasional" */
.program-internasional-overlay {
    position: absolute;
    bottom: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 100%);
    color: white;
    padding: 30px 25px;
    text-align: right;
    border-bottom-right-radius: 10px;
    max-width: 70%;
    /* Untuk memastikan teks tidak terlalu lebar */
}

.program-internasional-overlay h3 {
    font-size: 1.6rem;
    margin-bottom: 10px;
    line-height: 1.2;
}

.program-internasional-overlay p {
    font-size: 0.9rem;
    line-height: 1.5;
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.hero-slider .slide {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
}

.hero-slider .slide.active {
    opacity: 1;
    z-index: 1;
}

.hero-dots {
    position: absolute;
    bottom: 20px;
    /* jarak dari bawah */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
    /* pastikan lebih tinggi dari slide */
}

.hero-dots span {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    cursor: pointer;
}

.hero-dots span.active {
    background: #fff;
}


/* ========= FOOTER =========== */
/* ========= FOOTER =========== */

.customFooter {
    background: #101524;
    color: white;
    position: relative;
    padding-top: 30px;
}

/* Shape atas */
.footerShape {
    margin-top: -40px;
    overflow: hidden;
}

.footerShape svg {
    width: 100%;
    fill: white;
    background: #101524;
}

/* CONTAINER */
.footerContainer {
    width: 85%;
    margin: auto;
    padding: 40px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

/* ====== KIRI ====== */
.footerLeft {
    display: flex;
    align-items: center;
    gap: 40px;
    width: 50%;
}

/* LOGO + TEXT */
.footerCol.footerLogo {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* WRAP */
.footerCol.footerLogo {
    display: flex;
    align-items: center;
    gap: 12px; /* lebih deket ke logo */
}

/* LOGO */
.footerLogo img {
    width: clamp(150px, 13vw, 260px); /* sedikit diperbesar */
    height: auto;
}

/* TEXT */
.logo2-text {
    position: relative;
    font-size: clamp(22px, 2.5vw, 36px); /* diperbesar */
    font-weight: 700;
    color: #fff;
    padding-left: 18px; /* lebih deket ke garis */
    line-height: 1.3;
    letter-spacing: 2px;
}

/* BARIS ATAS */
.logo2-text br {
    display: block;
    margin-bottom: 8px;
}

/* BARIS BAWAH */
.logo2-text small {
    display: block;
    margin-top: 2px;
    font-size: 0.7em;
    font-weight: 500;
    letter-spacing: 2.5px;
}

/* CARD GLOSSY */
.footerLogo {
    position: relative;
    padding: 18px 22px;
    border-radius: 15px;
    background: linear-gradient(145deg, #1a1f2e, #0f1422);
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
}

/* GARIS (LEBIH DEKET KE LOGO) */
.logo2-text::before {
    content: "";
    position: absolute;
    left: -18px; /* geser ke kiri (deket logo) */
    top: 50%;
    transform: translateY(-50%);
    width: 2px;
    height: clamp(65px, 7vw, 100px); /* lebih tinggi biar seimbang */
    background-color: #ccc;
}

/* MENU */
.footerMenu {
    margin-left: 20px;
}

.menu-grid {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 8px;
}

.menu-grid li a {
    color: white;
    font-size: 15px;
    text-decoration: none;
    transition: 0.3s;
}

.menu-grid li a:hover {
    color: #f6be30;
}

/* ====== KANAN (MAPS) ====== */
.footerRight {
    width: 50%;
    display: flex;
    justify-content: flex-end;
}

.footerMaps iframe {
    width: 440px;
    height: 220px;
    border: 0;
    border-radius: 10px;
}

/* ====== CONTACT (OPSIONAL) ====== */
.footerContact .contactRow {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.footerContact i {
    margin-right: 8px;
}

/* ====== COPYRIGHT ====== */
.footerCopyright {
    text-align: center;
    padding: 15px 0;
    margin-top: 20px;
    background: #102236;
    font-size: 14px;
}

/* ====== RESPONSIVE ====== */
@media (max-width: 768px) {

    .footerContainer {
        flex-direction: column;
        align-items: flex-start;
        gap: 30px;
    }

    .footerLeft,
    .footerRight {
        width: 100%;
    }

    .footerRight {
        justify-content: center;
    }

    .footerMaps iframe {
        width: 100%;
        height: 200px;
    }

    .footerLeft {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
}

/* Card Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

/* ===== GRID CARDS ===== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); /* responsif */
    gap: 25px;
    margin-top: 20px;
}

/* ===== CARD INDIVIDU ===== */
.info-card {
    background: #ffffff; /* bisa diganti ke #f8f9fa atau warna lembut lain */
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.info-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 20px rgba(0,0,0,0.2);
}

/* IMAGE CARD */
.info-card .card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid #e0e0e0;
}

/* CARD BODY */
.info-card .card-body {
    padding: 15px;
    font-family: 'Poppins'; /* modern font */
}

.info-card .card-body h4 {
    font-size: 18px;
    font-weight: 600;
    color: #101524; /* gelap tapi lembut */
    margin: 10px 0 0 0;
}
/* ===== GRID CARDS 5 PER ROW ===== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); /* maksimal 5 card per row */
    gap: 25px; /* jarak antar card */
    margin-top: 20px;
}

/* CARD INDIVIDU */
.info-card {
    background: #ffffff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.info-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 20px rgba(0,0,0,0.2);
}

.info-card .card-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-bottom: 1px solid #e0e0e0;
}

.info-card .card-body {
    padding: 15px;
    font-family: 'Poppins';
}

.info-card .card-body h4 {
    font-size: 18px;
    font-weight: 600;
    color: #101524;
    margin: 10px 0 0 0;
}

/* RESPONSIVE */
@media (max-width: 1200px) {
    .cards-grid {
        grid-template-columns: repeat(4, 1fr); /* 4 per row tablet/laptop */
    }
}

@media (max-width: 992px) {
    .cards-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 per row */
    }
}

@media (max-width: 768px) {
    .cards-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 per row mobile */
    }
}

@media (max-width: 480px) {
    .cards-grid {
        grid-template-columns: 1fr; /* 1 per row HP kecil */
    }
}

.co-curricular-bg {
    width: 100%;
    background: #ffffff;
    /* hilangkan gradasi */
    margin: 0;
    /* hilangkan margin bawah */
    padding: 40px 0 20px 0;
    /* jarak atas & bawah lebih rapat */
}

.co-curricular {
    padding: 0 6%;
    /* hapus padding vertikal besar */
    margin-bottom: 130px;
    /* jarak ke section berikut cukup wajar */
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    /* jarak antar card lebih rapat */
}

.info-card {
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    /* shadow lebih ringan */
    transition: 0.3s ease;
    cursor: pointer;
}

.info-card img {
    pointer-events: none;
}

.info-card:hover {
    transform: translateY(-6px);
}

.card-img {
    width: 100%;
    height: 220px;
    /* lebih kecil, agar card tidak terlalu tinggi */
    object-fit: cover;
}

.card-body {
    padding: 18px;
}

.card-title {
    font-size: 18px;
    font-weight: 700;
    text-align: center;
    line-height: 1.3;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 30px;
    /* lebih dekat ke card */
    text-align: center;
    color: var(--primary-color);
}

/* Popup */
.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
    z-index: 999;
}

.popup-content {
    background: #fff;
    width: 70%;
    max-width: 800px;
    padding: 20px;
    border-radius: 10px;
    position: relative;
}

.popup-close {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 30px;
    cursor: pointer;
}

.popup-big-img {
    width: 350px;
    border-radius: 8px;
    margin-right: 20px;
}

.popup-row {
    display: flex;
    gap: 20px;
}

/* ===== JURUSAN SCROLL KHUSUS MOBILE ===== */
@media (max-width: 768px) {

    .cards-grid {
        display: flex !important;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 16px;
        padding: 10px 20px;
        scroll-snap-type: x mandatory;
    }

    .cards-grid::-webkit-scrollbar {
        display: none;
    }

    .cards-grid .info-card {
        flex: 0 0 80%;
        max-width: 80%;
        scroll-snap-align: start;
        grid-column: unset !important;
    }

}

/* ======== Prestasi Section ======== */
.prestasi-section {
    margin-top: 30px;
}

.prestasi-title {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 15px;
}

/* Grid Prestasi */
.prestasi-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

/* Card Prestasi */
.prestasi-card {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    text-align: center;
    padding-bottom: 10px;
}

.prestasi-img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.prestasi-text {
    padding: 10px;
    font-size: 14px;
}

.video-bg {
    position: relative;
    background: linear-gradient(to bottom, #cccbcb, #ffffff);
    /* gradient abu-abu muda ke putih */
    padding: 40px 0;
    /* jarak atas & bawah rapat */
}

/* Overlay gelap di atas gradient */
.video-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    /* overlay lebih tipis biar gradient masih kelihatan */
    z-index: 1;
}

/* Supaya konten di atas overlay */
.video-wrapper {
    position: relative;
    z-index: 2;
    display: flex;
    gap: 40px;
    width: 80%;
    margin: auto;
    align-items: center;
}

/* Video box */
.video-box {
    flex: 1;
}

.video-box iframe {
    width: 100%;
    height: 320px;
    border-radius: 14px;
    border: 0;
}

/* Teks */
.video-text {
    flex: 1;
    color: white;
    /* putih supaya terbaca di overlay */
    text-shadow: 0 0 8px rgba(0, 0, 0, 0.4);
}

.video-text h2 {
    font-size: 32px;
    margin-bottom: 10px;
}

.video-text p {
    font-size: 18px;
    line-height: 1.6;
}

/* Hilangkan jarak bawah berlebihan */
.video-section {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}
.video-section .video-wrapper {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.video-bg {
    padding-bottom: 40px !important;
    /* sama dengan top */
    margin-bottom: 0 !important;
}

/* Hilangkan jarak abu-abu di atas ekskul */
.co-curricular-bg {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Jika section di dalamnya punya padding */
.co-curricular {
    padding-top: 40px !important;
    /* 40px biar teks tidak dempet, bisa 0 kalau mau nempel total */
    margin-top: 0 !important;
}

.news-badge {
    position: fixed;
    /* tetap di viewport */
    top: 110px;
    /* jarak dari navbar */
    right: 24px;
    /* jarak dari kanan */

    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    padding: 10px 20px;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);

    font-size: 14px;
    font-weight: 600;
    color: #222;

    display: flex;
    align-items: center;
    gap: 8px;

    z-index: 999;

    /* selalu terlihat, tanpa animasi masuk/keluar */
    opacity: 1;
    transform: translateY(0);
}


/* Animasi masuk */
.news-badge.show {
    opacity: 1;
    transform: translateY(0);
}

/* Icon / badge kecil tambahan */
.news-badge i {
    font-size: 16px;
    color: #ff5a5f;
    /* bisa diganti sesuai tema */
}


.news-link {
    color: #007bff;
    font-weight: 700;
    text-decoration: underline;
}

@keyframes fadeSlide {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ================= NAVBAR RESPONSIVE ================= */

@media (max-width: 1200px) {
    .main-nav {
        padding-inline: 80px;
    }
}

@media (max-width: 992px) {
    .main-nav {
        padding-inline: 40px;
        height: auto;
        padding-block: 15px;
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .logo {
        flex-direction: column;
        gap: 10px;
    }

    .logo img {
        height: 70px;
        width: 70px;
    }

    .logo-text {
        font-size: 1.1rem;
        white-space: normal;
    }

    .social-icons {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .main-nav {
        padding-inline: 20px;
    }

    .logo-text {
        font-size: 0.95rem;
    }
}

/* ================= HERO RESPONSIVE ================= */

@media (max-width: 1200px) {
    .hero-slider {
        height: 450px;
    }
}

@media (max-width: 992px) {
    .hero-slider {
        height: 350px;
    }
}

@media (max-width: 768px) {
    .hero-slider {
        height: 280px;
    }
}

@media (max-width: 480px) {
    .hero-slider {
        height: 220px;
    }
}
/* ================= WELCOME RESPONSIVE ================= */

@media (max-width: 992px) {

    .welcome-section {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .welcome-image,
    .welcome-text {
        width: 100%;
    }

    .welcome-image img {
        height: 250px;
    }

    .welcome-text h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .welcome-text h2 {
        font-size: 1.5rem;
    }
}
/* ================= FINAL CARD GRID ================= */

.cards-grid {
    display: grid !important;
    grid-template-columns: repeat(5, 1fr);
    gap: 25px;
}

@media (max-width: 1200px) {
    .cards-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    .cards-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .cards-grid {
        grid-template-columns: 1fr;
    }
}

.info-card .card-img {
    height: 180px;
}

@media (max-width: 480px) {
    .info-card .card-img {
        height: 160px;
    }
}
/* ================= VIDEO RESPONSIVE ================= */

@media (max-width: 992px) {

    .video-wrapper {
        flex-direction: column;
        width: 90%;
        gap: 25px;
    }

    .video-box iframe {
        height: 260px;
    }

    .video-text {
        text-align: center;
    }

    .video-text h2 {
        font-size: 24px;
    }

    .video-text p {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .video-box iframe {
        height: 200px;
    }
}
/* ================= VIDEO RESPONSIVE ================= */

@media (max-width: 992px) {

    .video-wrapper {
        flex-direction: column;
        width: 90%;
        gap: 25px;
    }

    .video-box iframe {
        height: 260px;
    }

    .video-text {
        text-align: center;
    }

    .video-text h2 {
        font-size: 24px;
    }

    .video-text p {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .video-box iframe {
        height: 200px;
    }
}
/* ================= FOOTER RESPONSIVE ================= */

.menu-grid li a {
    font-size: 16px !important; /* HAPUS 80px */
}

@media (max-width: 992px) {

    .footerContainer {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }

    .footerLeft,
    .footerRight {
        width: 100%;
        justify-content: center;
    }

    .footerLeft {
        flex-direction: column;
        align-items: center;
    }

    .footerMenu {
        margin-left: 0;
    }

    .footerMaps iframe {
        width: 100%;
        height: 250px;
    }

    .logo2-text {
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .footerMaps iframe {
        height: 200px;
    }

    .footerCopyright {
        font-size: 12px;
    }
}
@media (max-width: 768px) {
    .news-badge {
        right: 12px;
        top: 90px;
        font-size: 12px;
        padding: 8px 14px;
    }
}
/* ================= SCROLL KE SAMPING ================= */

@media (max-width: 768px) {

    .cards-grid {
        display: flex !important;
        overflow-x: auto;
        gap: 20px;
        padding-bottom: 10px;
        scroll-snap-type: x mandatory;
    }

    .info-card {
        min-width: 250px;
        flex: 0 0 auto;
        scroll-snap-align: start;
    }

    .cards-grid::-webkit-scrollbar {
        display: none;
    }
}
/* ================= TABLET ================= */

@media (max-width: 992px) {

    .popup-content {
        width: 90%;
        padding: 25px;
    }

    .popup-row {
        flex-direction: column;
        text-align: center;
    }

    .popup-big-img {
        width: 100%;
        height: 220px;
    }
}

/* ================= MOBILE ================= */

@media (max-width: 576px) {

    .popup-content {
        width: 95%;
        padding: 20px;
        border-radius: 15px;
    }

    .popup-big-img {
        height: 200px;
    }

    .popup-text h2 {
        font-size: 20px;
    }

    .popup-text p {
        font-size: 14px;
    }

    .prestasi-img {
        width: 70px;
        height: 70px;
    }

    .popup-close {
        font-size: 26px;
        top: 10px;
        right: 15px;
    }
}
/* ================= PRESTASI SCROLL HORIZONTAL ================= */

.prestasi-gallery {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 10px;
    scroll-snap-type: x mandatory;
}

.prestasi-gallery::-webkit-scrollbar {
    height: 6px;
}

.prestasi-gallery::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}

/* Item gambar */
.prestasi-img {
    flex: 0 0 auto;
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 10px;
    scroll-snap-align: start;
    transition: 0.3s ease;
}

.prestasi-img:hover {
    transform: scale(1.05);
}
/* gambar bisa diklik */
.welcome-image img{
    cursor: zoom-in;
    transition: transform .3s ease;
}

.welcome-image img:hover{
    transform: scale(1.05);
}

/* popup background */
.img-popup{
    position: fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background: rgba(0,0,0,0.9);
    backdrop-filter: blur(6px);
    display:none;
    justify-content:center;
    align-items:center;
    z-index:9999;
}

/* gambar popup */
.img-popup img{
    max-width:92%;
    max-height:92%;
    border-radius:12px;
    box-shadow:0 20px 60px rgba(0,0,0,0.7);
    animation: zoomImage .35s ease;
}

/* tombol close */
.img-close{
    position:absolute;
    top:25px;
    right:35px;
    font-size:42px;
    color:white;
    cursor:pointer;
}

/* animasi zoom */
@keyframes zoomImage{
    from{
        transform: scale(.7);
        opacity:0;
    }
    to{
        transform: scale(1);
        opacity:1;
    }
}