* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    min-height: 100%;
}

body {
    
    font-family:  'calibry', sans-serif;
    color: #222;
    background: #fff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}


/* TOPBAR */
.topbar {
    background: #111;
    color: white;
    font-size: 12px;
}

.topbar-inner {
    max-width: 1100px;
    margin: auto;
    height: 32px;
    display: flex;
    align-items: center;
    gap: 25px;
}

.topbar strong {
    margin-left: auto;
}

/* NAVBAR */
.navbar {
    background: white;
    height: 82px;
    border-bottom: 1px solid #eee;

    position: relative;
    z-index: 99999;
}

.nav-inner {
    max-width: 1100px;
    margin: auto;
    height: 82px;

    display: flex;
    justify-content: space-between;
    align-items: center;

    position: relative;
}

.logo {
    width: 55px;
}

nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

nav a {
    text-decoration: none;
    color: #222;
    font-weight: bold;
    font-size: 14px;
}

nav a.active,
nav a:hover {
    color: #25a9c9;
}


/* DROPDOWN */
.dropdown {
    position: relative;
    padding: 20px 0;
}

.dropdown-menu {
    position: absolute;
    top: 60px;
    left: 0;

    min-width: 220px;

    background: #fff;

    border-radius: 10px;

    padding: 10px 0;

    box-shadow: 0 10px 30px rgba(0,0,0,.12);

    opacity: 0;
    visibility: hidden;

    transition: .2s ease;

    z-index: 99999;
}

/* SUPAYA ADA JARAK AMAN */
.dropdown-menu::before {
    content: "";
    position: absolute;
    top: -15px;
    left: 0;
    width: 100%;
    height: 20px;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
}

.dropdown-menu a {
    display: block;

    padding: 12px 18px;

    color: #333;

    text-decoration: none;

    font-size: 13px;
    font-weight: 600;
}

.dropdown-menu a:hover {
    background: #f5f5f5;
    color: #25a9c9;
}


.dropdown:hover .dropdown-menu {
    display: block;
}

/* HERO */

.hero {
    height: 620px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: transparent;
    z-index: 1;
}

.hero-text {
    position: relative;
    z-index: 2;
    max-width: 1100px;
    margin: 0 auto;
    padding-top: 120px;
    color: white;
}

.hero-text p {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 8px;
}

.hero-text h1 {
    font-size: 58px;
    font-weight: 800;
    margin-bottom: 22px;
}

.btn,
.hero-text .btn,
.menu-card a {
    background: #25a9c9;
    color: white;
    padding: 10px 18px;
    font-size: 12px;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
}

/* HERO MENU */
.hero-menu {
    position: absolute;
    z-index: 3;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 22px;
}

.menu-card {
    width: 360px;
    height: 130px;
    background: rgba(255,255,255,.88);
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 25px 35px;
}

.menu-card .icon {
    font-size: 42px;
    color: #25a9c9;
}

.menu-card h3 {
    color: #222;
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 8px;
}

/* SECTION TITLE */
.section-title span {
    width: 35px;
    height: 2px;
    background: #25a9c9;
    display: block;
    margin-bottom: 10px;
}

.section-title h2 {
    font-size: 24px;
}

.section-title b {
    color: #25a9c9;
}

.section-title p {
    color: #777;
    font-size: 13px;
    margin-top: 5px;
}

/* BERITA HOME */
.berita-section {
    max-width: 1100px;
    margin: 70px auto 90px;
    padding: 0 15px;
}

.berita-grid {
    margin-top: 30px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.berita-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.berita-card {
    border: 1px solid #ddd;
    border-radius: 7px;
    overflow: hidden;
    background: white;
    cursor: pointer;
}

.news-image-box{
    width:100%;
    height:260px;
    display:flex;
    justify-content:center;
    align-items:center;
    overflow:hidden;
    background:#f5f5f5;
}

.news-image-box img{
    width:100%;
    height:100%;
    object-fit:contain;
    display:block;
}

.news-image-box h4{
    margin:0;
    color:#ffd700;
    font-size:16px;
    font-weight:700;
    line-height:1.4;
    text-transform:uppercase;
}

.berita-body {
    padding: 16px;
}

.berita-body h3 {
    font-size: 16px;
    line-height: 1.4;
    min-height: 48px;
}

.berita-card:hover h3 {
    color: #25a9c9;
}

.meta {
    margin-top: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.meta span {
    background: #25a9c9;
    color: white;
    padding: 7px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

.meta small {
    color: #555;
    font-size: 12px;
}

/* ARCHIVE BERITA */
.archive-wrapper {
    max-width: 1100px;
    margin: 35px auto 80px;
    padding: 0 15px;
}

.archive-wrapper .breadcrumb {
    font-size: 12px;
    color: #777;
    margin-bottom: 12px;
}

.archive-wrapper .section-title {
    margin-bottom: 28px;
}

.archive-grid {
    grid-template-columns: repeat(4, 1fr);
}

.archive-grid .berita-card {
    min-height: 270px;
}

.pagination-box {
    margin-top: 30px;
}


.left {
    margin-bottom: 30px;
}

.pengumuman-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px 45px;
}

.pengumuman-item {
    display: flex;
    gap: 15px;
}

.dot {
    width: 14px;
    height: 14px;
    background: #25a9c9;
    border-radius: 50%;
    margin-top: 8px;
}

.pengumuman-item small {
    color: #0097b2;
    font-weight: bold;
}

.pengumuman-item h4,
.agenda-item h4 {
    font-size: 15px;
    margin-top: 5px;
}

.agenda-item {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 18px;
}

.date-box {
    width: 60px;
    overflow: hidden;
    border-radius: 7px;
    text-align: center;
}

.date-box small {
    background: #111;
    color: white;
    display: block;
    padding: 7px;
}

.date-box strong {
    background: #25a9c9;
    color: white;
    display: block;
    padding: 10px;
    font-size: 24px;
}

.agenda-item p {
    margin-top: 7px;
    color: #1598b3;
    font-size: 12px;
}

/* GURU */
.guru-slider-section{
    position: relative;
    padding: 80px 0;
    background: url('../images/foto-bersama.jpeg') center/cover no-repeat;
    overflow: hidden;
}

.guru-overlay{
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.65);
}

.guru-content{
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: auto;
    text-align: center;
}

.guru-slider-title{
    text-align: center;
    color: #fff;
    margin-bottom: 35px;
}

.guru-slider-title h2{
    font-size: 34px;
    font-weight: 700;
    margin-bottom: 8px;
}

.guru-slider-title p{
    font-size: 15px;
}

.lihat-semua-btn{
    color: #fff;
    font-size: 22px;
    font-weight: bold;
    text-decoration: underline;
}

.guruSwiper{
    padding: 0 50px;
}

.swiper{
    width: 100%;
}

.swiper-wrapper{
    align-items: stretch;
}

.swiper-slide{
    height: auto;
}

.guru-slide-card{
    height: 100%;
}

/* BUTTON */
.guruSwiper .swiper-button-next,
.guruSwiper .swiper-button-prev{
    width: 42px;
    height: 42px;
    background: rgba(255,255,255,.95);
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0,0,0,.2);
}

.guruSwiper .swiper-button-next::after,
.guruSwiper .swiper-button-prev::after{
    font-size: 18px;
    font-weight: bold;
    color: #0097b2;
}

.guru-slide-card{
    background: #fff;
    padding: 25px 15px;
    border-radius: 8px;
    text-align: center;
    min-height: 120px;
}

.guru-slide-card h4{
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #333;
}

.guru-slide-card p{
    font-size: 14px;
    color: #00a6bd;
    margin: 0;
}

.swiper-button-next,
.swiper-button-prev{
    width: 42px;
    height: 42px;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    color: #00a6bd;
}

.swiper-button-next::after,
.swiper-button-prev::after{
    font-size: 18px;
    font-weight: bold;
}



/* RESPONSIVE */
@media (max-width: 992px) {

    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 45px;
    }

}

@media (max-width: 768px) {

    .footer-container {
        grid-template-columns: 1fr;
    }

}

/* RESPONSIVE */
@media (max-width: 900px) {
    .topbar-inner,
    .nav-inner {
        width: 90%;
    }

    nav {
        gap: 15px;
    }

    .hero {
        height: auto;
        min-height: 650px;
    }

    .hero-text {
        padding-top: 80px;
    }

    .hero-text h1 {
        font-size: 38px;
    }

    .hero-menu {
        flex-direction: column;
        bottom: 35px;
    }

    .menu-card {
        width: 290px;
    }

    .berita-grid,
    .archive-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .info-section,
    .detail-page,
    .footer-inner {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .berita-grid,
    .archive-grid {
        grid-template-columns: 1fr;
    }

    .topbar-inner {
        gap: 10px;
        font-size: 10px;
    }

    nav {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* =========================
   KONTAK
========================= */

.kontak-section{
    padding: 60px 8%;
    background: #f8f9fa;
}

.kontak-title{
    text-align: center;
    margin-bottom: 40px;
}

.kontak-title h1{
    font-size: 36px;
    font-weight: 700;
    color: #222;
}



/* MAP */
.kontak-map{
    flex: 1.2;
}

.kontak-map iframe{
    width: 100%;
    height: 470px;
    border: none;
    border-radius: 15px;
}

/* INFO */
.kontak-info{
    flex: 1;
}

.kontak-header{
    background: #2ca7b1;
    border-radius: 15px;
    text-align: center;
    padding: 20px;
    margin-bottom: 25px;
}

.kontak-header img{
    width: 90px;
    height: auto;
}

.kontak-info h2{
    font-size: 38px;
    font-weight: 700;
    margin-bottom: 30px;
    color: #333;
}

/* ITEM */
.kontak-item{
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 25px;
}

.kontak-icon{
    width: 55px;
    height: 55px;
    min-width: 55px;
    border-radius: 50%;
    background: #2ca7b1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.kontak-icon i{
    color: white;
    font-size: 22px;
}

.kontak-text h4{
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    color: #333;
}

.kontak-text p{
    margin-top: 5px;
    color: #666;
    font-size: 18px;
    line-height: 1.5;
}

/* RESPONSIVE */
@media (max-width: 900px) {

    .kontak-wrapper {
        grid-template-columns: 1fr;
    }

}

/* =========================
   PROFIL SEKOLAH
========================= */

.profil-section {
    background: #f4f4f4;
    padding: 50px 20px;
}

.profil-wrapper {
    max-width: 1250px;
    margin: auto;

    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 25px;
}

.profil-card,
.kepsek-card {
    background: white;
    border-radius: 14px;
    padding: 25px;

    box-shadow: 0 5px 15px rgba(0,0,0,.06);
}

.profil-page {
    background: #f5f7fb;
    min-height: 100vh;
    padding: 25px 30px 60px;
}

.breadcrumb {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 50px;
}

.page-title {
    text-align: center;
    font-size: 34px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 35px;
}

.container {
    max-width: 1150px;
    margin: auto;
}

.card {
    background: #fff;
    border-radius: 14px;
    padding: 35px 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

.card h2 {
    color: #1d4ed8;
    font-size: 24px;
    margin-bottom: 22px;
    font-weight: 700;
    text-align: center;
}

.card p,
.card li {
    color: #334155;
    font-size: 15px;
    line-height: 1.9;
}

.sejarah-card {
    margin-bottom: 70px;
}

.visi-misi-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: start;
}

.small-card {
    min-height: 100%;
}

.visi-text {
    font-size: 18px;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.8;
}

.misi-list {
    padding-left: 20px;
}

.misi-list li {
    margin-bottom: 14px;
}

@media (max-width: 768px) {

    .profil-page {
        padding: 20px 15px 40px;
    }

    .page-title {
        font-size: 28px;
    }

    .card {
        padding: 25px 22px;
    }

    .visi-misi-wrapper {
        grid-template-columns: 1fr;
    }

}

nav a.active,
nav a:hover {
    color: #25a9c9;
}


.dropdown-menu a:hover {
    background: #f5f5f5;
    color: #25a9c9;
}


.dropdown:hover .dropdown-menu {
    display: block;
}


.menu-card .icon {
    font-size: 42px;
    color: #25a9c9;
}

.menu-card h3 {
    color: #222;
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 8px;
}


/* BERITA HOME */
.berita-section {
    max-width: 1100px;
    margin: 70px auto 90px;
    padding: 0 15px;
}

.berita-grid {
    margin-top: 30px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    align-items: stretch;
}

.news-image-full{
    height:230px;
    overflow:hidden;
}

.news-image-full img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}

.berita-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.berita-card{
    background:#fff;
    border-radius:10px;
    overflow:hidden;
    border:1px solid #ddd;
    display:flex;
    flex-direction:column;
    height:100%;
    transition:.3s;
}

.berita-card:hover{
    transform:translateY(-5px);
    box-shadow:0 10px 20px rgba(0,0,0,.15);
}

.news-image-box h4 {
    color: #ffd700;
    font-size: 12px;
    font-weight: bold;
    text-align: center;
    padding: 0 12px;
    line-height: 1.4;
}

.berita-body{
    padding:20px;
    display:flex;
    flex-direction:column;
    flex:1;
}

.berita-body h3{
    font-size:18px;
    line-height:1.5;
    min-height:85px;
    color:#222;
    font-weight:700;
}

.berita-card:hover h3 {
    color: #25a9c9;
}

.meta {
    margin-top: auto;
}

.meta span {
    background: #25a9c9;
    color: white;
    padding: 7px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

.meta small {
    color: #555;
    font-size: 12px;
}

/* ARCHIVE BERITA */
.archive-wrapper {
    max-width: 1100px;
    margin: 35px auto 80px;
    padding: 0 15px;
}

.archive-wrapper .breadcrumb {
    font-size: 12px;
    color: #777;
    margin-bottom: 12px;
}

.archive-wrapper .section-title {
    margin-bottom: 28px;
}

.archive-grid {
    grid-template-columns: repeat(4, 1fr);
}

.archive-grid .berita-card {
    min-height: 270px;
}

.pagination-box {
    margin-top: 30px;
}

/* ================= INFO SECTION ================= */

.info-section{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    padding: 70px 12%;
    background: #dceff5;

}

/* ================= HEADING ================= */

.section-heading{
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 35px;
}

.section-heading span{
    width: 35px;
    height: 3px;
    background: #1ca3c7;
    display: block;
    position: absolute;
    margin-top: -35px;
}

.section-heading h2{
    font-size: 40px;
    font-weight: 700;
    color: #222;
}

.arrow-btn{
    width: 28px;
    height: 28px;
    border: 1px solid #1ca3c7;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #1ca3c7;
    font-size: 22px;
}

/* ================= PENGUMUMAN ================= */

.pengumuman-grid{
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 35px;
}

.pengumuman-item{
    display: flex;
    gap: 14px;
    text-decoration: none;
}

.pengumuman-item .dot{
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: #1ca3c7;
    margin-top: 8px;
    flex-shrink: 0;
}

.pengumuman-item small{
    color: #1ca3c7;
    font-size: 14px;
    font-weight: 600;
}

.pengumuman-item h4{
    margin-top: 5px;
    font-size: 20px;
    color: #222;
    line-height: 1.4;
    font-weight: 700;
}

/* ================= AGENDA ================= */

.agenda-item{
    display: flex;
    gap: 18px;
    margin-bottom: 30px;
}

.date-box{
    width: 85px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
}

.date-box small{
    display: block;
    background: #1f1f1f;
    color: white;
    text-align: center;
    padding: 6px;
    font-size: 14px;
    font-weight: 600;
}

.date-box strong{
    display: block;
    background: #1ca3c7;
    color: white;
    text-align: center;
    padding: 12px;
    font-size: 38px;
    font-weight: bold;
}

.agenda-content h4{
    font-size: 21px;
    font-weight: 700;
    color: #222;
    margin-bottom: 10px;
}

.agenda-meta{
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    color: #1ca3c7;
    font-size: 14px;
    font-weight: 600;
}


.agenda-title{
    margin-bottom: 20px;
    line-height: 1.4;
}

.detail-meta{
    margin-bottom: 30px;
    color: #777;
    font-size: 14px;
}

.detail-isi{
    margin-top: 20px;
    margin-bottom: 30px;
    line-height: 1.9;
    text-align: justify;
}


/* ================= RESPONSIVE ================= */

@media(max-width: 992px){

    .info-section{
        grid-template-columns: 1fr;
    }

    .pengumuman-grid{
        grid-template-columns: 1fr;
    }

}

@media(max-width: 576px){

    .section-heading h2{
        font-size: 28px;
    }

    .pengumuman-item h4{
        font-size: 17px;
    }

    .agenda-content h4{
        font-size: 18px;
    }

}


/* ================= RESPONSIVE ================= */

@media(max-width: 768px){

    .info-section{
        grid-template-columns: 1fr;
    }

    .video-grid{
        grid-template-columns: 1fr;
    }

}
/* =========================
   DETAIL BERITA
========================= */

.detail-page {
    max-width: 1100px;
    margin: 35px auto 80px;
    padding: 0 15px;

    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 35px;
    align-items: start;
}

.detail-content {
    min-width: 0;
}

.detail-image-box {
    width: 100%;
    margin: 20px 0 25px;
    overflow: hidden;
    border-radius: 12px;
}

.detail-image-box img {
    width: 100%;
    max-height: 430px;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: 12px;
}

.detail-isi {
    font-size: 15px;
    line-height: 1.9;
    text-align: justify;
    color: #333;
}

.detail-isi p {
    margin-bottom: 18px;
}

/* SIDEBAR */
.detail-sidebar {
    min-width: 0;
}

.search-box {
    display: flex;
    margin-bottom: 25px;
}

.search-box input {
    flex: 1;
    height: 38px;
    border: 1px solid #ccc;
    padding: 8px;
}

.search-box button {
    background: #25a9c9;
    color: white;
    border: none;
    padding: 0 15px;
    font-size: 12px;
    font-weight: bold;
}

.sidebar-block {
    margin-bottom: 24px;
}

.sidebar-block h3 {
    font-size: 16px;
    margin-bottom: 13px;
}

.sidebar-block a {
    display: block;
    color: #111;
    text-decoration: none;
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 9px;
    line-height: 1.4;
}

.sidebar-block a:hover {
    color: #25a9c9;
}

.sidebar-block p {
    font-size: 13px;
    margin-bottom: 8px;
}

.side-list {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}

.side-list span {
    width: 11px;
    height: 11px;
    background: #25a9c9;
    border-radius: 50%;
    margin-top: 5px;
    flex-shrink: 0;
}

.side-list small {
    color: #25a9c9;
    font-size: 11px;
    font-weight: bold;
}

.side-list p {
    font-size: 12px;
    font-weight: bold;
    margin: 2px 0 0;
    line-height: 1.4;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .detail-page {
        grid-template-columns: 1fr;
    }

    .detail-image-box img {
        max-height: none;
    }
}

/* =========================
   FOOTER
========================= */

.footer {
    background: #020b1f;
    color: white;
    font-family: 'Nunito Sans', sans-serif;
    margin-top: auto;
    padding-top: 65px;
}

.footer-container {
    width: 100%;
    max-width: 1350px;
    margin: auto;
    padding: 0 30px 55px;

    display: grid;
    grid-template-columns: 1.5fr 1.2fr 1fr 1fr;
    gap: 75px;
}

/* JUDUL */
.footer-box h2,
.footer-box h3 {
    font-size: 30px;
    font-weight: 800;
    margin-bottom: 24px;
    color: #fff;
}

/* TEXT */
.footer-box p,
.footer-box a,
.footer-box li {
    font-size: 15px;
    line-height: 1.9;
    color: #edf2ff;
    text-decoration: none;
    list-style: none;
}

/* LIST */
.footer-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-box ul li {
    margin-bottom: 10px;
}

.footer-box a:hover {
    color: #4d7cff;
}

/* BRAND */
.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-brand h2 {
    margin-bottom: 12px;
}

.footer-logo {
    width: 90px;
    margin: 20px 0;
}

.footer-info {
    margin-top: 18px;
}

/* JAM */
.jam {
    margin-top: 28px;
}

/* SOSMED */
.footer-social {
    margin-top: 35px;
}

.footer-social h4 {
    margin-bottom: 15px;
    font-size: 15px;
    font-weight: 700;
}

.social-icons {
    display: flex;
    gap: 12px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,.08);

    display: flex;
    align-items: center;
    justify-content: center;

    color: white;
    font-size: 15px;

    transition: .3s;
}

.social-icons a:hover {
    background: #3563ff;
}

/* COPYRIGHT */
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.08);

    text-align: center;

    padding: 22px;

    font-size: 13px;
    color: #dce3ff;
}

/* RESPONSIVE */
@media (max-width: 992px) {

    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 45px;
    }

}

@media (max-width: 768px) {

    .footer-container {
        grid-template-columns: 1fr;
    }

}

/* RESPONSIVE */
@media (max-width: 900px) {
    .topbar-inner,
    .nav-inner {
        width: 90%;
    }

    nav {
        gap: 15px;
    }

    .hero {
        height: auto;
        min-height: 650px;
    }

    .hero-text {
        padding-top: 80px;
    }

    .hero-text h1 {
        font-size: 38px;
    }

    .hero-menu {
        flex-direction: column;
        bottom: 35px;
    }

    .menu-card {
        width: 290px;
    }

    .berita-grid,
    .archive-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .info-section,
    .detail-page,
    .footer-inner {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .berita-grid,
    .archive-grid {
        grid-template-columns: 1fr;
    }

    .topbar-inner {
        gap: 10px;
        font-size: 10px;
    }

    nav {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* =========================
   KONTAK
========================= */

.kontak-section {
    padding: 70px 20px;
    background: #f5f5f5;
}

.kontak-title {
    text-align: center;
    margin-bottom: 40px;
}

.kontak-title h1 {
    font-size: 46px;
    font-weight: 800;
    color: #333;
}

.kontak-wrapper {
    max-width: 1250px;
    margin: auto;

    background: white;

    border-radius: 22px;

    padding: 40px;

    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 35px;

    box-shadow: 0 10px 30px rgba(0,0,0,.08);
}

.kontak-map iframe {
    border-radius: 18px;
}

.kontak-info {
    padding-top: 10px;
}

.kontak-header {
    background: #2da8b3;
    border-radius: 18px;
    padding: 22px;
    margin-bottom: 30px;
}

.kontak-header img {
    width: 110px;
}

.kontak-info h2 {
    font-size: 42px;
    margin-bottom: 30px;
    color: #333;
}

.kontak-item {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-bottom: 30px;
}

.kontak-icon {
    width: 72px;
    height: 72px;

    background: #2da8b3;
    color: white;

    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 28px;
}

.kontak-item h4 {
    font-size: 28px;
    margin-bottom: 6px;
    color: #333;
}

.kontak-item p {
    font-size: 22px;
    color: #666;
}

/* RESPONSIVE */
@media (max-width: 900px) {

    .kontak-wrapper {
        grid-template-columns: 1fr;
    }

}

/* =========================
   PROFIL SEKOLAH
========================= */

.profil-section {
    background: #f4f4f4;
    padding: 50px 20px;
}

.profil-wrapper {
    max-width: 1250px;
    margin: auto;

    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 25px;
}

.profil-card,
.kepsek-card {
    background: white;
    border-radius: 14px;
    padding: 25px;

    box-shadow: 0 5px 15px rgba(0,0,0,.06);
}

.profil-page {
    background: #f5f7fb;
    min-height: 100vh;
    padding: 25px 30px 60px;
}

.breadcrumb {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 50px;
}

.page-title {
    text-align: center;
    font-size: 34px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 35px;
}

.container {
    max-width: 1150px;
    margin: auto;
}

.card {
    background: #fff;
    border-radius: 14px;
    padding: 35px 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

.card h2 {
    color: #1d4ed8;
    font-size: 24px;
    margin-bottom: 22px;
    font-weight: 700;
}

.card p {
    text-align: justify;
    text-indent: 40px;
}

.misi-list li {
    text-align: justify;
    text-indent: 0;
}

.sejarah-card {
    margin-bottom: 70px;
}

.visi-card{
    margin-bottom: 30px;
}

.visi-text{
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.8;
    text-indent: 0;
}

.misi-card{
    margin-bottom: 20px;
}

.small-card {
    min-height: 100%;
}

.visi-text {
    font-size: 18px;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.8;
}

.misi-list {
    padding-left: 20px;
}

.misi-list li {
    margin-bottom: 14px;
}

@media (max-width: 768px) {

    .profil-page {
        padding: 20px 15px 40px;
    }

    .page-title {
        font-size: 28px;
    }

    .card {
        padding: 25px 22px;
    }

    .visi-misi-wrapper {
        grid-template-columns: 1fr;
    }

}

/* =========================
   PRESTASI PAGE
========================= */

.prestasi-page {
    min-height: 100vh;
    padding: 40px 20px 80px;
    text-align: center;
    background-image: url('../images/bg-pattern.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: repeat;
}

.prestasi-page h2 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 10px;
    color: #222;
}

.prestasi-page p {
    font-size: 14px;
    color: #555;
    margin-bottom: 35px;
}

.prestasi-grid {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
}

.prestasi-card {
    background: white;
    padding: 12px;
    border-radius: 10px;
    box-shadow: 0 0 14px rgba(0, 174, 255, 0.35);
    transition: 0.3s ease;
}

.prestasi-card:hover {
    transform: translateY(-6px);
}

.prestasi-card img {
    width: 280px;
    height: 350px;
    object-fit: cover;
    margin: 0 auto;
    display: block;
    border-radius: 8px;
}

.prestasi-card h3 {
    margin-top: 12px;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.4;
    color: #222;
}

@media (max-width: 900px) {
    .prestasi-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .prestasi-grid {
        grid-template-columns: 1fr;
    }

    .prestasi-card img {
        height: auto;
    }
}

.ekskul-section{
    padding: 60px 20px;
    background: #dfe7e9;
}

.ekskul-title{
    text-align: center;
    margin-bottom: 40px;
}

.ekskul-title h1{
    font-size: 38px;
    font-weight: 700;
    color: #222;
    margin-bottom: 10px;
}

.ekskul-title p{
    color: #666;
    font-size: 15px;
}

.ekskul-wrapper{
    max-width: 1200px;
    margin: auto;

    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
}

.ekskul-card{
    background: #fff;
    border-radius: 10px;
    padding: 15px;

    text-align: center;

    box-shadow: 0 4px 10px rgba(0,0,0,0.1);

    transition: 0.3s;
}

.ekskul-card:hover{
    transform: translateY(-5px);
}

.ekskul-card img{
    width: 100%;
    height: 220px;
    object-fit: cover;

    border-radius: 8px;

    margin-bottom: 15px;
}

.ekskul-card h3{
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 5px;
    color: #111;
}

.ekskul-card span{
    display: block;
    color: #888;
    font-size: 14px;
    margin-bottom: 5px;
}

.ekskul-card p{
    font-size: 14px;
    color: #333;
    margin: 0;
}

body{
    background:#f5f7fb;
}

/* HERO */
.hero-section{
    min-height: 500px;
    padding: 120px 0 80px;

    background: linear-gradient(rgba(0,0,0,.55), rgba(0,0,0,.55)),
                url('../images/foto-bersama.jpeg');

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    display: flex;
    align-items: center;
}

.hero-title{
    text-align: center;
    width: 100%;
}

.hero-title h2{
    color: white;
    font-size: 55px;
    font-weight: bold;
    margin-bottom: 15px;
}

.hero-title p{
    color: white;
    font-size: 20px;
    max-width: 850px;
    margin: auto;
}
/* STATISTIK */
.stats-grid{
    display:flex;
    justify-content:center;
    gap:25px;
    flex-wrap:wrap;
     margin-top:40px; /* JARAK DARI TULISAN */
}


.stat-box{
    width:300px;
    background:white;
    border-radius:16px;
    padding:35px;
    text-align:center;
    box-shadow:0 4px 15px rgba(0,0,0,.06);
}

.stat-box h1{
    color:#214ed3;
    font-size:52px;
    font-weight:700;
}

.stat-box h4{
    font-weight:700;
    margin-top:10px;
}

.stat-box p{
    color:#777;
    margin-top:8px;
}


/* PIMPINAN */
.pimpinan-section{
    background:white;
    padding:80px 0;
}

.section-title{
    text-align:center;
    margin-bottom:45px;
    font-size:34px;
    font-weight:700;
}

.pimpinan-grid{
    display:flex;
    justify-content:center;
    gap:25px;
    flex-wrap:wrap;
}

.pimpinan-card{
    width:250px;
    background:white;
    border-radius:16px;
    padding:30px 20px;
    text-align:center;
    box-shadow:0 4px 15px rgba(0,0,0,.06);
    transition:.3s;
}

.avatar-circle{
    width:90px;
    height:90px;
    border-radius:50%;
    background:#214ed3;
    display:flex;
    align-items:center;
    justify-content:center;
    margin:auto;
    font-size:42px;
    color:white;
}

.pimpinan-card h5{
    margin-top:20px;
    font-size:20px;
    font-weight:700;
}

.badge-jabatan{
    display:inline-block;
    background:#16c47f;
    color:white;
    padding:7px 15px;
    border-radius:30px;
    font-size:13px;
    margin-top:10px;
}

.pimpinan-card p{
    margin-top:10px;
    color:#777;
}

/* TABLE */
.guru-table-section{
    padding:80px 0;
}

.filter-buttons{
    text-align:center;
    margin-bottom:25px;
}

.filter-buttons button{
    border:1px solid #214ed3;
    background:white;
    color:#214ed3;
    padding:10px 20px;
    border-radius:8px;
    margin:5px;
    transition:.3s;
}

.filter-buttons button:hover{
    background:#214ed3;
    color:white;
}

.table-container {
    overflow-x: auto;
}

.guru-table{
    width:100%;
    border-collapse:collapse;
}

.guru-table thead{
    background:#214ed3;
    color:white;
}

.guru-table th{
    padding:18px;
    text-align:left;
}

.guru-table td{
    padding:16px;
    border-bottom:1px solid #eee;
}

.status-badge{
    background:#214ed3;
    color:white;
    padding:7px 14px;
    border-radius:20px;
    font-size:12px;
}

/* RESPONSIVE */
@media(max-width:992px){

    .stats-grid{
        grid-template-columns:1fr;
    }

    .pimpinan-grid{
        grid-template-columns:1fr 1fr;
    }

}

@media(max-width:768px){

    .pimpinan-grid{
        grid-template-columns:1fr;
    }

}

.guru-table-section {
    padding: 60px 0;
}

.guru-table-section .section-title {
    text-align: center;
    margin-bottom: 25px;
    font-size: 26px;
    font-weight: 700;
}

.table-container {
    overflow-x: auto;
}

.guru-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.guru-table th {
    background: #1f4ed8;
    color: #fff;
    padding: 12px 14px;
    text-align: left;
    font-weight: 700;
    white-space: nowrap;
}

.guru-table td {
    padding: 12px 14px;
    border-bottom: 1px solid #e5e7eb;
    vertical-align: middle;
    line-height: 1.5;
}

.guru-table th:first-child,
.guru-table td:first-child {
    width: 60px;
    text-align: center;
}

.guru-table th:last-child,
.guru-table td:last-child {
    text-align: center;
}

.status-badge {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 12px;
    background: #1f4ed8;
    color: #fff;
    font-size: 12px;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .table-container {
        max-width: 100%;
    }

    .guru-table {
        font-size: 12px;
    }

    .guru-table th,
    .guru-table td {
        padding: 10px;
    }
}

/* KHUSUS TENAGA KEPENDIDIKAN */
.kependidikan-box {
    width: 100%;
    background: #ffffff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    margin-top: 70px;
    border-top: 6px solid #1f4ed8;
}

.kependidikan-box .table-container {
    max-width: 100%;
    margin: 0;
}

/* ==========================
   FASILITAS SEKOLAH
========================== */

.fasilitas-section{
    padding: 80px 10%;
}

.fasilitas-title{
    text-align: center;
    margin-bottom: 40px;
}

.fasilitas-title h1{
    font-size: 40px;
    color: #0d6efd;
    margin-bottom: 15px;
}

.fasilitas-title p{
    color: #666;
    max-width: 700px;
    margin: auto;
    line-height: 1.8;
}

.fasilitas-wrapper{
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(280px,1fr));
    gap: 25px;
}

.fasilitas-img{
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 15px;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.fasilitas-img:hover{
    transform: scale(1.05);
}

/* ============================================
   GALERI KEGIATAN - SMP Negeri 2 Batealit
   ============================================ */

/* Section wrapper */
.galeri-section {
    padding: 50px 20px;
}

/* Judul */
.galeri-title {
    text-align: center;
    margin-bottom: 30px;
}

.galeri-title h1 {
    font-size: 36px;
    font-weight: 600;
    color: #1e2a4a;
    margin-bottom: 8px;
}

.galeri-title p {
    font-size: 16px;
    color: #6b7280;
}

/* ============================================
   GRID UTAMA
   4 kolom — ubah angka 4 di repeat() untuk
   mengubah jumlah kolom
   ============================================ */
.galeri-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 5px;
    max-width: 960px;
    margin: 0 auto;
}

/* ============================================
   ITEM GALERI
   Tambah foto = tambah .galeri-item di blade
   ============================================ */
.galeri-item {
    position: relative;
    height: 160px;          /* tinggi kotak normal */
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid rgba(107, 124, 255, 0.3);
    background: #e5e7eb;    /* warna fallback jika gambar gagal load */
}

/* Item lebar — span 2 kolom, tinggi lebih besar */
.galeri-item.wide {
    grid-column: span 2;
    height: 160px;
}

/* Gambar */
.galeri-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.galeri-item:hover img {
    transform: scale(1.07);
}

/* ============================================
   OVERLAY NAMA KEGIATAN
   Muncul saat hover (desktop) atau klik (HP)
   ============================================ */
.overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.58);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    border-radius: 6px;
}

/* Tampil saat hover */
.galeri-item:hover .overlay {
    opacity: 1;
}

/* Tampil saat diklik (aktif — untuk HP) */
.galeri-item.active .overlay {
    opacity: 1;
}

.overlay span {
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    padding: 10px 14px;
    line-height: 1.5;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* Tablet: 3 kolom */
@media (max-width: 768px) {
    .galeri-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .galeri-item {
        height: 110px;
    }
    .galeri-item.wide {
        height: 130px;
    }
}

/* HP: 2 kolom, semua item sama lebar */
@media (max-width: 480px) {
    .galeri-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 4px;
    }
    .galeri-item,
    .galeri-item.wide {
        grid-column: span 1;
        height: 100px;
    }
    .galeri-title h1 {
        font-size: 24px;
    }
}

/* ================= VIDEO ================= */

.video-section{
    max-width:1200px;
    margin:70px auto;
    padding:0 20px;
}

.video-section .section-title{
    text-align:center;
    margin-bottom:35px;
}

.video-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:25px;
    align-items:start;
}

.video-box{
    width:100%;
}

.video-box video{
    width:100%;
    height:220px;
    object-fit:cover;
    border-radius:10px;
    display:block;
    cursor:pointer;
}

.video-box h3{
    margin-top:10px;
    font-size:16px;
    line-height:1.5;
    text-align:left;
    font-weight:600;
}

/* Tablet */
@media(max-width:992px){

    .video-grid{
        grid-template-columns:repeat(2,1fr);
    }

}

/* HP */
@media(max-width:576px){

    .video-grid{
        grid-template-columns:1fr;
    }

}