/*
Theme Name: Raiders Official Theme
Theme URI: https://raidersofthetomb.com
Author: Raiders of the Tomb
Author URI: https://raidersofthetomb.com
Description: Tema premium inspirado en la web oficial de Tomb Raider.
Version: 2.0.0
Text Domain: raiders-theme
*/

/* ==========================================================================
   1. CSS CUSTOM PROPERTIES
   ========================================================================== */

:root {
    /* Backgrounds */
    --color-bg: #0a0a0a;
    --color-bg-card: #111;
    --color-bg-elevated: #161616;

    /* Text */
    --color-text: #fff;
    --color-text-secondary: rgba(255, 255, 255, 0.7);
    --color-text-muted: rgba(255, 255, 255, 0.5);

    /* Brand – Gold */
    --color-gold: #c8a45c;
    --color-gold-dark: #a07830;
    --color-gold-glow: rgba(200, 164, 92, 0.4);

    /* Typography */
    --font-main: 'Sofia Sans Semi Condensed', sans-serif;

    /* Layout */
    --max-width: 1400px;
}

/* ==========================================================================
   2. RESET & BASE
   ========================================================================== */

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

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

body {
    margin: 0;
    padding: 0;
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-main);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

ul,
ol {
    list-style: none;
}

::selection {
    background: var(--color-gold);
    color: #000;
}

::-moz-selection {
    background: var(--color-gold);
    color: #000;
}

/* ==========================================================================
   3. LAYOUT
   ========================================================================== */

.site-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

.site-content {
    flex: 1;
    padding-top: 0; /* Hero is edge-to-edge */
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 40px;
}

/* ==========================================================================
   4. TYPOGRAPHY
   ========================================================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--color-text);
    font-family: var(--font-main);
    line-height: 1.2;
    margin: 0 0 20px;
}

h1 {
    font-size: 4rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

h2 {
    font-size: 2.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

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

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

h6 {
    font-size: 1rem;
    font-weight: 600;
}

p {
    line-height: 1.7;
    margin: 0 0 15px;
}

.section-tag {
    font-size: 0.75rem;
    color: var(--color-gold);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 700;
    display: block;
    margin-bottom: 10px;
}

.section-heading {
    font-size: 2.5rem;
    color: var(--color-text);
    text-transform: uppercase;
    margin-bottom: 40px;
    letter-spacing: 1px;
    font-weight: 700;
}

/* ==========================================================================
   5. LINKS
   ========================================================================== */

a {
    color: var(--color-gold);
    text-decoration: none;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

a:hover,
a:focus {
    color: #fff;
    text-shadow: 0 0 12px var(--color-gold-glow);
}

a:focus-visible {
    outline: 2px solid var(--color-gold);
    outline-offset: 3px;
}

/* ==========================================================================
   6. SITE HEADER
   ========================================================================== */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.65);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(200, 164, 92, 0.15);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: background 0.4s ease, border-bottom 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

.site-header.scrolled {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(200, 164, 92, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

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

/* --- Logo --- */

.header-logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.header-logo-link:hover {
    text-shadow: none;
}

.header-logo-img {
    height: 45px;
    width: auto;
}

/* --- Desktop Navigation --- */

.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 8px;
}

.main-navigation li a {
    color: rgba(255, 255, 255, 0.65);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.82rem;
    letter-spacing: 2px;
    padding: 10px 16px;
    transition: color 0.3s ease, border-color 0.3s ease;
    text-decoration: none;
    display: block;
    border-bottom: 2px solid transparent;
    font-family: var(--font-main);
}

.main-navigation li a:hover {
    color: #fff;
    text-shadow: 0 0 10px rgba(200, 164, 92, 0.6);
}

.main-navigation .current-menu-item a,
.main-navigation .current_page_item a {
    color: #fff;
    border-bottom: 2px solid var(--color-gold);
}

/* --- Hamburger Toggle --- */

.nav-toggle {
    display: none; /* Hidden on desktop */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 7px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 2100;
    width: 44px;
    height: 44px;
}

.nav-toggle span {
    display: block;
    width: 30px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: transform 0.35s ease, opacity 0.25s ease;
    transform-origin: center center;
}

/* X animation when open */
.nav-toggle.is-active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.nav-toggle.is-active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.nav-toggle.is-active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* --- Mobile Navigation Overlay --- */

.mobile-nav {
    position: fixed;
    inset: 0;
    background: rgba(5, 5, 5, 0.98);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.mobile-nav.is-open {
    opacity: 1;
    pointer-events: auto;
}

.mobile-nav-logo img {
    width: 140px;
    margin-bottom: 40px;
}

.mobile-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
}

.mobile-menu-list li {
    margin-bottom: 5px;
}

.mobile-menu-list li a {
    color: #fff;
    font-size: 1.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    padding: 15px 0;
    display: block;
    text-align: center;
    text-decoration: none;
    transition: color 0.3s ease;
    font-family: var(--font-main);
}

.mobile-menu-list li a:hover {
    color: var(--color-gold);
    text-shadow: 0 0 20px var(--color-gold-glow);
}

.mobile-nav-close {
    position: absolute;
    top: 30px;
    right: 30px;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.mobile-nav-close:hover {
    color: var(--color-gold);
}

.mobile-nav-close svg {
    width: 28px;
    height: 28px;
}

/* --- Skip Link (Accessibility) --- */

.skip-link.screen-reader-text {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
    background: var(--color-gold);
    color: #000;
    padding: 10px 20px;
    font-weight: 700;
    text-decoration: none;
    z-index: 100000;
}

.skip-link.screen-reader-text:focus {
    left: 10px;
    top: 10px;
    width: auto;
    height: auto;
    clip: auto;
    z-index: 99999;
    font-size: 0.9rem;
}

/* Screen-reader-text utility */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

/* ==========================================================================
   7. HERO SECTION
   ========================================================================== */

.hero-section {
    width: 100%;
    height: 100vh;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(10, 10, 10, 0.3) 0%,
        rgba(10, 10, 10, 0.1) 40%,
        rgba(10, 10, 10, 0.7) 80%,
        #0a0a0a 100%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    animation: fadeInUp 1.2s ease-out;
}

.hero-logo {
    max-width: 480px;
    width: 80%;
    height: auto;
    margin: 0 auto;
}

.hero-tagline {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-top: 20px;
    font-weight: 500;
    font-family: var(--font-main);
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    animation: float 2s ease-in-out infinite;
    text-decoration: none;
}

.hero-scroll-indicator:hover {
    text-shadow: none;
}

.scroll-text {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: rgba(255, 255, 255, 0.4);
}

.scroll-arrow {
    transform: rotate(90deg);
    display: flex;
}

.scroll-arrow img {
    width: 16px;
    height: auto;
    filter: brightness(0.5);
}

/* Hero Keyframes */

@keyframes float {
    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(8px);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   8. FEATURED CARDS SECTION
   ========================================================================== */

.featured-cards-section {
    padding: 80px 40px;
    max-width: var(--max-width);
    margin: 0 auto;
}

.featured-cards-inner {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.featured-card {
    position: relative;
    overflow: hidden;
    display: block;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    aspect-ratio: 4 / 3;
}

.featured-card:hover {
    border-color: rgba(200, 164, 92, 0.5);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.featured-card:focus-visible {
    outline: 2px solid var(--color-gold);
    outline-offset: 2px;
}

.featured-card-img {
    position: absolute;
    inset: 0;
}

.featured-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.featured-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.85) 0%,
        rgba(0, 0, 0, 0.3) 50%,
        transparent 100%
    );
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    z-index: 2;
}

.featured-card-tag {
    font-size: 0.7rem;
    color: var(--color-gold);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 700;
    margin-bottom: 8px;
}

.featured-card-title {
    font-size: 1.5rem;
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 8px;
    line-height: 1.2;
}

.featured-card-desc {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
    line-height: 1.5;
}

/* ==========================================================================
   9. MISSION / CTA SECTION
   ========================================================================== */

.mission-section {
    width: 100%;
    padding: 120px 40px;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}

.mission-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 10, 0.8);
}

.mission-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.mission-title {
    font-size: 2.5rem;
    color: #fff;
    text-transform: uppercase;
    margin: 15px 0 25px;
    letter-spacing: 1px;
    font-weight: 700;
}

.mission-text {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    margin-bottom: 30px;
}

.mission-deco img {
    max-width: 300px;
    opacity: 0.3;
    margin: 40px auto 0;
}

/* ==========================================================================
   10. LATEST POSTS / POST GRID
   ========================================================================== */

.latest-posts-section {
    padding: 80px 40px;
    max-width: var(--max-width);
    margin: 0 auto;
}

.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 28px;
    margin-top: 40px;
}

.post-grid article {
    background: var(--color-bg-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    overflow: hidden;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
}

.post-grid article:hover {
    border-color: rgba(200, 164, 92, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.post-thumbnail {
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.post-thumbnail a {
    display: block;
    width: 100%;
    height: 100%;
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.post-grid article:hover .post-thumbnail img {
    transform: scale(1.05);
}

.post-content-wrap {
    padding: 28px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.post-category {
    font-size: 0.7rem;
    color: var(--color-gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    margin-bottom: 10px;
    display: inline-block;
    text-decoration: none;
}

.post-category:hover {
    color: #fff;
}

.post-content-wrap .entry-title {
    font-size: 1.15rem;
    font-weight: 600;
    margin: 0 0 12px;
    line-height: 1.3;
}

.post-content-wrap .entry-title a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-content-wrap .entry-title a:hover {
    color: var(--color-gold);
    text-shadow: none;
}

.entry-excerpt {
    font-size: 0.88rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
}

.read-more-link {
    font-size: 0.78rem;
    color: var(--color-gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.3s ease, gap 0.3s ease;
}

.read-more-link:hover {
    color: #fff;
    gap: 10px;
    text-shadow: none;
}

.read-more-link svg {
    transition: transform 0.3s ease;
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.read-more-link:hover svg {
    transform: translateX(3px);
}

/* ==========================================================================
   11. PAGINATION
   ========================================================================== */

.posts-navigation,
.pagination {
    text-align: center;
    margin-top: 50px;
}

.nav-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

.nav-links a,
.nav-links .current,
.nav-links .dots {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    margin: 0 2px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    font-family: var(--font-main);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(15, 15, 15, 0.6);
    color: var(--color-text-secondary);
    text-decoration: none;
    box-sizing: border-box;
}

.nav-links a {
    color: var(--color-text-muted);
}

.nav-links a:hover {
    color: #fff;
    border-color: var(--color-gold);
    background: rgba(200, 164, 92, 0.08);
    box-shadow: 0 0 15px rgba(200, 164, 92, 0.2);
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

.nav-links .current {
    color: #000;
    background: var(--color-gold);
    border-color: var(--color-gold);
    box-shadow: 0 0 15px var(--color-gold-glow);
}

.nav-links .dots {
    border-color: transparent;
    background: transparent;
    color: var(--color-text-muted);
}

.nav-links a.prev,
.nav-links a.next {
    padding: 0 20px;
    min-width: auto;
}

/* Centered posts navigation */
.posts-navigation .nav-links {
    display: flex;
    justify-content: center;
}

.posts-navigation .nav-previous a,
.posts-navigation .nav-next a,
.posts-navigation .page-numbers {
    color: var(--color-gold);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid rgba(200, 164, 92, 0.3);
    padding: 12px 18px;
    margin: 0 4px;
    transition: all 0.3s ease;
    display: inline-block;
}

.posts-navigation .nav-previous a:hover,
.posts-navigation .nav-next a:hover,
.posts-navigation .page-numbers:hover,
.posts-navigation .page-numbers.current {
    background: var(--color-gold);
    color: #000;
    text-shadow: none;
}

/* ==========================================================================
   12. BUTTONS
   ========================================================================== */

.btn-primary {
    display: inline-block;
    background: linear-gradient(135deg, #c8a45c, #a07830);
    color: #000;
    padding: 14px 40px;
    font-family: var(--font-main);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.85rem;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    text-decoration: none;
    line-height: 1.4;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    filter: brightness(1.15);
    box-shadow: 0 5px 25px var(--color-gold-glow);
    transform: translateY(-2px);
    color: #000;
    text-shadow: none;
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px var(--color-gold-glow);
}

/* Secondary / outline button */
.btn-secondary {
    display: inline-block;
    background: transparent;
    color: var(--color-gold);
    padding: 12px 36px;
    font-family: var(--font-main);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.85rem;
    border: 1px solid var(--color-gold);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    line-height: 1.4;
}

.btn-secondary:hover {
    background: var(--color-gold);
    color: #000;
    text-shadow: none;
    box-shadow: 0 5px 25px var(--color-gold-glow);
}

/* ==========================================================================
   13. SINGLE POST
   ========================================================================== */

.single-hero {
    width: 100%;
    height: 50vh;
    min-height: 350px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.single-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        transparent 50%,
        #0a0a0a 100%
    );
}

.single-post-content {
    max-width: 800px;
    margin: -60px auto 0;
    position: relative;
    z-index: 2;
    background: rgba(15, 15, 15, 0.95);
    padding: 60px;
    border-left: 3px solid var(--color-gold);
}

.single-post-content .entry-header {
    margin-bottom: 40px;
}

.single-post-content .entry-title {
    font-size: 2.2rem;
    line-height: 1.2;
    margin-bottom: 20px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Categories */

.entry-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.cat-badge {
    font-size: 0.7rem;
    color: var(--color-gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    padding: 4px 12px;
    border: 1px solid rgba(200, 164, 92, 0.3);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.cat-badge:hover {
    background: var(--color-gold);
    color: #000;
    text-shadow: none;
}

/* Entry Meta */

.entry-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    color: var(--color-text-muted);
    font-size: 0.85rem;
}

.entry-meta a {
    color: var(--color-text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.entry-meta a:hover {
    color: var(--color-gold);
    text-shadow: none;
}

.entry-meta svg {
    vertical-align: -2px;
    margin-right: 4px;
    opacity: 0.6;
    width: 14px;
    height: 14px;
}

.entry-border-deco {
    margin: 30px 0;
}

.entry-border-deco img {
    max-width: 200px;
    opacity: 0.2;
    margin: 0 auto;
    display: block;
}

/* Entry Content */

.entry-content {
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--color-text-secondary);
}

.entry-content p {
    margin-bottom: 20px;
}

.entry-content h2 {
    color: #fff;
    margin-top: 40px;
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.entry-content h3 {
    color: #fff;
    margin-top: 40px;
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.entry-content h4 {
    color: #fff;
    margin-top: 30px;
    margin-bottom: 12px;
}

.entry-content img {
    max-width: 100%;
    height: auto;
    margin: 30px 0;
}

.entry-content blockquote {
    border-left: 3px solid var(--color-gold);
    padding-left: 20px;
    margin: 30px 0;
    font-style: italic;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    line-height: 1.7;
}

.entry-content blockquote p {
    margin-bottom: 0;
}

.entry-content blockquote cite {
    display: block;
    font-size: 0.85rem;
    color: var(--color-gold);
    margin-top: 10px;
    font-style: normal;
    font-weight: 600;
}

.entry-content a {
    color: var(--color-gold);
    text-decoration: underline;
    text-decoration-color: rgba(200, 164, 92, 0.3);
    text-underline-offset: 3px;
    transition: text-decoration-color 0.3s ease, color 0.3s ease;
}

.entry-content a:hover {
    text-decoration-color: var(--color-gold);
    color: var(--color-gold);
    text-shadow: none;
}

.entry-content ul,
.entry-content ol {
    padding-left: 25px;
    margin-bottom: 20px;
    list-style: disc;
}

.entry-content ol {
    list-style: decimal;
}

.entry-content li {
    margin-bottom: 8px;
    line-height: 1.7;
}

.entry-content pre {
    background: var(--color-bg-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 20px;
    overflow-x: auto;
    margin: 25px 0;
    font-size: 0.9rem;
    line-height: 1.6;
}

.entry-content code {
    background: var(--color-bg-card);
    padding: 2px 6px;
    font-size: 0.9em;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.entry-content pre code {
    background: none;
    padding: 0;
    border: none;
}

.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
}

.entry-content th,
.entry-content td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.entry-content th {
    color: var(--color-gold);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.entry-content hr {
    border: none;
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin: 40px 0;
}

/* Tags */

.entry-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.tags-label {
    color: var(--color-text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-right: 4px;
}

.tag-pill {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    padding: 4px 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.tag-pill:hover {
    border-color: var(--color-gold);
    color: var(--color-gold);
    text-shadow: none;
}

/* ==========================================================================
   14. POST NAVIGATION (Prev / Next)
   ========================================================================== */

.single-post-nav {
    max-width: 800px;
    margin: 40px auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.post-nav-link {
    padding: 25px;
    background: var(--color-bg-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.post-nav-link:hover {
    border-color: rgba(200, 164, 92, 0.3);
    background: var(--color-bg-elevated);
    text-shadow: none;
}

.post-nav-label {
    font-size: 0.75rem;
    color: var(--color-gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
}

.post-nav-title {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    line-height: 1.4;
}

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

.post-nav-next .post-nav-label {
    justify-content: flex-end;
}

/* ==========================================================================
   15. PAGE TEMPLATE
   ========================================================================== */

.page-hero {
    width: 100%;
    height: 40vh;
    min-height: 280px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 40px;
}

.page-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        transparent 30%,
        #0a0a0a 100%
    );
}

.page-hero-title {
    position: relative;
    z-index: 2;
    font-size: 3rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
}

.page-content-wrap {
    max-width: 1000px;
    margin: 40px auto;
    padding: 60px;
    background: rgba(15, 15, 15, 0.9);
    border-left: 3px solid var(--color-gold);
}

.page-content-wrap .entry-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--color-text-secondary);
}

/* ==========================================================================
   16. FOOTER
   ========================================================================== */

.site-footer {
    background: #050505;
    padding: 60px 40px 30px;
    position: relative;
    margin-top: 80px;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        var(--color-gold),
        transparent
    );
    box-shadow: 0 0 20px var(--color-gold-glow);
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
}

/* Footer Top */

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 40px;
}

.footer-logo img {
    height: 35px;
    width: auto;
    opacity: 0.8;
    filter: brightness(0.9);
}

/* Footer Navigation */

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

.footer-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-menu-list li a {
    color: var(--color-text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    transition: color 0.3s ease;
    font-family: var(--font-main);
    font-weight: 600;
}

.footer-menu-list li a:hover {
    color: var(--color-gold);
    text-shadow: none;
}

/* Footer Social */

.footer-social {
    display: flex;
    gap: 15px;
}

.social-link {
    color: var(--color-text-muted);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-decoration: none;
}

.social-link:hover {
    color: var(--color-gold);
    border-color: var(--color-gold);
    text-shadow: none;
    box-shadow: 0 0 12px var(--color-gold-glow);
}

.social-link svg {
    width: 16px;
    height: 16px;
}

/* Footer Decorative Border */

.footer-border {
    text-align: center;
    margin: 30px 0;
}

.footer-border img {
    max-width: 200px;
    opacity: 0.15;
    margin: 0 auto;
}

/* Footer Bottom */

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-legal p {
    color: var(--color-text-muted);
    font-size: 0.78rem;
    margin: 0 0 5px;
    line-height: 1.5;
}

.footer-disclaimer {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.3);
    line-height: 1.5;
}

.footer-studio-logo img {
    height: 30px;
    opacity: 0.4;
    filter: grayscale(100%);
    transition: all 0.3s ease;
}

.footer-studio-logo img:hover {
    opacity: 0.7;
    filter: grayscale(0%);
}

/* ==========================================================================
   17. BACK TO TOP
   ========================================================================== */

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(200, 164, 92, 0.4);
    background: rgba(10, 10, 10, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s ease;
    text-decoration: none;
    transform: rotate(-90deg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
}

.back-to-top:hover {
    border-color: var(--color-gold);
    background: var(--color-gold);
    box-shadow: 0 0 20px var(--color-gold-glow);
    text-shadow: none;
}

.back-to-top:hover img {
    filter: brightness(0);
}

.back-to-top img {
    width: 18px;
    height: 18px;
    filter: brightness(0.7);
    transition: filter 0.3s ease;
}

/* ==========================================================================
   17.5 FLOATING TABLE OF CONTENTS
   ========================================================================== */
.floating-toc {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    font-family: var(--font-primary);
}

.toc-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(15, 15, 15, 0.95);
    border: 1px solid var(--color-gold);
    color: var(--color-gold);
    padding: 12px 18px;
    border-radius: 30px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    font-family: var(--font-secondary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
}

.toc-toggle:hover {
    background: var(--color-gold);
    color: var(--color-bg);
}

.toc-content {
    position: absolute;
    bottom: calc(100% + 15px);
    right: 0;
    background: rgba(15, 15, 15, 0.95);
    border: 1px solid var(--color-gold);
    border-radius: 8px;
    width: 300px;
    max-height: 400px;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    scrollbar-width: thin;
    scrollbar-color: var(--color-gold) #111;
}

.floating-toc.is-expanded .toc-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.toc-content::-webkit-scrollbar {
    width: 6px;
}
.toc-content::-webkit-scrollbar-track {
    background: #111;
    border-radius: 8px;
}
.toc-content::-webkit-scrollbar-thumb {
    background-color: var(--color-gold);
    border-radius: 8px;
}

.toc-list-nav {
    padding: 15px;
}

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

.toc-item {
    margin-bottom: 8px;
}

.toc-item-h2 {
    font-weight: 700;
    margin-top: 12px;
}
.toc-item-h2:first-child {
    margin-top: 0;
}

.toc-item-h3 {
    padding-left: 15px;
    font-size: 0.9rem;
    position: relative;
}
.toc-item-h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 1px;
    background: var(--color-gold);
    opacity: 0.5;
}

.toc-link {
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
    display: block;
    line-height: 1.4;
}

.toc-link:hover,
.toc-link.is-active {
    color: var(--color-gold);
}

@media (max-width: 768px) {
    .floating-toc {
        bottom: 20px;
        right: 20px;
    }
    .toc-toggle .toc-title {
        display: none; /* Hide text on mobile, just show icon */
    }
    .toc-toggle {
        padding: 12px;
        border-radius: 50%;
    }
    .toc-content {
        width: 260px;
        max-height: 300px;
        right: 0;
    }
}

/* ==========================================================================
   18. ANIMATIONS
   ========================================================================== */

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

@keyframes pulseGlow {
    0%,
    100% {
        box-shadow: 0 0 5px var(--color-gold-glow);
    }
    50% {
        box-shadow: 0 0 20px var(--color-gold-glow), 0 0 40px rgba(200, 164, 92, 0.15);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Scroll-triggered animation utility */

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered delays */

.animate-on-scroll.delay-1 {
    transition-delay: 0.1s;
}

.animate-on-scroll.delay-2 {
    transition-delay: 0.2s;
}

.animate-on-scroll.delay-3 {
    transition-delay: 0.3s;
}

.animate-on-scroll.delay-4 {
    transition-delay: 0.4s;
}

/* ==========================================================================
   19. COMMENTS
   ========================================================================== */

.single-comments-wrap {
    max-width: 800px;
    margin: 40px auto;
}

.comments-area {
    background: var(--color-bg-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 40px;
}

.comments-title {
    font-size: 1.5rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 30px;
    font-weight: 700;
}

/* Comment list */

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

.comment-list .comment {
    padding: 25px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.comment-list .comment:last-child {
    border-bottom: none;
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.comment-author .avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid rgba(200, 164, 92, 0.3);
}

.comment-author .fn {
    font-weight: 600;
    color: #fff;
    font-size: 0.95rem;
}

.comment-author .fn a {
    color: #fff;
    text-decoration: none;
}

.comment-author .fn a:hover {
    color: var(--color-gold);
}

.comment-metadata {
    font-size: 0.78rem;
    color: var(--color-text-muted);
    margin-bottom: 12px;
}

.comment-metadata a {
    color: var(--color-text-muted);
    text-decoration: none;
}

.comment-metadata a:hover {
    color: var(--color-gold);
}

.comment-content {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
}

.comment-content p {
    margin-bottom: 10px;
}

.reply a {
    font-size: 0.75rem;
    color: var(--color-gold);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.3s ease;
}

.reply a:hover {
    color: #fff;
    text-shadow: none;
}

/* Nested / child comments */
.comment-list .children {
    list-style: none;
    padding-left: 40px;
    margin: 0;
}

/* Comment Form */

.comment-respond {
    margin-top: 40px;
}

.comment-reply-title {
    font-size: 1.3rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 25px;
    font-weight: 700;
}

.comment-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.comment-form label {
    display: block;
    font-size: 0.8rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
    font-weight: 600;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    background: var(--color-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-text);
    padding: 14px 18px;
    font-family: var(--font-main);
    font-size: 0.95rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
}

.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus,
.comment-form textarea:focus {
    border-color: var(--color-gold);
    box-shadow: 0 0 0 3px rgba(200, 164, 92, 0.15);
}

.comment-form textarea {
    min-height: 160px;
    resize: vertical;
}

.comment-form input[type="text"]::placeholder,
.comment-form input[type="email"]::placeholder,
.comment-form input[type="url"]::placeholder,
.comment-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.25);
}

.comment-form .form-submit {
    margin-top: 10px;
}

.comment-form .submit {
    display: inline-block;
    background: linear-gradient(135deg, #c8a45c, #a07830);
    color: #000;
    padding: 14px 40px;
    font-family: var(--font-main);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.85rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.comment-form .submit:hover {
    filter: brightness(1.15);
    box-shadow: 0 5px 25px var(--color-gold-glow);
    transform: translateY(-2px);
}

/* No-comments message */

.no-comments {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    padding: 30px 0;
    text-align: center;
}

/* ==========================================================================
   20. SCROLLBAR
   ========================================================================== */

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
    transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-gold);
}

/* Firefox scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: #333 #0a0a0a;
}

/* ==========================================================================
   21. WORDPRESS UTILITIES
   ========================================================================== */

/* WordPress alignment classes */
.alignwide {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

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

.alignleft {
    float: left;
    margin-right: 25px;
    margin-bottom: 15px;
}

.alignright {
    float: right;
    margin-left: 25px;
    margin-bottom: 15px;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Caption */
.wp-caption {
    max-width: 100%;
    margin-bottom: 20px;
}

.wp-caption img {
    display: block;
    margin: 0 auto;
}

.wp-caption-text {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    text-align: center;
    margin-top: 8px;
    padding: 0 10px;
    font-style: italic;
}

/* WordPress galleries */
.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 30px 0;
}

.gallery-item {
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* WordPress block editor embeds */
.wp-block-embed {
    margin: 30px 0;
}

.wp-block-embed__wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.wp-block-embed__wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ==========================================================================
   22. SEARCH & 404
   ========================================================================== */

/* Search form */
.search-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
}

.search-form .search-field {
    flex: 1;
    background: var(--color-bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-right: none;
    color: var(--color-text);
    padding: 14px 20px;
    font-family: var(--font-main);
    font-size: 0.95rem;
    outline: none;
}

.search-form .search-field:focus {
    border-color: var(--color-gold);
}

.search-form .search-submit {
    background: linear-gradient(135deg, #c8a45c, #a07830);
    color: #000;
    border: none;
    padding: 14px 24px;
    font-family: var(--font-main);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: filter 0.3s ease;
}

.search-form .search-submit:hover {
    filter: brightness(1.15);
}

/* 404 Page */
.error-404-content {
    max-width: 600px;
    margin: 120px auto;
    text-align: center;
    padding: 60px 40px;
}

.error-404-content .error-code {
    font-size: 8rem;
    font-weight: 700;
    color: var(--color-gold);
    line-height: 1;
    margin-bottom: 20px;
    opacity: 0.6;
    letter-spacing: 10px;
}

.error-404-content h1 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.error-404-content p {
    color: var(--color-text-secondary);
    margin-bottom: 30px;
}

/* ==========================================================================
   23. ARCHIVE / CATEGORY HEADER
   ========================================================================== */

.archive-header {
    padding: 140px 40px 60px;
    text-align: center;
    max-width: var(--max-width);
    margin: 0 auto;
}

.archive-header .section-tag {
    margin-bottom: 15px;
}

.archive-header .archive-title {
    font-size: 2.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.archive-description {
    color: var(--color-text-secondary);
    font-size: 1rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ==========================================================================
   24. WIDGET AREAS (Sidebar)
   ========================================================================== */

.widget-area {
    padding: 40px 0;
}

.widget {
    margin-bottom: 40px;
    padding: 25px;
    background: var(--color-bg-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.widget-title {
    font-size: 0.85rem;
    color: var(--color-gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget ul li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.widget ul li:last-child {
    border-bottom: none;
}

.widget ul li a {
    color: var(--color-text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.widget ul li a:hover {
    color: var(--color-gold);
    text-shadow: none;
}

/* ==========================================================================
   25. LOADING / PRELOADER
   ========================================================================== */

.site-preloader {
    position: fixed;
    inset: 0;
    background: var(--color-bg);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease;
}

.site-preloader.loaded {
    opacity: 0;
    pointer-events: none;
}

.preloader-spinner {
    width: 40px;
    height: 40px;
    border: 2px solid rgba(200, 164, 92, 0.2);
    border-top-color: var(--color-gold);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ==========================================================================
   26. RESPONSIVE — Tablets (max-width: 1024px)
   ========================================================================== */

@media (max-width: 1024px) {
    h1 {
        font-size: 3rem;
    }

    h2,
    .section-heading {
        font-size: 2rem;
    }

    .featured-cards-inner {
        grid-template-columns: repeat(2, 1fr);
    }

    .header-inner {
        padding: 15px 30px;
    }

    .featured-cards-section,
    .latest-posts-section {
        padding: 60px 30px;
    }

    .mission-section {
        padding: 80px 30px;
    }

    .mission-title {
        font-size: 2rem;
    }

    .single-post-content {
        padding: 45px;
    }

    .page-content-wrap {
        padding: 45px;
    }

    .page-hero-title {
        font-size: 2.5rem;
    }

    .single-post-content .entry-title {
        font-size: 1.8rem;
    }

    .footer-top {
        gap: 25px;
    }

    .container {
        padding: 0 30px;
    }
}

/* ==========================================================================
   27. RESPONSIVE — Mobile (max-width: 768px)
   ========================================================================== */

@media (max-width: 768px) {
    /* Header */
    .nav-toggle {
        display: flex;
    }

    .main-navigation {
        display: none;
    }

    .header-inner {
        padding: 14px 20px;
    }

    .header-logo-img {
        height: 36px;
    }

    /* Hero */
    .hero-logo {
        max-width: 300px;
    }

    .hero-tagline {
        font-size: 0.9rem;
        letter-spacing: 3px;
    }

    .hero-bg {
        background-attachment: scroll; /* Fix for iOS */
    }

    .hero-scroll-indicator {
        bottom: 25px;
    }

    /* Featured Cards */
    .featured-cards-inner {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .featured-cards-section {
        padding: 50px 20px;
    }

    .featured-card {
        aspect-ratio: 16 / 9;
    }

    .featured-card-overlay {
        padding: 20px;
    }

    /* Post Grid */
    .post-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .latest-posts-section {
        padding: 50px 20px;
    }

    /* Single Post */
    .single-post-content {
        padding: 30px;
        margin-top: -40px;
    }

    .single-post-content .entry-title {
        font-size: 1.5rem;
    }

    .single-hero {
        height: 40vh;
        min-height: 250px;
    }

    .entry-meta {
        gap: 12px;
    }

    /* Post Navigation */
    .single-post-nav {
        grid-template-columns: 1fr;
        gap: 15px;
    }

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

    .post-nav-next .post-nav-label {
        justify-content: flex-start;
    }

    /* Page */
    .page-content-wrap {
        padding: 30px;
        margin: 20px auto;
    }

    .page-hero {
        height: 35vh;
        min-height: 220px;
    }

    .page-hero-title {
        font-size: 2rem;
    }

    /* Mission */
    .mission-section {
        padding: 60px 20px;
        background-attachment: scroll;
    }

    .mission-title {
        font-size: 1.8rem;
    }

    /* Footer */
    .site-footer {
        padding: 40px 20px 25px;
        margin-top: 50px;
    }

    .footer-top {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-menu-list {
        flex-wrap: wrap;
        gap: 12px;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    /* Comments */
    .comments-area {
        padding: 25px;
    }

    .comment-list .children {
        padding-left: 20px;
    }

    /* General */
    .container {
        padding: 0 20px;
    }

    .section-heading {
        margin-bottom: 25px;
    }

    /* Archive */
    .archive-header {
        padding: 120px 20px 40px;
    }

    .archive-header .archive-title {
        font-size: 2rem;
    }

    /* Back to Top */
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
    }

    /* 404 */
    .error-404-content {
        margin: 80px auto;
        padding: 40px 20px;
    }

    .error-404-content .error-code {
        font-size: 5rem;
    }

    /* Gallery */
    .gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ==========================================================================
   28. RESPONSIVE — Small phones (max-width: 480px)
   ========================================================================== */

@media (max-width: 480px) {
    h1 {
        font-size: 2.2rem;
    }

    h2,
    .section-heading {
        font-size: 1.6rem;
    }

    h3 {
        font-size: 1.2rem;
    }

    .hero-tagline {
        font-size: 0.85rem;
        letter-spacing: 2px;
    }

    .hero-logo {
        max-width: 240px;
    }

    .featured-card-title {
        font-size: 1.2rem;
    }

    .featured-card-tag {
        font-size: 0.65rem;
    }

    .featured-card-desc {
        font-size: 0.8rem;
    }

    .single-post-content {
        padding: 20px;
    }

    .single-post-content .entry-title {
        font-size: 1.3rem;
    }

    .page-content-wrap {
        padding: 20px;
    }

    .page-hero-title {
        font-size: 1.6rem;
    }

    .btn-primary {
        padding: 12px 28px;
        font-size: 0.8rem;
        letter-spacing: 2px;
    }

    .btn-secondary {
        padding: 10px 24px;
        font-size: 0.8rem;
        letter-spacing: 2px;
    }

    .mobile-menu-list li a {
        font-size: 1.4rem;
        letter-spacing: 2px;
    }

    .mission-title {
        font-size: 1.5rem;
    }

    .mission-text {
        font-size: 0.95rem;
    }

    .post-content-wrap {
        padding: 20px;
    }

    .post-content-wrap .entry-title {
        font-size: 1.05rem;
    }

    .entry-excerpt {
        font-size: 0.82rem;
    }

    .entry-content {
        font-size: 0.95rem;
        line-height: 1.75;
    }

    .entry-content blockquote {
        font-size: 1rem;
        padding-left: 15px;
    }

    .comments-area {
        padding: 20px;
    }

    .error-404-content .error-code {
        font-size: 4rem;
    }

    .archive-header .archive-title {
        font-size: 1.6rem;
    }

    .footer-logo img {
        height: 28px;
    }

    .gallery {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .nav-links a,
    .nav-links .current,
    .nav-links .dots {
        min-width: 38px;
        height: 38px;
        font-size: 0.78rem;
    }
}

/* ==========================================================================
   28. RAIDERS OF THE TOMB CUSTOM STYLES & REBRANDING
   ========================================================================== */

/* Fallback Text-based Premium Logo */
.site-logo-fallback {
    display: inline-flex;
    flex-direction: column;
    text-decoration: none;
    line-height: 1;
    font-family: var(--font-main);
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.site-logo-fallback .logo-main {
    font-size: 1.6rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: 3px;
    background: linear-gradient(180deg, #fff 0%, #c8a45c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 15px rgba(200, 164, 92, 0.3);
}

.site-logo-fallback .logo-sub {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--color-gold);
    letter-spacing: 4px;
    margin-top: 2px;
    text-align: center;
    border-top: 1px solid rgba(200, 164, 92, 0.3);
    padding-top: 2px;
}

.site-logo-fallback:hover .logo-main {
    background: linear-gradient(180deg, #fff 0%, #fff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px rgba(200, 164, 92, 0.8);
}

.site-logo-fallback:hover .logo-sub {
    color: #fff;
    border-top-color: rgba(255, 255, 255, 0.8);
}

/* Custom logo adjustment for header */
.header-logo-wrap {
    display: flex;
    align-items: center;
}
.header-logo-wrap .custom-logo-link img {
    height: 45px;
    width: auto;
    object-fit: contain;
}

.mobile-logo-wrap {
    margin-bottom: 40px;
    display: flex;
    justify-content: center;
}
.mobile-logo-wrap .custom-logo-link img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.footer-logo-wrap {
    display: flex;
    align-items: center;
}
.footer-logo-wrap .custom-logo-link img {
    height: 38px;
    width: auto;
    object-fit: contain;
}

/* Compact Hero style override */
.hero-compact {
    height: 40vh !important;
    min-height: 320px !important;
}

.hero-compact .hero-bg {
    background-attachment: scroll; /* Disable parallax on compact for cleaner look */
}

.hero-compact .hero-logo-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
}

.hero-logo-fallback .logo-main {
    font-size: 2.8rem;
    letter-spacing: 6px;
    background: linear-gradient(180deg, #fff 20%, #c8a45c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-logo-fallback .logo-sub {
    font-size: 0.95rem;
    letter-spacing: 8px;
    padding-top: 4px;
    margin-top: 4px;
}

/* Featured Alternating Columns Layout */
.featured-alternating-section {
    display: flex;
    flex-direction: column;
    background: var(--color-bg);
}

.alt-row {
    display: flex;
    min-height: 480px;
    width: 100%;
    align-items: stretch;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.alt-row.row-odd {
    flex-direction: row;
}

.alt-row.row-even {
    flex-direction: row-reverse;
}

.alt-row-image-container {
    width: 50%;
    position: relative;
    overflow: hidden;
    min-height: 380px;
}

.alt-row-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.alt-row:hover .alt-row-image {
    transform: scale(1.05);
}

.alt-row-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(10, 10, 10, 0.7) 0%, transparent 25%, transparent 75%, rgba(10, 10, 10, 0.7) 100%);
    z-index: 1;
}

.row-even .alt-row-image-overlay {
    background: linear-gradient(to left, rgba(10, 10, 10, 0.7) 0%, transparent 25%, transparent 75%, rgba(10, 10, 10, 0.7) 100%);
}

/* Rocky edges SVG overlays */
.rocky-edge {
    position: absolute;
    left: 0;
    width: 100%;
    height: 24px;
    z-index: 4;
    pointer-events: none;
}

.rocky-top {
    top: -1px;
}

.rocky-bottom {
    bottom: -1px;
}

/* Content column styling */
.alt-row-content-container {
    width: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 80px;
    background: var(--color-bg);
    position: relative;
}

.alt-row-content {
    max-width: 500px;
    padding: 45px;
    border-left: 2px solid var(--color-gold);
    background: rgba(18, 18, 18, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    border-right: 1px solid rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    transition: all 0.4s ease;
}

.alt-row:hover .alt-row-content {
    border-left-color: #fff;
    box-shadow: 0 15px 50px rgba(200, 164, 92, 0.1);
}

/* Corner decorations */
.alt-row-content::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 16px;
    height: 16px;
    border-top: 2px solid var(--color-gold);
    border-right: 2px solid var(--color-gold);
    pointer-events: none;
    transition: border-color 0.4s ease;
}

.alt-row-content::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 16px;
    height: 16px;
    border-bottom: 2px solid var(--color-gold);
    border-right: 2px solid var(--color-gold);
    pointer-events: none;
    transition: border-color 0.4s ease;
}

.alt-row:hover .alt-row-content::before,
.alt-row:hover .alt-row-content::after {
    border-color: #fff;
}

.alt-row-category {
    font-size: 0.7rem;
    color: var(--color-gold);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 700;
    margin-bottom: 15px;
    display: block;
}

.alt-row-title {
    font-size: 2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.2;
    margin: 0 0 20px;
}

.alt-row-title a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.alt-row-title a:hover {
    color: var(--color-gold);
    text-shadow: 0 0 10px var(--color-gold-glow);
}

.alt-row-excerpt {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    line-height: 1.75;
    margin-bottom: 30px;
}

.alt-row-excerpt p {
    margin: 0;
}

/* Responsiveness for alternating columns */
@media (max-width: 1024px) {
    .alt-row-content-container {
        padding: 40px;
    }
    .alt-row-title {
        font-size: 1.7rem;
    }
}

@media (max-width: 768px) {
    .alt-row {
        flex-direction: column !important; /* Stack vertically */
        min-height: auto;
    }
    
    .alt-row-image-container,
    .alt-row-content-container {
        width: 100% !important;
    }
    
    .alt-row-image-container {
        height: 280px;
        min-height: auto;
    }
    
    .alt-row-content-container {
        padding: 30px 20px;
    }
    
    .alt-row-content {
        padding: 30px 20px;
        max-width: 100%;
    }
    
    .alt-row-title {
        font-size: 1.5rem;
    }
    
    .hero-compact {
        height: 35vh !important;
        min-height: 260px !important;
    }
    
    .hero-logo-fallback .logo-main {
        font-size: 2.2rem;
        letter-spacing: 4px;
    }
    
    .hero-logo-fallback .logo-sub {
        font-size: 0.8rem;
        letter-spacing: 5px;
    }
}

/* ==========================================================================
   29. PRINT STYLES
   ========================================================================== */

@media print {
    .site-header,
    .site-footer,
    .hero-section,
    .back-to-top,
    .mobile-nav,
    .nav-toggle,
    .hero-scroll-indicator,
    .single-post-nav,
    .comments-area {
        display: none !important;
    }

    body {
        background: #fff;
        color: #000;
        font-size: 12pt;
    }

    .single-post-content {
        border-left: 2px solid #c8a45c;
        padding: 20px;
        margin: 0 auto;
        background: #fff;
    }

    .entry-content a {
        color: #000;
        text-decoration: underline;
    }

    .entry-content a::after {
        content: ' (' attr(href) ')';
        font-size: 0.8em;
        color: #666;
    }

    img {
        max-width: 100% !important;
    }

    h1, h2, h3 {
        color: #000;
        page-break-after: avoid;
    }

    p {
        orphans: 3;
        widows: 3;
    }
}

/* ==========================================================================
   30. REDUCED MOTION (Accessibility)
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .hero-bg {
        background-attachment: scroll;
    }

    .mission-section {
        background-attachment: scroll;
    }

    .animate-on-scroll {
        opacity: 1;
        transform: none;
    }
}
