/* ==========================
   GLOBAL
========================== */
body {
    font-family: 'Poppins', sans-serif;
    background: #e8e0ff;
    margin: 0;
}

/* NAVBAR */
.navbar-custom {
    background: #3B1C6D !important;
    padding: 14px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.18);
}


/* ======================================
   MOBILE (max-width: 991px)
====================================== */
@media (max-width: 991px) {

    .navbar-custom .nav-link {
        display: block;
        width: 100%;
        margin: 6px 0;
        text-align: left;
        padding: 12px 16px !important;

        background: rgba(255, 220, 255, 0.22); 
        border-radius: 10px;

        transform: none !important;
        box-shadow: none !important;
        transition: 0.25s ease;
        color: white !important;
    }

    .navbar-custom .nav-link:hover {
        background: rgba(255, 160, 255, 0.32);
        color: #ffffff !important;  /* FIX agar tidak hilang */
    }

    .navbar-nav {
        padding: 8px 4px;
        gap: 4px;
    }

    .navbar-brand {
        font-size: 1.15rem;
    }
}
.navbar-custom .navbar-brand {
    color: #fdfaff !important;
    font-weight: 700;
    letter-spacing: 0.5px;
}
.navbar-custom .tagline {
    font-size: 0.72rem;
    font-weight: 300;
    color: #e8d9ff; /* ungu pastel cocok dengan navbar */
    letter-spacing: 0.3px;
    text-shadow: 0 0 4px rgba(255,255,255,0.25);
}


/* ======================================
   DESKTOP (min-width: 992px)
====================================== */
@media (min-width: 992px) {

    .navbar-custom .nav-link {
        padding: 10px 16px !important;
        margin: 0 6px;
        border-radius: 10px;
        transition: 0.25s ease;

        background: rgba(255, 255, 255, 0.10); 
        color: #f4ebff !important; /* biar kelihatan */
    }

    .navbar-custom .nav-link:hover {
        background: rgba(255, 255, 255, 0.22) !important;
        color: #fff !important;
        transform: translateY(-2px);
        box-shadow: 0 4px 10px rgba(255, 255, 255, 0.18);
    }
}


/* ==========================
   HERO SECTION
========================== */
.hero {
    position: relative;
    min-height: 75vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;

    background: url('foto-sekolah.jpg') center/cover no-repeat;
    color: white;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-weight: 700;
    text-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.hero-content p {
    font-weight: 300;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

/* CARD BERITA */
.card-berita {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

/* FOOTER */
footer {
    position: relative;
    z-index: 10;
    clear: both;
    width: 100%;
    background-color: #3B1C6D;
    color: white;
}
.footer a:hover {
    color: #e5cfff !important;
}

.footer h5 {
    letter-spacing: 0.5px;
}

.footer iframe {
    box-shadow: 0 3px 18px rgba(0,0,0,0.25);
}
/* ==========================
   Visi & Misi Section
========================== */
.visi-misi {
    position: relative;
    min-height: 80vh;
    background: url('foto-sekolah.jpg') center/cover no-repeat;
    color: white;
    display: flex;
    justify-content: center; /* Horizontal centering */
    align-items: center;     /* Vertical centering */
    text-align: center;
    padding: 40px 20px;
}

/* Layer gelap transparan di belakang untuk teks lebih jelas */
.visi-misi::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

.visi-misi-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    background: rgba(0, 0, 0, 0.6); /* Background semi transparan untuk card */
    padding: 40px;
    border-radius: 12px;
}

/* Header dan paragraf */
.visi-misi h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
}

.visi-misi p {
    font-size: 1.2rem;
    line-height: 1.8;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* Animasi pada teks */
.visi-misi-content[data-aos="fade-up"] {
    opacity: 0;
    animation: fadeIn 1s forwards;
}

/* Fade-in Animation */
@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}
/* ==========================
   Profil Sekolah Section (Grid Layout)
========================== */
.profil-sekolah {
    background: #f4f2fa;
    padding: 60px 0;
    text-align: center;
}

.profil-sekolah-header {
    margin-bottom: 40px;
}

.profil-sekolah h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.profil-sekolah p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #555;
}

/* Card Styling for Profile Sections */
.profil-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.profil-card h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.profil-card p {
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
}

.profil-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* AOS Animation */
.profil-card[data-aos="fade-up"],
.profil-card[data-aos="fade-right"],
.profil-card[data-aos="fade-left"] {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s forwards;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Grid */
@media (max-width: 768px) {
    .profil-card {
        padding: 20px;
    }

    .profil-sekolah h1 {
        font-size: 2rem;
    }

    .profil-sekolah p {
        font-size: 1rem;
    }
}


/* ==========================
   Galeri Section Styling
========================== */
.galeri {
    background-color: #f4f2fa;
    padding: 60px 0;
    text-align: center;
}

.galeri-header {
    margin-bottom: 40px;
}

.galeri-header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.galeri-header p {
    font-size: 1.2rem;
    color: #555;
}

.kegiatan h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Card Styling for Galeri Sections */
.galeri-card {
    position: relative;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.galeri-card img {
    width: 100%;
    height: 250px;  /* Fix the height for consistent display */
    object-fit: cover;  /* Ensures the image covers the area without stretching */
    transition: transform 0.3s ease;
    border-radius: 12px;
}

.galeri-card:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.galeri-card:hover img {
    transform: scale(1.1);  /* Zoom effect on image */
}

/* AOS Animation */
.galeri-card[data-aos="zoom-in"] {
    opacity: 0;
    transform: scale(0.8);
    animation: zoomIn 1s forwards;
}

@keyframes zoomIn {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .galeri-header h1 {
        font-size: 2rem;
    }

    .galeri-header p {
        font-size: 1rem;
    }

    .kegiatan h3 {
        font-size: 1.5rem;
    }

    .galeri-card {
        margin-bottom: 20px;
    }

    .galeri-card img {
        height: 200px;  /* Adjust image height for smaller screens */
    }
}

/* ==========================
   Kata Sambutan Section
========================== */
.kata-sambutan {
    background-color: #f4f2fa;
    padding: 60px 0;
}

.kata-sambutan h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: left;
}

.kata-sambutan p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #555;
}

.kepsek-foto img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.sambutan-text {
    margin-left: 30px;  /* Memberikan jarak antara foto dan teks */
}

@media (max-width: 768px) {
    .kata-sambutan h2 {
        font-size: 2rem;
        text-align: center;
    }

    .row {
        text-align: center; /* Agar foto dan teks rata tengah pada layar kecil */
    }

    .sambutan-text {
        margin-left: 0;
        margin-top: 20px;
    }

    .kepsek-foto img {
        width: 80%;  /* Mengurangi ukuran foto pada layar kecil */
        margin-bottom: 20px;
    }
}

/* ==========================
   Developer Section
========================== */
.developer {
    background-color: #f4f2fa;
    padding: 60px 0;
    text-align: center;
}

.developer-header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.developer-header p {
    font-size: 1.2rem;
    color: #555;
}

.developer-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.developer-card img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid #3B1C6D;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.developer-card .developer-info {
    margin-top: 20px;
}

.developer-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.developer-card .position {
    font-size: 1rem;
    color: #777;
}

.developer-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* AOS Animation */
.developer-card[data-aos="zoom-in"] {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s forwards;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .developer-card {
        padding: 15px;
    }

    .developer-header h1 {
        font-size: 2rem;
    }

    .developer-header p {
        font-size: 1rem;
    }
}

/* ==========================
   Berita Section
========================== */
.berita {
    background-color: #f4f2fa;
    padding: 60px 0;
    text-align: center;
}

.berita-header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.berita-header p {
    font-size: 1.2rem;
    color: #555;
}

.berita-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.berita-card img {
    width: 100%;
    height: 250px; /* Menetapkan tinggi tetap untuk gambar */
    object-fit: cover; /* Menjaga gambar sesuai dengan ukuran kontainer */
    border-radius: 12px 12px 0 0; /* Sudut atas bulat */
}

.berita-card .card-body {
    padding: 20px;
}

.berita-card .card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.berita-card .card-text {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.8;
}

.berita-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* AOS Animation */
.berita-card[data-aos="zoom-in"] {
    opacity: 0;
    transform: scale(0.8);
    animation: zoomIn 1s forwards;
}

@keyframes zoomIn {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .berita-header h1 {
        font-size: 2rem;
    }

    .berita-header p {
        font-size: 1rem;
    }

    .berita-card {
        margin-bottom: 20px;
    }

    .berita-card img {
        height: 200px;  /* Adjust image height for smaller screens */
    }
}

/* ==========================
   Kontak Section
========================== */
.kontak {
    background-color: #f4f2fa;
    padding: 60px 0;
    text-align: center;
}

.kontak-header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.kontak-header p {
    font-size: 1.2rem;
    color: #555;
}

.form-label {
    font-weight: 600;
    color: #3B1C6D;
}

form .form-control {
    border-radius: 12px;
    padding: 12px;
    font-size: 1rem;
    margin-bottom: 15px;
}

form button {
    padding: 10px 20px;
    font-size: 1rem;
    border-radius: 8px;
    background-color: #3B1C6D;
    color: white;
    border: none;
    cursor: pointer;
}

form button:hover {
    background-color: #5b3e91;
}

.alert {
    margin-top: 20px;
    padding: 10px;
    font-size: 1rem;
    border-radius: 8px;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
}

.developer-img {
    width: 100px; /* Ukuran foto kecil */
    height: 100px; /* Ukuran foto kecil */
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid #3B1C6D;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.developer-img:hover {
    transform: scale(1.1); /* Efek zoom saat hover */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .kontak-header h1 {
        font-size: 2rem;
    }
    
    .form-control, button {
        font-size: 1rem;
    }
    
    .developer-img {
        width: 80px; /* Mengurangi ukuran foto pada perangkat kecil */
        height: 80px;
    }
}
