/*
Theme Name: DuneScape Pro
Theme URI: https://desertsafariabudhabi.com
Author: Hijaaz Jalaldeen
Author URI: https://www.hijaaz.xyz
Description: A modern, visually immersive, and fully responsive WordPress theme tailored for a desert safari tour business.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dunescape-pro
Tags: one-column, two-columns, right-sidebar, custom-colors, custom-menu, featured-images, footer-widgets, full-width-template, theme-options, translation-ready
*/

/* Color Palette Extracted from Screenshot */
:root {
    --color-primary: #A67B5B;
    /* Medium Tan */
    --color-tan-medium: #8B6B4D;
    --color-tan-dark: #6D523B;
    --color-tan-pitch: #423023;
    --color-dark-brown: #2D231B;
    /* Deepest Brown */

    --color-secondary: #F7F5F2;
    /* Soft Off-White/Cream */
    --color-sage: #E8EAE0;
    /* Muted Sage */
    --color-sage-light: #F4F6F0;
    --color-sage-medium: #A8B28D;
    --color-sage-dark: #44543C;

    --color-deep-forest: #1A241F;
    /* Dark Charcoal Green (Footer) */
    --color-white: #FFFFFF;
    --color-charcoal: #222222;

    --color-gray-light: #E8E2D9;
    --color-gray-medium: #B6B1A8;
    --color-gray-dark: #7D786F;

    --color-text-heading: var(--color-dark-brown);
    --color-text-body: #4A433A;
    /* Muted Brownish Gray */
    --color-border: var(--color-gray-light);

    /* Typography */
    --font-heading: 'Bricolage Grotesque', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;

    /* Borders */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --border-width: 1px;

    /* Layout */
    --container-width: 1200px;
    --header-height: 80px;
}

/* Reset & Base Styles */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    color: var(--color-text-body);
    background-color: var(--color-secondary);
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: var(--header-height);
    /* Offset for fixed header */
}

/* No padding on home page to allow hero to overlap */
body.home {
    padding-top: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--color-text-heading);
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(3rem, 8vw, 4.5rem);
}

h2 {
    font-size: clamp(2rem, 5vw, 3rem);
}

h3 {
    font-size: 1.875rem;
}

h4 {
    font-size: 1.5rem;
}

h5 {
    font-size: 1.25rem;
}

h6 {
    font-size: 1.125rem;
}

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

strong,
b {
    color: var(--tw-prose-bold);
    font-weight: 800;
}

a:hover {
    color: var(--color-dark-brown);
}

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

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: var(--radius-lg);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: none;
    font-size: 0.85rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

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

.btn-primary:hover {
    background-color: var(--color-tan-medium);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(166, 123, 91, 0.3);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    box-shadow: none;
}

.btn-secondary:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(166, 123, 91, 0.2);
}

.text-center {
    text-align: center;
}

.mb-1 {
    margin-bottom: var(--spacing-sm);
}

.mb-2 {
    margin-bottom: var(--spacing-md);
}

.section-padding {
    padding: 6rem 0;
}

/* Header */
/* Consolidate Header & Navigation Styles */
.site-header {
    background-color: var(--color-white);
    box-shadow: 0 2px 20px rgba(45, 35, 27, 0.08);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    height: var(--header-height);
    display: flex;
    align-items: center;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Homepage Hero Overlay State */
.site-header.header-transparent:not(.scrolled) {
    background-color: transparent !important;
    box-shadow: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.site-header.header-transparent:not(.scrolled) .site-title a,
.site-header.header-transparent:not(.scrolled) .main-navigation a,
.site-header.header-transparent:not(.scrolled) #mobile-menu-toggle {
    color: var(--color-white) !important;
}

.site-header.header-transparent:not(.scrolled) .site-branding img {
    filter: brightness(0) invert(1) !important;
}

/* Scrolled & Default State (Force White Background) */
.site-header.scrolled {
    background-color: var(--color-white) !important;
    box-shadow: 0 4px 20px rgba(45, 35, 27, 0.12) !important;
    height: 70px;
}

/* Ensure all header elements adapt to the scrolled white background */
.site-header.scrolled .site-title a,
.site-header.scrolled .main-navigation a,
.site-header.scrolled #mobile-menu-toggle {
    color: var(--color-text-heading) !important;
}

.site-header.scrolled .main-navigation a:hover {
    color: var(--color-primary) !important;
}

/* Logo filter reset in scrolled state */
.site-header.scrolled .site-branding img {
    filter: none !important;
}

/* Tour Sub-Navigation Alignment */
.tour-sub-nav {
    top: 80px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.site-header.scrolled~#primary .tour-sub-nav,
.site-header.scrolled~main .tour-sub-nav,
.site-header.scrolled~.site-main .tour-sub-nav {
    top: 70px !important;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.site-branding a {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-primary);
    text-transform: uppercase;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: var(--spacing-md);
}

.main-navigation a {
    color: var(--color-charcoal);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.main-navigation a:hover,
.main-navigation .current-menu-item>a {
    color: var(--color-primary) !important;
}

.main-navigation .current-menu-item>a::after {
    width: 100%;
}

/* Footer */
.site-footer {
    background-color: var(--color-deep-forest);
    color: var(--color-secondary);
    padding: var(--spacing-xl) 0 var(--spacing-md);
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.footer-widget h4 {
    color: var(--color-primary);
    margin-bottom: var(--spacing-sm);
}

.site-info {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--spacing-md);
}

/* Hero Section (Common) */
.page-hero {
    background-color: var(--color-secondary);
    padding: var(--spacing-xl) 0;
    text-align: center;
    background-size: cover;
    background-position: center;
    position: relative;
}

.page-hero h1 {
    font-size: 3rem;
    color: var(--color-white);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
        /* Kept just in case, though hidden by Tailwind md:hidden */
        background: none;
        border: none;
        font-size: 1.5rem;
        cursor: pointer;
    }
}

/* Desktop Menu Hover Effect - Animated Underline */
.main-navigation a {
    position: relative;
    padding-bottom: 5px;
}

.main-navigation a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--color-primary);
    transition: width 0.3s ease;
}

.main-navigation a:hover::after {
    width: 100%;
}

/* =========================================
   1. Global Form Styles
   ========================================= */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="date"],
textarea,
select {
    width: 100%;
    padding: 14px 18px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    background-color: var(--color-white);
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-text-body);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

textarea {
    min-height: 120px;
    resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(166, 123, 91, 0.1);
    background-color: white;
}

label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--color-dark-brown);
    font-size: 0.9rem;
}

/* =========================================
   2. WordPress Core Standards (Basic)
   ========================================= */
.alignleft {
    float: left;
    margin-right: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
}

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

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

.alignwide {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

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

.wp-caption {
    margin-bottom: var(--spacing-md);
    max-width: 100%;
}

.wp-caption-text {
    font-size: 0.875rem;
    color: #666;
    text-align: center;
    margin-top: 0.5rem;
}

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

/* =========================================
   2. Typography & Text Utilities (Basic)
   ========================================= */
.lead {
    font-size: 1.25rem;
    font-weight: 300;
    color: var(--color-dark-brown);
    line-height: 1.8;
}

.text-muted {
    color: #757575;
}

.text-small {
    font-size: 0.875rem;
}

blockquote {
    border-left: 4px solid var(--color-primary);
    padding-left: var(--spacing-md);
    font-style: italic;
    color: var(--color-dark-brown);
    margin: var(--spacing-md) 0;
}

/* =========================================
   3. Components (Intermediate)
   ========================================= */

/* Cards */
.card {
    background-color: var(--color-white);
    border-radius: 16px;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: var(--transition-premium);
    border: 1px solid var(--color-border);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.12);
}

.card-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

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

/* Badges */
.badge {
    display: inline-block;
    padding: 0.25em 0.6em;
    font-size: 0.75em;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 0.25rem;
}

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

.badge-outline {
    background-color: transparent;
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
}

/* Alerts */
.alert {
    position: relative;
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: 0.5rem;
}

.alert-info {
    color: #0c5460;
    background-color: #d1ecf1;
    border-color: #bee5eb;
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

/* =========================================
   4. Advanced Utilities (Animations & Effects)
   ========================================= */

/* Glassmorphism */
.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

.hover-lift {
    transition: transform 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
}

.hover-scale {
    transition: transform 0.3s ease;
}

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

.hover-glow:hover {
    box-shadow: 0 0 15px rgba(166, 123, 91, 0.4);
    /* Primary color glow */
}

/* Skeleton Loading */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* =========================================
   5. jQuery UI Datepicker Customization
   ========================================= */
#ui-datepicker-div {
    background: #ffffff !important;
    border: 1px solid var(--color-border) !important;
    border-radius: 1rem !important;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04) !important;
    padding: 1rem !important;
    font-family: var(--font-heading) !important;
    z-index: 9999 !important;
    width: auto !important;
    min-width: 280px !important;
    max-width: 95vw !important;
}

.ui-datepicker-header {
    background: #ffffff !important;
    border: none !important;
    margin-bottom: 0.5rem !important;
    position: relative !important;
    height: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.ui-datepicker-title {
    color: var(--color-dark-brown) !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
}

.ui-datepicker-prev,
.ui-datepicker-next {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    cursor: pointer !important;
    background: var(--color-secondary) !important;
    border-radius: 0.5rem !important;
    border: 1px solid var(--color-border) !important;
    transition: all 0.2s ease !important;
    width: 32px !important;
    height: 32px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
}

.ui-datepicker-prev {
    left: 8px !important;
}

.ui-datepicker-next {
    right: 8px !important;
}

.ui-datepicker-prev:hover,
.ui-datepicker-next:hover {
    background: var(--color-primary) !important;
    border-color: var(--color-primary) !important;
}

.ui-datepicker-prev:hover span,
.ui-datepicker-next:hover span {
    color: #ffffff !important;
}

.ui-datepicker .ui-datepicker-prev span,
.ui-datepicker .ui-datepicker-next span {
    filter: none !important;
    background-image: none !important;
    text-indent: 0 !important;
    display: block !important;
    position: static !important;
    margin: 0 !important;
    width: 24px !important;
    height: 24px !important;
    color: var(--color-gray-dark);
    font-size: 0 !important;
}

.ui-datepicker .ui-datepicker-prev span::before,
.ui-datepicker .ui-datepicker-next span::before {
    content: "" !important;
    display: block;
    width: 1.5rem;
    height: 1.5rem;
    background-color: currentColor;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
}

.ui-datepicker .ui-datepicker-prev span::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m15 18-6-6 6-6'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m15 18-6-6 6-6'/%3E%3C/svg%3E");
}

.ui-datepicker .ui-datepicker-next span::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 18 6-6-6-6'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 18 6-6-6-6'/%3E%3C/svg%3E");
}

.ui-datepicker table {
    margin: 0 !important;
    width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 2px !important;
}

.ui-datepicker th {
    color: var(--color-gray-medium) !important;
    font-weight: 600 !important;
    font-size: 0.75rem !important;
    text-transform: uppercase !important;
    padding: 0.5rem 0 !important;
}

.ui-datepicker td {
    padding: 0.1rem !important;
}

.ui-datepicker td a,
.ui-datepicker td span {
    display: block !important;
    text-align: center !important;
    padding: 0.5rem !important;
    border-radius: 0.5rem !important;
    background: transparent !important;
    border: 1px solid transparent !important;
    font-weight: 600 !important;
    font-size: 0.9rem !important;
    color: var(--color-text-body) !important;
    transition: all 0.2s ease !important;
    outline: none !important;
}

.ui-datepicker td a:hover {
    background: #fff7ed !important;
    color: var(--color-primary) !important;
}

.ui-datepicker-current-day a {
    background: var(--color-primary) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 6px -1px rgba(166, 123, 91, 0.4) !important;
}

.ui-datepicker-today a {
    border-color: var(--color-primary) !important;
    color: var(--color-primary) !important;
}

.ui-datepicker-today a:hover {
    background: var(--color-primary) !important;
    color: #ffffff !important;
}

.ui-state-disabled span {
    color: #d1d5db !important;
    background: transparent !important;
    border: none !important;
}

/* 
 * Typography & Utilities
 */

/* Standard Paragraph & Blog Content Alignment */
p {
    margin-bottom: 1.5rem;
    line-height: 1.75;
    color: var(--color-text-body);
    /* gray-600 */
}

/* Prevent long words or URLs from breaking the container */
.prose {
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
}

/* Lead Paragraph */
.p-lead {
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--color-text-heading);
    /* gray-800 */
    font-weight: 500;
}

/* Tour Price Class */
.tour-price {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: var(--color-text-heading);
    font-size: 1.25rem;
}

.tour-price small {
    font-size: 0.75rem;
    color: var(--color-gray-medium);
    font-weight: 400;
    box-shadow: 0 0 15px rgba(166, 123, 91, 0.4);
    /* Primary color glow */
}

/* Skeleton Loading */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}


/* Tour Content Paragraphs (Cards) */
.tour-content p {
    margin-bottom: 1rem;
    line-height: 1.5;
}

/* Desktop Dropdown Menus */
.main-navigation ul {
    position: relative;
    z-index: 50;
}

.main-navigation ul ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    flex-direction: column;
    background-color: var(--color-white);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    min-width: 220px;
    padding: 10px 0;
    border-radius: 8px;
    gap: 0;
    margin-top: 10px;
}

/* Show dropdown on hover */
.main-navigation ul li:hover>ul,
.main-navigation ul li:focus-within>ul {
    display: flex;
    animation: fadeIn 0.2s ease-out forwards;
}

/* Dropdown link styles */
.main-navigation ul ul li {
    width: 100%;
}

.main-navigation ul ul a {
    display: block;
    padding: 10px 20px;
    text-transform: none;
    color: var(--color-charcoal);
    font-size: 0.9rem;
    font-weight: 500;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.main-navigation ul ul a:hover {
    background-color: var(--color-off-white);
    color: var(--color-primary);
}

.main-navigation ul ul li:last-child a {
    border-bottom: none;
}

/* Remove animated underline from dropdown items */
.main-navigation ul ul a::after {
    display: none;
}

/* Arrow indicator for parent items */
.menu-item-has-children>a {
    padding-right: 15px;
    position: relative;
}

.menu-item-has-children>a::before {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    border: 4px solid transparent;
    border-top-color: currentColor;
    margin-top: 2px;
}

.main-navigation ul li:hover>a::before {
    border-top-color: var(--color-primary);
}


/* Modern Menu Styling with Icons */
.main-navigation a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    /* Pill shape */
    transition: all 0.3s ease;
}

.main-navigation a:hover {
    background-color: rgba(166, 123, 91, 0.1);
    /* Primary color low opacity */
    color: var(--color-primary);
}

/* Remove old underline effect in favor of pill */
.main-navigation a::after {
    display: none;
}

/* Icon specific alignment */
.menu-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-text {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}

/* =========================================
   6. Single Blog Post & Typography
   ========================================= */

/* Animation: Fade In Up */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 40px, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    opacity: 0;
    /* Start hidden */
}

.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

/* Typography (Prose Simulation) */
.prose {
    max-width: 65ch;
    margin-left: auto;
    margin-right: auto;
    color: #374151;
}

.prose p {
    margin-top: 1.25em;
    margin-bottom: 1.25em;
    line-height: 1.8;
    font-size: 1.125rem;
}

.prose h1,
.prose h2,
.prose h3,
.prose h4 {
    color: var(--color-dark-brown);
    font-family: var(--font-heading);
    font-weight: 800;
    margin-top: 2em;
    margin-bottom: 1em;
    line-height: 1.3;
}

.prose h2 {
    font-size: 2rem;
}

.prose h3 {
    font-size: 1.5rem;
}

.prose a {
    color: var(--color-primary);
    text-decoration: underline;
    font-weight: 600;
}

.prose ul,
.prose ol {
    margin-top: 1.25em;
    margin-bottom: 1.25em;
    padding-left: 1.625em;
}

.prose li {
    margin-top: 0.5em;
    margin-bottom: 0.5em;
    list-style-type: disc;
}

.prose blockquote {
    font-style: italic;
    border-left: 4px solid var(--color-primary);
    padding-left: 1rem;
    color: #4b5563;
    font-size: 1.25rem;
}

.prose img {
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    margin-top: 2em;
    margin-bottom: 2em;
}


/* Headlines & Typography Utilities */
.font-heading {
    font-family: var(--font-heading);
}

.font-bold {
    font-weight: 700;
}

.font-black {
    font-weight: 900;
}

.font-medium {
    font-weight: 500;
}

.font-light {
    font-weight: 300;
}

.text-xs {
    font-size: 0.75rem;
}

.text-sm {
    font-size: 0.875rem;
}

.text-base {
    font-size: 1rem;
}

.text-lg {
    font-size: 1.125rem;
}

.text-xl {
    font-size: 1.25rem;
}

.text-2xl {
    font-size: 1.5rem;
}

.text-3xl {
    font-size: 1.875rem;
}

.text-4xl {
    font-size: 2.25rem;
}

.text-5xl {
    font-size: 3rem;
}

/* Responsive Headings */
.text-6xl {
    font-size: 3rem;
}

.text-7xl {
    font-size: 4rem;
}

@media (min-width: 768px) {
    .md\:text-6xl {
        font-size: 3.75rem;
    }

    .md\:text-7xl {
        font-size: 4.5rem;
    }
}

@media (min-width: 1024px) {
    .lg\:text-7xl {
        font-size: 5rem;
    }
}

.leading-tight {
    line-height: 1.25;
}

.tracking-widest {
    letter-spacing: 0.1em;
}

.uppercase {
    text-transform: uppercase;
}

.drop-shadow-xl {
    filter: drop-shadow(0 20px 13px rgba(0, 0, 0, 0.1)) drop-shadow(0 8px 5px rgba(0, 0, 0, 0.04));
}


/* =========================================
   7. Sidebar & Widgets (Premium UI)
   ========================================= */

.widget {
    background-color: var(--color-white);
    padding: 2.5rem;
    border-radius: 1.5rem;
    /* Softer, larger radius */
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.05);
    /* Deep, soft shadow */
    border: 1px solid rgba(0, 0, 0, 0.02);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.widget:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.08);
}

/* Decorative top line for widgets */
.widget::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    opacity: 0.8;
}

.widget-title {
    font-family: var(--font-heading);
    color: var(--color-dark-brown);
    font-weight: 800;
    font-size: 1.1rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 2rem;
    padding-bottom: 0;
    border-bottom: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Bullet icon for titles */
.widget-title::before {
    content: '';
    display: block;
    width: 6px;
    height: 6px;
    background-color: var(--color-primary);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(166, 123, 91, 0.15);
}

.widget ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.widget ul li {
    margin: 0;
    padding: 0;
    border-bottom: none;
    display: block;
    /* Stacked */
}

.widget ul li a {
    position: relative;
    display: flex;
    align-items: center;
    padding: 1rem 1.25rem;
    background-color: var(--color-off-white);
    border-radius: 1rem;
    color: #4b5563;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
}

.widget ul li a:hover {
    background-color: var(--color-white);
    color: var(--color-primary);
    transform: translateX(5px);
    border-color: rgba(166, 123, 91, 0.2);
    box-shadow: 0 4px 12px rgba(166, 123, 91, 0.08);
}

/* Arrow indicator on hover */
.widget ul li a::after {
    content: '→';
    position: absolute;
    right: 1.25rem;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    font-weight: 300;
}

.widget ul li a:hover::after {
    opacity: 1;
    transform: translateX(0);
}

/* Metadata in lists (e.g. post dates) - adjust if widget outputs them */
.widget ul li .post-date {
    display: block;
    font-size: 0.75rem;
    color: #9ca3af;
    margin-top: 0.25rem;
    font-weight: 400;
}


/* =========================================
   8. Modern Search UI
   ========================================= */

.search-form {
    position: relative;
    width: 100%;
}

.search-form label {
    width: 100%;
}

.search-field {
    width: 100%;
    padding: 1rem 1.5rem;
    padding-right: 3.5rem;
    /* Space for button */
    border: 1px solid var(--color-border);
    background-color: white;
    border-radius: 100px;
    /* Pill shape */
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-dark-brown);
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.search-field::placeholder {
    color: #9ca3af;
    font-weight: 500;
}

.search-field:focus {
    outline: none;
    background-color: var(--color-white);
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(166, 123, 91, 0.1);
}

.search-submit {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-color: var(--color-primary);
    color: white;
    border: none;
    border-radius: 50%;
    /* Circle button */
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Bouncy pop */
    padding: 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.search-submit:hover {
    background-color: var(--color-dark-brown);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.search-submit svg {
    width: 18px;
    height: 18px;
    stroke-width: 2.5;
}

/* =========================================
   9. Gutenberg Search Block Support
   ========================================= */

/* Wrapper */
.wp-block-search {
    width: 100%;
    margin-bottom: 20px;
}

/* Hide the label to maintain the minimal look */
.wp-block-search__label {
    display: none;
}

/* Inner wrapper needs relative positioning for floating button */
.wp-block-search__inside-wrapper {
    position: relative;
    width: 100%;
}

/* Input Field - Matches .search-field */
.wp-block-search__input {
    width: 100%;
    padding: 1rem 1.5rem;
    padding-right: 4rem;
    /* Space for button */
    border: 2px solid transparent;
    background-color: var(--color-off-white);
    border-radius: 100px;
    /* Pill shape */
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-dark-brown);
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
    appearance: none;
}

.wp-block-search__input:focus {
    outline: none;
    background-color: var(--color-white);
    border-color: var(--color-primary);
    box-shadow: 0 8px 20px -5px rgba(166, 123, 91, 0.15);
}

/* Submit Button - Matches .search-submit */
.wp-block-search__button {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-color: var(--color-primary);
    color: transparent;
    /* Hide text Search */
    border: none;
    border-radius: 50%;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    padding: 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);

    /* Insert Magnifying Glass Icon via CSS */
    background-image: url("data:image/svg+xml,%3Csvg xmlns=\0027http://www.w3.org/2000/svg\0027 width=\002718\0027 height=\002718\0027 viewBox=\00270 0 24 24\0027 fill=\0027none\0027 stroke=\0027white\0027 stroke-width=\00272.5\0027 stroke-linecap=\0027round\0027 stroke-linejoin=\0027round\0027%3E%3Ccircle cx=\002711\0027 cy=\002711\0027 r=\00278\0027/%3E%3Cpath d=\0027m21 21-4.3-4.3\0027/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}

.wp-block-search__button:hover {
    background-color: var(--color-dark-brown);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.wp-block-search__button svg {
    display: none;
}


/* =========================================
   10. Gutenberg Block Widget Support (Premium UI)
   ========================================= */

/* Ensure Block Widgets get the Card Style */
.widget_block {
    background-color: var(--color-white);
    padding: 2.5rem;
    border-radius: 1.5rem;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.02);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    margin-bottom: 2rem;
}

.widget_block:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.08);
}

/* Decorative top line */
.widget_block::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    opacity: 0.8;
}

/* Block Headings (H2) */
.widget_block h2,
.wp-block-heading {
    font-family: var(--font-heading);
    color: var(--color-dark-brown);
    font-weight: 800;
    font-size: 1.1rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 2rem;
    padding-bottom: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.widget_block h2::before,
.wp-block-heading::before {
    content: "";
    display: block;
    width: 6px;
    height: 6px;
    background-color: var(--color-primary);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(166, 123, 91, 0.15);
}

/* Common List Styles (Recent Posts, Categories, Archives) */
.wp-block-latest-posts,
.wp-block-categories,
.wp-block-archives,
.wp-block-latest-comments {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.wp-block-latest-posts li,
.wp-block-categories li,
.wp-block-archives-list li,
.wp-block-latest-comments li {
    margin: 0;
    padding: 0;
    border-bottom: none;
    display: block;
}

/* Link Styling within Lists */
.wp-block-latest-posts a,
.wp-block-categories a,
.wp-block-archives-list li a,
.wp-block-latest-comments__comment-link {
    position: relative;
    display: flex;
    align-items: center;
    padding: 1rem 1.25rem;
    background-color: var(--color-off-white);
    border-radius: 1rem;
    color: #4b5563;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
    text-decoration: none;
}

.wp-block-latest-posts a:hover,
.wp-block-categories a:hover,
.wp-block-archives-list li a:hover,
.wp-block-latest-comments__comment-link:hover {
    background-color: var(--color-white);
    color: var(--color-primary);
    transform: translateX(5px);
    border-color: rgba(166, 123, 91, 0.2);
    box-shadow: 0 4px 12px rgba(166, 123, 91, 0.08);
}

/* Arrow indicator on hover */
.wp-block-latest-posts a::after,
.wp-block-categories a::after,
.wp-block-archives-list li a::after,
.wp-block-latest-comments__comment-link::after {
    content: "\2192";
    position: absolute;
    right: 1.25rem;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    font-weight: 300;
}

.wp-block-latest-posts a:hover::after,
.wp-block-categories a:hover::after,
.wp-block-archives-list li a:hover::after,
.wp-block-latest-comments__comment-link:hover::after {
    opacity: 1;
    transform: translateX(0);
}

/* Specific Adjustments for Latest Comments */
.wp-block-latest-comments__comment-meta {
    font-size: 0.85rem;
    color: #9ca3af;
}

.wp-block-latest-comments__comment-author {
    font-weight: 700;
    color: var(--color-dark-brown);
}

/* Fix for Search Block inside Widget Block margin */
.widget_block .wp-block-search {
    margin-bottom: 0;
}

/* =========================================
   11. Unified Search Button Design (Redesign)
   ========================================= */

/* Button Reset */
.wp-block-search__button,
.search-submit {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    z-index: 10;

    /* Style: Transparent with Colored Icon */
    background-color: transparent !important;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    padding: 0;
    margin: 0;
    box-shadow: none !important;

    /* Icon - Uses %27 for quotes to avoid parsing errors */
    background-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2724%27 height=%2724%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27%23a67b5b%27 stroke-width=%272.5%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27%3E%3Ccircle cx=%2711%27 cy=%2711%27 r=%278%27/%3E%3Cpath d=%27m21 21-4.3-4.3%27/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 20px !important;

    /* Text Hiding */
    font-size: 0 !important;
    color: transparent !important;
    text-indent: -9999px;
    overflow: hidden;

    transition: background-color 0.2s ease, transform 0.2s ease;
}

/* Hover State */
.wp-block-search__button:hover,
.search-submit:hover {
    background-color: rgba(166, 123, 91, 0.1) !important;
    transform: translateY(-50%) scale(1.05);
}

/* Ensure Input has enough padding for the button */
.wp-block-search__input,
.search-field {
    padding-right: 3rem !important;
}

/* Hide fallback SVGs inside button */
.wp-block-search__button svg,
.search-submit svg {
    display: none !important;
}

/* =========================================
   12. Active Menu State
   ========================================= */
.main-navigation .current-menu-item>a,
.main-navigation .current_page_item>a,
.main-navigation .current-menu-parent>a,
.main-navigation .current-menu-ancestor>a {
    color: var(--color-primary);
    background-color: rgba(166, 123, 91, 0.1);
}

/* =========================================
   Author Social Icons
   ========================================= */
.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--color-gray-light);
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: var(--color-primary);
    color: #fff !important;
    transform: translateY(-2px);
}

/* =========================================
   Table of Contents (Modern Premium)
   ========================================= */
.dunescape-toc {
    background-color: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-left: 4px solid var(--color-primary);
    /* Accent border */
    border-radius: 12px;
    /* Smooth corners */
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.03), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
    /* Soft depth */
    position: relative;
    overflow: hidden;
    margin-bottom: 3rem;
    padding: 1.5rem;
}

.dunescape-toc h3 {
    font-family: var(--font-heading);
    color: var(--color-dark-brown);
    font-size: 0.875rem;
    /* Smaller, cleaner header */
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 800;
    margin: 0;
    padding: 0;
    border: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Header Icon pseudo-element for decoration */
.dunescape-toc h3::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--color-primary);
}

.dunescape-toc ul,
.prose .dunescape-toc ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 1rem 0 0 0;
}

.dunescape-toc li,
.prose .dunescape-toc li {
    list-style-type: none !important;
    padding-left: 0 !important;
    margin-bottom: 0.25rem;
}

.dunescape-toc a {
    text-decoration: none;
    display: flex;
    align-items: center;
    color: #4b5563;
    /* text-gray-600 */
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 0.75rem;
    /* Larger click area */
    border-radius: 8px;
    /* Rounded pill shape */
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    /* Reset previous border */
}

/* Hover State: Pill Highlight */
.dunescape-toc a:hover {
    color: var(--color-primary);
    background-color: rgba(166, 123, 91, 0.08);
    /* Light primary tint */
    padding-left: 1rem;
    /* Slight slide */
}

.dunescape-toc a i {
    display: none;
    /* Keep cleaner without chevrons in links */
}

/* Indented H3 items */
.dunescape-toc li.ml-4 {
    margin-left: 0.5rem;
    border-left: 1px solid #f3f4f6;
    padding-left: 0.5rem;
}

.dunescape-toc li.ml-4 a {
    font-size: 0.9rem;
    color: #6b7280;
}

/* Toggle Button */
.toc-toggle {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: #f9fafb;
    transition: all 0.2s ease;
}

.toc-toggle:hover {
    background-color: rgba(166, 123, 91, 0.1);
    color: var(--color-primary);
}

/* Hidden State (for JS) */
.hidden-toc {
    max-height: 0 !important;
    opacity: 0 !important;
    margin-top: 0 !important;
    padding-bottom: 0 !important;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .dunescape-toc {
        padding: 1rem;
        margin-bottom: 2rem;
        border-left-width: 3px;
    }

    .dunescape-toc h3 {
        font-size: 0.8rem;
    }

    .dunescape-toc a {
        padding: 0.35rem 0.5rem;
        font-size: 0.9rem;
    }

    .dunescape-toc li.ml-4 {
        margin-left: 0.25rem;
        padding-left: 0.25rem;
    }
}

/* =========================================
   Entry Content Typography (Prose Overrides)
   ========================================= */

/* Headings */
.prose h2 {
    font-size: 2rem;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    color: var(--color-dark-brown);
    font-weight: 800;
    line-height: 1.3;
}

.prose h3 {
    font-size: 1.5rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--color-dark-brown);
    font-weight: 700;
}

.prose h4 {
    font-size: 1.25rem;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    color: var(--color-dark-brown);
    font-weight: 600;
}

/* Paragraphs */
.prose p {
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
    /* 18px */
    line-height: 1.8;
    color: #374151;
    /* gray-700 */
}

/* Blockquotes */
.prose blockquote {
    border-left: 4px solid var(--color-primary);
    padding-left: 1.5rem;
    font-style: italic;
    font-size: 1.25rem;
    color: #4b5563;
    /* gray-600 */
    margin: 2rem 0;
    background: #fffaf5;
    /* Very light orange tint */
    padding: 1.5rem;
    border-radius: 0 12px 12px 0;
}

/* =========================================
   Lists Styling (Prose)
   ========================================= */

/* Unordered Lists (Bullets) */
/* Global Counter Reset for Prose Content (Fixes broken list blocks) */
.prose {
    counter-reset: prose-ol-counter;
}

/* Unordered Lists */
.prose ul {
    list-style-type: disc;
    margin: 1.5rem 0;
    padding-left: 1.5rem;
}

.prose ul>li {
    margin-bottom: 0.5rem;
    padding-left: 0.5rem;
}

/* Ordered Lists (Numbers) with Custom Styling */
.prose ol {
    list-style: none;
    /* Hide default markers on the container */
    margin: 1.5rem 0;
    padding-left: 0;
    /* Do NOT reset counter here, to allow continuous numbering across interrupted lists */
}

.prose ol>li {
    list-style-type: none !important;
    /* Hide default marker on item */
    counter-increment: prose-ol-counter;
    /* Use global counter */
    position: relative;
    padding-left: 40px;
    /* Space for the number */
    margin-bottom: 1.5rem;
}

/* Custom Number Styling */
.prose ol>li::before {
    content: counter(prose-ol-counter) ".";
    position: absolute;
    left: 0;
    top: 0;
    font-size: 1.17em;
    font-weight: bold;
    line-height: 1.5;
    color: inherit;
}

/* Generic List Item Fallback */
.prose li {
    margin-top: 0.5em;
    margin-bottom: 0.5em;
    /* Only apply auto if not overridden by the specific OL rules above */
    /* Due to lower specificity, .prose ol > li will win */
    list-style-type: auto;
}

/* Nested Elements & Resets */
.prose li h1,
.prose li h2,
.prose li h3,
.prose li h4,
.prose li h5,
.prose li h6 {
    margin-top: 0 !important;
    margin-bottom: 0.5rem;
    display: inline-block;
    vertical-align: top;
    line-height: 1.5;
}

/* Ensure no double margin/style on the H3 itself */
.prose ol>li>h3 {
    margin-top: 0;
    margin-bottom: 0;
}

.prose li>ul,
.prose li>ol {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

/* Links within content */
.prose a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.prose a:hover {
    color: var(--color-dark-brown);
    background-color: rgba(166, 123, 91, 0.1);
}

/* =========================================
   13. Global Standard Blog Tables (UX Optimized)
   ========================================= */

/**
 * Bulletproof Table Container 
 * Force-contained to screen width to prevent any "overlapping" leakage.
 */
.wp-block-table,
.table-responsive-container {
    position: relative !important;
    width: 100% !important;
    max-width: 100vw !important;
    /* Force screen containment */
    margin: 2.5rem 0;
    overflow-x: auto !important;
    overflow-y: hidden;
    border-radius: 16px;
    border: 1px solid var(--color-border);
    background: var(--color-white);
    -webkit-overflow-scrolling: touch;
    box-shadow: 0 4px 25px -12px rgba(0, 0, 0, 0.1);
}

/* Force standard table rendering regardless of block settings */
.prose table,
.wp-block-table table {
    width: auto !important;
    min-width: 950px !important;
    /* Slightly increased for more definitive scroll */
    border-collapse: separate !important;
    border-spacing: 0;
    font-size: 0.9375rem;
    color: var(--color-text-body);
    table-layout: auto !important;
    display: table !important;
}

/* Header Styling - High contrast & Sticky Layering */
.prose th,
.wp-block-table th {
    background-color: var(--color-dark-brown) !important;
    color: var(--color-white) !important;
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    padding: 1.25rem 1.5rem;
    text-align: left;
    border-bottom: 2px solid var(--color-primary);
    white-space: nowrap;
}

/* Body Cell Styling */
.prose td,
.wp-block-table td {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--color-border);
    vertical-align: middle;
    background-color: var(--color-white);
}

/* Zebra Striping */
.prose tr:nth-child(even) td,
.wp-block-table tr:nth-child(even) td {
    background-color: var(--color-secondary) !important;
}

/* STICKY COLUMN LOGIC - Maximum Enforcement */
.prose th:first-child,
.prose td:first-child,
.wp-block-table th:first-child,
.wp-block-table td:first-child {
    position: sticky !important;
    left: 0 !important;
    z-index: 50 !important;
    /* Stay on top of everything */
    border-right: 2px solid var(--color-primary) !important;
    min-width: 50px !important;
    box-shadow: 8px 0 15px -10px rgba(0, 0, 0, 0.2) !important;
    /* Deep depth factor */
}

/* Explicit Backgrounds for Sticky Cells */
.prose th:first-child,
.wp-block-table th:first-child {
    background-color: var(--color-dark-brown) !important;
    z-index: 60 !important;
}

.prose td:first-child,
.wp-block-table td:first-child {
    background-color: var(--color-white) !important;
}

.prose tr:nth-child(even) td:first-child,
.wp-block-table tr:nth-child(even) td:first-child {
    background-color: var(--color-secondary) !important;
}

/* Hover State Alignment */
.prose tr:hover td,
.wp-block-table tr:hover td {
    background-color: rgba(166, 123, 91, 0.08) !important;
}

/* Precision Corner Rounding */
.prose tr:first-child th:first-child {
    border-top-left-radius: 15px;
}

.prose tr:first-child th:last-child {
    border-top-right-radius: 15px;
}

.prose tr:last-child td:first-child {
    border-bottom-left-radius: 15px;
}

.prose tr:last-child td:last-child {
    border-bottom-right-radius: 15px;
}

/* Desktop Adjustment */
@media (min-width: 1024px) {

    .prose table,
    .wp-block-table table {
        min-width: 100% !important;
        width: 100% !important;
    }
}

/* Mobile Visual Cues */
@media (max-width: 768px) {

    .wp-block-table::after,
    .table-responsive-container::after {
        content: 'Swipe to View ↔';
        position: absolute;
        top: 50%;
        right: 1.5rem;
        transform: translateY(-50%);
        background: var(--color-primary);
        color: var(--color-white);
        padding: 0.5rem 1rem;
        border-radius: 50px;
        font-size: 0.75rem;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 1px;
        pointer-events: none;
        z-index: 110;
        box-shadow: 0 4px 15px rgba(166, 123, 91, 0.4);
        opacity: 0.9;
        animation: pulseSwipe 2s infinite;
    }

    @keyframes pulseSwipe {

        0%,
        100% {
            transform: translateY(-50%) translateX(0);
            opacity: 0.9;
        }

        50% {
            transform: translateY(-50%) translateX(-10px);
            opacity: 0.6;
        }
    }

    /* Edge Shadow for Scroll Context */
    .wp-block-table::before,
    .table-responsive-container::before {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        width: 60px;
        pointer-events: none;
        background: linear-gradient(to right, transparent, rgba(0, 0, 0, 0.15));
        z-index: 100;
        border-radius: 0 16px 16px 0;
    }
}

/* Elite-Level UI Enhancements (Phase 36) */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: transform, opacity;
}

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

/* Staggered Reveal Delay using utilities or specific selectors if needed */
.reveal-delay-100 {
    transition-delay: 100ms;
}

.reveal-delay-200 {
    transition-delay: 200ms;
}

.reveal-delay-300 {
    transition-delay: 300ms;
}

/* Bespoke Animations */
@keyframes bounceSubtle {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-4px);
    }
}

.animate-bounce-subtle {
    animation: bounceSubtle 3s ease-in-out infinite;
}

/* Magnetic Container Support */
.magnetic-container {
    display: flex;
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Parallax Targeted Scaling */
.parallax-target {
    will-change: transform;
    transition: transform 0.1s linear;
}

/* Glassmorphism Refinement */
.glass-elite {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
}

/* Intl-Tel-Input Premium Alignment */
.iti {
    width: 100% !important;
    display: block !important;
}

.iti__country-list {
    border-radius: 20px !important;
    border: 1px solid rgba(166, 123, 91, 0.2) !important;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.1) !important;
    overflow: hidden !important;
    z-index: 1000 !important;
}

/* jQuery UI Datepicker Elite Theming */
.ui-datepicker {
    background: white !important;
    border: 1px solid rgba(166, 123, 91, 0.15) !important;
    border-radius: 28px !important;
    box-shadow: 0 30px 60px -12px rgba(45, 35, 27, 0.15) !important;
    padding: 24px !important;
    z-index: 9999 !important;
    font-family: inherit !important;
    margin-top: 8px !important;
}

.ui-datepicker-header {
    background: transparent !important;
    border: none !important;
    padding-bottom: 16px !important;
}

.ui-datepicker-title {
    color: #2D231B !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.1em !important;
    font-size: 13px !important;
}

.ui-datepicker-prev,
.ui-datepicker-next {
    cursor: pointer !important;
    top: 24px !important;
    background: rgba(166, 123, 91, 0.05) !important;
    border-radius: 12px !important;
    transition: all 0.3s ease !important;
}

.ui-datepicker-prev:hover,
.ui-datepicker-next:hover {
    background: rgba(166, 123, 91, 0.15) !important;
}

.ui-datepicker-calendar th {
    color: #A67B5B !important;
    font-weight: 800 !important;
    font-size: 10px !important;
    text-transform: uppercase !important;
    padding: 12px 0 !important;
}

.ui-state-default {
    background: transparent !important;
    border: none !important;
    color: #2D231B !important;
    text-align: center !important;
    font-weight: 700 !important;
    border-radius: 14px !important;
    padding: 10px !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.ui-state-hover {
    background: #F7F5F2 !important;
    color: #A67B5B !important;
    transform: scale(1.1);
}

.ui-state-active {
    background: #A67B5B !important;
    color: white !important;
    box-shadow: 0 8px 20px -5px rgba(166, 123, 91, 0.4) !important;
}

/* Phone Input Floating Label Compatibility */
.phone-input-container {
    position: relative;
}

.phone-input-container .iti {
    width: 100%;
}

/* When focused or has content, float the label */
.phone-input-container:focus-within label[for="contactNumber"],
.phone-input-container #contactNumber:not(:placeholder-shown)~label[for="contactNumber"] {
    top: -10px !important;
    left: 20px !important;
    font-size: 10px !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.1em !important;
    color: #A67B5B !important;
    background: white !important;
    padding: 0 10px !important;
    z-index: 20 !important;
    opacity: 1 !important;
}

/* Ensure label is visible initially but cleared from flag */
.phone-input-container label[for="contactNumber"] {
    left: 108px !important;
    /* Original 92 + (20-16) = 96, let's do 108 for bit more air */
}

/* Extra padding for phone input to avoid text overlap with dial code */
#contactNumber {
    padding-left: 92px !important;
}

/* Hide native number spinners for a cleaner Elite UI */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}

/* Premium Sheen Animation */
/* Horizontal Scroll Utilities */
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* TOC Mobile Arrows */
.toc-arrow-left,
.toc-arrow-right {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.toc-arrow-left.is-visible,
.toc-arrow-right.is-visible {
    opacity: 1;
    pointer-events: auto;
}

@keyframes sheen {
    0% {
        transform: translateX(-150%) skewX(-45deg);
    }

    100% {
        transform: translateX(150%) skewX(-45deg);
    }
}