/* === Global === */
body {
    scroll-behavior: smooth;
    font-family: "Poppins", sans-serif;
}

.section-padding {
    padding: 80px 0;
}
#ProfilSekolah .bg-light {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
#ProfilSekolah .bg-light:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.nav-link {
  position: relative;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: #ffc107; /* kuning */
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}
.hover-underline {
  position: relative;
}
.hover-underline::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0%;
  height: 2px;
  background-color: #ffc107;
  transition: width 0.3s ease;
}
.hover-underline:hover::after {
  width: 100%;
}

footer i.bi {
  transition: transform 0.3s ease, color 0.3s ease;
}
footer i.bi:hover {
  transform: scale(1.2);
  color: #ffc107;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}
.section-title h2 {
    font-weight: bold;
    color: #0d6efd;
}
/* === NAVBAR CUSTOM === */
.navbar {
    background: linear-gradient(135deg, #007bff, #00b4d8) !important; /* Gradasi biru lembut */
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.navbar .nav-link {
    color: #ffffff !important;
    font-weight: 500;
    transition: color 0.3s ease;
}

/* Saat hover, lebih kontras */
.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: #ffdd57 !important; /* kuning lembut */
    text-shadow: 0 0 5px rgba(255, 221, 87, 0.6);
}

/* Tombol login dan daftar */
.navbar .btn-outline-light {
    border-color: #fff;
    color: #fff;
}
.navbar .btn-outline-light:hover {
    background-color: #fff;
    color: #007bff;
}

.navbar .btn-warning {
    background: #ffdd57;
    border: none;
    transition: transform 0.2s ease;
}
.navbar .btn-warning:hover {
    transform: scale(1.05);
}


/* === Hero Section === */
.hero-section {
    height: 100vh;
    overflow: hidden;
    position: relative;
    color: white;
}
.hero-section img {
    object-fit: cover;
    filter: brightness(70%);
}
.hero-content {
    z-index: 2;
}
/* === ANIMASI HERO SAAT LOAD === */
.hero-content {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s ease-out;
}

.hero-content.show {
    opacity: 1;
    transform: translateY(0);
}

.btn-glass {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(6px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}
.btn-glass:hover {
    background: rgba(255, 255, 255, 0.6);
    color: #0d6efd;
    border-color: #fff;
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Carousel Navigation */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    filter: invert(1);
}

/* Responsif Hero */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }
    .hero-content p {
        font-size: 1rem;
    }
}
/* === PROFIL SEKOLAH (SLIDER) === */
#Profil {
    background-color: #f8f9fa;
}

/* Kartu profil fix ukuran */
.profil-card {
    border-radius: 12px;
    overflow: hidden;
    background: #ffffff;
    height: 380px; /* 🔹 Tinggi fix */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s ease;
}

/* Hover lembut seperti berita/ekskul */
.profil-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 25px rgba(0, 123, 255, 0.25);
}

/* Gambar atas dengan tinggi tetap */
.profil-card img {
    height: 160px; /* 🔹 Tinggi gambar fix */
    object-fit: cover;
    width: 100%;
}

/* Isi kartu */
.profil-card .card-body {
    padding: 1rem 1.25rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Judul seragam */
.profil-card h5 {
    min-height: 40px; /* 🔹 Biar posisi judul rata */
    margin-bottom: 0.5rem;
}

/* Batasi deskripsi agar rapi */
.profil-card .card-text {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* 🔹 Maksimal 3 baris */
    -webkit-box-orient: vertical;
}

/* Swiper Pagination */
#Profil .swiper-pagination-bullet {
    background: #007bff !important;
    opacity: 0.6;
}
#Profil .swiper-pagination-bullet-active {
    background: #ffc107 !important;
    opacity: 1;
}



/* === VISI & MISI === */
#visi-misi {
    background: linear-gradient(135deg, #007bff, #00b4d8);
    color: white;
}
#visi-misi img {
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    border: 4px solid rgba(255, 255, 255, 0.2);
}
#visi-misi img:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}
#visi-misi ul li {
    font-size: 1rem;
    color: #f8f9fa;
}
#visi-misi h4 {
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* === BERITA === */
#berita {
    background-color: #797979;
}
#berita .section-title h2 {
    color: #007bff;
}
.berita-card {
    border-radius: 12px;
    overflow: hidden;
    height: 380px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: #ffffff;
    transition: all 0.3s ease;
}
.berita-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}
.berita-card img {
    height: 180px;
    width: 100%;
    object-fit: cover;
}
.berita-card .card-body {
    padding: 1rem 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.berita-card h5 {
    min-height: 45px;
    margin-bottom: 0.5rem;
}
.berita-card .card-text {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}
.berita-card a {
    color: #007bff;
    text-decoration: none;
    font-weight: 600;
    transition: 0.2s;
}
.berita-card a:hover {
    color: #0056b3;
    text-decoration: underline;
}
#berita .btn-primary {
    background: linear-gradient(135deg, #007bff, #00b4d8);
    border: none;
    border-radius: 8px;
    transition: all 0.3s ease;
}
#berita .btn-primary:hover {
    background: linear-gradient(135deg, #0056b3, #008dc8);
    transform: scale(1.05);
}

/* === EKSTRAKURIKULER === */
/* === RATA TINGGI KOTAK EKSTRAKURIKULER === */
#Ekstrakurikuler .swiper-wrapper {
    display: flex;
    align-items: stretch;
}

#Ekstrakurikuler .swiper-slide {
    display: flex;
    align-items: stretch;
    height: auto !important;
}

#Ekstrakurikuler .card {
    display: flex;
    background: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#Ekstrakurikuler .card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

/* Gambar rapi & seragam */
#Ekstrakurikuler .card-img-top {
    height: 200px;
    object-fit: cover;
}

/* Isi body sejajar */
#Ekstrakurikuler .card-body {
    background: #fff;
    color: #000;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-top: 4px solid #007bff17;
}

/* Tinggi minimum agar teks sejajar */
#Ekstrakurikuler .card-body h5 {
    min-height: 40px;
}

#Ekstrakurikuler .card-body p {
    min-height: 50px;
    font-size: 0.9rem;
}
.btn-ekstra {
    background-color: #007bff;
    color: #fff !important;
    border: none;
    border-radius: 1; /* ⬅️ bikin tombol jadi persegi */
    font-weight: 600;
    padding: 10px 24px;
    transition: all 0.3s ease;
}

.btn-ekstra:hover {
    background-color: #0056d2;
    transform: translateY(-2px);
}

#ekskul {
    background: linear-gradient(135deg, #007bff, #00b4d8);
    color: white;
    position: relative;
    overflow: hidden;
}
#ekskul .section-title h2 {
    color: #fff;
}
#ekskul .section-title p {
    color: #e8f3ff;
}
.ekskul-card {
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: #ffffff;
    height: 380px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.ekskul-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}
.ekskul-card img {
    height: 180px;
    object-fit: cover;
    width: 100%;
}
.ekskul-card .card-body {
    padding: 1rem 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
}
.ekskul-card h5 {
    min-height: 45px;
    margin-bottom: 0.5rem;
}
.ekskul-card .card-text {
    color: #555 !important;
    font-size: 0.9rem;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

/* === Swiper Navigation === */
.swiper-pagination-bullet {
    background: #fff !important;
    opacity: 0.6;
}
.swiper-pagination-bullet-active {
    background: #ffc107 !important;
    opacity: 1;
}
.swiper-button-prev,
.swiper-button-next {
    color: #0d6efd;
    transition: all 0.3s ease;
}
.swiper-button-prev:hover,
.swiper-button-next:hover {
    color: #0056b3;
    transform: scale(1.1);
}
.swiper-button-prev::after,
.swiper-button-next::after {
    background: rgba(255, 255, 255, 0.75);
    color: #0d6efd;
    border-radius: 50%;
    padding: 10px;
    font-size: 18px;
}
/* === PROFIL SEKOLAH === */
#profil {
    background-color: #f8f9fa;
}

#profil .card {
    border-radius: 12px;
    overflow: hidden;
    height: 380px; /* 🔹 Tinggi fix semua kotak */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s ease;
    background: #ffffff;
}

#profil .card img {
    height: 160px;
    object-fit: cover;
    width: 100%;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

/* Efek hover seperti berita dan ekskul */
#profil .card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 25px rgba(0, 123, 255, 0.25);
}

#profil .card-body {
    padding: 1rem 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
}
/* prestasi */
/* === FIX RATA TINGGI KOTAK PRESTASI === */
#Prestasi .swiper-wrapper {
    display: flex;
    align-items: stretch;
}
.card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
a .card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}


#Prestasi .swiper-slide {
    display: flex;
    align-items: stretch;
    height: auto !important;
}

@media (max-width: 767.98px) {
    #Prestasi .card {
        border-radius: 12px;
        overflow: hidden;
    }

    #Prestasi img {
        height: auto !important;
        max-height: 300px;
        object-fit: cover;
    }

    #Prestasi .card-body {
        padding: 1.25rem;
    }
}

/* 🔹 Samakan tinggi card */
.berita-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* 🔹 Batasi tinggi isi agar seragam */
.berita-card .card-body {
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* 🔹 Judul agar rapi */
.berita-card h6 {
    min-height: 42px;
}

/* 🔹 Ukuran gambar seragam */
.berita-card img {
    height: 200px;
    object-fit: cover;
    width: 100%;
}



#Prestasi .card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    border-radius: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#Prestasi .card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

#Prestasi .card-img-top {
    height: 180px;
    object-fit: cover;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
}

#Prestasi .card-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding-bottom: 1rem;
}

#Prestasi .card-body h6 {
    min-height: 48px; /* agar judul dua baris tetap sejajar */
}

#Prestasi .card-body p {
    min-height: 45px; /* agar deskripsi sejajar */
}

/* Judul & teks seragam */
#profil .card-title {
    min-height: 45px;
    color: #007bff;
    font-weight: 700;
}

#profil .card-text {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* 🔹 Batasi jadi 3 baris */
    -webkit-box-orient: vertical;
}

/* === LAYANAN SEKOLAH === */
#layanan {
    background: #fff;
}

.text-gradient {
    background: linear-gradient(135deg, #007bff, #7b2ff7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.service-card {
    border: 2px dashed #7b2ff7;
    border-radius: 12px;
    transition: all 0.3s ease;
    background: #ffffff;
}

.service-card .icon-wrapper {
    font-size: 2rem;
    color: #7b2ff7;
}

.service-card:hover {
    transform: translateY(-6px);
    border: 2px solid #7b2ff7;
    box-shadow: 0 10px 25px rgba(123, 47, 247, 0.15);
}

.service-card h5 {
    margin-bottom: 0.5rem;
}

/* === ANIMASI SAAT SCROLL === */
.pre-animate {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease-out;
}

.animate-fade-up {
    opacity: 1;
    transform: translateY(0);
}
footer a:hover i {
    color: #ffe600;
    transition: color 0.3s ease;
}

/* admin */
