/*
Theme Name: Sekolah Kita
Theme URI: https://github.com/syamirfandi/sekolah-kita
Author: Syam Irfandi
Author URI: https://syamirfandi.com
Description: Tema WordPress modern, elegan, responsif, dan siap pakai khusus untuk website sekolah di Indonesia (SD, SMP, SMA, SMK).
Version: 1.6.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sekolah-kita
Tags: custom-colors, custom-menu, custom-logo, featured-images, translation-ready, widget-areas, two-columns, right-sidebar
*/

:root {
    --primary-color: #004085;
    --secondary-color: #1e293b;
    --accent-color: #ffc107;
    --home-bg-color: #f9fbfd;
    --header-bg: #ffffff;
    --primary-nav-bg: #004085;
    --primary-nav-text: #ffffff;
    --primary-nav-hover: #002752;
    --secondary-nav-bg: #1e293b;
    --secondary-nav-text: #ffffff;
    --secondary-nav-hover: #ffc107;
    --footer-bg: #0f172a;
    --footer-text: #cbd5e1;
    --rt-bg: #ffc107;
    --rt-text: #212529;
    --widget-bg: #ffffff;
    --widget-text: #334155;
    --widget-title-color: #0f172a;
    --widget-border-color: #004085;
    --footer-widget-bg: transparent;
    --footer-widget-text: #cbd5e1;
    --footer-widget-title: #ffffff;
}

* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #333333;
    background-color: #f9fbfd;
    line-height: 1.6;
}
body.home, body.front-page {
    background-color: var(--home-bg-color);
}

a { color: var(--primary-color); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Width Variations: Medium, Wide, Full Wide */
.sk-width-medium {
    max-width: 1140px;
    margin-left: auto;
    margin-right: auto;
}
.sk-width-wide {
    max-width: 1360px;
    margin-left: auto;
    margin-right: auto;
}
.sk-width-full {
    max-width: 100%;
    width: 100%;
}

/* Secondary Top Navigation & Date/Time */
.secondary-nav-bar {
    background-color: var(--secondary-nav-bg);
    color: var(--secondary-nav-text);
    font-size: 13px;
    padding: 7px 0;
}
.secondary-nav-inner {
    display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
}
.secondary-left-group {
    display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
}
.sk-top-date {
    font-weight: 500;
    color: var(--accent-color);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.secondary-nav-bar ul {
    list-style: none; margin: 0; padding: 0; display: flex; gap: 18px; flex-wrap: wrap;
}
.secondary-nav-bar li { position: relative; }
.secondary-nav-bar a { color: var(--secondary-nav-text); text-decoration: none; transition: color 0.2s; }
.secondary-nav-bar a:hover { color: var(--secondary-nav-hover); }
.secondary-nav-bar ul ul {
    position: absolute; top: 100%; left: 0; background: var(--secondary-nav-bg); min-width: 180px;
    display: none; flex-direction: column; padding: 8px 0; z-index: 100; box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}
.secondary-nav-bar li:hover > ul { display: flex; }
.secondary-nav-bar ul ul a { padding: 6px 15px; display: block; }

.header-social-links { display: flex; gap: 12px; align-items: center; }
.header-social-links a { color: var(--secondary-nav-text); font-size: 13px; font-weight: 500; }

/* Top Header */
.top-header {
    background-color: var(--header-bg);
    padding: 20px 0;
    border-bottom: 1px solid #e2e8f0;
}
.top-header-inner {
    display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px;
}
.school-brand { display: flex; align-items: center; gap: 15px; }
.school-brand img.custom-logo { max-height: 75px; width: auto; }
.school-titles h1 { font-size: 24px; margin: 0 0 4px 0; color: #0f172a; line-height: 1.2; }
.school-titles h1 a { color: inherit; text-decoration: none; }
.school-titles p { font-size: 14px; margin: 0; color: #64748b; }
.school-accred-badge {
    display: inline-block; background: var(--accent-color); color: #0f172a;
    font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 4px; margin-top: 4px;
}

.school-contact-info {
    display: flex; gap: 20px; font-size: 13px; color: #475569; flex-wrap: wrap;
}
.school-contact-item { display: flex; flex-direction: column; }
.school-contact-item strong { color: #0f172a; font-size: 12px; text-transform: uppercase; }

/* Primary Navigation + Top Search */
.primary-nav-bar {
    background-color: var(--primary-nav-bg);
    color: var(--primary-nav-text);
    box-shadow: 0 2px 4px rgba(0,0,0,0.06);
    position: relative;
}
.primary-nav-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}
.mobile-menu-toggle {
    display: none; background: transparent; border: 1px solid rgba(255,255,255,0.3);
    color: var(--primary-nav-text); padding: 10px 15px; margin: 8px 0; border-radius: 4px; cursor: pointer; font-weight: 600;
}
.primary-nav-bar ul {
    list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap;
}
.primary-nav-bar li { position: relative; }
.primary-nav-bar a {
    display: block; padding: 14px 18px; color: var(--primary-nav-text); font-weight: 500; text-decoration: none; transition: background 0.2s;
}
.primary-nav-bar a:hover, .primary-nav-bar .current-menu-item > a {
    background-color: var(--primary-nav-hover);
}
.primary-nav-bar ul ul {
    position: absolute; top: 100%; left: 0; background: var(--primary-nav-bg); min-width: 220px;
    display: none; box-shadow: 0 6px 12px rgba(0,0,0,0.15); z-index: 99; flex-direction: column;
}
.primary-nav-bar li:hover > ul { display: flex; }
.primary-nav-bar ul ul li { width: 100%; border-bottom: 1px solid rgba(255,255,255,0.08); }

/* Top Menu Search Form */
.top-menu-search-form {
    display: flex;
    align-items: center;
    padding: 6px 0;
}
.top-menu-search-form input[type="search"] {
    padding: 6px 12px;
    border: none;
    border-radius: 4px 0 0 4px;
    font-size: 13px;
    outline: none;
    width: 180px;
    background: rgba(255,255,255,0.95);
    color: #0f172a;
}
.top-menu-search-form button {
    padding: 6px 12px;
    border: none;
    border-radius: 0 4px 4px 0;
    background: var(--accent-color);
    color: #0f172a;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
}
.top-menu-search-form button:hover {
    opacity: 0.9;
}

/* Running Text */
.running-text-bar {
    background-color: var(--rt-bg);
    color: var(--rt-text);
    padding: 10px 0;
    overflow: hidden;
    font-weight: 600;
    border-bottom: 1px solid rgba(0,0,0,0.08);
}
.rt-container {
    display: flex; align-items: center; gap: 15px; overflow: hidden;
}
.rt-label {
    background: #0f172a; color: #ffffff; padding: 4px 12px; border-radius: 4px;
    font-size: 12px; text-transform: uppercase; white-space: nowrap; flex-shrink: 0;
}
.rt-marquee-wrapper {
    flex: 1; overflow: hidden; white-space: nowrap; position: relative;
}
.rt-marquee-track {
    display: inline-block; white-space: nowrap; animation: rtScrollLeft 25s linear infinite;
}
.rt-marquee-track.dir-right {
    animation: rtScrollRight 25s linear infinite;
}
.rt-marquee-wrapper:hover .rt-marquee-track {
    animation-play-state: paused;
}
.rt-item { display: inline-block; margin-right: 40px; }
.rt-item a { color: inherit; text-decoration: underline; }

@keyframes rtScrollLeft {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}
@keyframes rtScrollRight {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}
@media (prefers-reduced-motion: reduce) {
    .rt-marquee-track { animation: none; white-space: normal; }
}

/* Hero Slider */
.hero-slider-wrapper {
    position: relative; overflow: hidden; background-color: #0f172a;
}
.hero-slide {
    position: relative; background-size: cover; background-position: center;
    color: #ffffff; display: none; align-items: center;
}
.hero-slide.active { display: flex; }
.hero-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1;
}
.hero-content {
    position: relative; z-index: 2; max-width: 750px; padding: 40px 0;
}
.hero-content h2 { font-size: 38px; margin: 0 0 15px 0; line-height: 1.25; color: #ffffff; }
.hero-content p { font-size: 17px; margin-bottom: 25px; opacity: 0.95; color: #f1f5f9; }
.btn-primary-custom {
    display: inline-block; background-color: var(--primary-color); color: #ffffff;
    padding: 12px 26px; border-radius: 5px; font-weight: 600; text-decoration: none; transition: opacity 0.2s;
}
.btn-primary-custom:hover { opacity: 0.9; color: #ffffff; text-decoration: none; }
.slider-nav-btn {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
    background: rgba(0,0,0,0.45); color: #fff; border: none; padding: 14px 18px; cursor: pointer; font-size: 18px; border-radius: 4px;
}
.slider-nav-btn:hover { background: rgba(0,0,0,0.75); }
.slider-prev { left: 15px; }
.slider-next { right: 15px; }

/* School Dynamic Statistics Divider Box (6 Boxes Proportional & Animated) */
.school-stats-divider {
    position: relative;
    z-index: 10;
    margin-top: -42px;
    margin-bottom: 24px;
}
.school-stats-box {
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.11);
    border-top: 4px solid var(--accent-color);
    padding: 24px 22px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(165px, 1fr));
    gap: 16px;
    text-align: center;
}
.stat-item {
    padding: 16px 12px;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease, background-color 0.3s ease, border-color 0.3s ease;
    cursor: default;
    position: relative;
    overflow: hidden;
}
.stat-item::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transition: transform 0.35s ease;
}
.stat-item:hover {
    transform: translateY(-7px) scale(1.03);
    box-shadow: 0 12px 24px rgba(0, 64, 133, 0.14);
    background-color: #ffffff;
    border-color: var(--primary-color);
}
.stat-item:hover::after {
    transform: scaleX(1);
}
.stat-number {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1.15;
    margin-bottom: 6px;
    font-variant-numeric: tabular-nums;
}
.stat-label {
    font-size: 13px;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

/* Promotional / Info Banners */
.sk-banner-wrapper {
    padding: 25px 0;
}
.sk-banner-inner {
    display: block;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0,0,0,0.06);
}
.sk-banner-inner img {
    width: 100%;
    height: auto;
    display: block;
}

/* Floating Banners (Left & Right) */
.sk-floating-banner {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9999;
    max-width: 165px;
    border-radius: 10px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.25);
    background: #ffffff;
    padding: 4px;
    transition: opacity 0.25s ease, transform 0.25s ease;
}
.sk-floating-banner.pos-left { left: 12px; }
.sk-floating-banner.pos-right { right: 12px; }
.sk-floating-banner img {
    border-radius: 7px;
    width: 100%;
    height: auto;
    display: block;
}
.sk-floating-close {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 2px solid #ffffff;
    background: #ef4444;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 8px rgba(0,0,0,0.25);
    padding: 0;
}
.sk-floating-close:hover {
    background: #dc2626;
    transform: scale(1.08);
}

/* Headmaster Welcome */
.headmaster-section { padding: 55px 0; }
.headmaster-grid {
    display: grid; grid-template-columns: 280px 1fr; gap: 40px; align-items: center;
}
.headmaster-grid.pos-right { grid-template-columns: 1fr 280px; }
.headmaster-grid.pos-right .headmaster-img { order: 2; }
.headmaster-img img {
    border-radius: 10px; box-shadow: 0 6px 18px rgba(0,0,0,0.08); width: 100%; object-fit: cover;
}
.headmaster-info h2 { font-size: 28px; margin: 0 0 8px 0; }
.headmaster-info .hm-name { font-weight: 700; font-size: 18px; color: var(--primary-color); }
.headmaster-info .hm-title { font-size: 14px; opacity: 0.8; margin-bottom: 18px; }
.headmaster-info .hm-message { font-size: 16px; line-height: 1.75; margin-bottom: 20px; }
.hm-signature img { max-height: 70px; width: auto; margin-bottom: 15px; }

/* Homepage Info Sections */
.info-section { padding: 55px 0; border-bottom: 1px solid rgba(0,0,0,0.06); }
.section-header-flex {
    display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 30px; flex-wrap: wrap; gap: 15px;
}
.section-header-flex h2 { font-size: 28px; margin: 0 0 6px 0; }
.section-header-flex p { margin: 0; opacity: 0.85; font-size: 15px; }
.btn-lihat-semua {
    font-size: 14px; font-weight: 600; color: var(--primary-color); text-decoration: none;
    padding: 8px 16px; border: 1.5px solid var(--primary-color); border-radius: 5px; transition: all 0.2s; white-space: nowrap;
}
.btn-lihat-semua:hover { background-color: var(--primary-color); color: #ffffff; text-decoration: none; }

/* Layouts: Grid, Card, List, Featured */
.layout-grid, .layout-card {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 25px;
}
.layout-list {
    display: flex; flex-direction: column; gap: 18px;
}
.layout-list .post-card {
    flex-direction: row; align-items: center;
}
.layout-list .post-card img { width: 220px; height: 150px; flex-shrink: 0; }

.layout-featured {
    display: grid; grid-template-columns: 1.2fr 1fr; gap: 25px;
}
.layout-featured .featured-list-col { display: flex; flex-direction: column; gap: 15px; }
.layout-featured .featured-list-col .post-card { flex-direction: row; }
.layout-featured .featured-list-col .post-card img { width: 130px; height: 100px; flex-shrink: 0; }

.post-card {
    background: #ffffff; border: 1px solid #e2e8f0; border-radius: 8px; overflow: hidden;
    display: flex; flex-direction: column; transition: transform 0.2s, box-shadow 0.2s; color: #333333;
}
.layout-grid .post-card { background: transparent; border: none; border-radius: 0; }
.layout-grid .post-card-body { padding: 14px 0; }
.post-card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,0.06); }
.layout-grid .post-card:hover { box-shadow: none; }
.post-card img { width: 100%; height: 190px; object-fit: cover; }
.post-card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.post-card-body h4 { font-size: 18px; margin: 6px 0 10px 0; line-height: 1.35; }
.post-card-body h4 a { color: #0f172a; text-decoration: none; }
.post-card-body h4 a:hover { color: var(--primary-color); }
.post-card-body p { color: #64748b; font-size: 14px; margin: 0 0 15px 0; flex: 1; }
.post-meta { font-size: 12px; color: #94a3b8; }

/* Box Slider Layout (Colorful, Customizable Gradient, Auto-Sliding) */
.sk-box-slider-container {
    position: relative;
    border-radius: 16px;
    padding: 28px;
    overflow: hidden;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.14);
}
.sk-box-slider-track {
    position: relative;
}
.sk-box-slide {
    display: none;
    grid-template-columns: 1.1fr 1fr;
    gap: 30px;
    align-items: center;
    animation: skFadeSlide 0.55s ease;
}
.sk-box-slide.active {
    display: grid;
}
@keyframes skFadeSlide {
    from { opacity: 0; transform: translateX(18px); }
    to { opacity: 1; transform: translateX(0); }
}
.sk-box-slide-img {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.22);
    border: 3px solid rgba(255,255,255,0.25);
}
.sk-box-slide-img img {
    width: 100%;
    height: 310px;
    object-fit: cover;
}
.sk-box-slide-content {
    color: #ffffff;
}
.sk-box-slide-badge {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(4px);
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 12px;
}
.sk-box-slide-content h3 {
    font-size: 26px;
    margin: 0 0 12px 0;
    line-height: 1.3;
    color: #ffffff;
}
.sk-box-slide-content h3 a {
    color: #ffffff;
    text-decoration: none;
}
.sk-box-slide-content h3 a:hover {
    text-decoration: underline;
}
.sk-box-slide-content p {
    font-size: 15px;
    line-height: 1.7;
    color: rgba(255,255,255,0.92);
    margin: 0 0 22px 0;
}
.sk-box-slide-btn {
    display: inline-block;
    background: #ffffff;
    color: #0f172a;
    font-weight: 700;
    font-size: 14px;
    padding: 10px 22px;
    border-radius: 30px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: transform 0.2s, box-shadow 0.2s;
}
.sk-box-slide-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.22);
    text-decoration: none;
}
.sk-box-slider-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(255,255,255,0.2);
}
.sk-box-dots {
    display: flex;
    gap: 8px;
}
.sk-box-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: rgba(255,255,255,0.35);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: width 0.25s, background 0.25s;
}
.sk-box-dot.active {
    width: 28px;
    border-radius: 6px;
    background: #ffffff;
}
.sk-box-arrows {
    display: flex;
    gap: 8px;
}
.sk-box-arrow {
    background: rgba(255,255,255,0.2);
    color: #ffffff;
    border: 1px solid rgba(255,255,255,0.35);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.sk-box-arrow:hover {
    background: rgba(255,255,255,0.4);
}

/* Single, Page, Archive Layout */
.site-content-wrapper {
    padding: 40px 0; display: grid; grid-template-columns: 1fr 340px; gap: 35px; align-items: start;
}
.site-content-wrapper.no-sidebar { grid-template-columns: 1fr; }
.main-column {
    background: #ffffff; padding: 32px; border-radius: 8px; border: 1px solid #e2e8f0;
}
.sidebar-column {
    background: var(--widget-bg);
    color: var(--widget-text);
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}
.widget {
    margin-bottom: 30px;
    background: var(--widget-bg);
    color: var(--widget-text);
    padding: 18px;
    border-radius: 8px;
    border: 1px solid rgba(0,0,0,0.06);
}
.widget:last-child { margin-bottom: 0; }
.widget h3 {
    font-size: 18px;
    border-bottom: 2px solid var(--widget-border-color);
    padding-bottom: 8px;
    margin: 0 0 15px 0;
    color: var(--widget-title-color);
}
.widget a { color: var(--primary-color); }
.widget ul { list-style: none; padding: 0; margin: 0; }
.widget ul li { padding: 7px 0; border-bottom: 1px dashed rgba(0,0,0,0.1); }
.widget ul li:last-child { border-bottom: none; }

/* Single Post Subtitle (Lead) */
.sk-single-subtitle {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 19px;
    font-weight: 400;
    font-style: italic;
    line-height: 1.55;
    color: #475569;
    margin: 12px 0 0 0;
    padding-left: 14px;
    border-left: 3.5px solid var(--accent-color);
}

/* Single Post Featured Image & Caption */
.sk-single-featured-figure {
    margin: 22px 0;
    border-radius: 10px;
    overflow: hidden;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}
.sk-single-featured-figure img {
    width: 100%;
    height: auto;
    display: block;
}
.sk-single-featured-caption {
    padding: 10px 16px;
    font-size: 13.5px;
    font-style: italic;
    color: #475569;
    background: #f1f5f9;
    border-top: 1px solid #e2e8f0;
    line-height: 1.5;
}

/* Responsive YouTube Embed matching Featured Image Width */
.sk-youtube-embed-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 10px;
    margin: 22px 0;
    background: #000000;
}
.sk-youtube-embed-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Social Share Buttons on Single Post */
.sk-social-share-box {
    margin-top: 30px;
    padding: 18px 20px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}
.sk-share-title {
    font-weight: 700;
    font-size: 14px;
    color: #0f172a;
}
.sk-share-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.sk-share-btn {
    padding: 7px 14px;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 600;
    color: #ffffff !important;
    text-decoration: none !important;
    transition: opacity 0.2s;
}
.sk-share-btn:hover { opacity: 0.88; }
.sk-share-fb { background-color: #1877f2; }
.sk-share-wa { background-color: #25d366; }
.sk-share-x  { background-color: #0f172a; }
.sk-share-tg { background-color: #0088cc; }

.related-posts-box { margin-top: 40px; padding-top: 25px; border-top: 1px solid #e2e8f0; }
.related-posts-box h3 { font-size: 20px; margin-bottom: 20px; }

/* Pagination */
.pagination { margin-top: 30px; display: flex; gap: 8px; flex-wrap: wrap; }
.pagination .page-numbers {
    padding: 8px 14px; border: 1px solid #cbd5e1; border-radius: 4px; background: #fff; color: #0f172a; text-decoration: none;
}
.pagination .page-numbers.current { background: var(--primary-color); color: #fff; border-color: var(--primary-color); }

/* Footer & 4-Column Footer Widgets */
.site-footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    padding: 60px 0 20px 0;
    margin-top: 40px;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 35px;
    margin-bottom: 40px;
}
.footer-widgets-4col {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
    margin-bottom: 40px;
}
.footer-widget-col .widget {
    background: var(--footer-widget-bg);
    color: var(--footer-widget-text);
    border: none;
    padding: 0;
    margin-bottom: 24px;
}
.footer-widget-col .widget h4,
.footer-col h4 {
    color: var(--footer-widget-title);
    font-size: 18px;
    margin: 0 0 18px 0;
    border-bottom: 2px solid rgba(255,255,255,0.15);
    padding-bottom: 8px;
}
.footer-widget-col .widget ul li {
    border-bottom: 1px dashed rgba(255,255,255,0.12);
}
.footer-widget-col .widget a,
.footer-col a {
    color: var(--footer-widget-text);
    text-decoration: none;
}
.footer-widget-col .widget a:hover,
.footer-col a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul li { padding: 6px 0; }
.footer-social-list { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 15px; }
.footer-social-list a {
    background: rgba(255,255,255,0.1); padding: 6px 12px; border-radius: 4px; font-size: 13px; color: #ffffff;
}
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; text-align: center; font-size: 14px;
}

/* Responsive */
@media (max-width: 992px) {
    .footer-widgets-4col { grid-template-columns: repeat(2, 1fr); }
    .sk-floating-banner { max-width: 120px; }
}
@media (max-width: 900px) {
    .layout-featured { grid-template-columns: 1fr; }
    .sk-box-slide.active { grid-template-columns: 1fr; }
    .sk-box-slide-img img { height: 230px; }
}
@media (max-width: 768px) {
    .site-content-wrapper { grid-template-columns: 1fr; }
    .headmaster-grid, .headmaster-grid.pos-right { grid-template-columns: 1fr; text-align: center; }
    .headmaster-grid.pos-right .headmaster-img { order: 0; }
    .headmaster-img img { max-width: 220px; margin: 0 auto; }
    .top-header-inner { flex-direction: column; align-items: flex-start; }
    .mobile-menu-toggle { display: inline-block; }
    .primary-nav-bar ul { display: none; flex-direction: column; width: 100%; }
    .primary-nav-bar ul.open { display: flex; }
    .primary-nav-bar ul ul { position: static; box-shadow: none; padding-left: 15px; }
    .layout-list .post-card { flex-direction: column; }
    .layout-list .post-card img { width: 100%; height: 180px; }
    .hero-content h2 { font-size: 28px; }
    .school-stats-divider { margin-top: 20px; }
    .footer-widgets-4col { grid-template-columns: 1fr; }
    .sk-floating-banner { max-width: 95px; }
}


/* =========================================================
   PEMBARUAN v1.3.0: STICKY HEADER, AUTHOR BOX, WIDGET KUSTOM & FONT
   ========================================================= */

/* 1. Sticky Header (Seluruh Bagian Head termasuk Logo) */
.sk-sticky-header-wrapper {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    background-color: var(--header-bg);
    transition: box-shadow 0.25s ease, padding 0.25s ease;
}
body.admin-bar .sk-sticky-header-wrapper {
    top: 32px;
}
@media (max-width: 782px) {
    body.admin-bar .sk-sticky-header-wrapper {
        top: 46px;
    }
}
.sk-sticky-header-wrapper.is-scrolled {
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.14);
}
.sk-sticky-header-wrapper.is-scrolled .top-header {
    padding: 10px 0;
    transition: padding 0.25s ease;
}
.sk-sticky-header-wrapper.is-scrolled .school-brand img.custom-logo {
    max-height: 54px;
    transition: max-height 0.25s ease;
}

/* 2. Box Nama Penulis & Jabatan (Single Post) */
.sk-author-profile-box {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 14px 0 18px 0;
    padding: 12px 18px;
    background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%);
    border-left: 4px solid var(--primary-color);
    border-top: 1px solid #e2e8f0;
    border-right: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.04);
}
.sk-author-avatar-badge {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: #ffffff;
    font-weight: 700;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0, 64, 133, 0.25);
}
.sk-author-details {
    display: flex;
    flex-direction: column;
    line-height: 1.35;
}
.sk-author-name {
    font-weight: 700;
    font-size: 15px;
    color: #0f172a;
}
.sk-author-role {
    font-size: 13px;
    color: var(--primary-color);
    font-weight: 600;
    margin-top: 2px;
}

/* 3. Widget Kategori & Berita Populer Kustom */
.sk-cat-widget-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.sk-cat-widget-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.12);
}
.sk-cat-widget-list li:last-child {
    border-bottom: none;
}
.sk-cat-badge-count {
    font-size: 12px;
    font-weight: 700;
    padding: 2px 9px;
    border-radius: 20px;
    background: rgba(0, 64, 133, 0.1);
}
.sk-popular-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 10px 0;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.12);
}
.sk-popular-item:last-child {
    border-bottom: none;
}
.sk-popular-thumb {
    width: 68px;
    height: 54px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}
.sk-popular-info h4 {
    margin: 0 0 4px 0;
    font-size: 14px;
    line-height: 1.35;
}
.sk-popular-meta {
    font-size: 11.5px;
    opacity: 0.78;
}


/* =========================================================
   PEMBARUAN v1.4.0: WIDGET POST CATEGORY (3 TYPE) & HERO BOX
   ========================================================= */

/* Hero Slider Model Box Elegan & Proporsional */
.hero-slider-box-outer {
    padding: 24px 0 12px 0;
}
.hero-slider-wrapper.is-boxed-hero {
    border-radius: 18px;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.25);
    overflow: hidden;
}
.hero-slider-wrapper.is-boxed-hero .hero-slide {
    transition: opacity 0.6s ease;
}
.hero-slider-wrapper.is-boxed-hero .hero-content {
    max-width: 720px;
    padding: 48px 36px;
}
.hero-slider-wrapper.is-boxed-hero .hero-badge {
    display: inline-block;
    background: var(--accent-color);
    color: #0f172a;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 999px;
    margin-bottom: 14px;
    letter-spacing: 0.3px;
}
.hero-slider-wrapper .slider-nav-btn {
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: background 0.2s, transform 0.2s;
}
.hero-slider-wrapper .slider-nav-btn:hover {
    background: var(--primary-color);
    transform: translateY(-50%) scale(1.06);
}
.hero-slider-dots {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 6;
    display: flex;
    gap: 8px;
}
.hero-slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.45);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: width 0.25s ease, background 0.25s ease;
}
.hero-slider-dot.active {
    width: 28px;
    background: var(--accent-color);
}
@media (max-width: 768px) {
    .hero-slider-box-outer { padding: 14px 0 8px 0; }
    .hero-slider-wrapper.is-boxed-hero { border-radius: 12px; }
    .hero-slider-wrapper.is-boxed-hero .hero-content { padding: 32px 20px; }
}

/* Widget Post Category (Type 1, Type 2, Type 3) */
.sk-post-cat-widget {
    padding: 0 !important;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 26px;
}
.sk-cat-w-header.type1 {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
}
.sk-cat-w-header.type1 .sk-cat-w-bar {
    width: 6px;
    height: 18px;
    border-radius: 2px;
    display: inline-block;
}
.sk-cat-w-header.type1 h3 {
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    font-size: 16px;
    font-weight: 700;
}
.sk-cat-w-header.type2 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
}
.sk-cat-w-header.type2 h3 {
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    font-size: 16px;
    font-weight: 700;
}
.sk-cat-w-arrow {
    font-size: 16px;
    text-decoration: none !important;
    font-weight: 700;
}
.sk-cat-w-header.type3 {
    padding: 12px 14px 6px 14px;
}
.sk-cat-w-header.type3 h3 {
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.4px;
}

/* Type 1 Featured Overlay */
.sk-cat-featured-overlay {
    position: relative;
    overflow: hidden;
}
.sk-cat-featured-overlay img {
    width: 100%;
    height: 195px;
    object-fit: cover;
    display: block;
}
.sk-cat-overlay-grad {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 28px 14px 12px 14px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.45) 65%, transparent 100%);
    color: #ffffff;
}
.sk-cat-overlay-grad h4 {
    margin: 0 0 4px 0;
    font-size: 14px;
    line-height: 1.35;
    color: #ffffff;
}
.sk-cat-overlay-date {
    font-size: 11px;
    color: #cbd5e1;
}

/* Type 2 Featured & Numbered List */
.sk-cat-featured-plain {
    padding: 12px 14px 6px 14px;
}
.sk-cat-featured-plain img {
    width: 100%;
    height: 175px;
    object-fit: cover;
    border-radius: 6px;
}
.sk-cat-item-numbered {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 11px 14px;
    border-bottom: 1px solid #f1f5f9;
}
.sk-cat-item-numbered:last-child {
    border-bottom: none;
}
.sk-cat-num {
    font-size: 20px;
    font-weight: 800;
    line-height: 1.1;
    min-width: 18px;
}
.sk-cat-item-numbered h5 {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.4;
    font-weight: 600;
}

/* Type 3 Featured & Thumbnail List */
.sk-cat-featured-meta {
    padding: 8px 14px 12px 14px;
    border-bottom: 1px solid #f1f5f9;
}
.sk-cat-featured-meta img {
    width: 100%;
    height: 185px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 8px;
}
.sk-cat-featured-meta h4 {
    margin: 4px 0 0 0;
    font-size: 14.5px;
    line-height: 1.35;
}
.sk-cat-meta-line {
    font-size: 10.5px;
    line-height: 1.3;
    margin-bottom: 3px;
}
.sk-cat-tag-label {
    font-weight: 800;
}
.sk-cat-date-muted {
    font-size: 11px;
    color: #94a3b8;
}
.sk-cat-item-thumb {
    display: flex;
    gap: 11px;
    align-items: flex-start;
    padding: 11px 14px;
    border-bottom: 1px solid #f1f5f9;
}
.sk-cat-item-thumb:last-child {
    border-bottom: none;
}
.sk-cat-item-thumb img {
    width: 66px;
    height: 54px;
    object-fit: cover;
    border-radius: 5px;
    flex-shrink: 0;
}
.sk-cat-item-info h5 {
    margin: 0 0 3px 0;
    font-size: 13.5px;
    line-height: 1.35;
    font-weight: 700;
}


/* =========================================================
   PEMBARUAN v1.5.0: POSISI LOGO HEADER & SAMBUTAN BOX ELEGAN
   ========================================================= */

/* Posisi Logo & Identitas Sekolah di Header (Kiri, Tengah, Kanan) */
.top-header-inner.logo-align-left {
    justify-content: flex-start;
}
.top-header-inner.logo-align-center {
    justify-content: center;
    text-align: center;
}
.top-header-inner.logo-align-center .school-brand {
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.top-header-inner.logo-align-right {
    justify-content: flex-end;
    text-align: right;
}
.top-header-inner.logo-align-right .school-brand {
    flex-direction: row-reverse;
}

/* Sambutan Kepala Sekolah: Pilihan Gaya Box Elegan, Accent & Animasi */
.headmaster-section {
    padding: 48px 0;
}
.hm-box-wrapper.hm-style-boxed_elegant {
    position: relative;
    border-radius: 18px;
    padding: 38px 42px;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.10);
    border: 1px solid rgba(0, 64, 133, 0.10);
    overflow: hidden;
}
.hm-box-wrapper.hm-style-boxed_elegant::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--hm-accent, #ffc107) 100%);
}
.hm-box-wrapper.hm-style-boxed_elegant::after {
    content: "";
    position: absolute;
    right: -60px;
    bottom: -60px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--hm-accent, #ffc107) 0%, transparent 70%);
    opacity: 0.14;
    pointer-events: none;
}
.hm-box-wrapper.hm-style-boxed_accent {
    border-radius: 14px;
    padding: 34px 38px;
    border: 1px solid #e2e8f0;
    border-left: 6px solid var(--hm-accent, #ffc107);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}
.hm-box-wrapper.hm-style-classic_flat {
    padding: 10px 0;
}
.hm-photo-frame {
    position: relative;
    border-radius: 14px;
    padding: 6px;
    background: linear-gradient(135deg, var(--primary-color), var(--hm-accent, #ffc107));
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.14);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.hm-box-wrapper:hover .hm-photo-frame {
    transform: translateY(-4px);
}
.hm-photo-frame img {
    border-radius: 10px;
    box-shadow: none;
}
.hm-kicker-badge {
    display: inline-block;
    background: rgba(0, 64, 133, 0.08);
    color: var(--primary-color);
    border-left: 3px solid var(--hm-accent, #ffc107);
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 4px;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

/* Animasi Reveal Halus & Proporsional (Selalu Tampil Aman Tanpa Risiko Tersembunyi) */
@keyframes skGentleRise {
    from {
        opacity: 0.85;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.sk-reveal-on-scroll {
    opacity: 1;
    transform: translateY(0);
    animation: skGentleRise 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.sk-reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
    .sk-reveal-on-scroll { opacity: 1; transform: none; }
}
@media (max-width: 768px) {
    .top-header-inner.logo-align-right { justify-content: center; text-align: center; }
    .top-header-inner.logo-align-right .school-brand { flex-direction: column; }
    .hm-box-wrapper.hm-style-boxed_elegant,
    .hm-box-wrapper.hm-style-boxed_accent { padding: 24px 20px; }
}


/* =========================================================
   PEMBARUAN v1.6.0: LOGO MEDIA SOSIAL ELEGAN & FLOATING BANNER TENGAH
   ========================================================= */

.sk-social-icon-group {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.sk-social-badge {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff !important;
    text-decoration: none !important;
    box-shadow: 0 3px 8px rgba(15, 23, 42, 0.16);
    transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s ease, filter 0.25s ease;
}
.sk-social-ctx-header .sk-social-badge {
    width: 28px;
    height: 28px;
}
.sk-social-ctx-header .sk-social-badge svg {
    width: 14px;
    height: 14px;
}
.sk-social-badge:hover {
    transform: translateY(-3px) scale(1.08);
    box-shadow: 0 7px 16px rgba(15, 23, 42, 0.24);
    filter: brightness(1.06);
}

/* Warna Khas Masing-Masing Media Sosial */
.sk-soc-facebook  { background: #1877f2; }
.sk-soc-instagram { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }
.sk-soc-youtube   { background: #ff0000; }
.sk-soc-tiktok    { background: #111827; border: 1px solid rgba(255,255,255,0.25); }
.sk-soc-x         { background: #0f172a; border: 1px solid rgba(255,255,255,0.25); }
.sk-soc-whatsapp  { background: #25d366; }
.sk-soc-other     { background: var(--primary-color); }

/* Strip Media Sosial di Bawah Sambutan Kepala Sekolah */
.sk-home-social-strip {
    padding: 0 0 36px 0;
}
.sk-home-social-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-left: 4px solid var(--accent-color);
    border-radius: 12px;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
}
.sk-social-strip-title {
    font-weight: 700;
    font-size: 15px;
    color: #0f172a;
}

/* Bar Media Sosial di Bawah Widget Footer */
.sk-footer-social-bar {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding: 22px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
}
.sk-footer-social-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--footer-text);
}

/* Floating Banner Posisi Tengah (Backdrop + Box Elegan) */
.sk-floating-center-backdrop {
    position: fixed;
    inset: 0;
    z-index: 10050;
    background: rgba(15, 23, 42, 0.68);
    backdrop-filter: blur(3px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    transition: opacity 0.25s ease;
    cursor: pointer;
}
.sk-floating-center-box {
    position: relative;
    max-width: 560px;
    width: 100%;
    background: #ffffff;
    border-radius: 14px;
    padding: 6px;
    box-shadow: 0 24px 55px rgba(0, 0, 0, 0.38);
    cursor: default;
    animation: skCenterPop 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.sk-floating-center-box img {
    width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 10px;
    display: block;
}
.sk-floating-center-close {
    top: -12px;
    right: -12px;
    width: 32px;
    height: 32px;
    font-size: 18px;
    z-index: 2;
}
@keyframes skCenterPop {
    from { opacity: 0; transform: scale(0.92); }
    to   { opacity: 1; transform: scale(1); }
}
