/*
Theme Name: MIN 1 Wakatobi
Theme URI: https://min1wakatobi.kemenag.go.id
Author: Tim IT MIN 1 Wakatobi
Author URI: https://min1wakatobi.kemenag.go.id
Description: Tema WordPress profesional untuk website resmi Madrasah Ibtidaiyah Negeri 1 Wakatobi. Dirancang dengan estetika Islami, menampilkan warna hijau emerald dan emas yang elegan, cocok untuk madrasah/sekolah Islam. Fitur: Hero section, Visi Misi, Program Unggulan, Berita, Galeri, Pengumuman, Prestasi, dan Kontak.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: min1wakatobi
Tags: education, Islamic, madrasah, school, green, gold, responsive, custom-menu, custom-logo, featured-images, threaded-comments, translation-ready
*/

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --emerald: #1a6b4a;
    --emerald-light: #2d9b6e;
    --emerald-dark: #0f4530;
    --gold: #c8a84b;
    --gold-light: #e8c96a;
    --cream: #faf7f0;
    --text-dark: #1a1a2e;
    --text-body: #3a3a4a;
    --white: #ffffff;
    --shadow: 0 8px 32px rgba(26, 107, 74, 0.12);
    --shadow-lg: 0 20px 60px rgba(26, 107, 74, 0.18);
    --radius: 16px;
    --radius-sm: 10px;
    --radius-lg: 24px;
    --transition: 0.3s ease;
    --font-primary: 'Nunito', sans-serif;
    --font-display: 'Playfair Display', serif;
    --font-arabic: 'Amiri', serif;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    background-color: var(--cream);
    color: var(--text-body);
    line-height: 1.7;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--emerald);
    transition: color var(--transition);
}

a:hover {
    color: var(--emerald-light);
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    color: var(--text-dark);
    line-height: 1.25;
    font-weight: 700;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.1rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.9rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

ul, ol { padding-left: 1.5rem; }

/* Arabic text class */
.arabic {
    font-family: var(--font-arabic);
    direction: rtl;
    text-align: right;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

.container-narrow {
    max-width: 820px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 80px 0;
}

.section--alt {
    background: rgba(26, 107, 74, 0.03);
}

.section--dark {
    background: linear-gradient(135deg, var(--emerald-dark) 0%, var(--emerald) 100%);
    color: var(--white);
}

/* ============================================================
   GRID UTILITIES
   ============================================================ */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

@media (max-width: 900px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ============================================================
   GEOMETRIC BACKGROUND PATTERN
   ============================================================ */
.geometric-bg {
    background-image:
        radial-gradient(circle at 20% 50%, rgba(200, 168, 75, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(26, 107, 74, 0.06) 0%, transparent 40%),
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%231a6b4a' fill-opacity='0.03'%3E%3Cpath d='M30 0l30 30-30 30L0 30z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* ============================================================
   TOP BAR
   ============================================================ */
#topbar {
    background: var(--emerald-dark);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.78rem;
    padding: 7px 0;
    letter-spacing: 0.02em;
}

#topbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

#topbar a {
    color: var(--gold-light);
    text-decoration: none;
}

#topbar a:hover {
    color: var(--gold);
}

/* ============================================================
   HEADER & NAVIGATION
   ============================================================ */
#masthead {
    background: var(--white);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: box-shadow var(--transition);
}

#masthead.scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.12);
}

.site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    gap: 20px;
}

/* Logo */
.site-branding {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}

.site-logo-emblem {
    width: 62px;
    height: 62px;
    background: linear-gradient(135deg, var(--emerald), var(--emerald-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 16px rgba(26, 107, 74, 0.3);
    overflow: hidden;
}

.site-logo-emblem img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.site-logo-placeholder {
    color: var(--gold);
    font-size: 1.8rem;
}

.site-title-wrap .site-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--emerald-dark);
    line-height: 1.1;
    letter-spacing: -0.01em;
    text-decoration: none;
}

.site-title-wrap .site-description {
    font-size: 0.72rem;
    color: var(--emerald-light);
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-top: 2px;
    font-family: var(--font-primary);
}

/* Main Navigation */
#site-navigation ul {
    display: flex;
    list-style: none;
    gap: 2px;
    align-items: center;
    padding: 0;
}

#site-navigation ul li a {
    text-decoration: none;
    color: var(--text-body);
    font-weight: 700;
    font-size: 0.88rem;
    padding: 8px 14px;
    border-radius: 8px;
    transition: all 0.2s;
    display: block;
}

#site-navigation ul li a:hover,
#site-navigation ul li.current-menu-item > a {
    color: var(--emerald);
    background: rgba(26, 107, 74, 0.06);
}

#site-navigation ul li.menu-item-has-children {
    position: relative;
}

#site-navigation ul li.menu-item-has-children > ul {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 220px;
    background: var(--white);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    flex-direction: column;
    padding: 8px;
    display: none;
    z-index: 200;
    border: 1px solid rgba(26, 107, 74, 0.1);
}

#site-navigation ul li.menu-item-has-children:hover > ul {
    display: flex;
}

#site-navigation ul li.menu-item-has-children > ul li a {
    border-radius: 8px;
    font-size: 0.85rem;
}

/* CTA Button in Nav */
.nav-cta-btn a {
    background: linear-gradient(135deg, var(--emerald), var(--emerald-light)) !important;
    color: var(--white) !important;
    padding: 9px 20px !important;
    border-radius: 50px !important;
    box-shadow: 0 4px 14px rgba(26, 107, 74, 0.3);
}

.nav-cta-btn a:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(26, 107, 74, 0.4) !important;
    background: linear-gradient(135deg, var(--emerald-dark), var(--emerald)) !important;
    color: var(--white) !important;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: 2px solid var(--emerald);
    border-radius: 8px;
    width: 42px;
    height: 42px;
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 8px;
}

.menu-toggle span {
    width: 22px;
    height: 2px;
    background: var(--emerald);
    border-radius: 2px;
    transition: all var(--transition);
    display: block;
}

@media (max-width: 900px) {
    .menu-toggle { display: flex; }
    
    #site-navigation ul {
        display: none;
        position: fixed;
        top: 0; left: 0; right: 0; bottom: 0;
        background: rgba(15, 69, 48, 0.97);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 8px;
        z-index: 999;
        padding: 40px;
    }

    #site-navigation ul.active { display: flex; }

    #site-navigation ul li a {
        color: var(--white);
        font-size: 1.3rem;
        padding: 14px 30px;
    }

    #site-navigation ul li a:hover {
        background: rgba(255, 255, 255, 0.1);
        color: var(--gold-light);
    }

    .nav-close {
        position: absolute;
        top: 24px; right: 24px;
        background: none;
        border: 2px solid rgba(255, 255, 255, 0.3);
        color: var(--white);
        width: 44px; height: 44px;
        border-radius: 50%;
        font-size: 1.4rem;
        cursor: pointer;
    }
}

/* ============================================================
   TICKER / RUNNING TEXT
   ============================================================ */
#ticker {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    padding: 10px 0;
    overflow: hidden;
}

.ticker-inner {
    display: flex;
    align-items: center;
}

.ticker-label {
    background: var(--emerald-dark);
    color: var(--gold-light);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 5px 18px;
    white-space: nowrap;
    flex-shrink: 0;
    margin-right: 20px;
    border-radius: 0 4px 4px 0;
}

.ticker-track {
    display: flex;
    gap: 60px;
    animation: tickerScroll 35s linear infinite;
    white-space: nowrap;
}

.ticker-item {
    color: var(--emerald-dark);
    font-size: 0.85rem;
    font-weight: 700;
    flex-shrink: 0;
}

@keyframes tickerScroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* ============================================================
   HERO SECTION
   ============================================================ */
#hero {
    min-height: 88vh;
    background: linear-gradient(135deg, var(--emerald-dark) 0%, var(--emerald) 60%, var(--emerald-light) 100%);
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

#hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none'%3E%3Cpath d='M40 0 L80 40 L40 80 L0 40Z' fill='rgba(255,255,255,0.03)'/%3E%3C/g%3E%3C/svg%3E");
    animation: bgSlide 20s linear infinite;
}

#hero::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0; right: 0;
    height: 100px;
    background: var(--cream);
    clip-path: ellipse(55% 100% at 50% 100%);
}

@keyframes bgSlide {
    from { background-position: 0 0; }
    to { background-position: 160px 160px; }
}

.hero-ornament {
    position: absolute;
    right: -80px;
    top: 50%;
    transform: translateY(-50%);
    width: 600px;
    height: 600px;
    border-radius: 50%;
    border: 1px solid rgba(200, 168, 75, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.hero-ornament::before {
    content: '';
    position: absolute;
    width: 500px; height: 500px;
    border-radius: 50%;
    border: 1px solid rgba(200, 168, 75, 0.15);
}

.hero-ornament::after {
    content: '';
    position: absolute;
    width: 400px; height: 400px;
    border-radius: 50%;
    border: 1px solid rgba(200, 168, 75, 0.1);
}

.hero-bismillah {
    font-family: var(--font-arabic);
    font-size: 3.5rem;
    color: rgba(200, 168, 75, 0.5);
    text-align: center;
    line-height: 1.4;
    padding: 0 40px;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 620px;
    animation: fadeInUp 0.8s ease;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(200, 168, 75, 0.2);
    border: 1px solid rgba(200, 168, 75, 0.4);
    color: var(--gold-light);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 7px 18px;
    border-radius: 50px;
    margin-bottom: 28px;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    font-weight: 900;
    color: var(--white);
    line-height: 1.15;
    margin-bottom: 12px;
}

.hero-title em {
    font-style: normal;
    color: var(--gold-light);
}

.hero-arabic-text {
    font-family: var(--font-arabic);
    font-size: 1.4rem;
    color: rgba(200, 168, 75, 0.9);
    margin-bottom: 20px;
    direction: rtl;
}

.hero-desc {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 36px;
}

.hero-btns {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-primary);
    font-weight: 800;
    font-size: 0.95rem;
    padding: 14px 32px;
    border-radius: 50px;
    text-decoration: none;
    transition: all var(--transition);
    cursor: pointer;
    border: none;
    letter-spacing: 0.02em;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--emerald-dark);
    box-shadow: 0 6px 24px rgba(200, 168, 75, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 32px rgba(200, 168, 75, 0.5);
    color: var(--emerald-dark);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--emerald), var(--emerald-light));
    color: var(--white);
    box-shadow: 0 6px 24px rgba(26, 107, 74, 0.3);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 32px rgba(26, 107, 74, 0.4);
    color: var(--white);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.4);
    color: var(--white);
    backdrop-filter: blur(4px);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.7);
    color: var(--white);
}

.btn-outline-green {
    background: transparent;
    border: 2px solid var(--emerald);
    color: var(--emerald);
}

.btn-outline-green:hover {
    background: var(--emerald);
    color: var(--white);
}

/* ============================================================
   STATS BAR
   ============================================================ */
#stats-bar {
    background: var(--white);
    box-shadow: var(--shadow);
    border-radius: 20px;
    padding: 30px 40px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin: -50px auto 60px;
    position: relative;
    z-index: 10;
    max-width: 900px;
}

.stat-item {
    text-align: center;
    padding: 10px;
    border-right: 1px solid rgba(26, 107, 74, 0.1);
}

.stat-item:last-child { border-right: none; }

.stat-num {
    font-family: var(--font-display);
    font-size: 2.4rem;
    font-weight: 900;
    color: var(--emerald);
    line-height: 1;
    margin-bottom: 6px;
}

.stat-num sup { font-size: 1.2rem; }

.stat-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-body);
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

@media (max-width: 768px) {
    #stats-bar {
        grid-template-columns: repeat(2, 1fr);
        margin: -30px 16px 40px;
    }
    .stat-item:nth-child(2) { border-right: none; }
    .stat-item:nth-child(3) { border-right: 1px solid rgba(26, 107, 74, 0.1); }
    .stat-item:last-child { border-right: none; }
}

/* ============================================================
   SECTION TITLES
   ============================================================ */
.section-header {
    text-align: center;
    margin-bottom: 52px;
}

.section-tag {
    display: inline-block;
    background: linear-gradient(135deg, rgba(26, 107, 74, 0.1), rgba(45, 155, 110, 0.1));
    color: var(--emerald);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    padding: 6px 18px;
    border-radius: 50px;
    border: 1px solid rgba(26, 107, 74, 0.2);
    margin-bottom: 14px;
}

.section-tag--light {
    background: rgba(200, 168, 75, 0.2);
    border-color: rgba(200, 168, 75, 0.4);
    color: var(--gold-light);
}

.section-header h2 span { color: var(--emerald); }
.section-header--dark h2 { color: var(--white); }
.section-header--dark h2 span { color: var(--gold-light); }

.title-divider {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--emerald), var(--gold));
    border-radius: 2px;
    margin: 14px auto 0;
}

.title-divider--gold {
    background: linear-gradient(90deg, var(--gold), rgba(200, 168, 75, 0.3));
}

/* ============================================================
   CARDS — General
   ============================================================ */
.card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.card-body { padding: 28px; }

/* ============================================================
   VISI MISI CARDS
   ============================================================ */
.vm-card {
    background: var(--white);
    border-radius: 20px;
    padding: 38px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
}

.vm-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 6px; height: 100%;
    background: linear-gradient(180deg, var(--emerald), var(--emerald-light));
    border-radius: 20px 0 0 20px;
}

.vm-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.vm-icon {
    width: 56px; height: 56px;
    background: linear-gradient(135deg, var(--emerald), var(--emerald-light));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 20px;
    box-shadow: 0 4px 14px rgba(26, 107, 74, 0.25);
}

/* ============================================================
   PROGRAM CARDS
   ============================================================ */
.program-card {
    background: var(--white);
    border-radius: 20px;
    padding: 32px 28px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: all 0.35s;
    position: relative;
    overflow: hidden;
}

.program-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--emerald), var(--gold));
    transform: scaleX(0);
    transition: transform 0.35s;
}

.program-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.program-card:hover::after { transform: scaleX(1); }

.program-icon {
    font-size: 3rem;
    margin-bottom: 16px;
    display: block;
}

/* ============================================================
   NEWS / POSTS
   ============================================================ */
.news-featured {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform var(--transition), box-shadow var(--transition);
    text-decoration: none;
    color: inherit;
    display: block;
}

.news-featured:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.news-thumb {
    height: 240px;
    background: linear-gradient(135deg, var(--emerald), var(--emerald-light));
    position: relative;
    overflow: hidden;
}

.news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.news-featured:hover .news-thumb img {
    transform: scale(1.05);
}

.news-category {
    position: absolute;
    top: 16px; left: 16px;
    background: var(--gold);
    color: var(--emerald-dark);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 50px;
}

.news-body { padding: 26px; }
.news-meta { font-size: 0.78rem; color: var(--emerald-light); font-weight: 700; margin-bottom: 10px; }
.news-body h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 10px;
}

.news-card-small {
    background: var(--white);
    border-radius: 14px;
    padding: 16px 20px;
    box-shadow: var(--shadow);
    display: flex;
    gap: 14px;
    align-items: flex-start;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s;
}

.news-card-small:hover { transform: translateX(4px); }

.news-card-small-img {
    width: 64px; height: 64px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--emerald-light), var(--gold));
}

.news-card-small-img img {
    width: 100%; height: 100%;
    object-fit: cover;
}

/* ============================================================
   ANNOUNCEMENT BOX
   ============================================================ */
.announce-box {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.announce-header {
    background: linear-gradient(135deg, var(--emerald), var(--emerald-light));
    color: var(--white);
    padding: 20px 28px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.announce-header h3 { font-family: var(--font-primary); font-size: 1rem; font-weight: 800; color: var(--white); }

.announce-item {
    padding: 16px 28px;
    border-bottom: 1px solid rgba(26, 107, 74, 0.06);
    display: flex;
    align-items: flex-start;
    gap: 14px;
    transition: background 0.2s;
}

.announce-item:hover { background: rgba(26, 107, 74, 0.03); }
.announce-item:last-child { border-bottom: none; }

.announce-date-chip {
    background: linear-gradient(135deg, var(--emerald), var(--emerald-light));
    color: var(--white);
    text-align: center;
    border-radius: 10px;
    padding: 8px 10px;
    min-width: 50px;
    flex-shrink: 0;
}

.announce-date-chip .day {
    font-size: 1.4rem;
    font-weight: 900;
    line-height: 1;
    font-family: var(--font-display);
}

.announce-date-chip .month {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    opacity: 0.9;
}

.announce-info h4 { font-size: 0.9rem; font-weight: 700; line-height: 1.4; margin-bottom: 4px; font-family: var(--font-primary); }
.announce-info p { font-size: 0.78rem; color: var(--text-body); opacity: 0.65; margin-bottom: 0; }

/* ============================================================
   GALLERY
   ============================================================ */
.gallery-masonry {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: 200px 200px;
    gap: 16px;
}

.gallery-masonry .gallery-item { border-radius: 16px; overflow: hidden; position: relative; }
.gallery-masonry .gallery-item:first-child { grid-column: 1 / 3; grid-row: 1 / 3; }

.gallery-item img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 69, 48, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 700;
    text-align: center;
    padding: 20px;
}

.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-item:hover img { transform: scale(1.05); }

@media (max-width: 768px) {
    .gallery-masonry {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }
    .gallery-masonry .gallery-item:first-child { grid-column: 1 / 3; grid-row: auto; height: 200px; }
    .gallery-item { height: 160px; }
}

/* ============================================================
   PRESTASI CARDS
   ============================================================ */
.prestasi-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    padding: 30px;
    backdrop-filter: blur(8px);
    transition: all var(--transition);
}

.prestasi-card:hover {
    background: rgba(255, 255, 255, 0.14);
    transform: translateY(-4px);
}

.prestasi-card .trophy { font-size: 2.5rem; margin-bottom: 14px; display: block; }
.prestasi-card h3 { color: var(--gold-light); font-size: 1.05rem; font-weight: 800; margin-bottom: 8px; font-family: var(--font-primary); }
.prestasi-card p { color: rgba(255, 255, 255, 0.75); font-size: 0.87rem; }

.year-badge {
    display: inline-block;
    margin-top: 12px;
    background: rgba(200, 168, 75, 0.2);
    color: var(--gold-light);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    padding: 4px 12px;
    border-radius: 50px;
    border: 1px solid rgba(200, 168, 75, 0.3);
}

/* ============================================================
   CONTACT / FORM
   ============================================================ */
.contact-form-wrap {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-lg);
}

.form-group { margin-bottom: 16px; }
.form-group label {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--emerald);
    margin-bottom: 7px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid rgba(26, 107, 74, 0.15);
    border-radius: 12px;
    font-family: var(--font-primary);
    font-size: 0.92rem;
    color: var(--text-dark);
    background: var(--cream);
    transition: border-color var(--transition), background var(--transition);
    outline: none;
    appearance: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--emerald-light);
    background: var(--white);
}

.form-group textarea { height: 120px; resize: vertical; }

.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

@media (max-width: 600px) {
    .form-row-2 { grid-template-columns: 1fr; }
}

.contact-detail {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 20px;
}

.contact-icon {
    width: 44px; height: 44px;
    background: linear-gradient(135deg, var(--emerald), var(--emerald-light));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.contact-text strong {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--emerald);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 3px;
}

.contact-text span { font-size: 0.9rem; }

/* ============================================================
   FOOTER
   ============================================================ */
#colophon {
    background: var(--emerald-dark);
    color: rgba(255, 255, 255, 0.7);
}

.footer-widgets {
    padding: 60px 0 0;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-brand p {
    font-size: 0.85rem;
    line-height: 1.7;
    margin-top: 14px;
    color: rgba(255, 255, 255, 0.55);
}

.footer-arabic {
    font-family: var(--font-arabic);
    font-size: 1.3rem;
    color: rgba(200, 168, 75, 0.7);
    direction: rtl;
    margin-top: 14px;
}

.footer-col h4 {
    color: var(--white);
    font-size: 0.88rem;
    font-weight: 800;
    font-family: var(--font-primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(200, 168, 75, 0.3);
}

.footer-col ul { list-style: none; padding: 0; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.88rem;
    transition: color 0.2s;
}
.footer-col ul li a:hover { color: var(--gold-light); }

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 22px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.4);
    flex-wrap: wrap;
    gap: 10px;
}

.footer-bottom a { color: var(--gold-light); text-decoration: none; }

@media (max-width: 900px) {
    .footer-widgets { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
    .footer-widgets { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; text-align: center; }
}

/* ============================================================
   WORDPRESS DEFAULT ELEMENTS
   ============================================================ */

/* Alignments */
.alignleft { float: left; margin-right: 1.5rem; margin-bottom: 1rem; }
.alignright { float: right; margin-left: 1.5rem; margin-bottom: 1rem; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; margin-bottom: 1rem; }
.alignnone { margin-bottom: 1rem; }

/* WordPress Captions */
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 0.85rem; color: var(--text-body); opacity: 0.7; margin-top: 0.5rem; font-style: italic; }

/* Galleries */
.gallery { margin: 1.5rem 0; }
.gallery-item { display: inline-block; padding: 0.5rem; }
.gallery-caption { font-size: 0.82rem; }

/* Pagination */
.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    color: var(--text-body);
    transition: all 0.2s;
}

.page-numbers.current,
.page-numbers:hover {
    background: var(--emerald);
    color: var(--white);
}

.pagination { margin: 40px 0; text-align: center; }

/* Comments */
.comment-list { list-style: none; padding: 0; }
.comment { padding: 20px 0; border-bottom: 1px solid rgba(26, 107, 74, 0.08); }
.comment-author img { border-radius: 50%; }
.comment-metadata { font-size: 0.82rem; color: var(--text-body); opacity: 0.6; margin-bottom: 10px; }
.comment-content p { font-size: 0.95rem; }
.reply a { font-size: 0.82rem; color: var(--emerald); font-weight: 700; }

/* Comment Form */
#respond { margin-top: 40px; }
#respond h3 { margin-bottom: 24px; }

/* Search Form */
.search-form { display: flex; gap: 8px; }
.search-field {
    flex: 1;
    padding: 10px 16px;
    border: 2px solid rgba(26, 107, 74, 0.2);
    border-radius: 50px;
    font-family: var(--font-primary);
    outline: none;
}
.search-submit {
    background: var(--emerald);
    color: var(--white);
    border: none;
    border-radius: 50px;
    padding: 10px 20px;
    font-family: var(--font-primary);
    font-weight: 700;
    cursor: pointer;
    transition: background var(--transition);
}
.search-submit:hover { background: var(--emerald-light); }

/* Widgets */
.widget { margin-bottom: 32px; }
.widget-title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(26, 107, 74, 0.15);
}

/* Sidebar */
.sidebar .widget { background: var(--white); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.text-center { text-align: center; }
.text-emerald { color: var(--emerald); }
.text-gold { color: var(--gold); }
.text-white { color: var(--white); }
.text-muted { color: var(--text-body); opacity: 0.65; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-center { justify-content: center; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.animate-fadeInUp { animation: fadeInUp 0.8s ease both; }
.animate-fadeInDown { animation: fadeInDown 0.8s ease both; }
.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s; }

/* ============================================================
   SKIP LINK (Accessibility)
   ============================================================ */
.skip-link {
    position: absolute;
    top: -100%;
    left: 0;
    padding: 12px 20px;
    background: var(--emerald);
    color: var(--white);
    font-weight: 700;
    z-index: 9999;
    border-radius: 0 0 8px 0;
}

.skip-link:focus { top: 0; }

/* Screen reader only */
.screen-reader-text {
    position: absolute;
    width: 1px; height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ============================================================
   PRINT STYLES
   ============================================================ */
@media print {
    #topbar, #masthead, #ticker, #hero, footer { display: none; }
    body { background: white; color: black; }
    a::after { content: " (" attr(href) ")"; font-size: 0.8em; }
}
