/*
Theme Name: Art Borups Corners
Theme URI: https://artborupscorners.com/
Author: Art Borups Corners
Description: The ultimate Art Borups Corners theme with full customizer control and perfect post layouts.
Version: 1.34.0
Text Domain: melgund-rac
*/

:root {
    --brand-primary: #1a1a1a;
    --brand-accent: #e65100;
    --brand-red: #c62828;
    --brand-muted: #f5f5f5;
    --text-main: #1a1a1a;
    --text-muted: #666;
    --container-width: 1400px;
    --header-height-desktop: 100px;
    --header-height-mobile: 70px;
}

* { box-sizing: border-box; }
body {
    font-family: 'Inter', sans-serif;
    line-height: 1.5;
    color: var(--text-main);
    margin: 0;
    padding: 0;
    background-color: #fff;
}
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}
a { color: inherit; text-decoration: none; transition: 0.2s; }
img { max-width: 100%; height: auto; display: block; }

/* Clear bullets from all navigation menus and columns */
.nav-menu, .nav-menu ul, .nav-menu li, .sub-menu, .sub-menu ul, .sub-menu li, .column-group ul, .column-group li {
    list-style: none !important;
    list-style-type: none !important;
    margin: 0;
    padding: 0;
}

/* --- Sticky Header Base & Admin Bar Integration --- */
.site-header { 
    background: #000; 
    color: #fff; 
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 2000;
    box-shadow: 0 4px 30px rgba(0,0,0,0.1);
    padding: 25px 0 0; /* Clear top padding */
    transition: all 0.3s ease;
}
/* WordPress Admin Bar integration so fixed/sticky header never gets clipped or overlapped */
.admin-bar .site-header {
    top: 32px;
}
@media (max-width: 782px) {
    .admin-bar .site-header {
        top: 46px;
    }
}
html.is-scrolled .site-header, .site-header.scrolled {
    background: rgba(0,0,0,0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0 0;
}
.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    padding-bottom: 25px; /* Consistent bottom padding */
}

/* --- Hero Section Base --- */
.hero-slider-wrapper { position: relative; width: 100%; background: #000; overflow: hidden; }
.hero-slider { position: relative; width: 100%; height: 100%; }
.hero-slide { 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    opacity: 0; 
    transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1); 
    display: flex; 
    align-items: center; 
    visibility: hidden;
    z-index: 1;
}
.hero-slide.active { opacity: 1; visibility: visible; z-index: 2; }
.hero-container {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 1 !important;
    overflow: hidden !important;
}
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(to right, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 100%); z-index: 2; }
.hero-content { position: relative; z-index: 10; color: #fff; width: 100%; padding-top: 60px; padding-bottom: 60px; }

/* FIX: Indentation issue - Hero container width now matches site container */
.hero-content .container {
    max-width: var(--container-width);
    padding: 0 40px;
    margin: 0 auto;
}

.hero-title { font-weight: 800; line-height: 1.1; margin: 0 0 1.5rem; }
.hero-title a { color: #fff; }
.btn-white { display: inline-block; background: #fff; color: #000; padding: 14px 32px; border-radius: 4px; font-weight: 700; text-transform: uppercase; font-size: 0.85rem; letter-spacing: 0.1em; transition: 0.3s; }
.btn-white:hover { background: var(--brand-accent); color: #fff; }

.pill-container, .hero-cat { display: flex; flex-wrap: wrap; gap: 8px; }
.hero-cat a { background: var(--brand-red); color: #fff; padding: 4px 10px; border-radius: 2px; font-size: 8px; font-weight: 800; text-transform: uppercase; }

/* --- High-End Premium Pill Badges --- */
.pill, .cat-pill, .tag-pill, .pill-container a, .pill-container span {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: var(--brand-accent, #e65100) !important;
    color: #ffffff !important;
    font-size: 8px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.12em !important;
    padding: 4px 10px !important;
    border-radius: 3px !important;
    line-height: 1.3 !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
    text-decoration: none !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1) !important;
    margin-right: 4px;
    margin-bottom: 4px;
    cursor: pointer !important;
    border: none !important;
    vertical-align: middle;
}

/* Specific theme-mod color overrides for categories vs tags */
.cat-pill, .pill-container .cat-pill, .pill-container a:not(.tag-pill) {
    background: var(--brand-red, #c62828) !important;
}

.tag-pill, .pill-container .tag-pill {
    background: var(--brand-accent, #e65100) !important;
}

.pill:hover, .cat-pill:hover, .tag-pill:hover, .pill-container a:hover {
    background: #000000 !important;
    color: #ffffff !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.18) !important;
}

/* --- Slider Navigation --- */
.slider-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 30px;
    z-index: 100;
    pointer-events: none;
}
.slider-nav button {
    background: rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.5rem;
    transition: 0.3s;
    pointer-events: auto;
}
.slider-nav button:hover {
    background: var(--brand-accent);
    border-color: #fff;
    transform: scale(1.1);
}
.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 100;
}
.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    cursor: pointer;
    transition: 0.3s;
    border: none;
    padding: 0;
}
.slider-dot.active {
    background: #fff;
    transform: scale(1.3);
}

/* --- Accessibility --- */
.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;
}@media (max-width: 1024px) {
/* Mobile & Tablet View-Specific Styles (max-width: 1024px) */
.site-header { height: var(--header-height-mobile); display: flex; align-items: center; }
.header-flex { width: 100%; display: flex; justify-content: space-between; align-items: center; }

.site-branding { z-index: 3001; max-width: 60%; }
.site-title { font-size: 0.95rem; }

.header-actions { order: 2; margin-left: auto; display: flex; align-items: center; gap: 8px; }

.menu-toggle {
    display: flex !important;
    background: transparent;
    border: none;
    color: #fff;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    z-index: 3005;
    padding: 0;
    position: relative;
    cursor: pointer;
    margin-right: 15px;
}

/* HAMBURGER REFINEMENT */
.hamburger-box {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    position: relative;
    transition: background 0.2s 0.2s ease-in-out;
}
.hamburger-box:before, .hamburger-box:after {
    content: "";
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    position: absolute;
    transition: transform 0.3s ease-in-out;
}
.hamburger-box:before { top: -8px; }
.hamburger-box:after { bottom: -8px; }
.toggled .hamburger-box { background: transparent; }
.toggled .hamburger-box:before { transform: translateY(8px) rotate(45deg); }
.toggled .hamburger-box:after { transform: translateY(-8px) rotate(-45deg); }

/* FULL SCREEN MENU - PREMIUM HIGH END DARK MODE ESTABLISHED */
.main-navigation {
    position: fixed;
    top: 0;
    right: -400px;
    left: auto;
    width: 380px;
    max-width: 85vw;
    height: 100vh;
    background: #111111 !important;
    z-index: 3000;
    padding: 80px 30px 45px;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1), top 0.3s ease, height 0.3s ease;
    box-shadow: -10px 0 40px rgba(0,0,0,0.6);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    border-left: 1px solid rgba(255,255,255,0.05);
}
/* WordPress Admin Bar Compatibility on Mobile Drawer */
.admin-bar .main-navigation {
    top: 32px;
    height: calc(100vh - 32px);
}
@media (max-width: 782px) {
    .admin-bar .main-navigation {
        top: 46px;
        height: calc(100vh - 46px);
    }
}
.toggled .main-navigation { right: 0 !important; }

/* Mobile Menu Close Button */
.mobile-menu-close {
    position: absolute;
    top: 25px;
    right: 25px;
    background: rgba(255,255,255,0.05); /* Subtle background */
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50%;
    color: #fff;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 3010;
    transition: all 0.2s ease;
}
.mobile-menu-close:hover {
    background: rgba(255,255,255,0.1);
    transform: rotate(90deg);
}

.menu-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    z-index: 2999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, top 0.3s ease, height 0.3s ease;
}
/* WordPress Admin Bar Compatibility on Backdrop */
.admin-bar .menu-backdrop {
    top: 32px;
}
@media (max-width: 782px) {
    .admin-bar .menu-backdrop {
         top: 46px;
    }
}
.toggled .menu-backdrop { opacity: 1; visibility: visible; }

.nav-menu { 
    display: flex; 
    flex-direction: column; 
    gap: 0; 
    list-style: none !important; 
    padding: 0 !important; 
    margin: 0 !important;
}
.nav-menu li { 
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    border-bottom: 1px solid rgba(255,255,255,0.06); 
    position: relative;
}
.nav-menu li:last-child {
    border-bottom: none;
}
.nav-menu a { 
    display: block;
    padding: 16px 0;
    font-size: 1.05rem; 
    color: rgba(255, 255, 255, 0.95) !important; 
    font-weight: 800; 
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color 0.15s ease;
}
.nav-menu a:hover, .nav-menu a:focus { 
    color: var(--brand-accent, #e65100) !important; 
}

/* Parent Indicators on Mobile/Tablet Drawer - Handled by Clickable Dropdown Toggle Buttons */
.nav-menu .menu-item-has-children > a {
    padding-right: 45px !important;
    position: relative !important;
}
.nav-menu .menu-item-has-children > a::after {
    display: none !important;
}
.nav-menu .menu-item-has-children.active > a::after {
    display: none !important;
}

/* Nesting & Elegant Indentation for Mobile Accordion Sub-Menus */
.nav-menu .sub-menu, .nav-menu .children {
    display: none !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    margin-left: 15px !important;
    margin-bottom: 0px !important;
    position: static !important;
    visibility: visible !important;
    opacity: 1 !important;
    transform: none !important;
    box-shadow: none !important;
    border: none !important;
    border-radius: 0 !important;
    width: auto !important;
    min-width: 0 !important;
}
.nav-menu li.active > .sub-menu, .nav-menu li.active > .children { 
    display: block !important;
    margin-top: 5px !important;
    margin-bottom: 15px !important;
}
.nav-menu .sub-menu li, .nav-menu .children li { 
    border-bottom: none !important; 
    padding: 0 !important;
    margin: 0 !important;
    position: relative !important;
}

/* Deeply nested Mobile submenus recursively indented */
.nav-menu .sub-menu .sub-menu, .nav-menu .children .children {
    margin-left: 15px !important;
    border-left: 1px solid rgba(255,255,255,0.1) !important;
    position: static !important;
    top: auto !important;
    left: auto !important;
    visibility: visible !important;
    opacity: 1 !important;
    transform: none !important;
    box-shadow: none !important;
    border: none !important;
    border-radius: 0 !important;
    width: auto !important;
    min-width: 0 !important;
}

.nav-menu .sub-menu a, .nav-menu .children a { 
    font-size: 0.95rem; 
    font-weight: 500; 
    text-transform: none; 
    letter-spacing: 0;
    padding: 12px 16px !important; 
    color: rgba(255, 255, 255, 0.65) !important; 
    border: none; 
    transition: all 0.2s ease;
}
.nav-menu .sub-menu a:hover, .nav-menu .children a:hover,
.nav-menu .sub-menu li.active > a, .nav-menu .children li.active > a { 
    color: #fff !important; 
    padding-left: 20px !important;
}

/* Hero Mobile */
.hero-slider-wrapper { height: 75vh; }
.hero-title { font-size: 2.25rem; line-height: 1.2; margin-bottom: 1.5rem; }
.hero-excerpt { font-size: 1rem; max-width: 90%; }
.hero-content { padding-top: 80px; }
.hero-content .container { padding-left: 40px; padding-right: 40px; }

/* Slider Arrows at Bottom for Mobile & Tablet Views (max-width: 1024px) */
.slider-nav {
    top: auto !important;
    bottom: 20px !important;
    transform: none !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 120px !important;
    display: flex !important;
    justify-content: space-between !important;
    padding: 0 !important;
    z-index: 150 !important;
    pointer-events: auto !important;
}
.slider-nav button {
    width: 44px !important;
    height: 44px !important;
    font-size: 1.1rem !important;
    background: rgba(0, 0, 0, 0.7) !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
}
/* Move dots clean-room above arrows so they don't overlap on small screens */
.slider-dots {
    bottom: 75px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    z-index: 150 !important;
    display: flex !important;
    gap: 10px !important;
}

/* STACK PILLS UNDER BUTTON - MANDATORY */
.hero-actions { display: flex !important; flex-direction: column !important; align-items: flex-start !important; gap: 2rem !important; }
.hero-actions > div { display: flex !important; flex-direction: column !important; align-items: flex-start !important; gap: 1.25rem !important; }
.hero-cat { margin-top: 0 !important; display: flex !important; flex-wrap: wrap !important; position: static !important; }

/* Other Grid Adjustments */
.grid { grid-template-columns: 1fr !important; }
.content-sidebar-layout { grid-template-columns: 1fr !important; }
}
@media (min-width: 768px) and (max-width: 1024px) {
/* Tablet View-Specific Styles (min-width: 768px and max-width: 1024px) */
.site-header { height: var(--header-height-desktop); padding: 0; display: flex; align-items: center; }
.hero-title { font-size: 3rem; max-width: 85% !important; }
.hero-excerpt { font-size: 1.15rem; max-width: 75%; }
.hero-content { padding-top: 100px; }
.hero-content .container { padding-left: 80px; padding-right: 80px; }
.grid { grid-template-columns: repeat(2, 1fr) !important; }
.cta-flex { flex-direction: column; text-align: center; }
.hero-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 2.25rem; }
}
@media (min-width: 1025px) {
/* Desktop / Tablet View-Specific Styles (min-width: 768px) */
.site-header { height: auto; min-height: 100px; display: flex; align-items: center; }
html.is-scrolled .site-header, .site-header.scrolled { min-height: 80px; }

.header-flex { width: 100%; height: 100%; }

.menu-toggle { display: none !important; } /* Kill the hamburger on tablet & desktop strictly */
.menu-backdrop { display: none !important; } /* Hide the mobile backdrop */
.mobile-menu-close { display: none !important; } /* Hide mobile menu close btn */

.site-branding {
    flex: 1 1 0% !important;
}

.main-navigation { 
    position: static !important;
    display: flex !important; 
    align-items: center !important; 
    margin: 0 auto !important; /* Move menu more to the center */
    width: auto !important;
    height: auto !important;
    background: transparent !important;
    padding: 0 !important;
    box-shadow: none !important;
    overflow-y: visible !important;
}
.nav-menu { 
    display: flex; 
    gap: 2rem; 
    list-style: none; 
    margin: 0; 
    padding: 0; 
}
.nav-menu li { position: relative; }
.nav-menu a { 
    color: rgba(255,255,255,0.85); 
    font-weight: 700; 
    font-size: 0.75rem; 
    text-transform: uppercase; 
    letter-spacing: 0.1em; 
    padding: 15px 0;
    display: block;
}
.nav-menu a:hover { color: #fff; }

/* Parent Indicators on Desktop */
.nav-menu > .menu-item-has-children > a {
    position: relative;
    padding-right: 18px !important;
}
.nav-menu > .menu-item-has-children > a::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid rgba(255,255,255,0.7);
    transition: transform 0.2s;
}
.nav-menu > .menu-item-has-children:hover > a::after,
.nav-menu > .menu-item-has-children.active > a::after {
    transform: translateY(-50%) rotate(180deg);
    border-top-color: var(--brand-accent);
}

/* Secondary Sub-Menu Parent Indicators */
.sub-menu .menu-item-has-children > a {
    position: relative;
    padding-right: 20px !important;
}
.sub-menu .menu-item-has-children > a::after {
    content: '';
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%) rotate(-90deg);
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid rgba(0,0,0,0.5);
    transition: transform 0.2s;
}

/* Hide the injected dropdown toggle buttons on desktop */
.dropdown-toggle-btn { display: none !important; }

/* Desktop/Tablet Dropdowns - Rollover driven + Focus driven */
.nav-menu .sub-menu, .nav-menu .children {
    position: absolute !important;
    top: 100% !important; /* Start exactly below the parent item */
    left: 0 !important;
    background: #ffffff !important;
    min-width: 250px !important;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15) !important;
    padding: 10px 0 !important;
    z-index: 9999 !important;
    display: block !important;
    visibility: hidden;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
    list-style: none !important;
    border-radius: 0 0 4px 4px !important;
    border-top: 3px solid var(--brand-accent, #e65100) !important;
}

/* Make sub-menu visible on hover or focus */
.nav-menu li:hover > .sub-menu,
.nav-menu li:focus-within > .sub-menu,
.nav-menu li.active > .sub-menu,
.nav-menu li:hover > .children,
.nav-menu li:focus-within > .children,
.nav-menu li.active > .children {
    visibility: visible !important;
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Deeply nested second level & grandchild submenus offset perfectly to the side! */
.nav-menu .sub-menu .sub-menu, .nav-menu .children .children {
    top: -3px !important; /* align with parent top border */
    left: 100% !important; /* Offset completely to the right so it never overlaps the parent */
    margin-top: 0 !important;
    border-left: 3px solid var(--brand-red, #c62828) !important;
    border-top: none !important;
}

.nav-menu .sub-menu li, .nav-menu .children li { 
    border: none !important; 
    width: 100% !important; 
    list-style: none !important; 
    padding: 0 !important; 
    margin: 0 !important; 
    position: relative !important;
}

.nav-menu .sub-menu a, .nav-menu .children a {
    color: #111111 !important;
    font-size: 0.9rem !important;
    font-weight: 700 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    padding: 12px 25px !important;
    display: block !important;
    background: transparent !important;
    transition: all 0.2s ease !important;
}

.nav-menu .sub-menu a:hover,
.nav-menu .sub-menu li.active > a,
.nav-menu .children a:hover,
.nav-menu .children li.active > a {
    background: #f8f8f8 !important;
    color: var(--brand-accent, #e65100) !important;
    padding-left: 30px !important;
}
.header-actions {
    flex: 1 1 0% !important;
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
    gap: 1.5rem !important;
    margin-left: 0 !important;
}

.hero-slider-wrapper { height: 85vh; }
.hero-content { padding-top: 140px !important; }
.hero-content .container { padding-left: 180px; padding-right: 180px; }
.hero-title { font-size: 4.5rem; max-width: 85% !important; }
.hero-excerpt { font-size: 1.25rem; max-width: 75%; }
.hero-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 2.5rem; }
}
/* --- Header & Navigation Shared --- */
/* Bulletproof Dropdown Toggle Button System */
.dropdown-toggle-btn {
    position: absolute !important;
    right: 4px !important;
    top: 7px !important;
    width: 28px !important;
    height: 28px !important;
    background: transparent !important;
    border: none !important;
    color: rgba(255, 255, 255, 0.6) !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 100 !important;
    padding: 0 !important;
    transition: all 0.2s ease !important;
}
.dropdown-toggle-btn:hover {
    color: #ffffff !important;
    background: transparent !important;
}
.dropdown-toggle-btn .arrow-down {
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid currentColor;
    transition: transform 0.25s ease !important;
}
.menu-item-has-children.active > .dropdown-toggle-btn .arrow-down,
.dropdown-toggle-btn.active .arrow-down {
    transform: rotate(180deg) !important;
    border-top-color: var(--brand-accent, #e65100) !important;
}

/* Make sure mobile overrides have larger hittable targets */
@media (max-width: 1024px) {
    .dropdown-toggle-btn {
        right: 0 !important;
        top: 2px !important;
        width: 50px !important;
        height: 50px !important;
        color: rgba(255, 255, 255, 0.7) !important;
        border-radius: 50% !important;
    }
}

.site-branding { display: flex; align-items: center; gap: 1rem; flex-shrink: 0; z-index: 10; }
.site-title { font-size: 1.1rem; margin: 0; font-weight: 900; text-transform: uppercase; letter-spacing: -0.01em; line-height: 1; }
.site-title a { color: #fff; }
.site-tagline { font-size: 0.55rem; text-transform: uppercase; letter-spacing: 0.12em; opacity: 0.7; margin-top: 4px; display: block; line-height: 1; }
.custom-logo { max-height: 50px; width: auto; }
.menu-toggle { display: none; }

/* Search Overlay Shared */
.header-search { position: relative; display: flex; align-items: center; }
.search-toggle {
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s;
}
.search-toggle:hover { color: var(--brand-accent); }
.search-overlay {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%) scaleX(0);
    transform-origin: right center;
    background: #000;
    z-index: 4000;
    padding: 0;
    border-radius: 30px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.2);
}
.header-search.active .search-overlay {
    transform: translateY(-50%) scaleX(1);
    opacity: 1;
    visibility: visible;
}
.search-form { display: flex; align-items: center; position: relative; padding: 5px 15px; width: 300px; max-width: 100vw; }
@media (max-width: 768px) {
    .search-form { width: 250px; }
}
.search-field {
    width: 100% !important;
    background: transparent !important;
    border: none !important;
    color: #fff !important;
    padding: 8px 10px !important;
    font-size: 1rem !important;
    outline: none !important;
}
.search-submit {
    background: transparent !important;
    border: none !important;
    color: var(--brand-accent) !important;
    cursor: pointer;
    padding: 5px;
    display: flex;
}
.search-close {
    background: transparent !important;
    border: none !important;
    color: #888 !important;
    font-size: 1.5rem !important;
    cursor: pointer;
    padding: 5px 10px;
    line-height: 1;
}
.search-close:hover { color: #fff !important; }

/* Layout Utilities Shared */
.aspect-video { position: relative; width: 100%; padding-top: 56.25%; overflow: hidden; }
.object-cover, .aspect-video img, .hero-container img { position: absolute !important; top: 0 !important; left: 0 !important; width: 100% !important; height: 100% !important; object-fit: cover !important; }

/* Grid Utilities Shared */
.grid { display: grid; gap: 2rem; }
.grid-4 { grid-template-columns: repeat(var(--grid-cols, 1), 1fr); }
@media (min-width: 768px) { :root { --grid-cols: 2; } }
@media (min-width: 1200px) { :root { --grid-cols: 4; } }

/* Triple Column Layout (Home Front Page Sections & General) */
.grid-3-cols {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}
@media (min-width: 768px) {
    .grid-3-cols {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}
@media (min-width: 1025px) {
    .grid-3-cols {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

.column-group {
    background: transparent !important;
    border-radius: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
    border: none !important;
    height: auto !important;
    display: flex !important;
    flex-direction: column !important;
    position: relative !important;
    box-sizing: border-box !important;
    margin-bottom: 2rem !important;
}

.list-items {
    display: flex !important;
    flex-direction: column !important;
    gap: 1.5rem !important;
    list-style: none !important;
    list-style-type: none !important;
    margin: 0 !important;
    padding: 0 !important;
    flex-grow: 1 !important;
}

/* Enforcing Absolute Rutheless Card Consistency: .list-item inherits exact styling properties of .grid-card */
.list-item {
    display: flex !important;
    flex-direction: column !important;
    background: #fff !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05) !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    border: 1px solid #eaeaea !important;
    height: 100% !important; /* Lets grid auto-stretch to equal row height uniformly */
    position: relative !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 0 !important;
}
.list-item:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 12px 30px rgba(0,0,0,0.1) !important;
}
.list-item:last-child {
    border-bottom: 1px solid #eaeaea !important;
}

.aspect-square {
    width: 100% !important;
    aspect-ratio: 16 / 9 !important;
    height: auto !important;
    padding-top: 0 !important;
    overflow: hidden !important;
    flex-shrink: 0 !important;
    position: relative !important;
    box-sizing: border-box !important;
    border-radius: 0 !important;
}
.aspect-square img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.list-item-img {
    flex-shrink: 0 !important;
    width: 100% !important;
    aspect-ratio: 16 / 9 !important;
    height: auto !important;
}

.list-item-content {
    padding: 1.5rem !important;
    display: flex !important;
    flex-direction: column !important;
    flex-grow: 1 !important;
    align-items: flex-start !important;
    box-sizing: border-box !important;
    height: auto !important;
    position: relative !important;
    padding-bottom: 4.5rem !important; /* Prevents text overlap with absolute details button */
    border: none !important;
    background: transparent !important;
}

.list-item-content .read-more-link {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 38px !important;
    padding: 0 16px !important;
    font-size: 0.75rem !important;
    font-weight: 750 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    color: var(--brand-accent, #e65100) !important;
    background: transparent !important;
    border: 2px solid var(--brand-accent, #e65100) !important;
    border-radius: 4px !important;
    transition: all 0.2s ease !important;
    text-decoration: none !important;
    position: absolute !important;
    bottom: 1.5rem !important;
    left: 1.5rem !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    cursor: pointer !important;
}
.list-item-content .read-more-link:hover {
    background: var(--brand-accent, #e65100) !important;
    color: #fff !important;
    box-shadow: 0 4px 10px rgba(230, 81, 0, 0.2) !important;
    border-color: var(--brand-accent, #e65100) !important;
}

.list-item-content h3, .list-item-content h4 {
    font-size: 1.15rem !important;
    font-weight: 850 !important;
    line-height: 1.4 !important;
    margin: 0 0 0.5rem 0 !important;
    color: var(--brand-heading, #111) !important;
    border: none !important;
}
.list-item-content h3 a, .list-item-content h4 a {
    color: inherit !important;
    transition: color 0.2s ease !important;
    text-decoration: none !important;
}
.list-item-content h3 a:hover, .list-item-content h4 a:hover {
    color: var(--brand-accent, #e65100) !important;
}
.list-item-excerpt {
    font-size: 0.85rem !important;
    color: #555555 !important;
    line-height: 1.6 !important;
    margin-bottom: 0px !important;
    flex-grow: 0 !important;
    border: none !important;
}

/* --- High-End Consistent Section Headers --- */
.section-header {
    margin-bottom: 2rem !important;
    padding-bottom: 0.75rem !important;
    border-bottom: 2px solid var(--brand-accent, #e65100) !important;
    position: relative !important;
}
.section-header h2 {
    font-size: 1.25rem !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.06em !important;
    margin: 0 !important;
    position: relative !important;
    display: inline-block !important;
    color: var(--brand-heading, #111111) !important;
}

/* Offset for Sticky Header and Fluid spacing */
.site-main {
    padding-top: 0;
    padding-bottom: 4rem;
}
@media (max-width: 1024px) {
    .site-main {
        padding-top: 0;
    }
}

/* --- Breadcrumb Bar --- */
.breadcrumb-bar {
    background-color: var(--brand-muted, #f5f5f5);
    padding: 15px 0;
    font-size: 0.8rem;
    font-weight: 500;
    font-family: var(--font-sans, 'Inter', sans-serif);
    color: var(--brand-text, #1a1a1a);
    border-bottom: 1px solid #eaeaea;
    margin-bottom: 2rem;
}
.breadcrumb-bar a {
    color: var(--brand-link, var(--brand-accent, #e65100));
}
.breadcrumb-bar a:hover {
    color: var(--brand-accent);
}
.breadcrumb-bar span {
    color: #888;
}

/* Ensure consistent spacing below header when breadcrumbs are disabled or absent */
.site-main > .container {
    margin-top: 3.75rem;
}
.breadcrumb-bar + .container {
    margin-top: 0 !important;
}

/* Content & Sidebar Layouts */
.content-sidebar-layout { 
    display: grid; 
    grid-template-columns: 1fr 350px; 
    gap: 50px; 
}
.content-sidebar-layout.no-sidebar {
    grid-template-columns: 1fr !important;
}
.main-column { min-width: 0; }

/* Grid columns refinement */
.grid-2 {
    grid-template-columns: 1fr;
}
@media (min-width: 768px) {
    .grid-2 {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* Sidebar & Widgets Custom Styling */
.sidebar-column {
    display: flex;
    flex-direction: column;
    gap: 30px;
}
.widget-area {
    background: #ffffff;
    border: 1px solid #eaeaea;
    border-radius: 4px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}
.widget-area select, .widget-area select * {
    max-width: 100%;
}
.widget-title {
    font-size: 1rem !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    margin: 0 0 1.5rem 0 !important;
    padding-bottom: 0.5rem !important;
    border-bottom: 2px solid var(--brand-accent, #e65100) !important;
    color: var(--brand-heading, #111111) !important;
}
.widget-area ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}
.widget-area li {
    padding: 14px 0 !important;
    border-bottom: 1px dashed #eaeaea !important;
    font-size: 1.15rem !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
}
.widget-area li:last-child {
    border-bottom: none !important;
    padding-bottom: 0 !important;
}
.widget-area li a {
    color: var(--brand-heading, #111) !important;
    transition: all 0.2s ease;
}
.widget-area li a:hover {
    color: var(--brand-accent, #e65100) !important;
    padding-left: 5px;
}

/* Call to Action specific overrides: Clean, no borders, maximize screen width */
.cta-section .widget-area {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
}
.cta-section .container {
    max-width: 100% !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
}
.cta-left-column {
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

/* Premium Hierarchical Page, Category, and Navigation Menu Offsets & Cues */
.widget-area ul.sub-menu,
.widget-area ul.children,
.sidebar-column ul.sub-menu,
.sidebar-column ul.children,
.post-sidebar-area ul.sub-menu,
.post-sidebar-area ul.children,
.widget_nav_menu ul.sub-menu,
.widget_pages ul.children,
.widget_categories ul.children,
.widget-area ul ul {
    margin-left: 1.25rem !important;
    padding-left: 0.75rem !important;
    border-left: 2px solid rgba(0, 0, 0, 0.08) !important;
    margin-top: 0.5rem !important;
    margin-bottom: 0.5rem !important;
    list-style-type: none !important;
}
.widget-area ul ul li,
.widget_nav_menu ul ul li,
.widget_pages ul ul li,
.widget_categories ul ul li {
    padding: 6px 0 !important;
    font-size: 0.85rem !important;
    line-height: 1.4 !important;
    border-bottom: none !important;
    position: relative !important;
}
/* Visual sub-menu indentation offset hook with dynamic brand accent coloring */
.widget-area ul ul li::before,
.sidebar-column ul ul li::before,
.widget_nav_menu ul ul li::before,
.widget_pages ul ul li::before,
.widget_categories ul ul li::before {
    content: "\21B3" !important;
    position: absolute !important;
    left: -0.75rem !important;
    top: 6px !important;
    color: var(--brand-accent, #e65100) !important;
    font-weight: bold !important;
    font-family: monospace !important;
}

/* Supporters Shared */
.supporters-section { padding: 3rem 0; border-bottom: 1px solid #efefef; }
.supporters-flex { display: flex; justify-content: center; align-items: center; gap: 3rem; flex-wrap: wrap; opacity: 0.6; }
.supporters-title { display: block; text-align: center; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.2em; margin-bottom: 2rem; color: #666; }
.supporter-logo { font-weight: 800; font-size: 1rem; color: #333; }

/* Cards Shared - Hardcoded Consistent Height & Dimensions */
.grid-card { 
    display: flex !important; 
    flex-direction: column !important; 
    background: #fff !important; 
    border-radius: 8px !important; 
    overflow: hidden !important; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.05) !important; 
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important; 
    border: 1px solid #eaeaea !important; 
    height: 100% !important; /* Lets grid auto-stretch to equal row height uniformly */
    position: relative !important;
    box-sizing: border-box !important;
}
.grid-card:hover { 
    transform: translateY(-5px) !important; 
    box-shadow: 0 12px 30px rgba(0,0,0,0.1) !important; 
}
.grid-card .aspect-video {
    width: 100% !important;
    aspect-ratio: 16 / 9 !important;
    height: auto !important;
    padding-top: 0 !important;
    overflow: hidden !important;
    flex-shrink: 0 !important;
    box-sizing: border-box !important;
}
.grid-card .featured-image-link img,
.grid-card .aspect-video img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}
.grid-card-content { 
    padding: 1.5rem !important; 
    display: flex !important; 
    flex-direction: column !important; 
    flex-grow: 1 !important; 
    align-items: flex-start !important; 
    box-sizing: border-box !important;
    height: auto !important;
    position: relative !important;
    padding-bottom: 4.5rem !important; /* Prevents text overlap with absolute details button */
}
.grid-card-title { 
    font-size: 1.15rem !important; 
    font-weight: 850 !important; 
    line-height: 1.4 !important; 
    margin: 0 0 0.5rem 0 !important; 
    color: var(--brand-heading, #111) !important; 
}
.grid-card-title a { color: inherit !important; transition: color 0.2s ease !important; text-decoration: none !important; }
.grid-card-title a:hover { color: var(--brand-accent, #e65100) !important; }
.grid-card-excerpt { 
    font-size: 0.85rem !important; 
    color: #555 !important; 
    line-height: 1.6 !important; 
    margin-bottom: 0px !important; 
    flex-grow: 0 !important;
}
.read-more-link { 
    display: inline-flex !important; 
    align-items: center !important; 
    justify-content: center !important; 
    height: 38px !important;
    padding: 0 16px !important; 
    font-size: 0.75rem !important; 
    font-weight: 750 !important; 
    text-transform: uppercase !important; 
    letter-spacing: 0.05em !important; 
    color: var(--brand-accent, #e65100) !important; 
    background: transparent !important; 
    border: 2px solid var(--brand-accent, #e65100) !important; 
    border-radius: 4px !important; 
    transition: all 0.2s ease !important; 
    text-decoration: none !important; 
    position: absolute !important;
    bottom: 1.5rem !important;
    left: 1.5rem !important;
    box-sizing: border-box !important;
}
.read-more-link:hover { 
    background: var(--brand-accent, #e65100) !important; 
    color: #fff !important; 
    box-shadow: 0 4px 10px rgba(230, 81, 0, 0.2) !important; 
}

/* Pagination Styling */
.pagination { margin-top: 3rem; display: flex; justify-content: flex-start; }
.pagination .nav-links { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; }
.pagination .nav-links a.page-numbers,
.pagination .nav-links span.page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 12px; background: #fff; border: 1px solid #eaeaea; border-radius: 4px; font-size: 1rem; font-weight: 600; color: var(--brand-heading, #111); text-decoration: none; transition: all 0.2s ease; }
.pagination .nav-links a.page-numbers:hover { background: var(--brand-accent, #e65100); color: #fff; border-color: var(--brand-accent, #e65100); }
.pagination .nav-links span.current { background: var(--brand-accent, #e65100); color: #fff; border-color: var(--brand-accent, #e65100); }
.pagination .nav-links .dots { border: none; background: transparent; color: #888; }
.pagination .screen-reader-text { display: none; }

/* Footer Shared */
.site-footer { background: #0a0a0a; color: #fff; padding: 5rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 50px; margin-bottom: 4rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 2rem; text-align: center; font-size: 0.8rem; opacity: 0.6; }

/* Dynamic Card/List height collapse for imageless posts to prevent layout shifts and giant empty whitespace holes */
.grid-card:not(:has(.aspect-video)),
.list-item:not(:has(.list-item-img)),
.list-item:not(:has(.aspect-square)) {
    height: auto !important;
    padding-bottom: 0.5rem !important;
}

.grid-card:not(:has(.aspect-video)) .grid-card-content,
.list-item:not(:has(.list-item-img)) .list-item-content,
.list-item:not(:has(.aspect-square)) .list-item-content {
    padding-bottom: 2rem !important;
}

/* Ensure JS-injected toggle buttons are completely hidden on desktop */
@media (min-width: 1025px) {
    .dropdown-toggle-btn { display: none !important; }
}

/* --- High-End Comments CSS Section --- */
.comments-area {
    margin-top: 4rem !important;
    padding-top: 3rem !important;
    border-top: 1px solid #eaeaea !important;
    background: #ffffff !important;
    clear: both !important;
}
.comments-title {
    font-family: var(--font-display-override, "Outfit", sans-serif) !important;
    font-size: 1.5rem !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    margin-bottom: 2.5rem !important;
    color: var(--brand-heading, #111111) !important;
    position: relative !important;
    padding-bottom: 0.75rem !important;
    border-bottom: 2px solid var(--brand-accent, #e65100) !important;
    display: inline-block !important;
}
.comment-list, .comment-list ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}
.comment-list > li {
    margin-bottom: 2.5rem !important;
    display: block !important;
    clear: both !important;
}
.comment-list ul.children {
    margin-left: 3rem !important;
    padding-left: 1.5rem !important;
    border-left: 2px solid #eaeaea !important;
    margin-top: 2rem !important;
}
@media (max-width: 768px) {
    .comment-list ul.children {
        margin-left: 1.5rem !important;
        padding-left: 0.75rem !important;
    }
}
.comment-body {
    position: relative !important;
    padding: 2rem !important;
    background: #fafafa !important;
    border: 1px solid #f0f0f0 !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02) !important;
    transition: all 0.25s ease !important;
    margin-bottom: 1.5rem !important;
}
.comment-body:hover {
    background: #ffffff !important;
    border-color: var(--brand-accent, #e65100) !important;
    box-shadow: 0 8px 25px rgba(0,0,0,0.05) !important;
}
.comment-meta {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin-bottom: 1.25rem !important;
    flex-wrap: wrap !important;
    gap: 1rem !important;
}
.comment-author-info {
    display: flex !important;
    align-items: center !important;
    gap: 1rem !important;
}
.comment-author-info img.avatar {
    border-radius: 50% !important;
    width: 44px !important;
    height: 44px !important;
    object-fit: cover !important;
    border: 2px solid var(--brand-accent, #e65100) !important;
    padding: 2px !important;
    background: #ffffff !important;
    flex-shrink: 0 !important;
}
.comment-author-info .fn {
    font-weight: 850 !important;
    font-size: 1rem !important;
    color: var(--brand-heading, #111111) !important;
    font-style: normal !important;
}
.comment-author-info .fn a {
    color: inherit !important;
}
.comment-author-info .fn a:hover {
    color: var(--brand-accent, #e65100) !important;
}
.comment-metadata {
    font-size: 0.8rem !important;
    color: #888888 !important;
    font-weight: 500 !important;
}
.comment-metadata a {
    color: inherit !important;
}
.comment-metadata a:hover {
    color: var(--brand-accent, #e65100) !important;
}
.comment-content {
    font-size: 0.95rem !important;
    line-height: 1.7 !important;
    color: #333333 !important;
    margin-bottom: 1.25rem !important;
}
.comment-content p:last-child {
    margin-bottom: 0 !important;
}
.reply {
    text-align: right !important;
}
.comment-reply-link {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 32px !important;
    padding: 0 14px !important;
    font-size: 0.75rem !important;
    font-weight: 750 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    color: var(--brand-accent, #e65100) !important;
    background: transparent !important;
    border: 1.5px solid var(--brand-accent, #e65100) !important;
    border-radius: 4px !important;
    transition: all 0.2s ease !important;
    text-decoration: none !important;
    cursor: pointer !important;
}
.comment-reply-link:hover {
    background: var(--brand-accent, #e65100) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 10px rgba(230, 81, 0, 0.15) !important;
}
/* Comment Navigation */
.comment-navigation {
    margin-bottom: 2rem !important;
    display: flex !important;
    justify-content: space-between !important;
}
.comment-navigation a {
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    color: var(--brand-accent, #e65100) !important;
    text-decoration: none !important;
    border: 1px solid #eaeaea !important;
    padding: 8px 16px !important;
    border-radius: 4px !important;
    transition: 0.2s !important;
}
.comment-navigation a:hover {
    background: var(--brand-accent, #e65100) !important;
    color: #ffffff !important;
    border-color: var(--brand-accent, #e65100) !important;
}

/* Comment Form Modern Aesthetic Styling */
.comment-respond {
    margin-top: 4rem !important;
    padding: 3rem !important;
    background: #ffffff !important;
    border: 1px solid #eaeaea !important;
    border-radius: 8px !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03) !important;
    clear: both !important;
}
@media (max-width: 768px) {
    .comment-respond {
        padding: 1.5rem !important;
    }
}
.comment-reply-title {
    font-family: var(--font-display-override, "Outfit", sans-serif) !important;
    font-size: 1.5rem !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    margin-bottom: 2rem !important;
    color: var(--brand-heading, #111111) !important;
}
.comment-reply-title small a {
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    color: var(--brand-red, #c62828) !important;
    text-transform: none !important;
    margin-left: 1rem !important;
    border-bottom: 1px dashed !important;
}
.comment-form {
    display: flex !important;
    flex-direction: column !important;
    gap: 1.5rem !important;
}
.comment-form p,
.comment-form div {
    margin-bottom: 1.25rem !important;
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
    position: relative !important;
    clear: both !important;
    float: none !important;
}
.comment-notes, .logged-in-as {
    font-size: 0.85rem !important;
    color: #666666 !important;
    margin-bottom: 1.5rem !important;
    line-height: 1.6 !important;
}
.logged-in-as {
    border-bottom: 1px solid #eaeaea !important;
    padding-bottom: 1rem !important;
    margin-bottom: 2rem !important;
}
.logged-in-as a {
    color: var(--brand-accent, #e65100) !important;
    font-weight: 700 !important;
}
.logged-in-as a:hover {
    text-decoration: underline !important;
}
.comment-form-fields-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 1.5rem !important;
    margin-bottom: 1.25rem !important;
}
@media (max-width: 768px) {
    .comment-form-fields-grid {
        grid-template-columns: 1fr !important;
    }
}
.comment-form-fields-grid .comment-form-author,
.comment-form-fields-grid .comment-form-email,
.comment-form-fields-grid .comment-form-url {
    margin-bottom: 0 !important;
}
#commentform label,
.comment-form label,
.comments-area form label,
.comment-respond label {
    display: block !important;
    width: 100% !important;
    font-size: 0.8rem !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.08em !important;
    color: var(--brand-heading, #111111) !important;
    margin-bottom: 0.65rem !important;
    float: none !important;
    clear: both !important;
}
#commentform input[type="text"],
#commentform input[type="email"],
#commentform input[type="url"],
#commentform textarea,
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea,
.comments-area input[type="text"],
.comments-area input[type="email"],
.comments-area input[type="url"],
.comments-area textarea {
    display: block !important;
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    padding: 0.85rem 1.15rem !important;
    font-size: 0.95rem !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 6px !important;
    background: #ffffff !important;
    color: #1a1a1a !important;
    outline: none !important;
    transition: all 0.25s ease !important;
    box-sizing: border-box !important;
    font-family: inherit !important;
}
#commentform input[type="text"]:focus,
#commentform input[type="email"]:focus,
#commentform input[type="url"]:focus,
#commentform textarea:focus,
.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus,
.comment-form textarea:focus,
.comments-area input[type="text"]:focus,
.comments-area input[type="email"]:focus,
.comments-area input[type="url"]:focus,
.comments-area textarea:focus {
    border-color: var(--brand-accent, #e65100) !important;
    box-shadow: 0 0 0 4px rgba(230, 81, 0, 0.12) !important;
    background: #ffffff !important;
}
.comment-form-cookies-consent {
    display: flex !important;
    align-items: flex-start !important;
    gap: 0.75rem !important;
    margin-top: 0.5rem !important;
}
.comment-form-cookies-consent input[type="checkbox"] {
    margin-top: 0.25rem !important;
    accent-color: var(--brand-accent, #e65100) !important;
    width: 16px !important;
    height: 16px !important;
    flex-shrink: 0 !important;
}
.comment-form-cookies-consent label {
    font-weight: 500 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    color: #555555 !important;
    margin-bottom: 0 !important;
    font-size: 0.85rem !important;
    line-height: 1.4 !important;
    cursor: pointer !important;
    display: inline !important;
}
.form-submit {
    margin-top: 1.5rem !important;
    margin-bottom: 0 !important;
    display: block !important;
    clear: both !important;
}
#commentform .submit,
#commentform #submit,
#commentform input[type="submit"],
#commentform button[type="submit"],
.comment-form .submit,
.comment-form #submit,
.comment-form input[type="submit"],
.comment-form button[type="submit"],
.comment-respond .submit,
.comment-respond #submit,
.comment-respond input[type="submit"],
.comment-respond button[type="submit"],
#submit {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: var(--brand-accent, #e65100) !important;
    color: #ffffff !important;
    font-size: 0.8rem !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.12em !important;
    padding: 14px 36px !important;
    border-radius: 4px !important;
    border: none !important;
    cursor: pointer !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
    box-shadow: 0 4px 12px rgba(230, 81, 0, 0.25) !important;
    width: auto !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}
#commentform .submit:hover,
#commentform #submit:hover,
#commentform input[type="submit"]:hover,
#commentform button[type="submit"]:hover,
.comment-form .submit:hover,
.comment-form #submit:hover,
.comment-form input[type="submit"]:hover,
.comment-form button[type="submit"]:hover,
.comment-respond .submit:hover,
.comment-respond #submit:hover,
.comment-respond input[type="submit"]:hover,
.comment-respond button[type="submit"]:hover,
#submit:hover {
    background: #000000 !important;
    color: #ffffff !important;
    box-shadow: 0 6px 18px rgba(0,0,0,0.22) !important;
    transform: translateY(-2px) !important;
}
#commentform .submit:active,
#commentform #submit:active,
#commentform input[type="submit"]:active,
#commentform button[type="submit"]:active,
.comment-form .submit:active,
.comment-form #submit:active,
.comment-form input[type="submit"]:active,
.comment-form button[type="submit"]:active,
.comment-respond .submit:active,
.comment-respond #submit:active,
.comment-respond input[type="submit"]:active,
.comment-respond button[type="submit"]:active,
#submit:active {
    transform: translateY(0) !important;
}

/* --- Core Theme Native Layout Classes (No Inline Styles) --- */
.home-section-container {
    margin: 4rem auto;
    position: relative;
}
.triple-col-section {
    margin-bottom: 4rem;
    position: relative;
}
.widget-section-container {
    margin-bottom: 4rem;
    position: relative;
}
.grid-card-img-wrapper {
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}
.grid-card-link-block {
    display: block;
    width: 100%;
    height: 100%;
}
.grid-card-pills, .triple-card-pills {
    position: static;
    margin-bottom: 1rem !important;
}
.triple-card-pills {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
}
.hero-meta {
    margin-bottom: 2rem;
}
.hero-date {
    font-size: 0.8rem;
    letter-spacing: 0.23em;
    font-weight: 800;
    color: rgba(255,255,255,0.9);
    text-transform: uppercase;
}
.hero-excerpt {
    margin-bottom: 3rem;
}
.hero-actions {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 2rem !important;
}
.hero-action-inner {
    display: flex !important;
    flex-direction: column !important;
    gap: 1.25rem !important;
    align-items: flex-start !important;
}
.hero-cat {
    margin-top: 0 !important;
}
.supporters-section {
    position: relative;
}
.cta-section {
    position: relative;
    margin-bottom: 4rem;
}
.cta-header-container {
    width: 100%;
    margin: 0 auto 3rem;
    text-align: center;
}
.cta-left-column {
    width: 100%;
}
.content-sidebar-layout .cta-left-column {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* --- Native Footer & Newsletter --- */
.site-footer {
    background: #111111;
    color: #ffffff;
    padding: 6rem 0 3rem;
}
.footer-newsletter-block {
    margin-bottom: 4rem;
    padding-bottom: 4rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}
.newsletter-text {
    max-width: 500px;
}
.newsletter-title {
    font-family: var(--font-display-override, "Outfit", sans-serif) !important;
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.5rem;
}
.newsletter-desc {
    font-size: 0.9rem;
    color: #aaaaaa;
    margin: 0;
}
.newsletter-form-wrapper {
    display: block;
}
.newsletter-form {
    display: flex;
    gap: 8px;
}
.newsletter-input {
    padding: 0.75rem 1.25rem;
    font-size: 0.85rem;
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.05);
    color: #ffffff;
    min-width: 250px;
    outline: none;
    transition: border-color 0.2s;
}
.newsletter-input:focus {
    border-color: var(--brand-accent, #e65100);
}
.newsletter-submit {
    background: var(--brand-accent, #e65100);
    color: #ffffff;
    font-weight: bold;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: 0.2s;
}
.newsletter-submit:hover {
    opacity: 0.9;
}
.footer-widgets {
    align-items: start;
}

/* --- Core Content, Paragraph, Heading & Element Styling with Breathing Room --- */
.post-content,
.page-content,
.entry-content {
    line-height: 1.85 !important;
    font-size: 1.05rem !important;
}

.post-content p,
.page-content p,
.entry-content p,
.comment-content p {
    margin-top: 0 !important;
    margin-bottom: 2rem !important;
    line-height: 1.85 !important;
    font-size: 1.05rem !important;
}

/* Elegant, spacious inner headers */
.post-content h1, .page-content h1, .entry-content h1,
.post-content h2, .page-content h2, .entry-content h2,
.post-content h3, .page-content h3, .entry-content h3,
.post-content h4, .page-content h4, .entry-content h4,
.post-content h5, .page-content h5, .entry-content h5,
.post-content h6, .page-content h6, .entry-content h6 {
    font-weight: 800 !important;
    line-height: 1.35 !important;
    color: var(--brand-heading, #111111) !important;
    margin-top: 3.25rem !important;
    margin-bottom: 1.25rem !important;
    display: block !important;
}

.post-content h1, .page-content h1, .entry-content h1 { font-size: 2.25rem !important; margin-top: 3.5rem !important; }
.post-content h2, .page-content h2, .entry-content h2 { font-size: 1.85rem !important; }
.post-content h3, .page-content h3, .entry-content h3 { font-size: 1.5rem !important; }
.post-content h4, .page-content h4, .entry-content h4 { font-size: 1.25rem !important; }
.post-content h5, .page-content h5, .entry-content h5 { font-size: 1.1rem !important; }
.post-content h6, .page-content h6, .entry-content h6 { font-size: 0.95rem !important; text-transform: uppercase; letter-spacing: 0.08em; }

/* Let first element drop standard margin-top */
.post-content > *:first-child,
.page-content > *:first-child,
.entry-content > *:first-child {
    margin-top: 0 !important;
}

/* Blockquotes styling with proper padding and layout margins */
.post-content blockquote,
.page-content blockquote,
.entry-content blockquote {
    border-left: 4px solid var(--brand-accent, #e65100) !important;
    padding: 1.75rem 2.25rem !important;
    margin: 2.75rem 0 !important;
    background: var(--brand-muted, #f8f8f8) !important;
    border-radius: 0 8px 8px 0 !important;
    font-style: italic !important;
    font-size: 1.15rem !important;
    color: #4a5568 !important;
    line-height: 1.75 !important;
}
.post-content blockquote p,
.page-content blockquote p,
.entry-content blockquote p {
    margin-bottom: 0 !important;
    font-size: 1.15rem !important;
    line-height: 1.75 !important;
}

/* Spacing out inner figures & WP Gutenberg block images */
.post-content figure,
.page-content figure,
.entry-content figure,
.post-content .wp-block-image,
.page-content .wp-block-image,
.entry-content .wp-block-image {
    margin-top: 2.75rem !important;
    margin-bottom: 2.75rem !important;
}
.post-content figcaption,
.page-content figcaption,
.entry-content figcaption {
    font-size: 0.85rem !important;
    color: #718096 !important;
    margin-top: 0.85rem !important;
    text-align: center !important;
    line-height: 1.5 !important;
}

/* Elegant spacing for internal Gutenberg Separators */
.post-content hr,
.page-content hr,
.entry-content hr {
    margin: 3.5rem 0 !important;
    border: 0 !important;
    border-top: 1px solid #eaeaea !important;
}

/* HTML and WP Core Tables with perfect alignment & spacing */
.post-content table,
.page-content table,
.entry-content table {
    width: 100% !important;
    margin: 3rem 0 !important;
    border-collapse: collapse !important;
    font-size: 0.95rem !important;
}
.post-content th,
.page-content th,
.entry-content th {
    background-color: var(--brand-muted, #f5f5f5) !important;
    color: var(--brand-heading, #111111) !important;
    font-weight: 700 !important;
    text-align: left !important;
    padding: 0.85rem 1.15rem !important;
    border-bottom: 2px solid #eaeaea !important;
}
.post-content td,
.page-content td,
.entry-content td {
    padding: 0.85rem 1.15rem !important;
    border-bottom: 1px solid #eaeaea !important;
    color: #4a5568 !important;
}

/* --- Core Content Lists, Bullets & General Content Typography --- */
.post-content ul,
.page-content ul,
.entry-content ul,
.comment-content ul,
.post-content ol,
.page-content ol,
.entry-content ol,
.comment-content ol,
.entry-content .wp-block-list,
.post-content .wp-block-list,
.page-content .wp-block-list {
    margin-top: 1.25rem !important;
    margin-bottom: 1.25rem !important;
    padding-left: 2.25rem !important;
    display: block !important;
    float: none !important;
    clear: both !important;
}

.post-content ul,
.page-content ul,
.entry-content ul,
.comment-content ul,
.post-content ul.wp-block-list,
.page-content ul.wp-block-list,
.entry-content ul.wp-block-list {
    list-style-type: disc !important;
}

.post-content ol,
.page-content ol,
.entry-content ol,
.comment-content ol,
.post-content ol.wp-block-list,
.page-content ol.wp-block-list,
.entry-content ol.wp-block-list {
    list-style-type: decimal !important;
}

/* Recursive Nesting for Lists inside posts/pages */
.post-content ul ul,
.page-content ul ul,
.entry-content ul ul,
.comment-content ul ul,
.post-content ol ul,
.page-content ol ul,
.entry-content ol ul,
.post-content ul.wp-block-list ul,
.page-content ul.wp-block-list ul {
    list-style-type: circle !important;
    margin-top: 0.5rem !important;
    margin-bottom: 0.5rem !important;
    padding-left: 1.75rem !important;
}

.post-content ul ol,
.page-content ul ol,
.entry-content ul ol,
.comment-content ul ol,
.post-content ol ol,
.page-content ol ol,
.entry-content ol ol,
.post-content ul.wp-block-list ol,
.page-content ul.wp-block-list ol {
    list-style-type: lower-alpha !important;
    margin-top: 0.5rem !important;
    margin-bottom: 0.5rem !important;
    padding-left: 1.75rem !important;
}

.post-content ul ul ul,
.page-content ul ul ul,
.entry-content ul ul ul,
.post-content ol ul ul,
.page-content ol ul ul,
.entry-content ol ul ul {
    list-style-type: square !important;
    padding-left: 1.5rem !important;
}

/* List Items inside posts/pages */
.post-content li,
.page-content li,
.entry-content li,
.comment-content li,
.post-content .wp-block-list li,
.page-content .wp-block-list li,
.entry-content .wp-block-list li {
    display: list-item !important;
    list-style: inherit !important;
    margin-bottom: 0.65rem !important;
    line-height: 1.65 !important;
    font-size: 0.95rem !important;
    color: #2d3748 !important;
    padding: 0 !important;
    text-transform: none !important;
    letter-spacing: normal !important;
}

.post-content li:last-child,
.page-content li:last-child,
.entry-content li:last-child,
.comment-content li:last-child,
.post-content .wp-block-list li:last-child,
.page-content .wp-block-list li:last-child,
.entry-content .wp-block-list li:last-child {
    margin-bottom: 0 !important;
}