* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}


/* NAVBAR */
header {
    background-color: #164e9b;
    color: white;
    padding: 15px 40px;

    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 22px;
    font-weight: bold;
}


nav {
    display: flex;
    align-items: center;
    gap: 20px;
    width: 100%;
}

nav .login-btn {
    margin-left: auto;
    flex-shrink: 0;
}

nav a {
    color: white;
    text-decoration: none;
}

nav a:hover {
    text-decoration: underline;
}

.login-btn {
    background-color: white;
    color: #164E9B;
    padding: 8px 15px;
    border-radius: 5px;
}


/* BERANDA */
.hero {
    min-height: 500px;

    display: flex;
    justify-content: center;
    align-items: center;

    text-align: center;

    background-image: linear-gradient(
       rgba(96, 165, 250, 0.35)

    ),
    url("images/sekolah.jpeg");

    background-size: cover;
    background-position: center;

    color: white;
}


.hero-content {
    max-width: 700px;
    padding: 30px;
}

.hero h1 {
    font-size: 42px;
    margin-bottom: 20px;
}

.hero p {
    font-size: 18px;
    margin-bottom: 30px;
}

.btn {
    display: inline-block;
    background-color: white;
    color: #164e9b;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    transition: 0.3s;
}

.btn:hover {
    background-color: #164e9b;
    color: white;
}



/* SECTION */
section {
    padding: 70px 10%;
}

section h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #164e9b;
}

section p {
    max-width: 800px;
    margin: auto;
    text-align: center;
    line-height: 1.7;
}


/* KARTU PROGRAM KEAHLIAN */
.cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.card {
    background-color: #f0f6ff;
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    overflow-wrap: anywhere;
    border: 1px solid #dbeafe;
    transition: 0.3s;
}

.card:hover {
    background-color: #e0ecff;
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(22, 78, 155, 0.12);
}

.card h3 {
    color: #164e9b;
    margin-bottom: 10px;
}

@media (max-width: 650px) {
    .cards {
        grid-template-columns: 1fr;
    }
}



/* FOOTER */
footer {
    background-color: #0d3268;
    color: white;
    text-align: center;
    padding: 20px;
}



/* PROFIL */

.profil-content {
    display: flex;
    align-items: center;
    gap: 40px;
    max-width: 1000px;
    margin: auto;
}

.profil-content img {
    width: 45%;
    border-radius: 10px;
    border: 3px solid #dbeafe;
}

.profil-content p {
    flex: 1;
    text-align: left;
    line-height: 1.7;
}



/* GALERI UTAMA */

.galeri-utama {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: 30px auto 0;
}

.foto-utama {
    background-color: #f0f6ff;
    border: 1px solid #dbeafe;
    border-radius: 10px;
    overflow: hidden;
    transition: 0.3s;
}

.foto-utama:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(22, 78, 155, 0.15);
}

.foto-utama img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.foto-utama h3 {
    padding: 15px;
    color: #164e9b;
    text-align: center;
}

@media (max-width: 650px) {
    .galeri-utama {
        grid-template-columns: 1fr;
    }
}




/* MEMBUAT BAGIAN KONTAK BERADA DI TENGAH */
#kontak {
    text-align: center;
}

#kontak #kontakUtama {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 20px;
}

#kontak #kontakUtama p {
    text-align: center;
    margin: 10px 0;
    line-height: 1.7;
}

#kontak #kontakUtama a {
    color: #164e9b;
    text-decoration: none;
}

#kontak #kontakUtama a:hover {
    color: #2563eb;
    text-decoration: underline;
}



/* STRUKTUR ORGANISASI */
.struktur-container {
    max-width: 1100px;
    margin: 25px auto 0;
    text-align: center;
}

.struktur-container img {
    display: block;
    width: 100%;
    max-width: 1000px;
    height: auto;
    margin: 0 auto;
    border: 1px solid #dbeafe;
    border-radius: 10px;
    background-color: white;
}


/* INFORMASI SEKOLAH */
.berita-card {
    background-color: #f0f6ff;
    border: 1px solid #dbeafe;
    border-radius: 10px;
    overflow: hidden;
    transition: 0.3s;
}

.berita-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 5px 15px rgba(22, 78, 155, 0.12);
}

.berita-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.berita-card .berita-info {
    padding: 20px;
}

.berita-card h3 {
    color: #164e9b;
    margin-bottom: 8px;
}

.berita-card p {
    text-align: left;
    margin-bottom: 10px;
    overflow-wrap: anywhere;
}


/* BAGIAN PENDAFTARAN */
#pendaftaran {
    background-color: #f0f6ff;
    text-align: center;
}

#pendaftaran p {
    margin-bottom: 25px;
}

.pendaftaran-container {
    margin-top: 25px;
    text-align: center;
}

.btn-daftar {
    display: inline-block;
    background-color: #164e9b;
    color: white;
    padding: 14px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 17px;
    font-weight: bold;
    transition: 0.3s;
}

.btn-daftar:hover {
    background-color: #0d3268;
    transform: translateY(-2px);
}


/* Gambar struktur organisasi */
#struktur-organisasi img,
#gambarStrukturOrganisasi {
    display: block;
    width: 50%;
    max-width: 100px;
    height: auto;
    margin: 20px auto;
    object-fit: contain;
}


/* VISI DAN MISI */
#visi-misi {
    padding: 50px 8%;
}

#visi-misi h2 {
    text-align: center;
    margin-bottom: 30px;
}

.visi-misi-container {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.visi-misi-item {
    display: flex;
    align-items: center;
    gap: 25px;
    padding: 20px;
    border-radius: 12px;
    background: #f5f7fa;
}

.visi-misi-item img {
    width: 220px;
    height: 160px;
    object-fit: cover;
    border-radius: 10px;
    flex-shrink: 0;
}

.visi-misi-text {
    flex: 1;
}

.visi-misi-text h3 {
    color: #164e9b;
    margin-top: 0;
    margin-bottom: 12px;
}

.visi-misi-text p {
    line-height: 1.8;
    margin: 0;
    overflow-wrap: anywhere;
}

/* Tampilan HP */
@media (max-width: 600px) {
    .visi-misi-item {
        flex-direction: column;
        align-items: stretch;
    }

    .visi-misi-item img {
        width: 100%;
        height: 190px;
    }
}
