/* ========================================== */
/* STYLING SPESIFIK & BERBEDA: HALAMAN MTs */
/* ========================================== */

@import url('https://fonts.googleapis.com/css2?family=Poltawski+Nowy:ital,wght@0,400..700;1,400..700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
}

body {
    background-color: #a1ced0;
    font-family: 'Poltawski Nowy', arial;
    color: #333333;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================== */
/* HERO SECTION / BANNER UTAMA (Gaya MTs: Dark & Elegant) */
/* ========================================== */
.hero-section {
    background: linear-gradient(135deg, #24423b, #3b5e53);
    color: #ffffff;
    padding: 60px 20px;
    text-align: center;
    border-radius: 0;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    margin-bottom: 40px;
    border-bottom: 6px solid #1a332d;
}

.hero-banner h2 {
    margin: 0;
    font-size: 36px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

/* ========================================== */
/* SAMBUTAN KEPALA SEKOLAH (Layout Kontras & Unik) */
/* ========================================== */
.welcome-section {
    margin-bottom: 50px;
}

.welcome-container {
    display: flex;
    align-items: center;
    gap: 40px;
    background: #eef5f3; /* Latar belakang kartu sedikit kehijauan muda */
    padding: 45px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 2px solid #b8d4ce;
}

.welcome-container .image-box img {
    width: 290px;
    height: 330px;
    object-fit: cover;
    border-radius: 14px;
    box-shadow: 0 8px 20px rgba(36, 66, 59, 0.2);
    border: 4px solid #ffffff;
}

.welcome-text h2 {
    color: #24423b;
    margin-top: 0;
    font-size: 28px;
    margin-bottom: 20px;
    font-weight: 800;
    border-left: 5px solid #3b5e53;
    padding-left: 12px;
}

.welcome-text p {
    color: #4a5d58;
    font-size: 17px;
    line-height: 1.8;
}

/* ========================================== */
/* VISI & MISI (Layout Stacked Modern) */
/* ========================================== */
.visi-misi-section {
    margin-bottom: 50px;
}

.section-title {
    text-align: center;
    color: #24423b;
    font-size: 32px;
    margin-bottom: 35px;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.visi-misi-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.visi-box, .misi-box {
    background: #24423b; /* Kotak tema gelap khusus MTs */
    color: #ffffff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(36, 66, 59, 0.25);
    transition: transform 0.3s ease;
}

.visi-box:hover, .misi-box:hover {
    transform: translateY(-5px);
}

.visi-box h3, .misi-box h3 {
    color: #a1ced0;
    margin-top: 0;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 10px;
}

.visi-box p, .misi-box li {
    color: #e0f2ec;
    font-size: 16px;
    line-height: 1.7;
}

.misi-box ul {
    padding-left: 20px;
    margin: 0;
}

.misi-box li {
    margin-bottom: 10px;
}

/* ========================================== */
/* FASILITAS & EKSTRAKURIKULER (Card dengan Aksen Border) */
/* ========================================== */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.card-item {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    border: 2px solid #b8d4ce;
    transition: all 0.3s ease;
}

.card-item:hover {
    transform: translateY(-6px);
    border-color: #24423b;
    box-shadow: 0 12px 25px rgba(36, 66, 59, 0.15);
}

.card-item-img {
    height: 190px;
    background: linear-gradient(135deg, #24423b, #528275);
}

.card-item-body {
    padding: 22px;
    font-weight: 700;
    color: #24423b;
    text-align: center;
    font-size: 18px;
}

/* ========================================== */
/* PRESTASI (Grid 4 Kotak) */
/* ========================================== */
.achievements-section {
    margin-bottom: 50px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.square-card {
    height: 180px;
    background-color: #ffffff;
    border-radius: 16px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.05);
    border: 2px solid #b8d4ce;
    transition: transform 0.3s ease;
}

.square-card:hover {
    transform: scale(1.03);
}

.placeholder-img {
    background: linear-gradient(45deg, #b8d4ce, #d4e7e3);
}

/* ========================================== */
/* KONTAK & LOKASI */
/* ========================================== */
.contact-section {
    margin-bottom: 60px;
}

.contact-content {
    background: #eef5f3;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    max-width: 650px;
    margin: 0 auto;
    text-align: center;
    border: 2px solid #24423b;
}

.contact-info p {
    margin: 12px 0;
    color: #4a5d58;
    font-size: 16px;
}

.contact-info strong {
    color: #24423b;
}

/* ========================================== */
/* RESPONSIF HP */
/* ========================================== */
@media (max-width: 768px) {
    .welcome-container {
        flex-direction: column;
        text-align: center;
    }
    
    .visi-misi-content {
        grid-template-columns: 1fr;
    }
}