:root {
    --cyan: #0dcaf0;
    --cyan-100: #c2f4ff;
    --cyan-200: #99ecfc;
    --cyan-300: #66e0f9;
    --cyan-400: #33d5f5;
    --cyan-500: #00c8f1;
    --cyan-600: #00a8cb;
    --cyan-700: #0088a5;
    --cyan-800: #00687f;
    --cyan-900: #00475a;

    --teal: #20c997;
    --teal-100: #d6fcf7;
    --teal-200: #aaf9ed;
    --teal-300: #7df6e3;
    --teal-400: #51f3d9;
    --teal-500: #24f0cf;
    --teal-600: #1ec7ab;
    --teal-700: #189e87;
    --teal-800: #127563;
    --teal-900: #0c4c3f;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Poppins", "sans-serif";
    overflow-x: hidden;
}

/* GLOBAL BACKGROUND FIXED */
.bg-fixed-wrapper {
    position: fixed;
    inset: 0;
    z-index: -1;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: scroll; /* safe untuk Android */
    pointer-events: none;
}

#form-ppdb {
    scroll-margin-top: 100px; /* geser jarak scroll agar judul tidak ketimpa */
    padding-top: 3rem; /* beri ruang aman di atas konten */
}

#berita-smk {
    scroll-margin-top: 100px;
}

h1 {
    font-weight: 700;
}

.bg-cyan {
    background-color: var(--cyan);
}

.bg-teal-900 {
    background-color: var(--teal-900);
}

.bg-cyan-900 {
    background-color: var(--cyan-900);
}

.custom-navbar {
    background-color: var(--teal-900);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    z-index: 1000;
}

.text-logo {
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    font-size: 1.2rem;
    color: white;
}

.nav-link {
    color: white;
    font-weight: 500;
    text-transform: uppercase;
    padding: 0.75rem 1rem;
    position: relative;
    transition: none;
    white-space: nowrap;
}

.nav-link {
    position: relative;
    background-color: transparent;
    transition: all 0.3s ease;
}

.nav-link:hover::after,
.nav-link:focus::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: white;
    transform: scaleX(1);
    transform-origin: bottom left;
    transition: transform 0.3s ease;
}

.nav-link.active::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: white;
    transform: scaleX(1);
    transform-origin: bottom left;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}

.nav-item.dropdown:hover .dropdown-menu {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-item.dropdown {
    position: relative;

    padding-bottom: 0.5rem;
    margin-bottom: -0.5rem;
}

.navbar-toggler {
    margin-left: auto;
    margin-right: 1rem;
    border-color: white;
}

@media (max-width: 991.98px) {
    .nav-item.dropdown:hover .dropdown-menu {
        display: none;
        opacity: 0;
        visibility: hidden;
        transform: translateY(10px);
    }

    .navbar-collapse.show .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}

.drawer-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 260px;
    height: 100%;
    background-color: var(--teal-900);
    z-index: 1050;
    padding: 1.5rem;
    transition: left 0.4s ease;
}

.drawer-menu.open {
    left: 0;
}

.drawer-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: white;
    position: absolute;
    top: 1rem;
    right: 1rem;
    cursor: pointer;
}

.drawer-link {
    display: block;
    color: white;
    padding: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 6px;
}

.drawer-link:hover {
    background-color: var(--cyan-800);
}

.drawer-toggle {
    background: none;
    border: none;
    color: white;
    font-weight: 500;
    width: 100%;
    text-align: left;
    padding: 0.75rem;
    font-size: 1rem;
    cursor: pointer;
    text-transform: uppercase;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.drawer-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.drawer-submenu.open {
    max-height: 500px;
}

.drawer-submenu .drawer-link {
    padding-left: 1.5rem;
    font-size: 0.95rem;
}

.banner {
    position: relative;
    width: 100%;
    height: 100vh;
}

.banner::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 15), #333333);
    filter: blur(40px);
    z-index: 2;
}

.banner img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(60%);
}

.banner .overlay-text {
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    font-weight: 700;
    font-size: 2rem;
    line-height: 1.3;
    letter-spacing: 0.5px;
}

.banner .overlay-text h1 {
    font-family: "Poppins", sans-serif;
    font-size: 4rem;
    font-weight: 800;
    text-transform: uppercase;
    text-align: center;
    color: white;
    width: 100%;
    margin: 0 auto;
    padding: 1rem 0;
    padding-top: 5rem;
    letter-spacing: 1.5px;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.6);
    line-height: 1.3;
}

.banner .overlay-text h3 {
    font-family: "poppins", Verdana, Geneva, Tahoma, sans-serif;
    font-weight: 400;
    text-transform: uppercase;
    text-align: center;
    width: 100%;
    padding: 1rem 0;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.6);
    letter-spacing: 1.5px;
    line-height: 1.3;
}

.banner .overlay-text a {
    background-color: var(--teal-900);
}

.banner .overlay-text a span {
    font-family: "poppins", Verdana, Geneva, Tahoma, sans-serif;
    font-weight: 300;
    color: white;
}

.banner .overlay-text a:hover {
    background-color: var(--teal-800);
}

.btn-ppdb {
    background-color: var(--teal);
    color: #fff;
    border-radius: 30px;
    padding: 12px 30px;
    transition: all 0.3s ease;
}
.btn-ppdb:hover {
    background-color: var(--teal-700);
    transform: translateY(-2px);
}

.btn-kontak {
    background-color: var(--teal);
    color: #fff;
    border-radius: 30px;
    padding: 12px 30px;
    transition: all 0.3s ease;
}
.btn-kontak:hover {
    background-color: var(--teal-700);
    transform: translateY(-2px);
}

.about-section-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 5rem 1rem;
}

.about-section {
    padding: 5rem 1rem;
    overflow-x: hidden;
}

#about {
    scroll-margin-top: 140px; /* Offset aman dari topbar + navbar */
}

.about-section {
    min-height: 100vh;
    background-color: white;
    padding: 5rem 1rem 3rem;
    overflow-x: hidden;
    position: relative;
    z-index: 1;
}

.about-section img {
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.card-body h5 {
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    color: var(--teal-600);
}

.about-section .card {
    opacity: 0;
    transform: translateY(30px);
    transition: all 2s ease;
}

.about-section .card.animate {
    opacity: 1;
    transform: translateY(0);
}

.about-section .card:hover {
    transform: translateY(-4px);
}

.about-section h3 {
    font-family: "poppins", Verdana, Geneva, Tahoma, sans-serif;
    font-weight: 800;
    padding-top: 1rem;
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    color: var(--teal-600);
}

.about-section p {
    font-family: "Poppins", sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
}

.about-section .card:nth-child(2) {
    animation-delay: 0.4s;
}

.visi-misi-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center; /* Baru: pusatkan horizontal */
    scroll-margin-top: 120px; /* Agar anchor tidak ketimpa */
    overflow: hidden;
}

.visi-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    opacity: 0.5;
    filter: brightness(100%);
    z-index: 1;
}

.visi-misi-section .container {
    position: relative;
    margin-inline: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
}

.visi-misi-section h3 {
    font-family: "Poppins", sans-serif;
    font-weight: 700;
    color: var(--teal-600);
}

.visi-misi-section p,
.visi-misi-section li {
    font-family: "Poppins", sans-serif;
    font-weight: 300;
    font-size: 1rem;
    line-height: 1.6;
}

#daftar-guru {
    background-color: #fff;
    display: flex;
    flex-direction: column;
    z-index: 2;
    min-height: 100vh;
    padding-top: 4rem;
    padding-bottom: 6rem;
    overflow: hidden;
}

#daftar-guru .card {
    width: 100%;
    max-width: 18rem;
    min-height: 360px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-radius: 10px;
    margin: auto;
}

#daftar-guru .card-img-top {
    width: 100%;
    max-height: 280px;
    object-fit: cover;
    object-position: top;
    box-shadow: 0 2px 1px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    display: block;
}

#daftar-guru .card:hover {
    transform: translateY(-5px);
}

#daftar-guru h2 {
    padding-top: 1rem;
    margin-bottom: 3rem;
    font-family: "Poppins", sans-serif;
    font-weight: 700;
    color: var(--teal-600);
}

.card-title {
    font-family: "poppins", Verdana, Geneva, Tahoma, sans-serif;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    color: var(--teal-600);
}

.guru-swiper .card {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    margin: 1rem auto;
    flex-grow: 1;
}

.guru-swiper .card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.swiper-slide {
    display: flex;
    justify-content: center;
    transition: transform 0.5s ease;
}

.guru-swiper .card-body {
    padding-top: 1rem;
}

.swiper,
.swiper-wrapper {
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
}

/* Responsive untuk perangkat kecil */
@media (max-width: 576px) {
    #daftar-guru .card {
        max-width: 70%;
    }

    #daftar-guru .card-img-top {
        padding-top: 0.5rem;
        object-fit: contain;
        aspect-ratio: unset;
    }
}

#program-keahlian {
    position: relative;
    min-height: 100vh;
    padding-top: 6rem; /* Rapat ke atas */
    background-color: transparent;
    scroll-margin-top: 140px;
    overflow: hidden;
}

/* Overlay hitam semi transparan */
#program-keahlian::before {
    content: "";
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 0;
    pointer-events: none;
}

/* Kontainer konten */
.program-section-wrapper {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Heading */
#program-keahlian h2 {
    font-family: "Poppins", sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 2.5rem;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.3);
}

/* Card Styling */
#program-keahlian .card {
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#program-keahlian .card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

#program-keahlian .card-img-top {
    height: 130px;
    object-fit: cover;
}

#program-keahlian .card-body {
    padding: 1rem 0.5rem;
    text-align: center;
}

#program-keahlian .card-title {
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    font-size: 1rem;
    color: var(--teal-600);
    margin-bottom: 0.5rem;
}

#program-keahlian .card-text {
    font-family: "Poppins", sans-serif;
    font-size: 0.875rem;
    line-height: 1.5;
    color: #333;
    margin-bottom: 0.75rem;
}

#program-keahlian .btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.75rem;
}

@media (max-width: 768px) {
    #program-keahlian {
        padding-top: 2.5rem;
        padding-bottom: 2.5rem;
    }

    #program-keahlian h2 {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }

    #program-keahlian .card-img-top {
        height: 160px;
    }
}

.text-pink {
    color: #e83e8c;
}
#ekstrakurikuler {
    position: relative;
    padding-top: 6rem;
    padding-bottom: 3rem;
    scroll-margin-top: 110px;
    background-color: #fff;
    max-width: 100%;
    min-height: 100vh;
    overflow: hidden;
}

.ekstra-section-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

#ekstrakurikuler h2 {
    font-family: "Poppins", sans-serif;
    font-weight: 800;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--teal-600);
    text-align: center;
}

#ekstrakurikuler .row {
    row-gap: 0.5rem;
}

#ekstrakurikuler .card {
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 1rem 0.75rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#ekstrakurikuler .card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

#ekstrakurikuler .fs-1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

#ekstrakurikuler .card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    font-family: "Poppins", sans-serif;
    color: var(--teal-600);
}

#ekstrakurikuler .card-text {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 0;
    font-family: "Poppins", sans-serif;
    color: #333;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    #ekstrakurikuler {
        padding-top: 2rem;
        padding-bottom: 2.5rem;
    }

    #ekstrakurikuler h2 {
        font-size: 1.6rem;
        margin-bottom: 1.5rem;
    }

    #ekstrakurikuler .card {
        padding: 0.75rem;
    }

    #ekstrakurikuler .fs-1 {
        font-size: 1.8rem;
    }

    #ekstrakurikuler .card-title {
        font-size: 1rem;
    }

    #ekstrakurikuler .card-text {
        font-size: 0.875rem;
    }

    .col-md-4 {
        width: 100%;
    }
}

#galeri-jurusan {
    position: relative;
    padding-top: 2rem;
    padding-bottom: 4rem;
    background-color: rgba(0, 0, 0, 0.6); /* 🔥 Transparan gelap */
    scroll-margin-top: 140px;
    min-height: 100vh;
    overflow: hidden;
    z-index: 1;
}

.galeri-section-wrapper {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

#galeri-jurusan h2 {
    font-family: "Poppins", sans-serif;
    padding-top: 2rem;
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 4rem;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.3);
}

/* Button filter styling */
#galeri-jurusan .btn {
    border-radius: 20px;
    font-size: 0.875rem;
    padding: 0.4rem 1rem;
    margin-bottom: 2rem;
    margin-top: 2rem;
}

#galeri-jurusan .btn.active {
    background-color: var(--teal-600);
    color: #fff;
    border-color: var(--teal-600);
}

/* Grid fleksibel */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(
        auto-fit,
        minmax(80px, 1fr)
    ); /* 🔥 Jumlah kolom otomatis */
    gap: 1.5rem;
}

/* Item galeri */
.gallery-item {
    position: relative;
    overflow: hidden;
}

/* Gambar */
.gallery-item img {
    width: 20%;
    height: 20px; /* 🔧 Ukuran proporsional */
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

/* Image styling */
.gallery-grid img {
    width: 10%;
    height: 20px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-grid img:hover {
    transform: scale(1.05);
}

/* Responsive */
@media (max-width: 768px) {
    #galeri-jurusan {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }

    #galeri-jurusan h2 {
        font-size: 1.6rem;
    }

    .gallery-item {
        width: 100%;
        max-width: 100%;
    }

    .gallery-item img {
        height: 160px;
        max-height: 220px;
        object-fit: cover;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 1rem;
    }
}

#contact {
    scroll-margin-top: 140px; /* Untuk navigasi anchor */
    padding-top: 6rem; /* Jarak dari atas */
    padding-bottom: 3rem; /* Jarak bawah agar tidak menyentuh footer atau section berikutnya */
    background-color: #fff;
    overflow: hidden;
    min-height: 100vh;
}

.contact-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #ffffff;
    z-index: 9999;
    overflow-y: auto;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 0; /* Ganti jadi nol agar bisa nempel atas */
}

.contact-container {
    max-width: 1000px;
    width: 100%;
    margin-top: 3rem; /* Turunkan dari 6rem agar lebih nempel */
    margin-bottom: 4rem;
    padding: 2rem 4rem;
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.contact-section h2 {
    margin-bottom: 1rem;
}

.contact-section img {
    margin-top: 6rem; /* Agar tidak rapat dengan galeri atas */
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.school-footer {
    background-color: var(--teal-900);
    color: white;
}

.school-footer h5,
.school-footer h6 {
    font-family: "Poppins", sans-serif;
    font-weight: 600;
}

.school-footer a:hover {
    text-decoration: underline;
    color: var(--teal-300);
}

.social-icons a {
    font-size: 1.2rem;
    transition: color 0.3s ease;
}
.social-icons a:hover {
    color: var(--teal-500);
}

.btn-custom {
    background-color: var(--teal);
    color: #fff;
    border-radius: 30px;
    padding: 12px 30px;
    transition: all 0.3s ease;
}
.btn-custom:hover {
    background-color: var(--teal-700);
    transform: translateY(-2px);
}

.school-footer {
    background-color: var(--teal-900);
    color: white;
    padding-top: 5rem;
    padding-bottom: 4rem;
}

.school-footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 0.5rem;
}

.school-footer .row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.school-footer .footer-logo {
    max-height: 100px;
    width: auto;
    order: -1;
    margin-right: 2rem;
    margin-bottom: 1.5rem;
}

.school-footer .col-md-4 {
    flex: 1;
    min-width: 250px;
    margin-bottom: 1.5rem;
}

.school-footer .text-logo {
    font-size: 1.75rem;
    font-weight: bold;
    margin-bottom: 0.75rem;
}

.school-footer p.small {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.school-footer .social-icons a {
    font-size: 1.5rem;
    color: white;
    margin-right: 1rem;
    transition: color 0.3s ease;
}

.school-footer .social-icons a:hover {
    color: #c5e1a5;
}

.school-footer .col-md-3 {
    flex: 0 0 auto;
    width: 200px;
    margin-bottom: 1.5rem;
}

.school-footer h6.fw-bold {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.school-footer .list-unstyled {
    padding-left: 0;
    list-style: none;
}

.school-footer .list-unstyled li {
    margin-bottom: 0.5rem;
}

.school-footer .list-unstyled a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.school-footer .list-unstyled a:hover {
    color: #c5e1a5;
}

.school-footer .col-md-4:last-of-type {
    flex: 0 0 auto;
    width: 280px;
    margin-bottom: 1.5rem;
}

.school-footer hr {
    border-color: rgba(255, 255, 255, 0.2);
    margin-top: 2rem;
    margin-bottom: 1.5rem;
}

.school-footer .text-center {
    text-align: center;
    font-size: 0.85rem;
    opacity: 0.8;
}

.text-teal {
    color: var(--teal-600);
}

@media (max-width: 768px) {
    .school-footer .row {
        flex-direction: column;
        align-items: center;
        text-align: center;
        justify-content: center;
        margin-left: 0;
    }

    .school-footer .footer-logo {
        order: -1;
        margin-bottom: 2rem;
        margin-right: 0;
    }

    .school-footer .col-md-4,
    .school-footer .col-md-3 {
        width: 90%;
        max-width: 400px;
        margin-bottom: 2rem;
    }

    .school-footer .social-icons {
        justify-content: center;
        display: flex;
    }
}

.ppdb-section-wrapper h3 {
    padding-top: 5rem;
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--teal-900);
    font-family: "Poppins", sans-serif;
    border-bottom: 2px solid var(--teal-500);
    padding-bottom: 0.5rem;
    margin-bottom: 1.2rem;
}

.btn-teal {
    background-color: var(--teal-700);
    color: white;
    border-radius: 8px;
    border: none;
    padding: 0.6rem 1.2rem;
}

.btn-teal:hover {
    background-color: var(--teal-500);
}

.form-box,
.news-box {
    border: 1px solid #eee;
    transition: box-shadow 0.3s ease;
}

.form-box:focus-within,
.news-box:hover {
    box-shadow: 0 0 10px rgba(0, 128, 128, 0.15);
}

.news-item h5 {
    font-weight: 600;
    font-size: 1.1rem;
}

.news-bg-teal {
    background-color: var(--teal-600);
    color: #fff;
}

.news-item p {
    margin-bottom: 0.4rem;
}

.berita.section-wrapper h3 {
    padding-top: 5rem;
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--teal-900);
    font-family: "Poppins", sans-serif;
    border-bottom: 2px solid var(--teal-500);
    padding-bottom: 0.5rem;
    margin-bottom: 1.2rem;
}

.news-card h5 {
    font-size: 1.2rem;
    font-weight: 600;
}

.news-card p {
    line-height: 1.5;
}

.berita-img {
    max-height: 200px;
    object-fit: cover;
}

.pagination .page-link {
    color: var(--teal-700);
    border-color: var(--teal-300);
}

.pagination .active .page-link {
    background-color: var(--teal-700);
    color: white;
    border-color: var(--teal-700);
}

#berita-smk {
    scroll-margin-top: 100px;
    padding-top: 3rem;
}

.section-title {
    padding-top: 5rem;
    font-size: 1.8rem;
    font-family: "Poppins", sans-serif;
    font-weight: 800;
    color: var(--teal-900);
    border-bottom: 2px solid var(--teal-500);
    display: inline-block;
    padding-bottom: 0.4rem;
}

img.w-100.rounded {
    object-fit: cover;
    max-height: 400px;
}

@media (max-width: 768px) {
    berita-section-wrapper h3 {
        font-size: 1.5rem;
        text-align: center;
    }
}

@media (max-width: 992px) {
    .navbar-nav {
        flex-direction: column;
        align-items: center;
    }

    .navbar-brand {
        margin-bottom: 0.5rem;
    }
}

@keyframes fadeSlideIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    section {
        padding: 2rem 1rem;
    }

    .card {
        margin-bottom: 1.5rem;
    }
}

/* Global anchor scroll offset supaya tidak ketimpa navbar/topbar */
section[id],
div[id] {
    scroll-margin-top: 140px;
}
