* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
}

/* CONTAINER */
.container {
    width: 90%;
    margin: auto;
}

/* NAVBAR */
/* HEADER PAGE */
.page-header {
    height: 300px;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)),
                url('../images/1.jpg') center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

/* NEWS PAGE */
.news-page {
    padding: 80px 20px;
}

/* GRID */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px,1fr));
    gap: 30px;
}

/* CARD */
.news-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    transition: 0.3s;
      object-fit: cover;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.news-card:hover {
    transform: translateY(-8px);
}

.news-card img {
    width: 100%;
    object-fit: cover;
}

/* CONTENT */
.news-content {
    padding: 20px;
}

.news-content h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.news-content p {
    font-size: 14px;
    color: #555;
}

.news-content small {
    color: #999;
}

/* SEARCH */
.search-box {
    max-width: 500px;
    margin: 30px auto;
    display: flex;
}

.search-box input {
    flex: 1;
    padding: 12px;
    border-radius: 30px 0 0 30px;
    border: 1px solid #ddd;
}

.search-box button {
    padding: 12px 20px;
    border: none;
    background: #f4c542;
    border-radius: 0 30px 30px 0;
}

/* PAGINATION */
.pagination {
    margin-top: 40px;
    text-align: center;
}

.pagination a {
    padding: 10px 15px;
    margin: 5px;
    background: #eee;
    border-radius: 5px;
    text-decoration: none;
}

.pagination .active {
    background: #0d3b66;
    color: white;
}
header {
    position: fixed;
    width: 100%;
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: 0.3s;
}

header.scrolled {
    background: rgba(12, 47, 83, 0.5); /* 0.6 = 60% opacity */
}

.nav {
    display: flex;
    align-items: center;

    display: flex;
    justify-content: space-between;
}

.nav a {
    margin-left: 20px;
    color: rgb(255, 252, 252) important;
    text-decoration: none;
}

/* HILANGKAN STYLE LINK DEFAULT */
a {
    text-decoration: none;
    color: inherit;
}

/* SAAT LINK SUDAH DIKLIK */
a:visited {
    color: inherit;
}

/* SAAT HOVER */
a:hover {
    text-decoration: none;
    color: inherit;
}

/* SAAT AKTIF DIKLIK */
a:active {
    color: inherit;
}

/* HERO */
.hero {
    height: 100vh;
    position: relative;
}

.overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    text-align: center;
}

.btn {
     display: inline-block; /* wajib supaya margin bekerja */
 margin-top: 15px;
    background: #2161a0;
    padding: 10px 15px;
    color: rgb(255, 255, 255);
    text-decoration: none;
    border-radius: 10px;
}

/* PREMIUM SECTION */
.section-premium {
    background: linear-gradient(135deg, #0b2a4a, #0d3b66);
    padding: 100px 0;
    text-align: center;
    color: white;
}

.title {
    font-size: 36px;
}

.desc {
    max-width: 700px;
    margin: auto;
    margin-bottom: 50px;
}

.card-grid {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.card-premium {
    width: 260px;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    transition: 0.3s;
}

.card-premium:hover {
    transform: translateY(-10px);
}

.card-premium img {
    width: 100%;
    object-fit: cover;
    background: #f5f5f5;
}

.badge {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    background: #f4c542;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: bold;
}

.card-body {
    padding: 40px 15px 20px;
    color: #333;
}

/* GALERI */
.gallery {
    padding: 80px 0;
    text-align: center;
}

.swiper {
    width: 70%;
    max-width: 900px;
    margin: auto;
}

.swiper img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 10px;
}
/* SECTION BERITA */
.news {
    padding: 100px 0;
    background: #f9f9f9;
    text-align: center;
}

/* GRID */
.news-grid {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 40px;
}

/* CARD */
.news-card {
    width: 320px; /* lebih besar dari sebelumnya */
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    transition: 0.3s;
}

.news-card:hover {
    transform: translateY(-10px);
}

/* CONTENT */
.news-content {
    padding: 20px;
    text-align: left;
}

.news-content h3 {
    margin-bottom: 10px;
    font-size: 18px;
}

.news-content p {
    font-size: 14px;
    color: #555;
}
.news-content small {
    color: #999;
    font-size: 12px;
}

/* CTA */
.cta {
    background: #0C2F53;
    padding: 50px;
    text-align: center;
    
}

.cta a{
   color: #ffffff;
    
}
.cta  h2, p{
   color   : black !important;
}



/* FOOTER */
footer {
    background: #222;
    color: white;
    text-align: center;
    padding: 10px;
}

/* RESPONSIVE */
@media(max-width:768px){
    .card-grid, .news-grid {
        flex-direction: column;
        align-items: center;
    }
}
/* BEDAKAN SEDIKIT BERITA */
.news .badge {
    background: #ffd95c; /* sedikit beda kuning */
}

.news .card-body {
    text-align: center;
}
.card-body h3 {
    margin-bottom: 10px;
}

/* HERO SLIDER */
.hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

/* SETIAP SLIDE */
.hero-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

/* SLIDE AKTIF */
.hero-slide.active {
    opacity: 1;
}

/* OVERLAY */
.overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
}

/* TEXT */
.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    text-align: center;
}

/* CONTAINER LOGO */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* LOGO IMAGE */
.logo img {
    height: 70px; /* BESARIN DI SINI */
    width: auto; /* biar tidak gepeng */
    object-fit: contain;
}

/* TEXT */
.logo span {
    font-weight: bold;
    font-size: 18px;
    color: rgb(255, 255, 255);
}
@media (max-width: 768px) {
    .logo img {
        height: 35px; /* lebih kecil di HP */
    }

    .logo span {
        font-size: 16px;
    }
}
/* MENU MOBILE */


/* LINK MENU */
#menu a {
    color: white !important;
    text-decoration: none;
}

/* HOVER */
#menu a:hover {
    color: #f4c542 !important;
}

/* HAMBURGER DEFAULT (desktop) */
.menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

/* FORCE MOBILE MENU */
@media (max-width: 768px) {

    #menu {
        display: none !important;
        position: absolute;
        top: 70px;
        right: 0;
        width: 100%;
        background: #0C2F53;
        flex-direction: column;
        padding: 10px 0;
        z-index: 9999;
    }

    #menu.active {
        display: flex !important;
    }
@media (max-width: 768px) {

    .dropdown-menu {
        position: static;
        display: none;
        background: #144a80;
    }

}
}
/* MOBILE MODE */
@media (max-width: 768px) {

    #menu {
        display: none;
        flex-direction: column;
        top: 60px;
        right: 0;
        width: 100%;
        padding: 10px 0;
        border-top: 1px solid #ddd;
    }

    /* INI YANG PENTING */
    #menu.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

    /* Dropdown jadi normal (tidak absolute) */
    .dropdown-menu {
      
        box-shadow: none;
    }

    .dropdown-menu a {
        padding-left: 20px;
    }
}



/* MOBILE */

@media (max-width: 768px) {
    .overlay {
        background: rgba(0,0,0,0.7); /* lebih gelap biar teks jelas */
    }

    /* NAVBAR */
     .nav {
        padding: 10px 15px;
    }

    .logo span {
        font-size: 14px;
    }

    .logo img {
        height: 30px;
    }
    .nav {
        position: relative;
    }

    nav {
        position: absolute;
        top: 70px;
        right: 0;
        background: #0C2F53;
        width: 200px;
        display: none;
        flex-direction: column;
        padding: 20px;
        border-radius: 10px;
    }

    nav a {
        margin: 10px 0;
        color: rgb(255, 255, 255);
    }

    nav.active {
        display: flex;
    }

    


  .hero {
        height: 85vh;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0 15px;
    }

    .hero-slide {
        background-position: center center;
    }

    .hero-content {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        width: 100%;
        text-align: center;
        padding: 0 10px;
    }

    .hero-content h1 {
        font-size: 20px;
        line-height: 1.4;
    }

    .hero-content p {
        font-size: 13px;
    }

    .btn {
        font-size: 13px;
        padding: 10px 18px;
    }
    
    /* CARD PROGRAM */
    .card-grid {
        flex-direction: column;
        align-items: center;
    }

    .card-premium {
        width: 90%;
    }

    /* BERITA */
    .news-grid {
        flex-direction: column;
        align-items: center;
    }

    .news-card {
        width: 90%;
    }

    /* GALERI */
    .swiper {
        width: 95%;
    }
}
/* DETAIL PAGE */
.detail-page {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    padding: 100px 20px;
}

/* LEFT */
.detail-content h1 {
    font-size: 36px;
    margin-bottom: 10px;
}

.meta {
    color: #888;
    margin-bottom: 20px;
}

.detail-content img {
    width: 100%;
    border-radius: 10px;
    margin: 20px 0;
}

.text {
    line-height: 1.8;
    color: #444;
}

/* SIDEBAR */
.sidebar h3 {
    margin-bottom: 20px;
}

.side-card {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    text-decoration: none;
    color: black;
}

.side-card img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

.side-card p {
    font-size: 14px;
    margin-bottom: 5px;
}

.side-card small {
    color: #888;
}

/* FOOTER */
.footer {
    background: #0d3b66;
    color: white;
    padding-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px,1fr));
    gap: 40px;
}

.footer h3,
.footer h4 {
    margin-bottom: 15px;
}

.footer p {
    color: #ddd !important;
    line-height: 1.6;
}

/* MENU */
.footer ul {
    list-style: none;
    padding: 0;
}

.footer ul li {
    margin-bottom: 10px;
}

.footer ul li a {
    color: #ddd;
    text-decoration: none;
}

.footer ul li a:hover {
    color: #f4c542;
}

/* BOTTOM */
.footer-bottom {
    text-align: center;
color: white !important;
    margin-top: 1px;
   
}

/* ===== HEADER ===== */
.page-header {
    height: 300px;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)),
                url('../images/2.jpg') center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.teacher-card h3 {
    font-size: 18px; /* default */
    line-height: 1.2;
    text-align: center;
    word-break: break-word;
    overflow: hidden;
    min-height: 42px;
}

/* Optional: batasi jadi 2 baris */
.teacher-card h3 {
    display: -webkit-box;
   
    -webkit-box-orient: vertical;
}

/* ===== ABOUT ===== */
.about-section {
    padding: 100px 20px;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text h2 {
    margin-bottom: 15px;
}

.about-text p {
    line-height: 1.8;
    color: #555;
}

.about-img img {
    width: 100%;
    border-radius: 15px;
}

/* ===== GURU & STAFF STYLE (COMPACT CARD) ===== */
/* ===============================
   TEACHER CARD FIX TEXT OVERFLOW
================================= */

.teacher-card {
    padding: 15px;
    text-align: center;
}

.teacher-card h3 {
    font-size: 16px !important;
    line-height: 1.2;
    text-align: center;
    min-height: 42px;
    word-break: break-word;
}

.teacher-card h3 {
    font-size: 18px;
    line-height: 1.2;
    margin: 10px 0 5px;
    text-align: center;

    word-break: break-word;
    min-height: 42px; /* biar tinggi konsisten */
}

.teacher-card p {
    font-size: 14px;
    color: #555;
}
/* ===== MODAL ===== */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    padding-top: 80px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
}

/* CONTENT */
.modal-content {
    background: white;
    margin: auto;
    padding: 20px;
    width: 90%;
    max-width: 400px;
    border-radius: 20px;
    text-align: center;
    animation: zoomIn 0.3s ease;
}

.modal-content img {
    width: 100%;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    object-fit: cover;
    border-radius: 15px;
}
.modal-content p{
    color: #000;
}

/* CLOSE */
.close {
    float: right;
    font-size: 25px;
    cursor: pointer;
}

/* ANIMATION */
@keyframes zoomIn {
    from {
        transform: scale(0.7);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}
.teacher-section {
    padding: 80px 20px;
    background: #425c7d;
}

.teacher-section h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 26px;
}

/* GRID */
.teacher-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 300px));
    gap: 25px;
    justify-content: center;
}

/* CARD */
.teacher-card {
    background: #b9c7e1;
    border-radius: 39px;
    overflow: hidden;
    transition: 0.3s;
   box-shadow: #000000;
}

/* IMAGE */
.teacher-card img {
    width: 100%;
    height: 180px; /* 🔥 ini kunci biar tidak terlalu besar */
    object-fit: cover;
}
.teacher-card {
    box-shadow: 25px 25px 25px rgba(0,0,0,0.08);
}

/* CONTENT */
.teacher-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 15px;
     text-align: center;
}

.teacher-card p {
    margin: 0 15px 20px;
    color: #000000;
    font-size: 14px;
    text-align: center;
}

/* HOVER */
.teacher-card:hover {
    transform: translateY(-5px);
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .teacher-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px){
    .about-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================
   MODAL IMPROVEMENT
========================= */
.modal {
    display: none;
    position: fixed;
    z-index: 999;
    padding-top: 80px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
}

.modal-content {
    background: #fff;
    margin: auto;
    padding: 20px;
    width: 350px;
    border-radius: 20px;
    text-align: center;
    animation: fadeIn 0.3s ease;
}


/* FIX NAMA MODAL */
.modal-content h2 {
    font-size: clamp(16px, 2vw, 22px);
    line-height: 1.3;
    margin-top: 10px;

    display: -webkit-box;
    
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.modal-content p {
    font-size: 14px;
    color: #555;
}

.close {
    position: absolute;
    right: 20px;
    top: 10px;
    font-size: 22px;
    cursor: pointer;
}

/* =========================
   CARD HEIGHT FIX
========================= */
.teacher-card {
    height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* ANIMASI */
@keyframes fadeIn {
    from {opacity:0; transform: scale(0.9);}
    to {opacity:1; transform: scale(1);}
}

.teacher-card:hover {
    transform: translateY(-5px);
    transition: 0.3s;
}
.teacher-card {
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}


#modalNama {
   white-space: nowrap;
    font-size: 16px;
    word-break: break-word;
    text-align: center;
}

.modal-content h2 {
    font-size: clamp(15px, 4vw, 26px); /* lebih responsif */
    line-height: 1.4;
    margin-top: 10px;
}

/* tipis & clean */
::-webkit-scrollbar {
    width: 8px;
}

/* track transparan */
::-webkit-scrollbar-track {
    background: transparent;
}

/* thumb minimal */
::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.3);
    border-radius: 20px;
}

/* hover */
::-webkit-scrollbar-thumb:hover {
    background: #f4c542;
}

