/*
Theme Name: WKI Portal - Glass Brutalism
Theme URI: https://wahana-komunikasi.id
Author: WKI Dev Team
Author URI: https://wahana-komunikasi.id
Description: Tema WordPress portal berita & riset politik muda dengan konsep UI Glass-Brutalism. Didesain untuk Wahana Komunikasi Indonesia (WKI). Standalone native tanpa plugin tambahan.
Version: 1.3.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: wki-theme
Tags: news, portal, glass-brutalism, custom-colors, custom-menu, featured-images, footer-widgets, theme-options
*/

/* =============================================
   1. CSS CUSTOM PROPERTIES (Design Tokens)
   ============================================= */
:root {
    /* Primary Colors */
    --neo-bg: #F4F3EF;
    --neo-black: #111111;
    --imm-red: #8B1E28;
    --imm-gold: #C5A861;
    --neo-gray: #E5E5E5;

    /* Glass Variables */
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-bg-heavy: rgba(255, 255, 255, 0.95);
    --glass-blur: 20px;
    --glass-blur-heavy: 32px;

    /* Brutalist Shadows */
    --shadow-neo-sm: 2px 2px 0px 0px rgba(17,17,17,1);
    --shadow-neo: 4px 4px 0px 0px rgba(17,17,17,1);
    --shadow-neo-lg: 8px 8px 0px 0px rgba(17,17,17,1);
    --shadow-neo-hover: 6px 6px 0px 0px rgba(17,17,17,1);

    /* Typography */
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing & Safe Margins */
    --container-max: 1280px;
    --container-padding: 1.5rem;
}

@media (min-width: 640px) {
    :root {
        --container-padding: 2rem;
    }
}

@media (min-width: 1024px) {
    :root {
        --container-padding: 2.75rem;
    }
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    background-color: var(--neo-bg);
    color: var(--neo-black);
    font-family: var(--font-body);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    position: relative;
}

::selection {
    background: var(--imm-red);
    color: #fff;
}

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

a {
    color: inherit;
    text-decoration: none;
}

ul, ol {
    list-style: none;
}

/* =============================================
   3. TYPOGRAPHY & SAFE HEADINGS
   ============================================= */
h1, h2, h3, h4, h5, h6,
.font-heading {
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    line-height: 1.2;
    word-break: break-word;
}

h1 { font-size: clamp(2.2rem, 4.5vw, 4.2rem); margin-bottom: 1.25rem; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.7rem); margin-bottom: 1rem; }
h3 { font-size: clamp(1.3rem, 2.4vw, 1.85rem); margin-bottom: 0.75rem; }
h4 { font-size: clamp(1.1rem, 2vw, 1.35rem); margin-bottom: 0.75rem; }
h5 { font-size: 1rem; margin-bottom: 0.5rem; }
h6 { font-size: 0.875rem; margin-bottom: 0.5rem; }

.font-body {
    font-family: var(--font-body);
}

p {
    margin-bottom: 1.25rem;
    line-height: 1.75;
}

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

/* =============================================
   4. GLASS-BRUTALISM CORE COMPONENTS WITH SAFE PADDING
   ============================================= */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 2px solid var(--neo-black);
    box-shadow: var(--shadow-neo);
    transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
    padding: 2rem 1.75rem;
}

@media (min-width: 768px) {
    .glass-panel {
        padding: 2.5rem 2.25rem;
    }
}

.glass-panel-heavy {
    background: var(--glass-bg-heavy);
    backdrop-filter: blur(var(--glass-blur-heavy));
    -webkit-backdrop-filter: blur(var(--glass-blur-heavy));
    border: 2px solid var(--neo-black);
    box-shadow: var(--shadow-neo-hover);
    transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
    padding: 2.25rem 2rem;
}

@media (min-width: 768px) {
    .glass-panel-heavy {
        padding: 3rem 2.75rem;
    }
}

.glass-nav {
    background: rgba(244, 243, 239, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 2px solid var(--neo-black);
    padding: 0;
}

/* Interactive Brutalist Elements */
.brutal-interactive {
    transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
    cursor: pointer;
}

.brutal-interactive:hover {
    transform: translate(-3px, -3px);
    box-shadow: var(--shadow-neo-hover);
}

.brutal-interactive:active {
    transform: translate(2px, 2px);
    box-shadow: 0px 0px 0px 0px rgba(17,17,17,1);
}

/* Image Placeholders */
.img-placeholder {
    background: linear-gradient(45deg, rgba(17,17,17,0.05), rgba(139,30,40,0.1));
    border-bottom: 2px solid var(--neo-black);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    padding: 0 !important;
}

/* =============================================
   5. LAYOUT UTILITIES & GRIDS (RELAXED SPACING)
   ============================================= */
.wki-container {
    max-width: var(--container-max);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
    width: 100%;
}

.wki-grid {
    display: grid;
    gap: 2rem;
}

.wki-grid--2 { grid-template-columns: 1fr; }
.wki-grid--3 { grid-template-columns: 1fr; }
.wki-grid--4 { grid-template-columns: 1fr; }

@media (min-width: 768px) {
    .wki-grid--2 { grid-template-columns: repeat(2, 1fr); gap: 2.25rem; }
    .wki-grid--3 { grid-template-columns: repeat(2, 1fr); gap: 2.25rem; }
    .wki-grid--4 { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
}

@media (min-width: 1024px) {
    .wki-grid--3 { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
    .wki-grid--4 { grid-template-columns: repeat(4, 1fr); gap: 2rem; }
}

/* Hero Layout: 2/3 + 1/3 */
.wki-hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    margin-bottom: 4rem;
}

@media (min-width: 1024px) {
    .wki-hero-grid {
        grid-template-columns: 2fr 1fr;
        gap: 3rem;
    }
}

/* =============================================
   6. TOP BAR & TICKER
   ============================================= */
.wki-topbar {
    width: 100%;
    background-color: var(--neo-black);
    color: #fff;
    padding: 0.65rem 0;
    position: relative;
    display: flex;
    z-index: 50;
    border-bottom: 2px solid rgba(255,255,255,0.2);
}

.wki-topbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.75rem;
    font-weight: 700;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.wki-topbar__date {
    color: var(--imm-gold);
    min-width: 220px;
    display: none;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .wki-topbar__date {
        display: block;
    }
}

.wki-topbar__ticker {
    flex-grow: 1;
    overflow: hidden;
    position: relative;
    margin-left: 1.5rem;
}

.wki-topbar__ticker-track {
    white-space: nowrap;
    animation: wki-marquee 25s linear infinite;
    display: inline-flex;
    align-items: center;
    color: #d1d5db;
}

.wki-ticker__label {
    color: var(--imm-red);
    margin-right: 0.5rem;
}

.wki-ticker__separator {
    margin: 0 1.5rem;
    color: rgba(255,255,255,0.3);
}

@keyframes wki-marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* =============================================
   7. NAVIGATION & MEGA-MENU (DESKTOP)
   ============================================= */
.wki-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
}

.wki-nav__inner {
    height: 4.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.wki-logo {
    font-family: var(--font-heading);
    font-size: 2.1rem;
    font-weight: 700;
    letter-spacing: -0.05em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--neo-black);
    flex-shrink: 0;
    line-height: 1;
}

.wki-logo__dot {
    width: 0.55rem;
    height: 0.55rem;
    background: var(--imm-red);
    border-radius: 50%;
    display: inline-block;
    margin-bottom: 0.25rem;
}

.wki-nav__menu {
    display: none;
    align-items: center;
    height: 100%;
}

@media (min-width: 1024px) {
    .wki-nav__menu {
        display: flex;
    }
}

.wki-nav__menu ul,
.wki-nav__menu .wki-primary-nav {
    display: flex;
    align-items: center;
    height: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
}

.wki-nav__menu li,
.wki-nav__menu .menu-item {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.wki-nav__menu li > a,
.wki-nav__menu .menu-item > a {
    height: 100%;
    display: inline-flex;
    align-items: center;
    padding: 0 1.25rem;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--neo-black);
    border-left: 2px solid transparent;
    border-right: 2px solid transparent;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
    white-space: nowrap;
}

.wki-nav__menu li > a:hover,
.wki-nav__menu .menu-item:hover > a {
    background: rgba(197, 168, 97, 0.25);
    border-color: var(--neo-black);
}

.wki-nav__menu .current-menu-item > a,
.wki-nav__menu .current_page_item > a {
    background: var(--neo-black);
    color: #fff !important;
    border-color: var(--neo-black);
}

.wki-nav__menu .menu-item-has-children > a::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 0.45rem;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
    transition: transform 0.2s ease;
}

.wki-nav__menu .menu-item-has-children:hover > a::after {
    transform: rotate(180deg);
}

/* Sub-menu Dropdown */
.wki-nav__menu .sub-menu {
    display: none !important;
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    min-width: 18rem !important;
    width: max-content !important;
    background: #ffffff !important;
    border: 2px solid var(--neo-black) !important;
    box-shadow: 6px 6px 0px 0px rgba(17,17,17,1) !important;
    z-index: 9999 !important;
    flex-direction: column !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.wki-nav__menu .menu-item-has-children:hover > .sub-menu,
.wki-nav__menu li:hover > .sub-menu {
    display: flex !important;
}

.wki-nav__menu .sub-menu li,
.wki-nav__menu .sub-menu .menu-item {
    width: 100% !important;
    height: auto !important;
    display: block !important;
}

.wki-nav__menu .sub-menu li > a,
.wki-nav__menu .sub-menu .menu-item > a {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    padding: 0.9rem 1.35rem !important;
    border: none !important;
    border-bottom: 2px solid var(--neo-black) !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    color: var(--neo-black) !important;
    background: transparent !important;
    transition: background 0.15s ease, color 0.15s ease !important;
    white-space: normal !important;
    text-align: left !important;
}

.wki-nav__menu .sub-menu li:last-child > a,
.wki-nav__menu .sub-menu .menu-item:last-child > a {
    border-bottom: none !important;
}

.wki-nav__menu .sub-menu li > a:hover,
.wki-nav__menu .sub-menu .menu-item > a:hover {
    background: var(--imm-red) !important;
    color: #ffffff !important;
}

/* CTA Header */
.wki-nav__cta {
    display: none;
}

@media (min-width: 1024px) {
    .wki-nav__cta {
        display: flex;
        align-items: center;
        flex-shrink: 0;
    }
}

.wki-nav__cta a,
.wki-btn--red {
    background: var(--imm-red);
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 700;
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--neo-black);
    box-shadow: var(--shadow-neo);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Mobile Toggle */
.wki-nav__toggle {
    display: flex;
    align-items: center;
}

@media (min-width: 1024px) {
    .wki-nav__toggle {
        display: none;
    }
}

.wki-nav__toggle button {
    padding: 0.65rem 0.85rem;
    cursor: pointer;
    background: #fff;
    border: 2px solid var(--neo-black);
    box-shadow: var(--shadow-neo-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* =============================================
   8. MOBILE DRAWER (CLICKABLE & ACCESSIBLE)
   ============================================= */
.wki-mobile-menu {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: #ffffff;
    flex-direction: column;
    padding: 2rem 1.5rem;
    overflow-y: auto;
}

.wki-mobile-menu.is-open {
    display: flex;
}

.wki-mobile-menu__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 3px solid var(--neo-black);
    padding-bottom: 1.25rem;
    margin-bottom: 1.5rem;
}

.wki-mobile-menu__close {
    background: var(--neo-black);
    color: #fff;
    border: 2px solid var(--neo-black);
    padding: 0.6rem 1.2rem;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    cursor: pointer;
}

.wki-mobile-menu-list {
    display: flex;
    flex-direction: column;
    margin-bottom: 2rem;
}

.wki-mobile-menu-list ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.wki-mobile-menu-list .sub-menu {
    padding-left: 1rem;
    border-left: 3px solid var(--neo-imm-gold);
}

.wki-mobile-menu-list a {
    display: block;
    padding: 1rem 0.75rem;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.05rem;
    text-transform: uppercase;
    border-bottom: 1px solid #111111;
    color: #111111;
    transition: background 0.15s ease;
}

.wki-mobile-menu-list a:active,
.wki-mobile-menu-list a:hover {
    background: rgba(139,30,40,0.1);
    color: var(--imm-red);
}

.wki-mobile-menu-list .wki-mobile-cat {
    background: #111111;
    color: #ffffff;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.5rem 0.75rem;
    margin-top: 1rem;
}

/* =============================================
   9. HERO SECTION (EDITORIAL CHOICE)
   ============================================= */
.wki-hero__article {
    display: flex;
    flex-direction: column;
    position: relative;
    padding: 0 !important;
}

.wki-hero__thumbnail {
    height: 18rem;
    width: 100%;
    position: relative;
    overflow: hidden;
}

@media (min-width: 768px) {
    .wki-hero__thumbnail {
        height: 22rem;
    }
}

.wki-hero__thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wki-hero__thumbnail-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.2;
    background-image: radial-gradient(var(--neo-black) 1px, transparent 1px);
    background-size: 20px 20px;
}

.wki-hero__badge {
    position: absolute;
    bottom: 1.25rem;
    left: 1.25rem;
    z-index: 10;
    padding: 0.5rem 1rem !important;
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--imm-red);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    background: #ffffff;
}

.wki-hero__content {
    padding: 2.25rem 2rem !important;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: rgba(255,255,255,0.5);
}

@media (min-width: 640px) {
    .wki-hero__content {
        padding: 3rem 2.5rem !important;
    }
}

.wki-hero__meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #6b7280;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.wki-hero__cat-label {
    background: var(--neo-black);
    color: #fff;
    padding: 0.35rem 0.65rem;
}

.wki-hero__title {
    margin-bottom: 1.25rem;
    transition: color 0.2s;
}

.wki-hero__article:hover .wki-hero__title {
    color: var(--imm-red);
}

.wki-hero__excerpt {
    font-size: 1.1rem;
    font-weight: 500;
    color: #1f2937;
    line-height: 1.75;
    margin-bottom: 2rem;
}

.wki-hero__readmore {
    border-top: 2px solid var(--neo-black);
    padding-top: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.wki-hero__readmore span {
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* =============================================
   10. LIVE DATA WIDGET (POLITICAL PULSE)
   ============================================= */
.wki-pulse-widget {
    padding: 2.25rem 2rem !important;
    display: flex;
    flex-direction: column;
    position: relative;
    height: 100%;
}

.wki-pulse-widget__live-dot {
    position: absolute;
    top: -0.75rem;
    right: -0.75rem;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: var(--imm-red);
    border: 2px solid var(--neo-black);
    display: flex;
    justify-content: center;
    align-items: center;
    animation: wki-pulse 2s infinite;
}

.wki-pulse-widget__live-dot::after {
    content: '';
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    background: #fff;
}

@keyframes wki-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.wki-pulse-widget__header {
    margin-bottom: 1.25rem;
    border-bottom: 2px solid var(--neo-black);
    padding-bottom: 0.85rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wki-pulse-widget__tag {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    background: rgba(197,168,97,0.5);
    padding: 0.35rem 0.65rem;
    border: 1px solid var(--neo-black);
}

.wki-pulse-widget__subtitle {
    font-size: 0.8rem;
    font-weight: 700;
    color: #6b7280;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    line-height: 1.5;
}

.wki-pulse-widget__chart {
    flex-grow: 1;
    width: 100%;
    position: relative;
    min-height: 230px;
}

.wki-pulse-widget__cta {
    margin-top: 1.5rem;
    width: 100%;
    background: var(--neo-black);
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    padding: 0.95rem;
    border: 2px solid var(--neo-black);
    box-shadow: var(--shadow-neo-sm);
    font-size: 0.85rem;
    display: block;
    transition: all 0.2s;
}

/* =============================================
   11. NEWS CARDS & INNER MARGINS
   ============================================= */
.wki-news-card {
    display: flex;
    flex-direction: column;
    padding: 0 !important;
}

.wki-news-card__thumbnail {
    height: 13rem;
    position: relative;
    overflow: hidden;
}

.wki-news-card__thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wki-news-card__cat-badge {
    position: absolute;
    top: 0.85rem;
    left: 0.85rem;
    padding: 0.35rem 0.75rem;
    border: 2px solid var(--neo-black);
    font-weight: 700;
    font-size: 0.65rem;
    text-transform: uppercase;
    z-index: 5;
    background: #ffffff;
}

.wki-news-card__body {
    padding: 2.25rem 2rem !important;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.wki-news-card__date {
    font-size: 0.75rem;
    font-weight: 700;
    color: #6b7280;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
}

.wki-news-card__title {
    font-size: 1.3rem;
    line-height: 1.3;
    margin-bottom: 1rem;
    transition: color 0.2s;
}

.wki-news-card:hover .wki-news-card__title {
    color: var(--imm-red);
}

.wki-news-card__excerpt {
    font-size: 0.95rem;
    font-weight: 500;
    color: #374151;
    flex-grow: 1;
    line-height: 1.7;
}

/* =============================================
   12. MULTIMEDIA HUB
   ============================================= */
.wki-multimedia {
    padding: 2.5rem 2rem !important;
    border-top: 8px solid var(--imm-red);
    background: rgba(17,17,17,0.04);
}

@media (min-width: 640px) {
    .wki-multimedia {
        padding: 3.25rem 2.75rem !important;
    }
}

.wki-multimedia__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.25rem;
    border-bottom: 2px solid var(--neo-black);
    padding-bottom: 1.25rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.wki-multimedia__archive-link {
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
    transition: color 0.2s;
}

.wki-multimedia__archive-link:hover {
    color: var(--imm-red);
}

.wki-multimedia__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .wki-multimedia__grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.wki-multimedia__item {
    height: 17rem;
    position: relative;
    overflow: hidden;
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.wki-multimedia__item--large {
    grid-column: span 1;
}

@media (min-width: 768px) {
    .wki-multimedia__item--large {
        grid-column: span 2;
    }
}

.wki-multimedia__item img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wki-multimedia__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 10;
}

.wki-multimedia__info {
    position: relative;
    z-index: 20;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    padding: 1.5rem !important;
    width: 100%;
}

.wki-multimedia__type-badge {
    background: rgba(255,255,255,0.9);
    width: max-content;
    padding: 0.35rem 0.65rem;
    border: 2px solid var(--neo-black);
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
}

.wki-multimedia__title {
    color: #fff;
    font-size: 1.35rem;
}

.wki-multimedia__play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.wki-multimedia__play-btn {
    width: 3.5rem;
    height: 3.5rem;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--neo-black);
    box-shadow: var(--shadow-neo-sm);
}

.wki-multimedia__caption {
    position: relative;
    z-index: 20;
    margin-top: auto;
    background: rgba(255,255,255,0.95);
    padding: 0.85rem 1rem !important;
    border-top: 2px solid var(--neo-black);
}

.wki-multimedia__caption-type {
    font-weight: 700;
    font-size: 0.65rem;
    text-transform: uppercase;
    color: var(--imm-red);
}

.wki-multimedia__caption-title {
    font-size: 0.9rem;
    line-height: 1.35;
    margin-top: 0.35rem;
}

/* =============================================
   13. PAGE HEADERS & SPACING
   ============================================= */
.wki-page-header {
    margin-top: 2rem;
    margin-bottom: 3.25rem;
    border-bottom: 4px solid var(--neo-black);
    padding-bottom: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

@media (min-width: 768px) {
    .wki-page-header {
        margin-top: 2.5rem;
        margin-bottom: 3.75rem;
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-end;
    }
}

.wki-page-header__subtitle {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 1.15rem;
    margin-top: 0.85rem;
    color: #374151;
    text-transform: none;
    letter-spacing: 0;
    line-height: 1.75;
}

.wki-page-header__tags {
    display: flex;
    gap: 0.65rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.wki-tag {
    padding: 0.45rem 1rem !important;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    cursor: pointer;
    background: #fff;
    transition: all 0.15s;
}

.wki-tag:hover {
    background: var(--neo-black);
    color: #fff;
}

.wki-section-heading {
    margin-bottom: 2.25rem;
    border-bottom: 2px solid var(--neo-black);
    padding-bottom: 1.25rem;
}

/* =============================================
   14. FOOTER (GENEROUS SPACING)
   ============================================= */
.wki-footer {
    background: var(--neo-black);
    color: #fff;
    padding-top: 5rem;
    padding-bottom: 3rem;
    border-top: 8px solid var(--imm-gold);
    position: relative;
    overflow: hidden;
    z-index: 20;
    margin-top: auto;
}

.wki-footer__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3.5rem;
    margin-bottom: 4.5rem;
}

@media (min-width: 768px) {
    .wki-footer__grid {
        grid-template-columns: 5fr 3fr 3fr;
    }
}

.wki-footer__brand {
    padding-bottom: 2.5rem;
    border-bottom: 2px solid rgba(255,255,255,0.2);
}

@media (min-width: 768px) {
    .wki-footer__brand {
        border-bottom: none;
        border-right: 2px solid rgba(255,255,255,0.2);
        padding-right: 3rem;
        padding-bottom: 0;
    }
}

.wki-footer__logo {
    font-family: var(--font-heading);
    font-size: 3.25rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -0.05em;
    margin-bottom: 1.5rem;
    display: block;
}

.wki-footer__logo-dot {
    color: var(--imm-red);
}

.wki-footer__desc {
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.75;
    color: #d1d5db;
    max-width: 28rem;
    margin-bottom: 2.25rem;
}

.wki-footer__cta-group {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.wki-footer__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.65rem;
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    border: 2px solid;
    transition: all 0.2s;
}

.wki-footer__cta--red {
    background: var(--imm-red);
    color: #fff;
    border-color: var(--imm-red);
}

.wki-footer__cta--red:hover {
    background: #fff;
    color: var(--imm-red);
}

.wki-footer__cta--outline {
    background: transparent;
    color: #fff;
    border-color: #fff;
}

.wki-footer__cta--outline:hover {
    background: #fff;
    color: var(--neo-black);
}

.wki-footer__col h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1.75rem;
    font-size: 0.9rem;
    border-bottom: 1px solid #374151;
    padding-bottom: 0.65rem;
}

.wki-footer__col ul {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.wki-footer__col ul a {
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    color: #e5e7eb;
    transition: all 0.2s;
}

.wki-footer__col ul a:hover {
    color: var(--imm-gold);
    text-decoration: underline;
    text-decoration-thickness: 2px;
}

.wki-footer__bottom {
    border-top: 2px solid rgba(255,255,255,0.2);
    padding-top: 2.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #9ca3af;
    text-align: center;
}

@media (min-width: 768px) {
    .wki-footer__bottom {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.wki-footer__socials {
    display: flex;
    gap: 1.75rem;
    flex-wrap: wrap;
    justify-content: center;
}

.wki-footer__socials a {
    transition: color 0.2s;
}

.wki-footer__socials a:hover {
    color: #fff;
}

/* =============================================
   15. AMBIENT BACKGROUND ANIMATION
   ============================================= */
.wki-ambient-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.wki-ambient-bg__blob {
    position: absolute;
    border-radius: 50%;
    mix-blend-mode: multiply;
    filter: blur(120px);
}

.wki-ambient-bg__blob--red {
    top: -5%;
    left: -10%;
    width: 55vw;
    height: 55vw;
    background: rgba(139, 30, 40, 0.1);
    animation: wki-blob 15s infinite alternate;
}

.wki-ambient-bg__blob--gold {
    top: 20%;
    right: -10%;
    width: 50vw;
    height: 50vw;
    background: rgba(197, 168, 97, 0.2);
    filter: blur(140px);
    animation: wki-blob 25s infinite alternate-reverse;
    animation-delay: 2s;
}

.wki-ambient-bg__blob--white {
    bottom: -10%;
    left: 30%;
    width: 60vw;
    height: 60vw;
    background: rgba(255, 255, 255, 0.4);
    filter: blur(100px);
    animation: wki-blob 15s infinite alternate;
    animation-delay: 4s;
}

@keyframes wki-blob {
    0% { transform: translate(0px, 0px) scale(1); }
    33% { transform: translate(30px, -50px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
    100% { transform: translate(0px, 0px) scale(1); }
}

/* =============================================
   16. BUTTONS
   ============================================= */
.wki-btn {
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.85rem;
    padding: 0.85rem 1.65rem;
    border: 2px solid var(--neo-black);
    box-shadow: var(--shadow-neo);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease-out;
}

.wki-btn:hover {
    transform: translate(-3px, -3px);
    box-shadow: var(--shadow-neo-hover);
}

.wki-btn:active {
    transform: translate(2px, 2px);
    box-shadow: 0 0 0 0 rgba(17,17,17,1);
}

.wki-btn--primary {
    background: var(--imm-red);
    color: #fff;
}

.wki-btn--dark {
    background: var(--neo-black);
    color: #fff;
}

.wki-btn--gold {
    background: var(--imm-gold);
    color: var(--neo-black);
}

.wki-btn--outline {
    background: transparent;
    color: var(--neo-black);
}

/* =============================================
   17. FORMS (COMFORTABLE PADDING)
   ============================================= */
.wki-form input[type="text"],
.wki-form input[type="email"],
.wki-form input[type="tel"],
.wki-form input[type="url"],
.wki-form input[type="number"],
.wki-form textarea,
.wki-form select {
    width: 100%;
    padding: 1rem 1.25rem;
    background: #ffffff;
    border: 2px solid var(--neo-black);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--neo-black);
    transition: all 0.2s;
    border-radius: 0;
}

.wki-form input:focus,
.wki-form textarea:focus,
.wki-form select:focus {
    outline: none;
    box-shadow: var(--shadow-neo-sm);
    background: #fff;
}

.wki-form label {
    display: block;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.65rem;
}

/* =============================================
   18. SINGLE POST & INNER CONTENT
   ============================================= */
.wki-content {
    font-family: var(--font-body);
    font-size: 1.1rem;
    line-height: 1.9;
    color: #1f2937;
}

.wki-content h2,
.wki-content h3,
.wki-content h4 {
    margin-top: 2.75rem;
    margin-bottom: 1.5rem;
}

.wki-content p {
    margin-bottom: 1.75rem;
}

.wki-content ul,
.wki-content ol {
    margin-bottom: 1.75rem;
    padding-left: 2rem;
}

.wki-content ul { list-style: disc; }
.wki-content ol { list-style: decimal; }

.wki-single__header {
    margin-bottom: 2.75rem;
    padding-bottom: 1.75rem;
    border-bottom: 4px solid var(--neo-black);
}

.wki-single__cat {
    display: inline-block;
    padding: 0.45rem 1rem;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    border: 2px solid var(--neo-black);
    margin-bottom: 1.5rem;
}

.wki-single__title {
    margin-bottom: 1.5rem;
}

.wki-single__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #6b7280;
}

.wki-single__thumbnail {
    width: 100%;
    margin-bottom: 2.75rem;
    border: 2px solid var(--neo-black);
    box-shadow: var(--shadow-neo);
    overflow: hidden;
}

.wki-single__thumbnail img {
    width: 100%;
    height: auto;
}

/* =============================================
   19. CUSTOM SCROLLBAR & ADMIN BAR OFFSET
   ============================================= */
::-webkit-scrollbar {
    width: 12px;
    border-left: 2px solid var(--neo-black);
}

::-webkit-scrollbar-track {
    background: var(--neo-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--neo-black);
    border: 2px solid var(--neo-bg);
}

body.admin-bar .wki-nav {
    top: 32px;
}

@media (max-width: 782px) {
    body.admin-bar .wki-nav {
        top: 46px;
    }
}
