/*
Theme Name: SDIT Wahdah Islamiyah 01 Makassar
Theme URI: https://wahdah.or.id/
Author: Tim IT SDIT Wahdah 01
Description: Tema WordPress Kustom Resmi untuk SD Islam Terpadu Wahdah Islamiyah 01 Makassar.
Version: 1.0.0
Text Domain: sdit-wahdah
*/

:root {
    --primary-teal: #12949c;       /* Warna utama Teal/Tosca sesuai bar statistik & footer */
    --heading-teal: #1d7c82;       /* Warna teks judul */
    --btn-green: #0e8555;          /* Warna tombol hijau emerald */
    --btn-green-hover: #0a6842;
    --accent-yellow: #ffea28;      /* Warna tombol kuning SPMB */
    --accent-yellow-hover: #f5df11;
    --bg-soft-blue: #eaf5f6;       /* Warna background section program unggulan & kartu berita */
    --text-dark: #2c3e50;
    --text-muted: #596a7a;
    --white: #ffffff;
    --border-radius-lg: 18px;
    --border-radius-pill: 50px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-dark);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.25s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- TIPOGRAFI & TOMBOL --- */
.sub-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--heading-teal);
    margin-bottom: 8px;
    display: block;
}

.section-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--heading-teal);
    line-height: 1.25;
    margin-bottom: 16px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 24px;
    font-weight: 700;
    font-size: 0.9rem;
    border-radius: var(--border-radius-pill);
    cursor: pointer;
    border: none;
}

.btn-green {
    background-color: var(--btn-green);
    color: var(--white);
}
.btn-green:hover {
    background-color: var(--btn-green-hover);
    color: var(--white);
}

.btn-yellow {
    background-color: var(--accent-yellow);
    color: #1a252c;
}
.btn-yellow:hover {
    background-color: var(--accent-yellow-hover);
}

/* --- HEADER & NAVIGASI --- */
.site-header {
    background: var(--white);
    padding: 18px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0,0,0,0.04);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo img, .brand-logo-icon {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-text .school-name {
    font-weight: 800;
    font-size: 1rem;
    color: var(--heading-teal);
    line-height: 1.2;
}

.brand-text .school-sub {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--primary-teal);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-links {
    display: flex;
    gap: 24px;
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--text-dark);
}

.nav-links a:hover {
    color: var(--primary-teal);
}

.btn-spmb-nav {
    background-color: var(--accent-yellow);
    color: #111;
    padding: 8px 18px;
    border-radius: 6px;
    font-weight: 800;
    font-size: 0.85rem;
}

/* --- HERO SECTION --- */
.hero-section {
    padding: 15px 0 35px;
}

.hero-card {
    background: linear-gradient(105deg, #e3f3f5 0%, #f4fafa 50%, #d8eef1 100%);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    position: relative;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    min-height: 420px;
    box-shadow: 0 10px 30px rgba(18, 148, 156, 0.08);
}

.hero-content {
    padding: 50px 40px 50px 55px;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--heading-teal);
    line-height: 1.18;
    margin-bottom: 18px;
}

.hero-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 28px;
    max-width: 440px;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.hero-image-wrap {
    height: 100%;
    width: 100%;
    position: relative;
}

.hero-image-wrap img {
    width: 100%;
    height: 100%;
    min-height: 420px;
    object-fit: cover;
    object-position: center;
}

/* --- STATS BAR --- */
.stats-bar {
    background-color: var(--primary-teal);
    color: var(--white);
    padding: 28px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    text-align: center;
    gap: 20px;
}

.stat-item h3 {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 4px;
}

.stat-item p {
    font-size: 0.85rem;
    opacity: 0.9;
    font-weight: 500;
}

/* --- PROFIL SINGKAT --- */
.profile-section {
    padding: 75px 0 50px;
}

.profile-grid {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 50px;
    align-items: center;
}

.profile-text p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 26px;
}

.video-card {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    aspect-ratio: 16/10;
    background: #1d7c82;
}

.video-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 68px;
    height: 68px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(0,0,0,0.25);
    color: var(--primary-teal);
    font-size: 1.5rem;
}

/* --- PENDIDIKAN KAMI (4 PILAR) --- */
.pillars-section {
    padding: 35px 0 75px;
}

.section-header-center {
    text-align: center;
    margin-bottom: 45px;
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.pillar-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.pillar-icon {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background-color: var(--primary-teal);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pillar-info h4 {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--heading-teal);
    margin-bottom: 5px;
    line-height: 1.25;
}

.pillar-info p {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.45;
}

/* --- PROGRAM UNGGULAN --- */
.programs-section {
    background-color: var(--bg-soft-blue);
    padding: 75px 0;
}

.programs-layout {
    display: grid;
    grid-template-columns: 0.9fr 1.5fr;
    gap: 45px;
    align-items: center;
}

.programs-intro p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 28px;
}

.programs-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.prog-card {
    background: var(--white);
    padding: 26px 18px;
    border-radius: 14px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    transition: transform 0.25s ease;
}

.prog-card:hover {
    transform: translateY(-4px);
}

.prog-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background-color: var(--primary-teal);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
}

.prog-card h4 {
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--heading-teal);
    margin-bottom: 6px;
}

.prog-card p {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* --- BANNER SPMB --- */
.cta-spmb-bar {
    background-color: var(--primary-teal);
    padding: 35px 0;
    color: var(--white);
}

.cta-spmb-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
}

.cta-spmb-badge {
    background: rgba(255,255,255,0.12);
    border: 2px solid rgba(255,255,255,0.25);
    padding: 16px 26px;
    border-radius: 16px;
    text-align: center;
}

.cta-spmb-badge span {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--accent-yellow);
}

.cta-spmb-badge strong {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--accent-yellow);
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.cta-spmb-text {
    text-align: center;
    flex: 1;
}

.cta-spmb-text .spmb-tag {
    color: var(--accent-yellow);
    font-weight: 800;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.cta-spmb-text h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 6px;
}

.cta-spmb-text .spmb-date {
    font-size: 0.85rem;
    opacity: 0.9;
}

/* --- BERITA & INFORMASI --- */
.news-section {
    padding: 75px 0;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}

.news-card {
    background-color: var(--bg-soft-blue);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.news-thumb {
    aspect-ratio: 16/10;
    background: #d0e7e9;
    overflow: hidden;
}

.news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-card:hover .news-thumb img {
    transform: scale(1.04);
}

.news-caption-bar {
    background: var(--white);
    font-size: 0.7rem;
    color: #8898a8;
    padding: 6px 18px;
    border-bottom: 1px solid #e1eff1;
}

.news-body {
    padding: 22px 22px 26px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-cat {
    font-size: 0.72rem;
    color: var(--primary-teal);
    font-weight: 600;
    margin-bottom: 8px;
}

.news-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--heading-teal);
    margin-bottom: 12px;
    line-height: 1.35;
}

.news-excerpt {
    font-size: 0.83rem;
    color: var(--text-muted);
    margin-bottom: 18px;
    flex: 1;
}

.news-readmore {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--btn-green);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* --- FOOTER --- */
.site-footer {
    background-color: var(--primary-teal);
    color: var(--white);
    padding: 60px 0 50px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.1fr 1.2fr 1.2fr 0.9fr;
    gap: 35px;
}

.footer-brand .brand-logo {
    margin-bottom: 24px;
}

.footer-brand .school-name,
.footer-brand .school-sub {
    color: var(--white);
}

.social-label {
    font-size: 0.78rem;
    margin-bottom: 10px;
    opacity: 0.9;
}

.social-icons {
    display: flex;
    gap: 10px;
}

.social-icons a {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--white);
    color: var(--primary-teal);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.8rem;
}

.footer-col h4 {
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.footer-contact-list li {
    font-size: 0.82rem;
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    opacity: 0.92;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    font-size: 0.82rem;
    opacity: 0.9;
}

.footer-links a:hover {
    opacity: 1;
    text-decoration: underline;
}

.footer-bottom-bar {
    background-color: #1b2528;
    height: 18px;
    width: 100%;
}

/* --- RESPONSIVE MEDIA QUERIES --- */
@media (max-width: 992px) {
    .hero-card,
    .profile-grid,
    .programs-layout {
        grid-template-columns: 1fr;
    }
    .pillars-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .programs-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .main-nav .nav-links {
        display: none; /* Menyembunyikan menu desktop di layar tablet/HP */
    }
}

@media (max-width: 600px) {
    .stats-grid,
    .pillars-grid,
    .programs-cards,
    .news-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .hero-content {
        padding: 35px 25px;
    }
    .hero-title {
        font-size: 1.9rem;
    }
    .cta-spmb-inner {
        flex-direction: column;
        text-align: center;
    }
}