/* ==========================================================================
   AJI Theme - Main Stylesheet
   Aliansi Jurnalis Independen Indonesia
   ========================================================================== */

/* ---- CSS Variables ---- */
:root {
    --primary:        #8A3F8D;
    --primary-dark:   #6D2F70;
    --primary-light:  #A85CAB;
    --dark-purple:    #2D0038;
    --mid-purple:     #4D0D55;
    --light-bg:       #F5F2F4;
    --white:          #FFFFFF;
    --text:           #333333;
    --text-light:     #666666;
    --text-lighter:   #999999;
    --border:         #E5E5E5;
    --shadow-sm:      0 2px 8px rgba(0,0,0,0.06);
    --shadow:         0 5px 20px rgba(0,0,0,0.08);
    --shadow-lg:      0 10px 40px rgba(0,0,0,0.12);
    --shadow-hover:   0 8px 30px rgba(138,63,141,0.18);
    --container:      1200px;
    --radius:         8px;
    --radius-lg:      12px;
    --radius-xl:      16px;
    --transition:     all 0.3s ease;
    --header-h:       80px;
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img, video, iframe {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover { color: var(--primary-dark); }

ul, ol { list-style: none; }

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', 'Open Sans', sans-serif;
    font-weight: 600;
    line-height: 1.3;
    color: var(--text);
}

p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

/* ==========================================================================
   Layout & Container
   ========================================================================== */

body {
    background-color: #f0edf1;
}

.site-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    max-width: 1440px;
    margin: 0 auto;
    background-color: var(--white);
    box-shadow: 0 0 40px rgba(0,0,0,0.08);
    overflow-x: hidden;
}

.site-content { flex: 1; }

.container {
    width: 100%;
    max-width: var(--container);
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
}

.section { padding: 80px 0; }
.section--sm { padding: 60px 0; }
.section--lg { padding: 100px 0; }

.text-center { text-align: center; }
.text-white { color: #fff !important; }

/* ==========================================================================
   Section Header (Shared)
   ========================================================================== */

.section-header {
    margin-bottom: 48px;
}

.section-tagline {
    display: inline-block;
    font-family: 'Poppins', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 10px;
}

.section-title {
    font-size: clamp(1.6rem, 3vw, 2.25rem);
    font-weight: 600;
    color: var(--text);
    margin-bottom: 16px;
}

.section-divider {
    display: flex;
    align-items: center;
    gap: 8px;
}

.text-center .section-divider {
    justify-content: center;
}

.section-divider span {
    display: block;
    width: 48px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

.section-divider::before,
.section-divider::after {
    content: '';
    display: block;
    width: 8px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
    opacity: 0.3;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--radius);
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    white-space: nowrap;
    line-height: 1.4;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
}

.btn-outline--white {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,0.7);
}

.btn-outline--white:hover {
    background: #fff;
    color: var(--primary);
    border-color: #fff;
}

.btn-sm { padding: 8px 20px; font-size: 0.8125rem; }
.btn-lg { padding: 15px 36px; font-size: 1rem; }

/* ==========================================================================
   Cards (Shared)
   ========================================================================== */

.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(138,63,141,0.15);
}

.card-image {
    display: block;
    overflow: hidden;
    aspect-ratio: 3/2;
    background: var(--light-bg);
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card:hover .card-image img { transform: scale(1.04); }

.card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-meta {
    font-size: 0.8125rem;
    color: var(--text-lighter);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.card-title {
    font-size: 1.0625rem;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.45;
}

.card-title a { color: var(--text); }
.card-title a:hover { color: var(--primary); }

.card-excerpt {
    font-size: 0.875rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 16px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-author {
    font-size: 0.8125rem;
    color: var(--text-lighter);
    font-style: italic;
    margin-bottom: 8px;
}

/* Posts Grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

/* ==========================================================================
   Skip Link
   ========================================================================== */

.skip-link {
    position: absolute;
    top: -100px;
    left: 16px;
    background: var(--primary);
    color: #fff;
    padding: 8px 16px;
    border-radius: 0 0 var(--radius) var(--radius);
    z-index: 9999;
    font-size: 0.875rem;
}

.skip-link:focus { top: 0; color: #fff; }

/* ==========================================================================
   HEADER
   ========================================================================== */

.site-header {
    position: sticky;
    top: 0;
    left: auto;
    right: auto;
    z-index: 1000;
    background: var(--white);
    border-bottom: 2px solid var(--border);
    transition: box-shadow 0.3s ease;
    height: var(--header-h);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Header container full-width: hanya 24px padding kiri-kanan */
.site-header .container {
    max-width: 100%;
}

.site-header.scrolled {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 3px 24px rgba(45,0,56,0.10);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    height: 100%;
}

/* ---- Logo ---- */
.site-logo { flex-shrink: 0; }

.site-logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

/* WordPress custom logo */
.site-logo .custom-logo {
    max-height: 58px;
    width: auto;
    display: block;
}

/* SVG / IMG fallback logo */
.site-logo-img {
    max-height: 58px;
    width: auto;
    display: block;
    /* Preserve SVG sharpness */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* ---- Primary Navigation ---- */
.main-navigation {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.nav-menu {
    display: flex;
    align-items: stretch;
    gap: 0;
    list-style: none;
    height: 100%;
}

.nav-menu > li {
    position: relative;
    display: flex;
    align-items: stretch;
}

.nav-menu > li > a {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0 16px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary);
    white-space: nowrap;
    transition: color 0.2s ease, background 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 3px solid transparent;
    height: 100%;
    position: relative;
}

.nav-menu > li > a:hover,
.nav-menu > li.current-menu-item > a,
.nav-menu > li.current-menu-ancestor > a {
    color: var(--primary-dark);
    border-bottom-color: var(--primary);
    background: rgba(138,63,141,0.04);
}

/* ---- Dropdown Arrow ---- */
.dropdown-arrow {
    display: flex;
    align-items: center;
    margin-left: 2px;
    transition: transform 0.25s ease;
    color: var(--primary);
    opacity: 0.7;
}

.dropdown-arrow svg {
    width: 11px;
    height: 11px;
    stroke-width: 2.5;
}

.has-dropdown:hover > a .dropdown-arrow,
.has-dropdown:focus-within > a .dropdown-arrow {
    transform: rotate(180deg);
    opacity: 1;
}

/* ---- Sub Menu (Dropdown) ---- */
.nav-menu li { position: relative; }

.nav-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 230px;
    background: linear-gradient(160deg, #6B1A7E 0%, #8A3F8D 100%);
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: 0 8px 32px rgba(45,0,56,0.25);
    padding: 6px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(4px);
    transition: all 0.22s ease;
    z-index: 200;
    list-style: none;
}

/* Submenu opening */
.nav-menu li:hover > .sub-menu,
.nav-menu li:focus-within > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Submenu links */
.nav-menu .sub-menu a {
    display: block;
    padding: 11px 22px;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.875rem;
    font-weight: 400;
    color: rgba(255,255,255,0.92);
    border-left: none;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    transition: background 0.18s ease, color 0.18s ease, padding-left 0.18s ease;
    white-space: nowrap;
}

.nav-menu .sub-menu li:last-child > a {
    border-bottom: none;
}

.nav-menu .sub-menu a:hover {
    background: rgba(255,255,255,0.14);
    color: #fff;
    padding-left: 28px;
    border-left: none;
}

/* Nested sub-sub-menu */
.nav-menu .sub-menu .sub-menu {
    top: 0;
    left: 100%;
    border-radius: var(--radius);
}

/* ---- Header Actions (Search + Hamburger) ---- */
.header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    margin-left: 12px;
}

.search-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: transparent;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    color: var(--primary);
    transition: background 0.2s ease, color 0.2s ease;
    padding: 0;
}

.search-toggle:hover {
    background: rgba(138,63,141,0.08);
    color: var(--primary-dark);
}

.search-toggle svg {
    width: 20px;
    height: 20px;
    stroke-width: 2.2;
}

.hamburger {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 38px;
    height: 38px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 6px;
    cursor: pointer;
    color: var(--text);
    transition: var(--transition);
    padding: 8px;
}

.hamburger:hover {
    background: var(--light-bg);
    border-color: var(--primary);
    color: var(--primary);
}

.hamburger-bar {
    display: block;
    width: 20px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: var(--transition);
}

.hamburger.is-active .hamburger-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-active .hamburger-bar:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.is-active .hamburger-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---- Header Search Bar ---- */
.header-search-bar {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    width: 100%;
    background: var(--white);
    border-top: 1px solid var(--border);
    border-bottom: 2px solid var(--primary);
    padding: 18px 0;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
    z-index: 999;
    box-shadow: 0 8px 24px rgba(45,0,56,0.10);
}

.header-search-bar.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.search-form {
    display: flex;
    gap: 0;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color 0.2s;
    background: var(--white);
}

.search-form:focus-within { border-color: var(--primary); }

.search-field {
    flex: 1;
    padding: 11px 20px;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.9375rem;
    border: none;
    outline: none;
    color: var(--text);
    background: transparent;
}

.search-submit {
    padding: 11px 20px;
    background: var(--primary);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: background 0.2s;
}

.search-submit:hover { background: var(--primary-dark); }

/* ==========================================================================
   HERO SLIDER
   ========================================================================== */

.hero-slider {
    position: relative;
    height: 650px;
    overflow: hidden;
    background: var(--dark-purple);
}

.slider-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.9s ease;
    pointer-events: none;
}

.slide.active {
    opacity: 1;
    pointer-events: auto;
}

.slide-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: scale(1.04);
    transition: transform 6s ease;
}

.slide.active .slide-bg { transform: scale(1); }

.slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(45,0,56,0.55) 0%, rgba(45,0,56,0.75) 60%, rgba(45,0,56,0.90) 100%);
}

.slide-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 24px;
    max-width: 800px;
    margin: 0 auto;
}

.slide-tagline {
    display: inline-block;
    background: rgba(138,63,141,0.6);
    color: rgba(255,255,255,0.9);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 6px 18px;
    border-radius: 50px;
    margin-bottom: 20px;
    border: 1px solid rgba(255,255,255,0.15);
}

.slide-title {
    font-size: clamp(1.75rem, 4.5vw, 3rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.25;
    margin-bottom: 28px;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.slide-date {
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.65);
    margin-bottom: 20px;
    letter-spacing: 0.03em;
}

.slide-btn { margin-top: 4px; }

/* Slider Dots */
.slider-dots {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 10px;
    align-items: center;
}

.slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
}

.slider-dot.active {
    width: 24px;
    border-radius: 4px;
    background: #fff;
}

/* Slider Arrows */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.slider-arrow:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.slider-arrow--prev { left: 24px; }
.slider-arrow--next { right: 24px; }

/* ==========================================================================
   ABOUT SECTION
   ========================================================================== */

.about-section {
    padding: 80px 0;
    background: var(--light-bg);
}

.about-inner {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-desc {
    font-size: 1.0625rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 32px;
}

/* ==========================================================================
   NEWS SECTION
   ========================================================================== */

.news-section { padding: 80px 0; }

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.news-section .section-footer {
    text-align: center;
    margin-top: 40px;
}

/* ==========================================================================
   PROGRAMS SECTION
   ========================================================================== */

.programs-section {
    padding: 80px 0;
    background: linear-gradient(180deg, #2D0038 0%, #4D0D55 50%, #8A3F8D 100%);
    position: relative;
    overflow: hidden;
}

.programs-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 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='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='15'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.programs-section .section-tagline { color: rgba(255,255,255,0.7); }
.programs-section .section-title   { color: #fff; }
.programs-section .section-divider span,
.programs-section .section-divider::before,
.programs-section .section-divider::after { background: rgba(255,255,255,0.5); }

.programs-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.program-card {
    padding: 28px 20px;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--radius-lg);
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(4px);
    color: #fff;
    transition: var(--transition);
    cursor: default;
}

.program-card:hover {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.3);
    transform: translateY(-4px);
}

.program-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.12);
    border-radius: var(--radius);
    margin-bottom: 18px;
    color: #fff;
}

.program-icon svg { width: 28px; height: 28px; }

.program-name {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 10px;
    line-height: 1.4;
}

.program-desc {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.75);
    line-height: 1.65;
    margin: 0;
}

/* ==========================================================================
   DASHBOARD SECTION
   ========================================================================== */

.dashboard-section { padding: 80px 0; }
.dashboard-section.alt-bg { background: var(--light-bg); }

/* Dashboard container full-width: konten melebar, hanya 24px kiri-kanan */
.dashboard-section .container {
    max-width: 100%;
}

.dashboard-embed {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    background: var(--white);
}

.dashboard-embed iframe {
    width: 100%;
    min-height: 480px;
    height: 560px; /* nilai awal, JS akan override */
    border: none;
    display: block;
    transition: height 0.3s ease;
}

.dashboard-embed-image {
    width: 100%;
    max-height: 560px;
    object-fit: contain;
    border-radius: var(--radius-xl);
}

.dashboard-embed object {
    width: 100%;
    min-height: 480px;
    height: 560px;
    display: block;
    transition: height 0.3s ease;
}

.dashboard-desc {
    margin-top: 20px;
    font-size: 0.9375rem;
    color: var(--text-light);
    text-align: center;
}

.dashboard-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--primary);
    background: rgba(138,63,141,0.08);
    padding: 5px 14px;
    border-radius: 50px;
    margin-bottom: 12px;
}

/* ==========================================================================
   PRESS RELEASE SECTION
   ========================================================================== */

.press-section {
    padding: 80px 0;
    background: var(--light-bg);
}

.press-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

/* ==========================================================================
   BOOKS & DOCUMENTS SECTION
   ========================================================================== */

.books-section { padding: 80px 0; }

.books-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.book-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.book-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(138,63,141,0.15);
}

.book-cover {
    display: block;
    aspect-ratio: 3/4;
    overflow: hidden;
    background: var(--light-bg);
    max-height: 260px;
}

.book-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.book-card:hover .book-cover img { transform: scale(1.04); }

.book-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.book-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
}

.book-title a { color: var(--text); }
.book-title a:hover { color: var(--primary); }

.book-meta {
    font-size: 0.8125rem;
    color: var(--text-lighter);
    margin-bottom: 10px;
}

.book-excerpt {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 16px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ==========================================================================
   GALLERY SECTION
   ========================================================================== */

.gallery-section {
    padding: 80px 0;
    background: var(--light-bg);
}

.gallery-strip {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    margin-bottom: 32px;
}

.gallery-item {
    display: block;
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--border);
    position: relative;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img { transform: scale(1.06); }

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 50%, rgba(45,0,56,0.5) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover::after { opacity: 1; }

.gallery-footer { text-align: center; margin-top: 8px; }

/* ==========================================================================
   PAGE BANNER (Breadcrumb)
   ========================================================================== */

.page-banner {
    background: var(--dark-purple);
    padding: 28px 0;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.875rem;
    color: rgba(255,255,255,0.65);
    flex-wrap: wrap;
}

.breadcrumb a {
    color: rgba(255,255,255,0.75);
    transition: color 0.2s;
}

.breadcrumb a:hover { color: #fff; }

.breadcrumb span[aria-current="page"] {
    color: rgba(255,255,255,0.9);
    font-weight: 500;
}

/* ==========================================================================
   SINGLE POST
   ========================================================================== */

.single-container { padding: 60px 24px; }

.single-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 48px;
    align-items: start;
}

.single-featured-image {
    margin-bottom: 32px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    max-height: 480px;
}

.single-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.single-header { margin-bottom: 32px; }

.single-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.single-date {
    font-size: 0.875rem;
    color: var(--text-lighter);
    display: flex;
    align-items: center;
    gap: 6px;
}

.tag-badge {
    display: inline-block;
    padding: 3px 12px;
    background: rgba(138,63,141,0.1);
    color: var(--primary);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

.single-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 16px;
}

.single-excerpt {
    font-size: 1.0625rem;
    color: var(--text-light);
    line-height: 1.75;
    border-left: 4px solid var(--primary);
    padding-left: 20px;
}

.single-content {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text);
}

.single-content h2, .single-content h3 {
    margin: 2em 0 0.75em;
    color: var(--dark-purple);
}

.single-content p { margin-bottom: 1.5em; }
.single-content img { border-radius: var(--radius); margin: 1.5em 0; }
.single-content blockquote {
    border-left: 4px solid var(--primary);
    padding: 12px 24px;
    background: var(--light-bg);
    border-radius: 0 var(--radius) var(--radius) 0;
    margin: 1.5em 0;
    font-style: italic;
    color: var(--text-light);
}

/* Document Meta Box */
.document-meta-box {
    background: var(--light-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.doc-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9375rem;
    color: var(--text);
}

/* Gallery Single Grid */
.single-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 32px;
}

.single-gallery-grid .gallery-item {
    aspect-ratio: 4/3;
    border-radius: var(--radius);
    overflow: hidden;
}

/* Share Buttons */
.share-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 40px;
    padding-top: 28px;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
}

.share-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-light);
}

.share-btn {
    display: inline-block;
    padding: 7px 18px;
    border-radius: 6px;
    font-size: 0.8125rem;
    font-weight: 600;
    transition: var(--transition);
    color: #fff;
}

.share-fb { background: #1877F2; }
.share-fb:hover { background: #0d65d8; color: #fff; }
.share-tw { background: #1DA1F2; }
.share-tw:hover { background: #0c85cc; color: #fff; }
.share-wa { background: #25D366; }
.share-wa:hover { background: #1aaa50; color: #fff; }

/* Single Sidebar */
.single-sidebar {
    position: sticky;
    top: calc(var(--header-h) + 24px);
}

.widget { margin-bottom: 32px; }

.widget-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark-purple);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary);
}

/* ==========================================================================
   PAGE TEMPLATE
   ========================================================================== */

.page-container { padding: 60px 24px; max-width: 900px; }
.page-article { }
.page-header { margin-bottom: 32px; }
.page-title { font-size: clamp(1.75rem, 3vw, 2.5rem); margin-bottom: 16px; }
.page-featured-image { border-radius: var(--radius-xl); overflow: hidden; margin-bottom: 32px; }
.page-content { font-size: 1rem; line-height: 1.8; }

/* ==========================================================================
   PAGINATION
   ========================================================================== */

.pagination-wrap { margin-top: 48px; display: flex; justify-content: center; }

.nav-links {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text);
    transition: var(--transition);
}

.page-numbers:hover, .page-numbers.current {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.page-numbers.prev, .page-numbers.next { width: auto; padding: 0 16px; }

/* ==========================================================================
   404 PAGE
   ========================================================================== */

.not-found-wrap { max-width: 560px; }
.not-found-code {
    font-size: clamp(6rem, 15vw, 9rem);
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    color: var(--primary);
    opacity: 0.15;
    line-height: 1;
    margin-bottom: 16px;
}

.not-found-title { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 16px; }
.not-found-desc { color: var(--text-light); margin-bottom: 32px; }

.not-found-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.not-found-search {
    display: flex;
    gap: 8px;
    align-items: center;
    margin: 0;
}

.not-found-search .search-form {
    border-radius: var(--radius);
    border: 1.5px solid var(--border);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer {
    background: #1A1A1A;
    color: rgba(255,255,255,0.7);
    margin-top: auto;
}

.footer-main {
    padding: 64px 0 48px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
    gap: 48px;
}

.footer-logo { margin-bottom: 20px; }

.footer-logo .custom-logo,
.footer-logo img { filter: brightness(0) invert(1); max-height: 48px; opacity: 0.9; }

.footer-logo-text {
    font-family: 'Poppins', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
}

.footer-desc {
    font-size: 0.875rem;
    line-height: 1.75;
    color: rgba(255,255,255,0.6);
    margin-bottom: 24px;
}

/* Social Icons */
.footer-social {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px;
    color: rgba(255,255,255,0.7);
    transition: var(--transition);
}

.social-icon:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    transform: translateY(-2px);
}

/* Footer Widgets */
.footer-widget-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-menu-list li { margin-bottom: 10px; }

.footer-menu-list a {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.6);
    transition: color 0.2s, padding-left 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-menu-list a::before {
    content: '›';
    color: var(--primary-light);
    font-weight: 700;
    flex-shrink: 0;
}

.footer-menu-list a:hover {
    color: #fff;
    padding-left: 4px;
}

/* Footer Contact */
.footer-contact { font-style: normal; }

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
    font-size: 0.875rem;
    color: rgba(255,255,255,0.65);
}

.contact-item svg { flex-shrink: 0; margin-top: 2px; color: var(--primary-light); }

.contact-item a {
    color: rgba(255,255,255,0.65);
    word-break: break-word;
}

.contact-item a:hover { color: #fff; }

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 20px 0;
}

.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.copyright {
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.45);
    margin: 0;
}

.copyright a { color: rgba(255,255,255,0.65); }
.copyright a:hover { color: #fff; }

.footer-tagline {
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.35);
    margin: 0;
    font-style: italic;
}

/* ==========================================================================
   UTILITY
   ========================================================================== */

.screen-reader-text {
    border: 0;
    clip: rect(1px,1px,1px,1px);
    -webkit-clip-path: inset(50%);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

.section-footer { text-align: center; margin-top: 40px; }

/* WordPress Alignment */
.alignleft  { float: left; margin: 0.5em 1.5em 1em 0; }
.alignright { float: right; margin: 0.5em 0 1em 1.5em; }
.aligncenter { clear: both; display: block; margin: 0 auto 1em; }

/* Lazy Load */
img[loading="lazy"] { will-change: transform; }
