:root {
    --color-primary: #212062;
    --color-background: #F4F4F5;
    --color-text: #1B1B1B;
    --color-white: #FFFFFF;
    --color-accent: #212062;
    --font-heading: 'Questrial', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --transition-base: 0.3s ease;
    --max-width: 1400px;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 5rem;
    --header-height: 72px;
}

/* ============================================
   RESET
   ============================================ */

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-text);
    background-color: var(--color-background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color var(--transition-base);
}

a:hover,
a:focus {
    color: var(--color-primary);
    text-decoration: underline;
}

ul,
ol {
    list-style: none;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-text);
    margin-bottom: var(--spacing-sm);
}

h1 {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(1.6rem, 3.5vw, 2.6rem);
    letter-spacing: -0.01em;
}

h3 {
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
}

h4 {
    font-size: 1.1rem;
    font-weight: 600;
}

p {
    margin-bottom: var(--spacing-sm);
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    display: inline-block;
    padding: 0.85rem 2rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border: 2px solid transparent;
    border-radius: 0;
    cursor: pointer;
    transition: all var(--transition-base);
    text-align: center;
    text-decoration: none;
    line-height: 1;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: transparent;
    color: var(--color-primary);
    text-decoration: none;
}

.btn-outline {
    background-color: transparent;
    color: var(--color-white);
    border-color: var(--color-white);
}

.btn-outline:hover,
.btn-outline:focus {
    background-color: var(--color-white);
    color: var(--color-primary);
    text-decoration: none;
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn-secondary:hover,
.btn-secondary:focus {
    background-color: var(--color-primary);
    color: var(--color-white);
    text-decoration: none;
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

.skip-link {
    position: absolute;
    top: -100%;
    left: 0;
    background: var(--color-primary);
    color: var(--color-white);
    padding: var(--spacing-xs) var(--spacing-sm);
    z-index: 10000;
    font-weight: 600;
}

.skip-link:focus {
    top: 0;
    text-decoration: none;
    color: var(--color-white);
}

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: var(--color-background);
    clip: auto !important;
    color: var(--color-text);
    display: block;
    font-size: 1rem;
    height: auto;
    left: 5px;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* ============================================
   CONTAINER
   ============================================ */

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* ============================================
   SITE HEADER
   ============================================ */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--header-height);
    transition: background-color var(--transition-base), box-shadow var(--transition-base);
    background-color: var(--color-primary);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.35);
}

/* Front page: awal transparan */
.is-front-page .site-header {
    background-color: transparent;
    box-shadow: none;
}

/* Front page ketika discroll */
.is-front-page .site-header.header-scrolled {
    background-color: var(--color-primary);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.35);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* ============================================
   BRANDING
   ============================================ */

.site-branding {
    flex-shrink: 0;
}

.site-branding a {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-white);
    text-decoration: none;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: color var(--transition-base);
}

.site-branding a:hover {
    text-decoration: none;
}

/* ============================================
   MAIN NAVIGATION
   ============================================ */

.main-navigation {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.2rem;
}

.nav-menu li {
    position: relative;
}

.nav-menu li a {
    display: inline-block;
    position: relative;
    padding: 0.5rem 0.9rem;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--color-white);
    text-decoration: none;
    letter-spacing: 0.02em;
    transition: color var(--transition-base);
}

/* Animated underline */
.nav-menu li a::after {
    content: '';
    position: absolute;
    left: 0.9rem;
    right: 0.9rem;
    bottom: 0.25rem;
    height: 2px;
    background-color: var(--color-white);
    transform: scaleX(0);
    transform-origin: right center;
    transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.nav-menu li a:hover::after,
.nav-menu li a:focus::after,
.nav-menu li.current-menu-item a::after {
    transform: scaleX(1);
    transform-origin: left center;
}

.nav-menu li a:hover,
.nav-menu li a:focus,
.nav-menu li.current-menu-item a {
    color: var(--color-white);
    text-decoration: none;
}

/* ============================================
   SUB-MENU / DROPDOWN (Desktop)
   ============================================ */

.nav-menu > li.menu-item-has-children > a {
    padding-right: 1.6rem;
}

.nav-menu > li.menu-item-has-children > a::before {
    content: '';
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
    transition: transform var(--transition-base);
}

.nav-menu li .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: var(--color-white);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity var(--transition-base), visibility var(--transition-base), transform var(--transition-base);
    z-index: 100;
    padding: 0.5rem 0;
    border-top: 2px solid var(--color-primary);
}

.nav-menu li:hover > .sub-menu,
.nav-menu li:focus-within > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-menu > li:hover.menu-item-has-children > a::before,
.nav-menu > li:focus-within.menu-item-has-children > a::before {
    transform: translateY(-50%) rotate(180deg);
}

.nav-menu li .sub-menu li {
    display: block;
    width: 100%;
}

.nav-menu li .sub-menu li a {
    display: block;
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--color-text);
    white-space: nowrap;
    transition: background-color var(--transition-base), color var(--transition-base);
}

.nav-menu li .sub-menu li a::after {
    display: none;
}

.nav-menu li .sub-menu li a:hover,
.nav-menu li .sub-menu li a:focus {
    background-color: var(--color-background);
    color: var(--color-primary);
    text-decoration: none;
}

.nav-menu li .sub-menu li.current-menu-item a {
    color: var(--color-primary);
    font-weight: 600;
}

/* Toggle sub-menu – hidden on desktop */
.sub-menu-toggle {
    display: none;
}

/* ============================================
   HAMBURGER
   ============================================ */

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1010;
}

.hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 26px;
}

.hamburger span {
    display: block;
    height: 2px;
    background-color: var(--color-white);
    transition: all var(--transition-base);
    border-radius: 1px;
}

.menu-toggle[aria-expanded="true"] .hamburger span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle[aria-expanded="true"] .hamburger span:nth-child(2) {
    opacity: 0;
}

.menu-toggle[aria-expanded="true"] .hamburger span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   HERO SECTION – BASE
   ============================================ */

.hero-section {
    position: relative;
    width: 100%;
    min-height: 85vh;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    margin-top: var(--header-height);
    background-color: #000;
}

.hero-section.hero-fullscreen {
    margin-top: 0;
    min-height: 100vh;
    height: 100vh;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.7) 0%,
        rgba(0, 0, 0, 0.2) 40%,
        rgba(0, 0, 0, 0.3) 100%
    );
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    padding: var(--spacing-xl) var(--spacing-md);
    max-width: var(--max-width);
    margin: 0 auto;
    width: 100%;
    color: var(--color-white);
}

.hero-content h1 {
    color: var(--color-white);
    margin-bottom: var(--spacing-xs);
    max-width: 700px;
}

.hero-content p {
    font-size: 1.15rem;
    opacity: 0.9;
    max-width: 550px;
    margin-bottom: var(--spacing-md);
    line-height: 1.6;
}

/* ============================================
   HERO SLIDER
   ============================================ */

.hero-slider {
    position: relative;
    background-color: #000;
    width: 100%;
    height: 100%;
}

.hero-slider.hero-fullscreen {
    min-height: 100vh;
}

.hero-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease;
    z-index: 1;
    display: flex;
    align-items: flex-end;
}

.hero-slide.is-active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
    position: relative;
}

.hero-slide .hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-slide .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.7) 0%,
        rgba(0, 0, 0, 0.2) 40%,
        rgba(0, 0, 0, 0.3) 100%
    );
}

.hero-slide .hero-content {
    position: relative;
    z-index: 3;
}

/* Slide content animation */

.hero-slide .hero-content h1,
.hero-slide .hero-content p,
.hero-slide .hero-content .btn {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.hero-slide.is-active .hero-content h1 {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.3s;
}

.hero-slide.is-active .hero-content p {
    opacity: 0.9;
    transform: translateY(0);
    transition-delay: 0.45s;
}

.hero-slide.is-active .hero-content .btn {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.6s;
}

/* Arrow navigation */

.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.4);
    color: var(--color-white);
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-base);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.hero-arrow:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--color-white);
}

.hero-arrow:focus {
    outline: 2px solid var(--color-white);
    outline-offset: 2px;
}

.hero-arrow-prev {
    left: var(--spacing-md);
}

.hero-arrow-next {
    right: var(--spacing-md);
}

/* Dot indicators */

.hero-dots {
    position: absolute;
    bottom: var(--spacing-md);
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 10px;
    align-items: center;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.6);
    background: transparent;
    cursor: pointer;
    transition: all var(--transition-base);
    padding: 0;
}

.hero-dot:hover {
    border-color: var(--color-white);
    background: rgba(255, 255, 255, 0.3);
}

.hero-dot.is-active {
    background: var(--color-white);
    border-color: var(--color-white);
    transform: scale(1.2);
}

.hero-dot:focus {
    outline: 2px solid var(--color-white);
    outline-offset: 2px;
}

/* ============================================
   EDITORIAL FEATURED CARD
   ============================================ */

.editorial-featured-card {
    padding: var(--spacing-lg) 0 var(--spacing-md);
}

.editorial-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.editorial-card-inner {
    display: grid;
    grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
    gap: 0;
    background-color: #111319;
    color: var(--color-white);
    overflow: hidden;
}

/* Left text block */

.editorial-card-text-block {
    position: relative;
    background-color: #f4f5f9;
    color: #111111;
    padding: clamp(2rem, 4vw, 3rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 260px;
}

.editorial-card-eyebrow {
    width: 54px;
    height: 3px;
    background-color: var(--color-primary);
    margin-bottom: 1.2rem;
}

.editorial-card-title {
    font-family: var(--font-heading);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin-bottom: 0.9rem;
}

.editorial-card-excerpt {
    font-size: 0.95rem;
    line-height: 1.7;
    max-width: 32rem;
    margin-bottom: 1.4rem;
}

.editorial-card-cta {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-primary);
}

/* Right image block */

.editorial-card-image-block {
    position: relative;
    min-height: 260px;
    background-color: #000;
}

.editorial-card-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.editorial-card-image--placeholder {
    background-image: linear-gradient(135deg, #222 0%, #444 100%);
}

/* Hover */

.editorial-card-link:hover .editorial-card-inner,
.editorial-card-link:focus .editorial-card-inner {
    transform: translateY(-2px);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.3);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.editorial-card-link:hover .editorial-card-image,
.editorial-card-link:focus .editorial-card-image {
    filter: brightness(1.06);
}

/* Responsive editorial card */

@media (max-width: 1024px) {
    .editorial-card-inner {
        grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.5fr);
    }
}

@media (max-width: 768px) {
    .editorial-card-inner {
        grid-template-columns: minmax(0, 1fr);
    }

    .editorial-card-text-block {
        order: 2;
    }

    .editorial-card-image-block {
        order: 1;
        min-height: 220px;
    }

    .editorial-featured-card {
        padding: var(--spacing-lg) 0;
    }
}

/* ============================================
   CARD CAROUSEL
   ============================================ */

.section-cards {
    padding: var(--spacing-lg) 0;
}

.section-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--spacing-lg);
}

.section-title-row h2 {
    margin-bottom: 0;
}

.carousel-arrows {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.carousel-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: transparent;
    border: 1.5px solid var(--color-text);
    color: var(--color-text);
    cursor: pointer;
    transition: all var(--transition-base);
}

.carousel-arrow:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-white);
}

.carousel-arrow:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.carousel-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.carousel-arrow:disabled:hover {
    background: transparent;
    border-color: var(--color-text);
    color: var(--color-text);
}

.cards-carousel {
    overflow: hidden;
    position: relative;
}

.cards-track {
    display: flex;
    gap: var(--spacing-md);
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.cards-track::-webkit-scrollbar {
    display: none;
}

.cards-track .card {
    flex: 0 0 calc((100% - var(--spacing-md) * 2) / 3);
    scroll-snap-align: start;
    background: var(--color-white);
    overflow: hidden;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.cards-track .card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

/* Default grid for archives, etc. */

.section-title {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
}

.card {
    background: var(--color-white);
    overflow: hidden;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.card-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.card:hover .card-image img {
    transform: scale(1.04);
}

.card-body {
    padding: var(--spacing-md);
}

.card-body h3 {
    margin-bottom: var(--spacing-xs);
}

.card-body h3 a {
    color: var(--color-text);
    text-decoration: none;
}

.card-body h3 a:hover {
    color: var(--color-primary);
}

.card-excerpt {
    font-size: 0.92rem;
    color: #555;
    margin-bottom: var(--spacing-sm);
    line-height: 1.6;
}

.card-meta {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: var(--spacing-sm);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* ============================================
   FEATURED ROW (FRONT PAGE)
   ============================================ */

.featured-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
    padding: 0 0 var(--spacing-lg);
}

.featured-card {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: flex-end;
}

.featured-card img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.featured-card:hover img {
    transform: scale(1.03);
}

.featured-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.65) 0%, transparent 60%);
}

.featured-card-content {
    position: relative;
    z-index: 2;
    padding: var(--spacing-md);
    color: var(--color-white);
}

.featured-card-content h3 {
    color: var(--color-white);
    margin-bottom: var(--spacing-xs);
}

.featured-card-content p {
    font-size: 0.92rem;
    opacity: 0.85;
    margin-bottom: var(--spacing-sm);
}

/* ============================================
   SINGLE & PAGE CONTENT
   ============================================ */

.content-area {
    padding-top: calc(var(--header-height) + var(--spacing-lg));
    padding-bottom: var(--spacing-xl);
}

.entry-header {
    margin-bottom: var(--spacing-lg);
}

.entry-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.05rem;
}

.entry-content p {
    margin-bottom: 1.5rem;
}

.entry-content img {
    margin: var(--spacing-md) 0;
}

.entry-thumbnail {
    margin-bottom: var(--spacing-lg);
    aspect-ratio: 21 / 9;
    overflow: hidden;
}

.entry-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* ============================================
   PAGE LAYOUT (TITLE + 2 COLUMN)
============================================ */

.page-header {
    padding-top: calc(var(--header-height) + var(--spacing-lg));
    padding-bottom: var(--spacing-md);
}

.page-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.page-layout {
    padding-bottom: var(--spacing-xl);
}

.page-layout-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.3fr) minmax(0, 0.7fr);
    gap: var(--spacing-lg);
    align-items: flex-start;
}

/* LEFT COLUMN – MEDIA */

.page-media {
    position: relative;
}

/* Wrapper utama ketika ada featured image */
.page-featured-image {
    margin: 0;
    overflow: hidden;
    background-color: #111;
}

/* Gambar featured */
.page-featured-image__img {
    width: 100%;
    height: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    display: block;
}

/* Keadaan ketika tidak ada featured image:
   - jangan tampilkan box hitam
   - biarkan kolom mengikuti background body */
.page-featured-image--empty {
    margin: 0;
    padding: 0;
    background: transparent;
    height: auto;
}

/* RIGHT COLUMN – CONTENT */

.page-content-column {
    max-width: 720px;
    width: 100%;
}

.page-entry-content {
    font-size: 1.05rem;
    line-height: 1.8;
}

.page-entry-content p {
    margin-bottom: 1.4rem;
}




/* ============================================
   PAGE BOTTOM WIDGET
   ============================================ */

.page-bottom-widget {
    padding: 0 0 var(--spacing-xl);
    border-top: 1px solid #e0e0e0;
    margin-top: var(--spacing-xl);
}

.page-bottom-widget__inner {
    padding-top: var(--spacing-lg);
}

.page-bottom-widget__label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    margin-bottom: var(--spacing-sm);
    color: #777;
}

.page-bottom-featured-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--spacing-md);
}

.page-bottom-featured-card {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: flex-end;
    background-color: #000;
    color: var(--color-white);
    text-decoration: none;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.page-bottom-featured-card__media {
    position: absolute;
    inset: 0;
}

.page-bottom-featured-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.page-bottom-featured-card__placeholder {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(135deg, #222 0%, #444 100%);
}

.page-bottom-featured-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.65) 0%, transparent 60%);
}

.page-bottom-featured-card__content {
    position: relative;
    z-index: 2;
    padding: var(--spacing-md);
}

.page-bottom-featured-card__title {
    margin: 0;
    color: var(--color-white);
    font-size: 1.05rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* Hover */

.page-bottom-featured-card:hover,
.page-bottom-featured-card:focus {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.page-bottom-featured-card:hover .page-bottom-featured-card__media img,
.page-bottom-featured-card:focus .page-bottom-featured-card__media img {
    transform: scale(1.04);
}

/* Responsive */

@media (max-width: 1024px) {
    .page-bottom-featured-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: var(--spacing-sm);
    }
}

@media (max-width: 767px) {
    .page-bottom-featured-row {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   POST NAVIGATION (DEFAULT – OLD)
   ============================================ */

.post-navigation {
    margin-top: var(--spacing-xl);
    padding-top: var(--spacing-md);
    border-top: 1px solid #ddd;
}

/* ============================================
   ARCHIVE
   ============================================ */

.archive-header {
    text-align: center;
    padding: var(--spacing-lg) 0;
}

.archive-header h1 {
    margin-bottom: var(--spacing-xs);
}

.archive-description {
    max-width: 600px;
    margin: 0 auto;
    color: #555;
}

/* ============================================
   PAGINATION
   ============================================ */

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-lg) 0;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--color-text);
    border: 1px solid #ddd;
    text-decoration: none;
    transition: all var(--transition-base);
}

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

/* ============================================
   404 PAGE
   ============================================ */

.error-404 {
    text-align: center;
    padding: var(--spacing-xl) var(--spacing-md);
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.error-404 h1 {
    font-size: clamp(4rem, 10vw, 8rem);
    color: var(--color-primary);
    margin-bottom: 0;
}

.error-404 p {
    font-size: 1.15rem;
    max-width: 500px;
    margin: var(--spacing-sm) auto var(--spacing-md);
}

/* ============================================
   SITE FOOTER
   ============================================ */

.site-footer {
    background: #212062;
    color: var(--color-white);
    padding: var(--spacing-xl) 0 var(--spacing-lg);
    font-size: 0.95rem;
}

.footer-menu-rows {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.footer-menu-column {
    min-width: 0;
}

.footer-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-menu-list > li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}

.footer-menu-list > li > a {
    display: block;
    padding: 0.6rem 0;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    letter-spacing: 0.02em;
    transition: color var(--transition-base), opacity var(--transition-base), transform var(--transition-base);
}

.footer-menu-list > li > a:hover,
.footer-menu-list > li > a:focus {
    color: var(--color-white);
    opacity: 1;
    transform: translateX(2px);
    text-decoration: none;
}

.footer-bottom-line {
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    padding-top: var(--spacing-md);
    margin-top: var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-md);
}

.footer-bottom-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-logo-image img {
    display: block;
    max-height: 80px;
    width: auto;
}

.footer-bottom-text {
    font-size: 0.86rem;
    line-height: 1.6;
}

.footer-org-name--large {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    margin-bottom: 0.15rem;
}

.footer-tagline {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 0.35rem;
}

.footer-org-address {
    opacity: 0.8;
}

.footer-bottom-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.footer-social-bottom {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.footer-social-bottom a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: var(--color-white);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: background-color var(--transition-base), border-color var(--transition-base), transform var(--transition-base), color var(--transition-base);
}

.footer-social-bottom a:hover,
.footer-social-bottom a:focus {
    background-color: var(--color-white);
    border-color: var(--color-white);
    color: #111;
    transform: translateY(-2px);
}

.footer-social-bottom svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.footer-meta {
    margin: 0;
    font-size: 0.8rem;
    opacity: 0.6;
}

/* ============================================
   WORDPRESS ALIGNMENTS
   ============================================ */

.alignwide {
    max-width: var(--max-width);
    margin-left: auto;
    margin-right: auto;
}

.alignfull {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

.aligncenter {
    text-align: center;
}

.alignleft {
    float: left;
    margin-right: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
}

.alignright {
    float: right;
    margin-left: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
}

.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    font-size: 0.82rem;
    color: #888;
    padding: var(--spacing-xs) 0;
}

/* ============================================
   HERO MOBILE FIX
   ============================================ */

@media (max-width: 768px) {
    .hero-section.hero-fullscreen {
        margin-top: 0;
        min-height: 100vh;
        height: 100vh;
    }

    .hero-slider {
        width: 100%;
        height: 100%;
    }

    .hero-slides {
        width: 100%;
        height: 100%;
    }

    .hero-slide {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        opacity: 0;
        visibility: hidden;
        display: flex;
        align-items: flex-end;
    }

    .hero-slide.is-active {
        opacity: 1;
        visibility: visible;
        z-index: 2;
        position: relative;
    }

    .hero-background,
    .hero-slide .hero-background {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 1;
    }

    .hero-background img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .hero-overlay,
    .hero-slide .hero-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 2;
    }

    .hero-content {
        position: relative;
        z-index: 3;
        padding: calc(var(--spacing-lg) + var(--header-height)) var(--spacing-md) var(--spacing-lg);
        max-width: 100%;
    }

    .hero-content h1 {
        font-size: 1.7rem;
        max-width: 100%;
    }

    .hero-content p {
        font-size: 1rem;
        max-width: 100%;
    }
}

/* HERO MOBILE FIX (FINAL) */

@media (max-width: 768px) {
    .hero-section.hero-fullscreen {
        margin-top: 0;
        min-height: 100vh;
        height: 100vh;
    }

    .hero-slider {
        position: relative;
        width: 100%;
        height: 100%;
    }

    .hero-slides {
        position: relative;
        width: 100%;
        height: 100%;
    }

    .hero-slide {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        opacity: 0;
        visibility: hidden;
        display: flex;
        align-items: flex-end;
    }

    .hero-slide.is-active {
        opacity: 1;
        visibility: visible;
        z-index: 2;
        position: absolute;
    }

    .hero-background,
    .hero-slide .hero-background {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        z-index: 1;
    }

    .hero-background img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .hero-overlay,
    .hero-slide .hero-overlay {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        z-index: 2;
    }

    .hero-content {
        position: relative;
        z-index: 3;
        padding: calc(var(--spacing-lg) + var(--header-height)) var(--spacing-md) var(--spacing-lg);
        max-width: 100%;
    }

    .hero-content h1 {
        font-size: 1.7rem;
        max-width: 100%;
    }

    .hero-content p {
        font-size: 1rem;
        max-width: 100%;
    }
}

/* ============================================
   SINGLE: BOTTOM LATEST / POPULAR POSTS
   ============================================ */

.single-bottom-posts {
    padding: var(--spacing-lg) 0 var(--spacing-xl);
    border-top: 1px solid #e0e0e0;
    margin-top: var(--spacing-xl);
    background: linear-gradient(135deg, #f4f5f9 0%, #e9ecf3 100%);
}

.single-bottom-posts__inner {
    max-width: var(--max-width);
    margin: 0 auto;
}

.single-bottom-posts__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--spacing-lg);
}

.single-bottom-posts__column {
    background: rgba(255, 255, 255, 0.9);
    padding: var(--spacing-md);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.single-bottom-posts__heading {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    margin-bottom: var(--spacing-sm);
}

.single-bottom-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.single-bottom-item {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: var(--spacing-sm);
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: background-color var(--transition-base), transform var(--transition-base), box-shadow var(--transition-base);
}

.single-bottom-item:last-child {
    border-bottom: none;
}

.single-bottom-item__thumb-wrap {
    display: block;
}

.single-bottom-item__thumb {
    width: 100%;
    height: 72px;
    object-fit: cover;
    border-radius: 4px;
    background-color: #ccc;
    transition: transform 0.4s ease;
}

.single-bottom-item__thumb--placeholder {
    width: 100%;
    height: 72px;
    border-radius: 4px;
    background-image: linear-gradient(135deg, #d0d3dd 0%, #c2c6d4 100%);
}

.single-bottom-item__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.single-bottom-item__meta {
    font-size: 0.75rem;
    color: #8a8fa0;
    margin-bottom: 0.25rem;
}

.single-bottom-item__sep {
    margin: 0 0.35rem;
}

.single-bottom-item__title {
    font-size: 0.9rem;
    margin: 0 0 0.15rem;
}

.single-bottom-item__title a {
    color: var(--color-text);
    text-decoration: none;
    transition: color var(--transition-base);
}

.single-bottom-item__excerpt {
    font-size: 0.8rem;
    color: #666;
    margin: 0;
}

.single-bottom-item:hover {
    background-color: rgba(244, 245, 249, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.single-bottom-item:hover .single-bottom-item__thumb {
    transform: scale(1.03);
}

.single-bottom-item:hover .single-bottom-item__title a {
    color: var(--color-primary);
}

@media (max-width: 1024px) {
    .single-bottom-posts__grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
}

@media (max-width: 767px) {
    .single-bottom-posts {
        padding: var(--spacing-md) 0 var(--spacing-lg);
        margin-top: var(--spacing-lg);
    }

    .single-bottom-posts__column {
        padding: var(--spacing-sm);
        box-shadow: none;
    }

    .single-bottom-item {
        grid-template-columns: 80px minmax(0, 1fr);
    }

    .single-bottom-item__thumb,
    .single-bottom-item__thumb--placeholder {
        height: 64px;
    }
}

/* ============================================
   POST NAVIGATION (PREV / NEXT BUTTONS)
   ============================================ */

.post-nav-inner {
    display: flex;
    justify-content: space-between;
    gap: var(--spacing-md);
    align-items: stretch;
    flex-wrap: wrap;
}

.post-nav-item a {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    font-size: 0.9rem;
    text-decoration: none;
    color: var(--color-text);
    padding: 0.75rem 1rem;
    border-radius: 4px;
    background-color: #f5f5f7;
    transition: background-color var(--transition-base), transform var(--transition-base), box-shadow var(--transition-base), color var(--transition-base);
}

.post-nav-item--prev {
    text-align: left;
}

.post-nav-item--next {
    text-align: right;
}

.post-nav-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: #777;
}

.post-nav-title {
    font-weight: 600;
}

.post-nav-item a:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.post-nav-item a:hover .post-nav-label {
    color: rgba(255, 255, 255, 0.85);
}

@media (max-width: 767px) {
    .post-nav-inner {
        flex-direction: column;
    }

    .post-nav-item--next {
        text-align: left;
    }
}
