*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
}

html,
body {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: #a1ced0;
    font-family: 'Plus Jakarta Sans', 'Segoe UI', Arial, sans-serif;
    color: white;
}

.top-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    background-color: #a1ced0;
    flex-wrap: wrap;
    gap: 15px;
}

.nama-yayasan {
    color: #063b3d;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nomor {
    color: #063b3d;
    font-weight: 700;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.4);
    padding: 6px 14px;
    border-radius: 20px;
}

button {
    background-color: #063b3d;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

button:hover {
    filter: brightness(1.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(6, 59, 61, 0.3);
}

hr {
    border: none;
    border-top: 2px solid rgba(0, 0, 0, 0.12);
    margin: 20px 0;
}

.judul-yayasan {
    margin-left: 30px;
    margin-top: 30px;
    color: #063b3d;
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.slider-container {
    width: calc(100% - 40px);
    height: 380px;
    margin: 20px;
    overflow: hidden;
    border-radius: 35px;
    position: relative;
    box-shadow: 0 15px 35px rgba(6, 59, 61, 0.2);
}

.slider {
    display: flex;
    width: 300%;
    height: 100%;
    animation: geser 12s infinite cubic-bezier(0.77, 0, 0.175, 1);
}

.slide {
    width: 33.333333%;
    height: 100%;
    flex-shrink: 0;
    position: relative;
}

.slide img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    filter: brightness(0.95);
}

@keyframes geser {
    0% { transform: translateX(0); }
    30% { transform: translateX(0); }
    35% { transform: translateX(-33.333333%); }
    65% { transform: translateX(-33.333333%); }
    70% { transform: translateX(-66.666666%); }
    95% { transform: translateX(-66.666666%); }
    100% { transform: translateX(0); }
}

.stats-bar {
    margin: 25px 30px 10px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.stat-item {
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 22px;
    padding: 18px 20px;
    text-align: center;
    box-shadow: 0 6px 18px rgba(6, 59, 61, 0.08);
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-3px);
}

.stat-item h3 {
    color: #063b3d;
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 4px;
}

.stat-item p {
    color: #095255;
    font-size: 13px;
    font-weight: 600;
}

.about {
    margin: 20px 30px;
    background: linear-gradient(135deg, #638f8f 0%, #4e7373 100%);
    border-radius: 30px;
    padding: 35px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.about-grid {
    display: grid;
    grid-template-columns: 1.45fr 1fr;
    gap: 30px;
    align-items: center;
}

.about-card {
    line-height: 1.8;
}

.about-card p {
    margin-bottom: 15px;
    font-size: 15.5px;
    color: rgba(255, 255, 255, 0.95);
}

.about-card p:last-child {
    margin-bottom: 0;
}

.about-media {
    position: relative;
    border-radius: 22px;
    overflow: hidden;
    height: 250px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18);
    border: 2px solid rgba(255, 255, 255, 0.25);
}

.about-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.about-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 16px;
    background: linear-gradient(transparent, rgba(6, 59, 61, 0.9));
    font-size: 12.5px;
    font-weight: 600;
    color: #ffffff;
}

.card {
    margin: 30px;
    display: flex;
    gap: 20px;
    align-items: stretch;
}

.info-sekolah {
    flex: 1;
    display: flex;
}

.card-RA,
.card-MI,
.card-MTs {
    width: 100%;
    display: flex;
    flex-direction: column;
    background: linear-gradient(145deg, #638f8f, #557c7c);
    border-radius: 30px;
    padding: 35px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-RA:hover,
.card-MI:hover,
.card-MTs:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.card-header-badge {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.card-header-badge h2 {
    margin-bottom: 0;
}

.unit-badge {
    background-color: rgba(6, 59, 61, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 20px;
    white-space: nowrap;
}

.data-sekolah {
    margin-top: 16px;
}

.halaman-sekolah {
    margin-top: auto;
    padding: 14px 20px;
    background-color: #063b3d;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: background-color 0.2s;
}

.card-RA .data-sekolah,
.card-MI .data-sekolah,
.card-MTs .data-sekolah {
    margin-bottom: 24px;
}

.halaman-sekolah:hover {
    background-color: #095255;
}

.halaman-sekolah a {
    color: white;
    font-weight: 600;
    display: block;
}

.card h2 {
    font-size: 24px;
    font-weight: 700;
}

.card p {
    line-height: 1.7;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
}

.highlight-section {
    margin: 30px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}

.highlight-box {
    background: linear-gradient(145deg, #638f8f, #527878);
    border-radius: 30px;
    padding: 30px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.highlight-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.highlight-header h2 {
    font-size: 21px;
    font-weight: 700;
    color: #ffffff;
}

.link-semua {
    font-size: 13px;
    font-weight: 700;
    color: #a1ced0;
    transition: color 0.2s ease;
}

.link-semua:hover {
    color: #ffffff;
}

.highlight-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.highlight-item {
    background: rgba(6, 59, 61, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 18px;
    padding: 16px 18px;
    transition: transform 0.25s ease, background 0.25s ease;
}

.highlight-item:hover {
    transform: translateX(4px);
    background: rgba(6, 59, 61, 0.42);
}

.item-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.tag-unit {
    background-color: #063b3d;
    color: #a1ced0;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 12px;
    display: inline-block;
}

.item-date {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.75);
}

.highlight-item h4 {
    font-size: 15.5px;
    font-weight: 700;
    margin-bottom: 4px;
    color: #ffffff;
}

.highlight-item p {
    font-size: 13.5px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.88);
}

.agenda-item {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(6, 59, 61, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 18px;
    padding: 14px 18px;
    transition: transform 0.25s ease, background 0.25s ease;
}

.agenda-item:hover {
    transform: translateX(4px);
    background: rgba(6, 59, 61, 0.42);
}

.agenda-date-box {
    min-width: 58px;
    height: 62px;
    background-color: #063b3d;
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.agenda-date-box .tgl {
    font-size: 20px;
    font-weight: 800;
    line-height: 1.1;
    color: #ffffff;
}

.agenda-date-box .bln {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: #a1ced0;
}

.agenda-info h4 {
    font-size: 15.5px;
    font-weight: 700;
    margin: 5px 0 3px;
    color: #ffffff;
}

.agenda-info p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
}

.gallery-section {
    margin: 35px 30px 10px;
}

.gallery-header {
    margin-bottom: 18px;
}

.gallery-header h2 {
    color: #063b3d;
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 4px;
}

.gallery-header p {
    color: #095255;
    font-size: 14px;
    font-weight: 500;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.gallery-card {
    position: relative;
    height: 200px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(6, 59, 61, 0.14);
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.gallery-card:hover img {
    transform: scale(1.06);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(6, 59, 61, 0.85) 0%, transparent 55%);
    display: flex;
    align-items: flex-end;
    padding: 16px 18px;
}

.gallery-overlay span {
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
}

@media (max-width: 900px) {
    .stats-bar {
        grid-template-columns: repeat(2, 1fr);
    }
    .about-grid,
    .highlight-section {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 800px) {
    .slider-container {
        height: 300px;
    }
    .card {
        flex-direction: column;
    }
    .info-sekolah {
        width: 100%;
    }
    .card-RA,
    .card-MI,
    .card-MTs {
        width: 100%;
    }
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    .top-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .header-right {
        width: 100%;
        justify-content: space-between;
    }
}

.slide-content {
    position: absolute;
    left: 0;
    top: 0;
    width: 52%;
    height: 100%;
    padding: 35px 30px;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.4) 80%, transparent 100%);
    color: white;
    border-radius: 35px 0 0 35px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    backdrop-filter: blur(2px);
}

.slide-content h2 {
    font-size: 26px;
    line-height: 1.2;
    margin-bottom: 15px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.slide-content p {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 25px;
    color: rgba(255, 255, 255, 0.95);
}

.slide-content button {
    width: 130px;
    padding: 12px 14px;
    border: none;
    border-radius: 8px;
    background-color: white;
    color: #063b3d;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.slide-content button:hover {
    background-color: #f2f2f2;
    transform: translateY(-2px);
}

.footer {
    background-color: #6d8f8f;
    text-align: center;
    padding: 35px 20px 25px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.95);
    margin-top: 50px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}