/*
Theme Name: SMP AWH
Author: SMP A. Wahid Hasyim Tebuireng
Description: Tema sekolah modern dengan palet emerald green, putih, dan gold.
Version: 1.1.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: smp-awh
*/
:root{--g:#075b45;--gd:#063f32;--gold:#c9a44c;--ink:#17231f;--muted:#68766f;--bg:#f7faf8;--line:#e3ebe6}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:16px/1.7 system-ui,-apple-system,"Segoe UI",sans-serif}a{color:var(--g);text-decoration:none}a:hover{color:var(--gold)}img{max-width:100%;height:auto}.container{width:min(1160px,calc(100% - 40px));margin:auto}.site-header{background:#fff;position:sticky;top:0;z-index:20;border-bottom:1px solid var(--line)}.header-inner{min-height:80px;display:flex;align-items:center;justify-content:space-between;gap:20px}.brand{display:flex;align-items:center;gap:12px}.brand-mark{width:48px;height:48px;border-radius:14px;background:var(--g);border:2px solid var(--gold);color:white;display:grid;place-items:center;font-weight:900}.brand-title{display:block;font-weight:800;color:var(--gd);line-height:1.3}.brand-subtitle{display:block;font-size:10px;letter-spacing:.12em;color:var(--muted);text-transform:uppercase}.custom-logo{max-height:56px;width:auto}.main-nav ul{display:flex;gap:22px;align-items:center;list-style:none;margin:0;padding:0}.main-nav a{font-size:14px;font-weight:650;color:#263b32}.menu-toggle{display:none;padding:9px 13px;border:1px solid var(--line);background:#fff;border-radius:9px;color:var(--g)}.hero{padding:88px 0 82px;color:white;background:linear-gradient(120deg,rgba(4,58,43,.98),rgba(7,91,69,.9)),radial-gradient(circle at 80% 20%,rgba(201,164,76,.3),transparent 35%)}.hero-content{max-width:760px}.eyebrow,.kicker{color:var(--gold);font-size:12px;font-weight:800;letter-spacing:.15em;text-transform:uppercase}.hero h1{font-size:clamp(34px,5vw,58px);line-height:1.12;margin:18px 0;color:#fff;letter-spacing:-.03em}.hero p{font-size:18px;color:#e0eae5;max-width:650px}.button{display:inline-block;background:var(--gold);color:#17231f;border-radius:99px;padding:12px 22px;font-weight:800;margin-top:12px}.button:hover{background:#e2c675;color:#17231f}.button.alt{background:transparent;border:1px solid #ffffff80;color:#fff;margin-left:8px}.quick{margin-top:-25px;position:relative}.quick-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;background:#fff;border-radius:18px;padding:20px;box-shadow:0 12px 35px #123b2914}.quick-item{padding:10px 16px;border-right:1px solid var(--line)}.quick-item:last-child{border:0}.quick-item b{display:block;color:var(--gd)}.quick-item span{font-size:13px;color:var(--muted)}.section{padding:70px 0}.section h2{color:var(--gd);font-size:clamp(27px,3vw,38px);line-height:1.2;margin:7px 0}.intro{color:var(--muted);max-width:650px}.about-grid{display:grid;grid-template-columns:1fr 1fr;gap:48px;align-items:center}.visual{min-height:320px;border-radius:24px;background:linear-gradient(140deg,#dcece2,#f5eedb);display:grid;place-items:center}.crest{width:140px;height:140px;border-radius:38px;background:var(--g);border:5px solid var(--gold);color:#fff;display:grid;place-items:center;font-size:40px;font-weight:900;box-shadow:0 12px 35px #123b2920}.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.card{background:#fff;border:1px solid var(--line);border-radius:17px;overflow:hidden;box-shadow:0 5px 18px #123b2908}.card-body{padding:20px}.card h3{font-size:18px;line-height:1.4;margin:7px 0;color:var(--gd)}.card p{font-size:14px;color:var(--muted)}.thumb{aspect-ratio:16/10;background:#eaf4ef;overflow:hidden}.thumb img{width:100%;height:100%;object-fit:cover}.meta{font-size:12px;color:var(--muted)}.cta{background:var(--gd);color:white;padding:36px;border-radius:22px;display:flex;align-items:center;justify-content:space-between;gap:20px}.cta h2{color:#fff;margin:0}.site-footer{background:#062f26;color:#d1ded7;padding:50px 0 20px;margin-top:35px}.footer-grid{display:grid;grid-template-columns:1.3fr 1fr 1fr;gap:35px}.site-footer h3,.site-footer h4{color:#fff}.site-footer a{color:#d1ded7}.footer-bottom{border-top:1px solid #ffffff25;margin-top:30px;padding-top:16px;font-size:12px}.content-wrap{padding:55px 0}.content-box,.entry-card,.widget{background:#fff;border:1px solid var(--line);border-radius:17px;padding:26px}.entry-title{font-size:clamp(28px,4vw,42px);line-height:1.2;color:var(--gd)}.entry-content{color:#34463d}.entry-content h2,.entry-content h3{color:var(--gd)}.entry-content img{border-radius:12px}.layout{display:grid;grid-template-columns:minmax(0,1fr) 290px;gap:30px}.widget{margin-bottom:18px}.pagination{margin-top:25px}.pagination .page-numbers{display:inline-block;padding:7px 12px;background:#fff;border:1px solid var(--line);border-radius:8px;margin-right:5px}.pagination .current{background:var(--g);color:#fff}.screen-reader-text{position:absolute;clip:rect(1px,1px,1px,1px)}.wp-block-button__link{background:var(--g);border-radius:99px}
@media(max-width:900px){.main-nav{display:none;position:absolute;top:80px;left:0;right:0;background:#fff;padding:18px 25px;border-bottom:1px solid var(--line)}.main-nav.open{display:block}.main-nav ul{display:block}.main-nav li{padding:7px 0}.menu-toggle{display:block}.about-grid,.layout{grid-template-columns:1fr}.footer-grid{grid-template-columns:1fr 1fr}}
@media(max-width:640px){.container{width:calc(100% - 30px)}.hero{padding:62px 0}.hero p{font-size:16px}.quick-grid,.cards,.footer-grid{grid-template-columns:1fr}.quick-item{border-right:0;border-bottom:1px solid var(--line)}.quick-item:last-child{border:0}.section{padding:50px 0}.cta{display:block;padding:25px}.button.alt{margin-left:0}.header-inner{min-height:70px}.main-nav{top:70px}}

/* Attendance portal */
.attendance-hero{background:linear-gradient(120deg,#063f32,#075b45);color:#fff;padding:55px 0}
.attendance-hero h1{color:#fff;font-size:clamp(30px,4vw,44px);margin:8px 0}
.attendance-hero p{color:#e0eae5;max-width:720px}
.attendance-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:20px;margin-top:28px}
.attendance-panel{background:#fff;border:1px solid var(--line);border-radius:18px;padding:25px;box-shadow:0 8px 24px #123b2909}
.attendance-panel h2{font-size:21px;margin:0 0 8px;color:var(--gd)}
.attendance-panel p{color:var(--muted);margin:0 0 16px}
.attendance-note{background:#f4f7f4;border-left:4px solid var(--gold);padding:15px 18px;border-radius:8px;color:#42534a;margin-top:24px;font-size:14px}
.attendance-status{display:inline-block;background:#eaf4ef;color:var(--g);padding:5px 10px;border-radius:99px;font-size:12px;font-weight:750;margin-bottom:12px}
@media(max-width:640px){.attendance-grid{grid-template-columns:1fr}.attendance-hero{padding:42px 0}}

/* FOTO PROFIL SEKOLAH */
.visual {
    background: url('https://staging.smpawhtebuireng.sch.id/wp-content/uploads/2026/11/SMP_AWH_Gapura_1-5MB.jpg') center center / cover no-repeat !important;
}

.visual .crest {
    display: none !important;
}


/* DROPDOWN MENU PROFIL SEKOLAH */
.main-nav ul li {
    position: relative;
}

.main-nav ul.sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0;
    margin: 0;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,.12);
    z-index: 999;
}

.main-nav ul.sub-menu li {
    display: block;
    width: 100%;
    padding: 0;
}

.main-nav ul.sub-menu a {
    display: block;
    padding: 10px 16px;
    white-space: nowrap;
    font-size: 13px;
}

.main-nav ul.sub-menu a:hover {
    background: #f0f6f2;
    color: var(--g);
}

/* Tampilkan submenu saat diarahkan atau difokuskan */
.main-nav li:hover > ul.sub-menu,
.main-nav li:focus-within > ul.sub-menu {
    display: flex;
}

/* Dropdown pada layar HP */
@media(max-width:900px) {
    .main-nav ul.sub-menu {
        display: none;
        position: static;
        min-width: 100%;
        box-shadow: none;
        border: 0;
        border-left: 3px solid var(--gold);
        border-radius: 0;
        padding: 4px 0 4px 12px;
        background: #f7faf8;
    }

    .main-nav li:hover > ul.sub-menu,
    .main-nav li:focus-within > ul.sub-menu {
        display: flex;
    }

    .main-nav ul.sub-menu a {
        white-space: normal;
    }
}

/* =========================================
   HALAMAN ARSIP BERITA - SMP AWH
========================================= */

.archive-news {
    padding: 65px 0;
}

.archive-news .archive-header {
    margin-bottom: 35px;
}

.archive-news .archive-header .entry-title {
    margin-bottom: 10px;
}

.archive-news .archive-header .intro {
    margin-top: 8px;
}

/* Grid berita */
.archive-news .news-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 25px;
    align-items: stretch;
}

/* Kartu berita */
.archive-news .news-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-width: 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(6, 63, 50, 0.07);
}

/* Gambar berita */
.archive-news .news-thumb {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #eaf4ef;
}

.archive-news .news-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 0;
    transition: transform .35s ease;
}

.archive-news .news-card:hover .news-thumb img {
    transform: scale(1.04);
}

/* Jika gambar tidak tersedia */
.archive-news .news-no-image {
    width: 100%;
    height: 100%;
    min-height: 180px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #075b45, #063f32);
    color: #fff;
    font-size: 24px;
    font-weight: 800;
}

/* Isi kartu */
.archive-news .news-card .card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 20px;
}

.archive-news .news-card .meta {
    margin-bottom: 9px;
    font-size: 12px;
    color: var(--muted);
}

.archive-news .news-card h3 {
    margin: 0 0 12px;
    font-size: 18px;
    line-height: 1.45;
}

.archive-news .news-card h3 a {
    color: var(--gd);
}

.archive-news .news-card h3 a:hover {
    color: var(--gold);
}

/* Ringkasan berita */
.archive-news .news-excerpt {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 18px;
}

.archive-news .news-excerpt p {
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Tombol baca selengkapnya */
.archive-news .news-read-more {
    margin-top: auto;
    display: inline-block;
    color: var(--g);
    font-size: 13px;
    font-weight: 800;
}

.archive-news .news-read-more:hover {
    color: var(--gold);
}

/* Pagination */
.archive-news .news-pagination {
    margin-top: 40px;
    text-align: center;
}

.archive-news .news-pagination .page-numbers {
    display: inline-block;
    padding: 9px 14px;
    margin: 3px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.archive-news .news-pagination .current {
    background: var(--g);
    color: #fff;
}

/* Tablet */
@media (max-width: 900px) {
    .archive-news .news-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }
}

/* Ponsel */
@media (max-width: 600px) {
    .archive-news {
        padding: 40px 0;
    }

    .archive-news .news-grid {
        grid-template-columns: 1fr;
    }

    .archive-news .news-card h3 {
        font-size: 17px;
    }
}


/* PENYEMPURNAAN HALAMAN KONTAK */
.awh-contact .contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.awh-contact .contact-card {
    min-height: 105px;
}

.awh-contact .map-panel {
    border: 1px solid #dce9e1;
    background: linear-gradient(135deg, #f5faf7, #ffffff);
    padding: 35px 25px;
}

.awh-contact .map-panel .contact-button {
    min-width: 210px;
}

.awh-contact .social-link {
    min-height: 78px;
}

.awh-contact .contact-card a:hover,
.awh-contact .social-link:hover {
    color: #075b43;
}

@media (max-width: 700px) {
    .awh-contact .contact-grid {
        grid-template-columns: 1fr;
    }
    .awh-contact .social-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 420px) {
    .awh-contact .social-grid {
        grid-template-columns: 1fr;
    }
}

/* PENYEMPURNAAN FOOTER SMP AWH */

.site-footer .footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1fr;
    gap: 55px;
}

.site-footer .footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-footer .footer-menu li {
    list-style: none;
    margin: 8px 0;
}

.site-footer .footer-menu li a,
.site-footer .footer-psb a,
.site-footer .footer-contact a {
    color: #e5eee9;
    text-decoration: none;
    transition: color .2s ease;
}

.site-footer .footer-menu li a:hover,
.site-footer .footer-psb a:hover,
.site-footer .footer-contact a:hover {
    color: #d6b76c;
}

.site-footer .footer-psb {
    margin-top: 18px;
}

.site-footer .footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

.site-footer .footer-social a {
    display: inline-block;
    color: #fff;
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 5px;
    padding: 6px 10px;
    font-size: 12px;
    text-decoration: none;
}

.site-footer .footer-social a:hover {
    background: #c6a45b;
    color: #fff;
}

.site-footer .footer-bottom {
    margin-top: 35px;
}

@media (max-width: 768px) {
    .site-footer .footer-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
}


/* =====================================
   BERITA BERANDA SMP AWH
===================================== */

.home-news .news-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    align-items: stretch;
}

.home-news .news-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: 100%;
    overflow: hidden;
    border-radius: 15px;
    background: #fff;
}

.home-news .news-image-wrap {
    display: block;
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #eaf1ed;
}

.home-news .news-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform .3s ease;
}

.home-news .news-card:hover .news-image {
    transform: scale(1.04);
}

.home-news .news-image-placeholder {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #075b43, #0b7959);
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 2px;
}

.home-news .news-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 20px;
}

.home-news .news-card .meta {
    margin-bottom: 9px;
    color: #718078;
    font-size: 13px;
}

.home-news .news-card h3 {
    margin: 0 0 12px;
    font-size: 19px;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
}

.home-news .news-card h3 a {
    color: #075b43;
    text-decoration: none;
}

.home-news .news-excerpt {
    margin: 0 0 16px;
    color: #68756f;
    font-size: 14px;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    overflow: hidden;
}

.home-news .news-read-more {
    display: inline-block;
    margin-top: auto;
    padding-top: 8px;
    color: #075b43;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.home-news .news-read-more:hover {
    color: #c6a45b;
}

/* Tablet */
@media (max-width: 900px) {
    .home-news .news-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Smartphone */
@media (max-width: 600px) {
    .home-news .news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .home-news .news-card h3 {
        font-size: 18px;
    }
}



/* =====================================
   BERITA BERANDA SMP AWH
===================================== */

.home-news .news-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    align-items: stretch;
}

.home-news .news-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: 100%;
    overflow: hidden;
    border-radius: 15px;
    background: #fff;
}

.home-news .news-image-wrap {
    display: block;
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #eaf1ed;
}

.home-news .news-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform .3s ease;
}

.home-news .news-card:hover .news-image {
    transform: scale(1.04);
}

.home-news .news-image-placeholder {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #075b43, #0b7959);
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 2px;
}

.home-news .news-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 20px;
}

.home-news .news-card .meta {
    margin-bottom: 9px;
    color: #718078;
    font-size: 13px;
}

.home-news .news-card h3 {
    margin: 0 0 12px;
    font-size: 19px;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
}

.home-news .news-card h3 a {
    color: #075b43;
    text-decoration: none;
}

.home-news .news-excerpt {
    margin: 0 0 16px;
    color: #68756f;
    font-size: 14px;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    overflow: hidden;
}

.home-news .news-read-more {
    display: inline-block;
    margin-top: auto;
    padding-top: 8px;
    color: #075b43;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.home-news .news-read-more:hover {
    color: #c6a45b;
}

/* Tablet */
@media (max-width: 900px) {
    .home-news .news-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Smartphone */
@media (max-width: 600px) {
    .home-news .news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .home-news .news-card h3 {
        font-size: 18px;
    }
}


/* ==========================================
   FIX BERITA BERANDA SMP AWH
========================================== */

.home-news .news-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    align-items: stretch;
}

.home-news .news-card {
    display: flex !important;
    flex-direction: column;
    height: auto !important;
    min-width: 0;
    overflow: hidden;
    border-radius: 14px;
    background: #fff;
}

.home-news .news-image-wrap {
    display: block !important;
    position: relative;
    flex: none;
    width: 100%;
    height: auto !important;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #eaf1ed;
}

.home-news .news-image-wrap img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-width: none;
    object-fit: cover;
    object-position: center;
}

.home-news .news-image-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #075b43, #0b7959);
    color: #fff;
    font-size: 23px;
    font-weight: 700;
}

.home-news .news-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 19px;
}

.home-news .news-card .meta {
    margin-bottom: 9px;
    font-size: 12px;
    color: #718078;
}

.home-news .news-card h3 {
    font-size: 18px;
    line-height: 1.45;
    margin: 0 0 12px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
}

.home-news .news-card h3 a {
    color: #075b43;
    text-decoration: none;
}

.home-news .news-excerpt {
    font-size: 14px;
    line-height: 1.7;
    color: #68756f;
    margin: 0 0 15px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    overflow: hidden;
}

.home-news .news-read-more {
    margin-top: auto;
    padding-top: 8px;
    color: #075b43;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.home-news .news-read-more:hover {
    color: #c6a45b;
}

@media (max-width: 900px) {
    .home-news .news-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .home-news .news-grid {
        grid-template-columns: 1fr;
    }
}


