@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; /* Warna latar belakang disesuaikan persis seperti halaman utama */
    font-family: 'Poltawski Nowy', arial;
    color: #333333;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
}

.about-school {
    display: flex;
    align-items: center;
    padding: 20px 40px;
}

/* Bagian Master Header / Foto Profil Utama */
.abt-pic {
    width: 320px;
    height: 320px;
    border-radius: 30px;
    overflow: hidden;
    background-color: #528275;
    border: 6px solid #ffffff;
    box-shadow: 0 10px 30px rgba(82, 130, 117, 0.2);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.abt-pic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 24px;
}

.master-abt {
    max-width: 1100px;
    margin: 50px auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 50px;
}

.header-abt {
    color: #2c4a42;
    width: 100%;
}

.head-container {
    text-align: center;
    color: #24423b;
    margin-top: 50px;
    margin-bottom: 25px;
}

.head-container h1 {
    font-size: 34px;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.header-abt .deskripsi-abt {
    max-width: 650px;
    font-size: 22px;
    line-height: 1.7;
    font-weight: 600;
    color: #2c4a42;
    overflow-wrap: break-word;
}

/* ==========================================
   LAYOUT VISI & MISI (3 KOTAK AESTHETIC)
   ========================================== */
.layout-container {
    display: grid;
    grid-template-columns: 1fr 1.8fr;
    grid-template-rows: repeat(2, auto);
    gap: 25px;
    max-width: 1100px;
    margin: 0 auto 50px auto;
    padding: 0 20px;
}

.bagian-1, .bagian-2, .bagian-3 {
    background-color: #ffffff;
    border-radius: 20px;
    padding: 35px;
    color: #2c4a42;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.bagian-1:hover, .bagian-2:hover, .bagian-3:hover {
    transform: translateY(-4px);
}

.bagian-1 {
    grid-column: 1;
    grid-row: 1;
}

.bagian-2 {
    grid-column: 1;
    grid-row: 2;
}

.bagian-3 {
    grid-column: 2;
    grid-row: 1 / span 2;
}

.bagian-1 h3, .bagian-2 h3, .bagian-3 h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #528275;
    border-bottom: 2px solid #e2ece9;
    padding-bottom: 10px;
}

.bagian-1 p, .bagian-2 p, .bagian-3 p, .bagian-3 li {
    font-size: 16px;
    line-height: 1.7;
    font-weight: 500;
    color: #4a5d58;
}

.bagian-3 ul {
    padding-left: 20px;
}

.bagian-3 li {
    margin-bottom: 10px;
}

/* ==========================================
   PERJALANAN KAMI / TIMELINE ESTHETIC
   ========================================== */
.perjalanan {
    width: 100%;
    padding: 60px 20px;
    background-color: #a1ced0;
}

.perjalanan h2 {
    text-align: center;
    font-size: 32px;
    color: #24423b;
    margin-bottom: 60px;
    font-weight: 800;
}

.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.timeline::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    background-color: #528275;
    transform: translateX(-50%);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
    width: 100%;
    display: flex;
    align-items: center;
}

.titik {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background-color: #528275;
    border: 4px solid #ffffff;
    transform: translate(-50%, -50%);
    z-index: 2;
    box-shadow: 0 0 10px rgba(82, 130, 117, 0.4);
}

.timeline-content {
    display: flex;
    align-items: center;
    background: #ffffff;
    padding: 25px;
    border-radius: 20px;
    width: 42%;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
    gap: 20px;
    color: #333;
    border: 1px solid #dcebe6;
}

.timeline-year {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    font-weight: 800;
    color: #ffffff;
    background-color: #528275;
    padding: 6px 16px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(82, 130, 117, 0.3);
    z-index: 3;
}

.timeline-item:nth-child(odd) {
    justify-content: flex-start;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-right: auto;
}

.timeline-item:nth-child(odd) .timeline-year {
    left: 54%;
}

.timeline-item:nth-child(even) {
    justify-content: flex-end;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: auto;
}

.timeline-item:nth-child(even) .timeline-year {
    right: 54%;
}

.timeline-content img {
    width: 110px;
    height: 110px;
    object-fit: cover;
    border-radius: 14px;
    flex-shrink: 0;
}

.timeline-text h3 {
    display: none; 
}

.timeline-text p {
    font-size: 15px;
    line-height: 1.6;
    font-weight: 600;
    color: #4a5d58;
}

/* ==========================================
   GALERI & BAGIAN LAINNYA
   ========================================== */
.galeri {
    padding: 40px 30px 60px;
    background-color: #a1ced0;
}

.galeri h1 {
    text-align: center;
    margin: 20px 0 35px;
    color: #24423b;
    font-size: 30px;
    font-weight: 800;
}

.galeri-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 230px 230px;
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
}

.galeri-item {
    overflow: hidden;
    min-width: 0;
    min-height: 0;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

.galeri-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.galeri-item img:hover {
    transform: scale(1.04);
}

.galeri-besar {
    grid-column: 1;
    grid-row: 1 / 3;
}

.galeri-atas {
    grid-column: 2;
    grid-row: 1;
}

.galeri-kiri-bawah {
    grid-column: 2;
    grid-row: 2;
    width: calc(50% - 10px);
}

.galeri-kanan-bawah {
    grid-column: 2;
    grid-row: 2;
    width: calc(50% - 10px);
    justify-self: end;
}

.footer {
    background-color: #3b5e53;
    text-align: center;
    padding: 35px 20px;
    font-size: 14px;
    color: #ffffff;
    margin-top: 50px;
}

/* ==========================================
   RESPONSIF UNTUK HP / TABLET
   ========================================== */
@media (max-width: 850px) {
    .layout-container {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .bagian-1, .bagian-2, .bagian-3 {
        grid-column: 1;
        grid-row: auto;
    }

    .about-school, .master-abt {
        flex-direction: column;
        text-align: center;
    }

    .timeline::before {
        left: 20px;
    }

    .titik {
        left: 20px;
    }

    .timeline-item {
        flex-direction: column !important;
        align-items: flex-start !important;
        padding-left: 45px;
    }

    .timeline-content {
        width: 100% !important;
        margin: 0 !important;
    }

    .timeline-year {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        transform: none !important;
        margin-bottom: 10px;
        display: inline-block;
    }

    .galeri-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .galeri-besar, .galeri-atas, .galeri-kiri-bawah, .galeri-kanan-bawah {
        grid-column: 1;
        grid-row: auto;
        width: 100% !important;
        height: 220px;
    }
}