/*
Theme Name: SD Kita
Theme URI: https://sdkita.sch.id
Author: SD Kita Developer
Author URI: https://sdkita.sch.id
Description: Tema resmi website SD Kita - Sekolah Dasar unggulan dengan pendidikan berkarakter dan berprestasi.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sdkita
Tags: education, school, responsive, custom-colors, custom-logo, featured-images, two-columns
*/

/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary:    #1a56db;
    --primary-dark: #1e429f;
    --secondary:  #16a34a;
    --accent:     #f59e0b;
    --dark:       #1e293b;
    --gray:       #64748b;
    --light-gray: #f1f5f9;
    --white:      #ffffff;
    --shadow:     0 4px 24px rgba(30,41,59,.10);
    --radius:     12px;
    --transition: .3s ease;
    --font-sans:  'Poppins', sans-serif;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.7;
    color: var(--dark);
    background: var(--white);
}

a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 12px;
}

.section-subtitle {
    color: var(--gray);
    font-size: 1.05rem;
    margin-bottom: 48px;
}

.section-header {
    text-align: center;
    margin-bottom: 12px;
}

.badge {
    display: inline-block;
    background: #eff6ff;
    color: var(--primary);
    font-size: .8rem;
    font-weight: 600;
    padding: 4px 14px;
    border-radius: 999px;
    margin-bottom: 12px;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: .95rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}
.btn-primary:hover { background: var(--primary-dark); color: var(--white); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(26,86,219,.3); }

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}
.btn-outline:hover { background: var(--white); color: var(--primary); }

.btn-secondary {
    background: var(--secondary);
    color: var(--white);
}
.btn-secondary:hover { background: #15803d; color: var(--white); transform: translateY(-2px); }

/* =============================================
   TOPBAR
   ============================================= */
.topbar {
    background: var(--primary-dark);
    color: rgba(255,255,255,.85);
    font-size: .82rem;
    padding: 8px 0;
}
.topbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.topbar a { color: rgba(255,255,255,.85); }
.topbar a:hover { color: #fff; }
.topbar-left, .topbar-right { display: flex; gap: 20px; align-items: center; }
.topbar-item { display: flex; align-items: center; gap: 6px; }

/* =============================================
   HEADER / NAVBAR
   ============================================= */
.site-header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    gap: 24px;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.site-logo {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
}

.logo-placeholder {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
    font-weight: 700;
    flex-shrink: 0;
}

.site-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.2;
}

.site-tagline {
    font-size: .75rem;
    color: var(--gray);
}

.main-nav ul {
    display: flex;
    gap: 4px;
    align-items: center;
}

.main-nav a {
    display: block;
    padding: 8px 16px;
    color: var(--dark);
    font-weight: 500;
    border-radius: 6px;
    font-size: .93rem;
}

.main-nav a:hover,
.main-nav .current-menu-item > a {
    background: #eff6ff;
    color: var(--primary);
}

.nav-btn {
    background: var(--primary);
    color: #fff !important;
    padding: 10px 20px !important;
    border-radius: 8px !important;
}
.nav-btn:hover { background: var(--primary-dark) !important; color: #fff !important; }
.main-nav .current-menu-item > a.nav-btn {
    background: var(--primary-dark) !important;
    color: #fff !important;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    flex-direction: column;
    gap: 5px;
}
.menu-toggle span {
    display: block;
    width: 24px;
    height: 2.5px;
    background: var(--dark);
    border-radius: 2px;
    transition: var(--transition);
}

/* =============================================
   HERO SECTION
   ============================================= */
.hero {
    background: linear-gradient(135deg, #1e3a8a 0%, #1a56db 50%, #0891b2 100%);
    color: var(--white);
    padding: 100px 0 120px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -120px;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: rgba(255,255,255,.05);
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -120px;
    left: -80px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(255,255,255,.04);
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,.2);
    color: #fff;
    font-size: .82rem;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 999px;
    margin-bottom: 20px;
    letter-spacing: .05em;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
}

.hero-title span { color: var(--accent); }

.hero-desc {
    font-size: 1.1rem;
    opacity: .9;
    margin-bottom: 36px;
    line-height: 1.7;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-stats {
    display: flex;
    gap: 32px;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid rgba(255,255,255,.2);
}

.hero-stat-number {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--accent);
    display: block;
}

.hero-stat-label {
    font-size: .82rem;
    opacity: .8;
}

.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-img-main {
    width: 100%;
    max-width: 480px;
    border-radius: 20px;
    box-shadow: 0 32px 64px rgba(0,0,0,.3);
}

.hero-img-placeholder {
    width: 100%;
    max-width: 480px;
    height: 380px;
    border-radius: 20px;
    background: rgba(255,255,255,.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    color: rgba(255,255,255,.7);
    font-size: 4rem;
}

.hero-img-placeholder p {
    font-size: 1rem;
    font-weight: 600;
}

/* =============================================
   ANNOUNCEMENT TICKER
   ============================================= */
.announcement-bar {
    background: var(--accent);
    color: var(--dark);
    padding: 12px 0;
    overflow: hidden;
}

.announcement-bar .container {
    display: flex;
    align-items: center;
    gap: 16px;
}

.announce-label {
    font-weight: 700;
    font-size: .85rem;
    white-space: nowrap;
    background: var(--dark);
    color: #fff;
    padding: 4px 12px;
    border-radius: 4px;
    flex-shrink: 0;
}

.announce-text {
    font-size: .9rem;
    font-weight: 500;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* =============================================
   FEATURES STRIP
   ============================================= */
.features-strip {
    background: var(--light-gray);
    padding: 48px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 28px 24px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(30,41,59,.14);
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin: 0 auto 16px;
}

.feature-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.feature-card p { font-size: .87rem; color: var(--gray); }

/* =============================================
   ABOUT SECTION
   ============================================= */
.about-section { padding: 100px 0; }

.about-section .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 72px;
    align-items: center;
}

.about-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
}

.about-img-main {
    width: 100%;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.about-img-placeholder {
    width: 100%;
    height: 420px;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    color: var(--primary);
    font-size: 5rem;
    border: 3px dashed #bfdbfe;
}

.about-badge-float {
    position: absolute;
    bottom: 24px;
    right: -20px;
    background: var(--white);
    border-radius: var(--radius);
    padding: 16px 20px;
    box-shadow: var(--shadow);
    text-align: center;
    min-width: 130px;
}

.about-badge-float .big-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.about-badge-float .small-text {
    font-size: .78rem;
    color: var(--gray);
    margin-top: 4px;
}

.about-content .badge { margin-bottom: 16px; }
.about-content .section-title { margin-bottom: 16px; }

.about-desc { color: var(--gray); margin-bottom: 28px; font-size: .95rem; }

.visi-misi-box {
    background: var(--light-gray);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 32px;
}

.visi-misi-box h4 {
    font-size: .85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--primary);
    margin-bottom: 12px;
}

.visi-misi-box p, .visi-misi-box li {
    font-size: .9rem;
    color: var(--gray);
    line-height: 1.7;
}

.visi-misi-box ul { margin-top: 8px; }
.visi-misi-box li { padding-left: 20px; position: relative; margin-bottom: 6px; }
.visi-misi-box li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary);
    font-weight: 700;
}

/* =============================================
   PROGRAMS SECTION
   ============================================= */
.programs-section {
    background: var(--light-gray);
    padding: 100px 0;
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.program-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.program-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 48px rgba(30,41,59,.16);
}

.program-card-header {
    padding: 28px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.program-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.program-card h3 { font-size: 1.05rem; font-weight: 700; }
.program-card p { font-size: .85rem; color: var(--gray); margin-top: 4px; }

.program-card-body { padding: 0 28px 28px; }

.program-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: .88rem;
    color: var(--gray);
    padding: 8px 0;
    border-bottom: 1px solid #f1f5f9;
}

.program-features li:last-child { border-bottom: none; }

.program-features .check {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #dcfce7;
    color: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .75rem;
    flex-shrink: 0;
}

/* =============================================
   NEWS SECTION
   ============================================= */
.news-section { padding: 100px 0; }

.news-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 28px;
}

.news-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.news-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(30,41,59,.14); }

.news-card-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.news-card-img-placeholder {
    width: 100%;
    height: 220px;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--primary);
}

.news-card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }

.news-meta {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 12px;
}

.news-category {
    background: #eff6ff;
    color: var(--primary);
    font-size: .75rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 999px;
}

.news-date {
    font-size: .8rem;
    color: var(--gray);
}

.news-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.4;
}

.news-card h3 a { color: var(--dark); }
.news-card h3 a:hover { color: var(--primary); }

.news-card p { font-size: .87rem; color: var(--gray); flex: 1; }

.news-read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
    font-size: .88rem;
    font-weight: 600;
    margin-top: 16px;
}

.news-sidebar { display: flex; flex-direction: column; gap: 20px; }

.news-small {
    display: flex;
    gap: 16px;
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.news-small:hover { transform: translateX(4px); }

.news-small-img {
    width: 90px;
    height: 90px;
    object-fit: cover;
    flex-shrink: 0;
}

.news-small-img-placeholder {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--primary);
    flex-shrink: 0;
}

.news-small-body { padding: 14px 14px 14px 0; }
.news-small-body .news-date { font-size: .75rem; color: var(--gray); }
.news-small-body h4 { font-size: .88rem; font-weight: 600; margin-top: 4px; color: var(--dark); }
.news-small-body h4 a { color: inherit; }
.news-small-body h4 a:hover { color: var(--primary); }

.section-view-all {
    display: flex;
    justify-content: center;
    margin-top: 48px;
}

/* =============================================
   GALLERY SECTION
   ============================================= */
.gallery-section {
    background: var(--light-gray);
    padding: 100px 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: 200px 200px;
    gap: 16px;
}

.gallery-item {
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    position: relative;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    transition: var(--transition);
}

.gallery-item:hover img,
.gallery-item:hover .gallery-placeholder { transform: scale(1.08); }

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26,86,219,.7), transparent);
    opacity: 0;
    transition: var(--transition);
    display: flex;
    align-items: flex-end;
    padding: 16px;
}

.gallery-item:hover .gallery-overlay { opacity: 1; }

.gallery-overlay span {
    color: #fff;
    font-size: .85rem;
    font-weight: 600;
}

.gallery-item:nth-child(1) { grid-row: span 2; }
.gallery-item:nth-child(4) { grid-row: span 2; }

/* =============================================
   CONTACT SECTION
   ============================================= */
.contact-section { padding: 100px 0; }

.contact-section .container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 72px;
    align-items: start;
}

.contact-info h2 { font-size: 2rem; font-weight: 700; margin-bottom: 16px; }
.contact-info p { color: var(--gray); margin-bottom: 36px; }

.contact-items { display: flex; flex-direction: column; gap: 20px; }

.contact-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.contact-item-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #eff6ff;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.contact-item-body h4 { font-size: .9rem; font-weight: 700; margin-bottom: 4px; }
.contact-item-body p { font-size: .87rem; color: var(--gray); }

.social-links { display: flex; gap: 12px; margin-top: 28px; }

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: var(--transition);
    text-decoration: none;
}

.social-link:hover { transform: translateY(-3px); }

/* Contact Form */
.contact-form-box {
    background: var(--white);
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow);
}

.contact-form-box h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 24px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: .88rem; font-weight: 600; margin-bottom: 8px; color: var(--dark); }

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    font-family: var(--font-sans);
    font-size: .93rem;
    color: var(--dark);
    transition: var(--transition);
    background: #fafafa;
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(26,86,219,.1);
}

.form-group textarea { resize: vertical; min-height: 120px; }

/* =============================================
   STATS SECTION
   ============================================= */
.stats-section {
    background: linear-gradient(135deg, #1e3a8a, #1a56db);
    padding: 80px 0;
    color: var(--white);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    text-align: center;
}

.stat-item { padding: 24px; }
.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 8px;
}
.stat-label { font-size: .9rem; opacity: .85; }

/* =============================================
   TEACHERS SECTION
   ============================================= */
.teachers-section { padding: 100px 0; background: var(--light-gray); }

.teachers-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.teacher-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.teacher-card:hover { transform: translateY(-8px); box-shadow: 0 20px 48px rgba(30,41,59,.16); }

.teacher-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: top;
}

.teacher-img-placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--primary);
}

.teacher-body { padding: 20px; }
.teacher-body h3 { font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
.teacher-body .role { font-size: .82rem; color: var(--primary); font-weight: 600; margin-bottom: 8px; }
.teacher-body p { font-size: .8rem; color: var(--gray); }

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
    background: var(--dark);
    color: rgba(255,255,255,.75);
    padding: 80px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 60px;
}

.footer-brand .site-name-footer {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
}

.footer-brand p {
    font-size: .87rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.footer-col h4 {
    font-size: .9rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary);
    display: inline-block;
}

.footer-links li { margin-bottom: 10px; }
.footer-links a {
    font-size: .87rem;
    color: rgba(255,255,255,.7);
    display: flex;
    align-items: center;
    gap: 8px;
}
.footer-links a:hover { color: #fff; }
.footer-links a::before { content: '›'; font-size: 1.1rem; color: var(--primary); }

.footer-contact-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 16px;
    font-size: .87rem;
    white-space: nowrap;
}

.footer-contact-icon { font-size: 1rem; margin-top: 2px; color: var(--primary); flex-shrink: 0; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.1);
    padding: 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: .82rem;
    flex-wrap: wrap;
    gap: 12px;
}

/* =============================================
   BLOG / ARCHIVE PAGE
   ============================================= */
.page-banner {
    background: linear-gradient(135deg, #1e3a8a, #1a56db);
    color: #fff;
    padding: 64px 0;
    text-align: center;
}

.page-banner h1 { font-size: 2.2rem; font-weight: 800; }
.page-banner p { opacity: .8; margin-top: 8px; }

.blog-layout {
    padding: 80px 0;
}

.blog-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 48px;
}

.post-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: 32px;
    transition: var(--transition);
}

.post-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(30,41,59,.14); }

.post-thumbnail { width: 100%; height: 260px; object-fit: cover; }

.post-thumbnail-placeholder {
    width: 100%;
    height: 260px;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--primary);
}

.post-body { padding: 28px; }
.post-meta { display: flex; gap: 16px; align-items: center; margin-bottom: 14px; font-size: .8rem; color: var(--gray); flex-wrap: wrap; }
.post-category { background: #eff6ff; color: var(--primary); font-weight: 600; padding: 3px 10px; border-radius: 999px; font-size: .78rem; }

.post-body h2 { font-size: 1.3rem; font-weight: 700; margin-bottom: 12px; line-height: 1.4; }
.post-body h2 a { color: var(--dark); }
.post-body h2 a:hover { color: var(--primary); }
.post-body p { font-size: .9rem; color: var(--gray); margin-bottom: 20px; }

/* Sidebar */
.sidebar { position: sticky; top: 100px; }

.widget {
    background: var(--white);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    margin-bottom: 24px;
}

.widget-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary);
    display: inline-block;
}

.sidebar-search { display: flex; gap: 8px; }
.sidebar-search input {
    flex: 1;
    padding: 10px 14px;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    font-family: var(--font-sans);
    font-size: .9rem;
    outline: none;
}
.sidebar-search input:focus { border-color: var(--primary); }
.sidebar-search button {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: .9rem;
}

/* Single Post */
.single-post-layout { padding: 80px 0; }
.single-post-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 48px;
}
.post-content h1 { font-size: 2rem; font-weight: 800; line-height: 1.3; margin-bottom: 20px; }
.post-content img { border-radius: var(--radius); margin: 24px 0; }
.post-content p { color: var(--gray); margin-bottom: 16px; font-size: .95rem; line-height: 1.8; }
.post-content h2, .post-content h3 { font-weight: 700; margin: 28px 0 12px; }

/* Page */
.page-layout { padding: 80px 0; }
.page-content { max-width: 800px; margin: 0 auto; }
.page-content h1 { font-size: 2.2rem; font-weight: 800; margin-bottom: 24px; }
.page-content p { font-size: .95rem; color: var(--gray); line-height: 1.8; margin-bottom: 16px; }

/* =============================================
   PAGINATION
   ============================================= */
.pagination {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 48px;
}

.pagination a, .pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    font-size: .9rem;
    font-weight: 600;
    border: 1.5px solid #e2e8f0;
    background: var(--white);
    color: var(--dark);
    transition: var(--transition);
}

.pagination a:hover, .pagination .current {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
    .hero .container { grid-template-columns: 1fr; text-align: center; }
    .hero-actions { justify-content: center; }
    .hero-stats { justify-content: center; }
    .hero-image { display: none; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .about-section .container { grid-template-columns: 1fr; }
    .about-image { display: none; }
    .programs-grid { grid-template-columns: repeat(2, 1fr); }
    .news-grid { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-template-rows: auto; }
    .gallery-item:nth-child(1), .gallery-item:nth-child(4) { grid-row: auto; }
    .contact-section .container { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .teachers-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .blog-grid, .single-post-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .topbar { display: none; }
    .menu-toggle { display: flex; }
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        box-shadow: 0 16px 40px rgba(30,41,59,.14);
        padding: 16px;
    }
    .main-nav.open { display: block; }
    .main-nav ul { flex-direction: column; gap: 4px; }
    .main-nav a { padding: 12px 16px; border-radius: 8px; }
    .site-header { position: relative; }
    .hero { padding: 72px 0; }
    .hero-title { font-size: 2rem; }
    .features-grid { grid-template-columns: 1fr; }
    .programs-grid { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .teachers-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .section-title { font-size: 1.6rem; }
    .hero-title { font-size: 1.7rem; }
    .stat-number { font-size: 2.2rem; }
    .gallery-grid { grid-template-columns: 1fr; }
    .teachers-grid { grid-template-columns: 1fr; }
    .hero-stats { flex-direction: column; gap: 16px; }
}
