/* Import Domine and Poppins font from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Domine:wght@400;500;600;700&family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #BC1718;
    --primary-hover: #981213;
    --text-color: #141414;
    --text-muted: #555555;
    --background-color: #ffffff;
    --font-serif: 'Domine', Georgia, serif;
    --font-sans: 'Poppins', 'Helvetica Neue', Arial, sans-serif;
    --transition: all 0.3s ease;
    --max-width: 1200px;
}

.footer-logo img {
    max-height: 80px;
    width: auto;
    border-radius: 10px;
}

/* Reset and Global Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-serif);
    font-size: 15px; /* Matches Phlox Pro body size */
    color: var(--text-color);
    background-image: url('../images/paper_back.jpg');
    background-repeat: repeat;
    line-height: 1.7;
    overflow-x: hidden;
}

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

a:hover {
    color: var(--primary-hover);
}

h1 {
    font-size: 2.6rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.5px;
    margin-bottom: 1.2rem;
    font-family: var(--font-serif);
}

h2 {
    font-size: 2.0rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1.1rem;
    font-family: var(--font-serif);
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 1rem;
    font-family: var(--font-serif);
}

h4 {
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0.8rem;
    font-family: var(--font-serif);
}

h5, h6 {
    font-family: var(--font-serif);
    font-weight: 600;
    margin-bottom: 0.8rem;
    line-height: 1.4;
}

p {
    margin-bottom: 1.2rem;
    text-align: justify;
    line-height: 1.7;
}

/* Header & Navigation */
.site-header {
    background-image: url('../images/paper_back.jpg');
    border-bottom: 1px solid rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 99999; /* Increased to stay on top of Elementor content and sliders */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header-container {
    max-width: 100%;
    width: 100%;
    margin: 0;
    display: grid;
    grid-template-columns: 250px 1fr 250px;
    align-items: center;
    padding: 10px 40px;
    height: 80px; /* Reduced to match original compact header */
}
.logo {
    grid-column: 1;
    justify-self: start;
}
.main-navigation {
    grid-column: 2;
    justify-self: center;
}
.header-right {
    grid-column: 3;
    justify-self: end;
    display: flex;
    align-items: center;
}

.logo img {
    height: 55px; /* Reduced to match original logo max-height */
    width: auto;
    display: block;
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
}

.nav-item {
    position: relative;
    padding: 10px 15px;
}

.nav-link {
    font-family: var(--font-serif);
    font-size: 0.95rem;
    color: #3D3D3D;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-link:hover, .nav-item:hover > .nav-link {
    color: var(--primary-color);
}

/* Submenu Dropdown */
.submenu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #ffffff;
    border: 1px solid #eaeaea;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    list-style: none;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    border-radius: 4px;
    padding: 8px 0;
    z-index: 100000; /* Increased to stay on top of sliders/maps */
}

/* Dropdown arrow styling */
.menu-arrow {
    font-size: 0.55rem;
    color: #999999;
    margin-left: 5px;
    vertical-align: middle;
    display: inline-block;
    opacity: 0.7;
}

.menu-arrow-right {
    font-size: 0.5rem;
    color: #999999;
    margin-left: auto;
    padding-left: 8px;
    vertical-align: middle;
    display: inline-block;
    opacity: 0.7;
}

.nav-item:hover > .submenu {
    opacity: 1;
    visibility: visible;
}

.submenu-item {
    width: 100%;
    position: relative; /* Essential for aligning third-level submenus */
}

/* Override nav-item padding when nested inside submenus */
.submenu .nav-item {
    padding: 0;
    position: relative;
}

/* Third-level (grandchild) submenu dropdown - aligns to the side of the parent menu item */
.submenu .submenu {
    position: absolute;
    top: 0;
    left: 100%;
    transform: none; /* Disables standard horizontal centering */
    margin-left: 1px; /* Small gap between levels */
    box-shadow: 2px 8px 30px rgba(0, 0, 0, 0.08); /* Adjusted shadow offset for side layout */
}

.submenu-link {
    display: block;
    padding: 8px 20px;
    font-size: 0.9rem;
    color: #444;
    transition: var(--transition);
}

.submenu-link:hover {
    background: rgba(188, 23, 24, 0.05);
    color: var(--primary-color);
    padding-left: 25px;
}

/* Language Selector */
.lang-selector {
    position: relative;
}

.lang-selector .nav-link {
    white-space: nowrap !important;
    display: flex !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
}

.lang-selector img {
    width: 16px;
    height: 11px;
    margin-right: 6px;
    vertical-align: middle;
    flex-shrink: 0;
}

.lang-dropdown {
    min-width: 170px !important;
}

.lang-dropdown .submenu-link {
    white-space: nowrap !important;
    display: flex !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    gap: 8px;
}

.lang-dropdown .submenu-link img {
    flex-shrink: 0;
}

/* Mobile Burger Menu Button */
.burger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
    z-index: 1001;
}

.burger-menu span {
    width: 100%;
    height: 3px;
    background-color: var(--text-color);
    transition: var(--transition);
    border-radius: 2px;
}

/* Main Layout Wrapper */
main {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 40px 20px;
    min-height: calc(100vh - 400px);
}

/* Homepage Hero Slider Styles */
.hero-slider {
    position: relative;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    height: 500px;
    overflow: hidden;
    background: #000;
}

.slides-container {
    display: flex;
    height: 100%;
    width: 100%;
    transition: transform 0.5s ease-in-out;
}

.slide-item {
    min-width: 100%;
    height: 100%;
    position: relative;
}

.slide-bg {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0.75;
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 2;
    color: #fff;
}

.slide-content h2 {
    font-size: 3rem;
    font-weight: 700;
    text-transform: uppercase;
    text-shadow: 0 4px 10px rgba(0,0,0,0.5);
    margin: 0;
    letter-spacing: 2px;
}

/* Slider navigation */
.slider-prev, .slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.3);
    color: #fff;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
}

.slider-prev:hover, .slider-next:hover {
    background: var(--primary-color);
}

.slider-prev { left: 20px; }
.slider-next { right: 20px; }

/* Grid Quick Link Section */
.quick-links-section {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin: 60px 0;
}

.quick-link-card {
    text-align: center;
    background: rgba(255, 255, 255, 0.35);
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 30px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
    transition: var(--transition);
}

.quick-link-card:hover {
    transform: translateY(-5px);
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.quick-link-card img {
    width: 135px; /* Slightly larger as requested */
    height: auto;
    margin-bottom: 15px;
    opacity: 0.85;
}

.quick-link-card h4 {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.quick-link-card h4 a {
    color: var(--text-color);
}

.quick-link-card h4 a:hover {
    color: var(--primary-color);
}

/* Custom About Block (Homepage bottom) */
.about-section {
    max-width: 800px;
    margin: 0 auto 50px;
    text-align: center;
}

.about-section h2 {
    font-size: 2.2rem;
    color: var(--text-color);
    margin-bottom: 25px;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.about-section h2::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.about-section p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
}

/* Contact Page Form styling */
.contact-container {
    max-width: 700px;
    margin: 0 auto;
    background: #ffffff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    border: 1px solid #eee;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-family: var(--font-sans);
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 5px rgba(188, 23, 24, 0.2);
}

.btn-primary {
    background-color: var(--primary-color);
    color: #ffffff;
    border: none;
    padding: 12px 30px;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
}

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

.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}
.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}
.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Blog Page styling */
.post-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.post-card {
    background: #ffffff;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    transition: var(--transition);
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.post-card-content {
    padding: 25px;
}

.post-card h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.post-card h3 a {
    color: var(--text-color);
}

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

.post-meta {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.post-excerpt {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 15px;
    line-height: 1.6;
}

.read-more {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
}

/* Footer Section */
footer {
    background-color: #BC1718;
    color: #ffffff;
    padding: 60px 20px 40px;
    text-align: center;
}

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

.footer-logo {
    margin-bottom: 30px;
}

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

.footer-info {
    font-weight: 500;
    font-size: 0.95rem;
    margin-bottom: 30px;
    line-height: 1.8;
}

.footer-info a {
    color: #ffffff !important;
    text-decoration: underline;
}

.footer-links {
    margin-bottom: 30px;
}

.footer-links a {
    color: #ffffff;
    margin: 0 15px;
    font-style: italic;
}

.footer-social-table {
    width: 100%;
    max-width: 600px;
    margin: 0 auto 30px;
    border-collapse: collapse;
}

.footer-social-table td {
    padding: 10px;
    width: 50%;
    color: #ffffff;
}

.footer-social-table td a {
    display: inline-block;
    margin: 0 8px;
}

.footer-social-table img {
    width: 30px;
    height: 30px;
    background-color: #ffffff;
    padding: 5px;
    border-radius: 4px;
}

.copyright {
    font-size: 0.8rem;
    opacity: 0.8;
    font-family: var(--font-sans);
}

.designed-by {
    margin-top: 15px;
    font-size: 0.75rem;
    text-align: right;
    opacity: 0.7;
}

.designed-by a {
    color: #ffffff;
    text-decoration: underline;
}

/* Scroll To Top button */
.goto-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    z-index: 99;
    transition: var(--transition);
}

.goto-top:hover {
    background: var(--primary-hover);
    transform: scale(1.1);
}

/* Responsive Mobile Navigation */
@media (max-width: 1024px) {
    .header-container {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 10px 20px !important;
    }
    
    .header-right {
        margin-left: auto !important;
        margin-right: 20px !important;
    }

    .burger-menu {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px; /* Aligned to new 80px header height */
        flex-direction: column;
        background: #ffffff;
        width: 100%;
        height: calc(100vh - 80px);
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 15px rgba(0,0,0,0.05);
        padding: 30px 0;
        overflow-y: auto;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        margin: 15px 0;
        width: 100%;
    }

    .submenu, .submenu .submenu {
        position: relative;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        background: rgba(0,0,0,0.02);
        top: 0;
        left: 0;
        transform: none;
        margin-top: 10px;
        margin-left: 0;
        display: none;
        width: 100%;
    }

    .nav-item.active > .submenu {
        display: block;
    }
    
    .quick-links-section {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .post-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .quick-links-section {
        grid-template-columns: 1fr;
    }
    
    .hero-slider {
        height: 350px;
    }
    
    .slide-content h2 {
        font-size: 2rem;
    }
}

/* Page Spacing & Typography for Scraped Content */
.entry-content {
    font-family: var(--font-serif);
    font-size: 15px;
    line-height: 1.8;
}

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

.entry-content ul, .entry-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
    list-style-position: outside;
}

.entry-content li {
    margin-bottom: 0.6rem;
    line-height: 1.7;
}
p.footer_class {
    text-align: center;
}
.entry-content table {
    width: 100%;
    margin: 20px 0;
    border-collapse: collapse;
}

.entry-content table td, .entry-content table th {
    padding: 12px 15px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    vertical-align: middle;
}

/* Elementor Grid System Integration */
.elementor-section {
    position: relative;
    width: 100%;
    display: block;
    margin-bottom: 0;
}

.elementor-background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.elementor-container {
    display: flex;
    margin-right: auto;
    margin-left: auto;
    position: relative;
    width: 100%;
    max-width: var(--max-width);
}

.elementor-row {
    width: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

.elementor-column {
    position: relative;
    min-height: 1px;
    display: flex;
    box-sizing: border-box;
}

.elementor-column-wrap {
    width: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.elementor-widget-wrap {
    width: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    padding: 10px;
    box-sizing: border-box;
}

.elementor-widget {
    position: relative;
    width: 100%;
    margin-bottom: 20px;
}

.elementor-widget:last-child {
    margin-bottom: 0;
}

.elementor-widget-container {
    width: 100%;
}

/* Elementor Column width percentages */
.elementor-col-100 { width: 100%; }
.elementor-col-90 { width: 90%; }
.elementor-col-80 { width: 80%; }
.elementor-col-75 { width: 75%; }
.elementor-col-70 { width: 70%; }
.elementor-col-66 { width: 66.666%; }
.elementor-col-60 { width: 60%; }
.elementor-col-50 { width: 50%; }
.elementor-col-40 { width: 40%; }
.elementor-col-33 { width: 33.333%; }
.elementor-col-30 { width: 30%; }
.elementor-col-25 { width: 25%; }
.elementor-col-20 { width: 20%; }
.elementor-col-16 { width: 16.666%; }
.elementor-col-10 { width: 10%; }

/* Spacing and alignments inside widgets */
.elementor-heading-title {
    margin: 0;
}

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

.elementor-align-left {
    text-align: left;
}

.elementor-align-right {
    text-align: right;
}

/* Responsive grid stacking for mobile view */
@media (max-width: 768px) {
    .elementor-container {
        flex-direction: column;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .elementor-row {
        flex-direction: column;
    }
    
    .elementor-column {
        width: 100% !important;
    }
}

/* Layout Centering & Page Types */
.elementor-page {
    width: 100%;
    margin: 0 auto;
}

.standard-page {
    max-width: var(--max-width); /* 1200px */
    margin: 40px auto;
    padding: 0 20px;
    width: 100%;
}

.standard-page .entry-content {
    text-align: justify;
    font-family: var(--font-serif);
}

/* Full Width Stretched Sections Support */
.elementor-section.elementor-section-stretched,
.elementor-section.elementor-section-full_width {
    width: 100% !important;
    left: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.elementor-section.elementor-section-stretched > .elementor-container,
.elementor-section.elementor-section-full_width > .elementor-container {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 0;
    padding-right: 0;
}

/* ==========================================================================
   AV Gallery — Independent responsive grid, zero Elementor dependency
   ========================================================================== */
.av-gallery {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 30px 0;
    padding: 0;
    clear: both;
    box-sizing: border-box;
}

.av-gallery-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important;
    gap: 16px !important;
    width: 100% !important;
    max-width: 100% !important;
}

.av-gallery-card {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    background: #eaeaea;
    min-width: 0;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.av-gallery-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.av-gallery-img {
    width: 100%;
    aspect-ratio: 4 / 3;
    min-height: 160px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.5s ease;
}

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

.av-gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.av-gallery-card:hover .av-gallery-overlay {
    background: rgba(0, 0, 0, 0.35);
}

/* Caption inside overlay */
.av-gallery-caption {
    color: #fff;
    font-family: var(--font-sans), sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    padding: 8px 16px;
    background: rgba(0, 0, 0, 0.65);
    border-radius: 4px;
    max-width: 90%;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.av-gallery-card:hover .av-gallery-caption {
    opacity: 1;
    transform: translateY(0);
}

/* Icon when no caption */
.av-gallery-icon {
    font-size: 1.5rem;
    color: #fff;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.av-gallery-card:hover .av-gallery-icon {
    opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .av-gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)) !important;
        gap: 10px !important;
    }
    .av-gallery-img {
        min-height: 130px;
    }
}

@media (max-width: 480px) {
    .av-gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)) !important;
        gap: 8px !important;
    }
    .av-gallery-img {
        min-height: 110px;
    }
}

/* Custom Lightbox Fullscreen Overlay */
.lightbox-overlay {
    display: none;
    position: fixed;
    z-index: 999999; /* Higher than header and dropdowns */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    opacity: 0;
    transition: opacity 0.3s ease;
    align-items: center;
    justify-content: center;
    user-select: none;
}

.lightbox-overlay.active {
    display: flex;
    opacity: 1;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s ease, transform 0.2s ease;
    z-index: 1000001;
}

.lightbox-close:hover {
    color: var(--primary-color);
    transform: scale(1.1);
}

.lightbox-prev, .lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #fff;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    padding: 20px;
    transition: color 0.2s ease, transform 0.2s ease;
    z-index: 1000001;
    outline: none;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-prev:hover, .lightbox-next:hover {
    color: var(--primary-color);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-content {
    max-width: 85%;
    max-height: 85%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

#lightbox-img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 4px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.5);
    object-fit: contain;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.lightbox-overlay.active #lightbox-img {
    transform: scale(1);
}

#lightbox-caption {
    margin-top: 15px;
    color: #ccc;
    font-size: 1.1rem;
    text-align: center;
    font-family: var(--font-sans);
    letter-spacing: 0.5px;
}

/* Dynamic & Custom Gallery Styles */
.standard-gallery-section {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
}
.standard-gallery-section h3 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 25px;
    text-align: center;
    position: relative;
    padding-bottom: 10px;
}
.standard-gallery-section h3::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 10px auto 0;
}

/* Admin Gallery Management Styles */
.media-library-picker-item:hover {
    transform: scale(1.05);
    border-color: #007bff !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}
.gallery-item-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.gallery-item-card:hover {
    box-shadow: 0 4px 10px rgba(0,0,0,0.1) !important;
}

/* Floating Cookie Consent Trigger Button */
.cookie-trigger-btn {
    position: fixed;
    bottom: 25px;
    left: 25px;
    width: 48px;
    height: 48px;
    background-color: #2c3e50;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    z-index: 99999;
    border: 2px solid #fff;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), background-color 0.2s ease, box-shadow 0.2s ease;
}
.cookie-trigger-btn:hover {
    transform: scale(1.1) rotate(15deg);
    background-color: var(--primary-color);
    box-shadow: 0 6px 20px rgba(188, 23, 24, 0.3);
}

/* Modal Overlay & Card Container */
.cookie-consent-overlay {
    display: none;
    position: fixed;
    z-index: 1000000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 20px;
}
.cookie-consent-overlay.active {
    display: flex;
    opacity: 1;
}
.cookie-consent-modal {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    width: 100%;
    max-width: 550px;
    padding: 30px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    font-family: var(--font-sans), sans-serif;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}
.cookie-consent-overlay.active .cookie-consent-modal {
    transform: translateY(0);
}
.cookie-consent-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 10px;
}
.cookie-consent-desc {
    font-size: 0.92rem;
    line-height: 1.5;
    color: #555;
    margin-bottom: 20px;
}

/* Registered Consent Panel */
.cookie-consent-record-box {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    padding: 12px 15px;
    border-radius: 6px;
    font-size: 0.82rem;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.5;
    text-align: left;
}
.cookie-consent-record-box strong {
    color: #333;
}

/* Categories List */
.cookie-category-item {
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 10px;
    background: #fafafa;
    text-align: left;
}
.cookie-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
}
.cookie-category-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}
.cookie-category-desc {
    font-size: 0.82rem;
    color: #666;
    margin-top: 8px;
    line-height: 1.4;
}

/* Custom Checkboxes / Switches */
.cookie-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 22px;
}
.cookie-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.cookie-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .3s;
    border-radius: 34px;
}
.cookie-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
}
.cookie-switch input:checked + .cookie-slider {
    background-color: #28a745;
}
.cookie-switch input:disabled + .cookie-slider {
    background-color: #bdc3c7;
    cursor: not-allowed;
}
.cookie-switch input:checked + .cookie-slider:before {
    transform: translateX(22px);
}

/* Button Panel */
.cookie-btn-group {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 25px;
    flex-wrap: wrap;
}
.cookie-btn {
    padding: 10px 18px;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-grow: 1;
    text-align: center;
}
.cookie-btn-accept {
    background-color: #BC1718;
    color: #fff;
}
.cookie-btn-accept:hover {
    background-color: #981213;
}
.cookie-btn-customize {
    background-color: #e2e6ea;
    color: #333;
    border: 1px solid #ccc;
}
.cookie-btn-customize:hover {
    background-color: #dae0e5;
}
.cookie-btn-reject {
    background-color: #6c757d;
    color: #fff;
}
.cookie-btn-reject:hover {
    background-color: #5a6268;
}

/* Public Search Elements Styles */
.search-btn {
    background: none;
    border: none;
    font-size: 1.25rem;
    color: #3D3D3D;
    cursor: pointer;
    padding: 10px;
    transition: color 0.2s, transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-btn:hover {
    color: var(--primary-color);
    transform: scale(1.1);
}

.search-bar-dropdown {
    position: absolute;
    top: 80px; /* aligns to header height */
    left: 0;
    width: 100%;
    background-color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease-in-out;
    opacity: 0;
    z-index: 9999;
}

.search-bar-dropdown.active {
    max-height: 75px;
    opacity: 1;
}

.search-bar-inner {
    max-width: 800px;
    margin: 0 auto;
    padding: 12px 20px;
}

.search-bar-inner form {
    display: flex;
    align-items: center;
    border: 1px solid #ced4da;
    border-radius: 25px;
    overflow: hidden;
    background: #fdfdfd;
    box-sizing: border-box;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
}

.search-bar-inner input[type="text"] {
    flex-grow: 1;
    border: none;
    padding: 10px 20px;
    font-size: 1rem;
    outline: none;
    background: transparent;
    font-family: var(--font-sans), sans-serif;
    color: #333;
}

.search-bar-inner .btn-search-submit {
    background: none;
    border: none;
    padding: 0 20px;
    cursor: pointer;
    font-size: 1.15rem;
    color: #6c757d;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-bar-inner .btn-search-submit:hover {
    color: var(--primary-color);
}

/* Hide redundant/duplicate Elementor sections on the homepage */
.home-page-content [data-id="eb11a81"],
.home-page-content [data-id="8061d38"] {
    display: none !important;
}

/* ==========================================================================
   Page Banners (Fullscreen Top & Bottom)
   ========================================================================== */
.page-top-banner, .page-bottom-banner {
    display: block;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    box-sizing: border-box;
    background-color: #e9ecef; /* fallback visible if image is broken */
}

.page-top-banner {
    height: 60vh;
    min-height: 450px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Overlay with centered title on banner */
.page-top-banner-overlay {
    text-align: center;
    z-index: 2;
    background: rgba(0, 0, 0, 0.35);
    padding: 30px 50px;
    border-radius: 8px;
}

.page-banner-title {
    font-family: var(--font-serif);
    font-size: 3rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}

.page-banner-underline {
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 15px auto 0;
}

.page-bottom-banner {
    height: 40vh;
    min-height: 300px;
    margin-top: 50px;
}

/* Fixed background parallax attachment */
.page-top-banner.fixed, .page-bottom-banner.fixed {
    background-attachment: fixed;
}

@media (max-width: 768px) {
    .page-top-banner {
        height: 40vh;
        min-height: 280px;
        background-attachment: scroll !important; /* disable fixed parallax on mobile for performance */
    }
    .page-bottom-banner {
        height: 30vh;
        min-height: 200px;
        background-attachment: scroll !important;
    }
}

/* ==========================================================================
   Page/Post Wrapper Max-Width 1420px
   ========================================================================== */
.page-content-wrapper-1420 {
    max-width: 1420px;
    width: 100%;
    margin: 0 auto;
    padding: 60px 20px;
    box-sizing: border-box;
}

/* ==========================================================================
   Dynamic Autoplay Slider (Video & Caption Support)
   ========================================================================== */
.custom-dynamic-slider {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 650px;
    background-color: #000;
}

.custom-dynamic-slider .slides-container {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.6s ease-in-out;
}

.custom-dynamic-slider .slide-item {
    min-width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-dynamic-slider .slide-bg {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.custom-dynamic-slider .slide-media-wrap {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.custom-dynamic-slider .slide-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.custom-dynamic-slider .slide-content {
    position: absolute;
    z-index: 10;
    text-align: center;
    max-width: 80%;
    background: rgba(0, 0, 0, 0.2);
    padding: 20px 40px;
    border-radius: 4px;
}

.custom-dynamic-slider .slide-content a {
    text-decoration: none;
}

.custom-dynamic-slider .slide-caption-title {
    color: #fff;
    font-size: 2.8rem;
    font-family: var(--font-serif);
    margin: 0;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
}

@media (max-width: 768px) {
    .custom-dynamic-slider {
        height: 380px;
    }
    .custom-dynamic-slider .slide-caption-title {
        font-size: 1.8rem;
    }
}

/* ==========================================================================
   Modern Blog Card Grid Styling
   ========================================================================== */
.blog-categories-pills .category-pill:hover,
.blog-categories-pills .category-pill.active {
    background-color: var(--primary-color) !important;
    color: #fff !important;
    border-color: var(--primary-color) !important;
}

.blog-posts-grid {
    margin-top: 30px;
}

.blog-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08) !important;
}

.blog-card-img-link {
    width: 100%;
}

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

.blog-card-content {
    background: #ffffff;
}

.blog-card-meta {
    font-family: var(--font-sans), sans-serif;
}

.blog-card-cat {
    font-weight: bold;
    letter-spacing: 0.03em;
}

.blog-card-title a {
    color: #3D3D3D;
    text-decoration: none;
    transition: color 0.2s;
}

.blog-card-title a:hover {
    color: var(--primary-color);
}

.blog-card-excerpt {
    font-size: 0.92rem;
    color: #666;
    line-height: 1.5;
    margin-bottom: 20px;
}

.blog-card .btn-read-more {
    font-family: var(--font-sans), sans-serif;
    text-transform: uppercase;
    font-size: 0.82rem;
    letter-spacing: 0.05em;
}

.blog-card .btn-read-more:hover {
    color: #000;
}

/* ==========================================================================
   MODERN BLOG STYLES (Redesign 2026)
   ========================================================================== */

/* Blog Container */
.blog-modern-container {
    padding: 40px 0;
}

/* Blog Hero Header */
.blog-modern-header {
    text-align: center;
    margin-bottom: 50px;
    padding: 0 20px;
}

.blog-modern-eyebrow {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--primary-color);
    margin-bottom: 12px;
    background: rgba(188, 23, 24, 0.06);
    padding: 6px 16px;
    border-radius: 20px;
}

.blog-modern-title {
    font-family: var(--font-serif);
    font-size: 3rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 12px 0;
    line-height: 1.15;
    letter-spacing: -0.5px;
}

.blog-modern-subtitle {
    font-family: var(--font-sans);
    font-size: 1.1rem;
    color: #666;
    max-width: 550px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Category Filter Pills */
.blog-categories-filter {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 50px;
    padding: 0 10px;
}

.filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 40px;
    font-family: var(--font-sans);
    font-size: 0.88rem;
    font-weight: 500;
    color: #555;
    background: #fff;
    border: 1.5px solid #e0e0e0;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.filter-pill:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(188, 23, 24, 0.1);
}

.filter-pill.active {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
    box-shadow: 0 4px 16px rgba(188, 23, 24, 0.25);
}

.pill-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 11px;
    font-size: 0.72rem;
    font-weight: 700;
    background: rgba(0,0,0,0.06);
    color: inherit;
}

.filter-pill.active .pill-count {
    background: rgba(255,255,255,0.25);
}

/* Empty State */
.blog-empty-state {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: 16px;
    border: 1px solid #eee;
}

.blog-empty-state .empty-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.blog-empty-state h3 {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    color: #333;
    margin-bottom: 8px;
}

.blog-empty-state p {
    color: #888;
    font-family: var(--font-sans);
    font-size: 0.95rem;
}

/* Masonry Grid */
.blog-masonry-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 0 10px;
}

/* Blog Masonry Card */
.blog-masonry-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    border: 1px solid #f0f0f0;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.blog-masonry-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.1);
}

/* Featured first card - spans 2 columns */
.blog-card-featured {
    grid-column: span 2;
}

.blog-card-featured .blog-card-media {
    height: 400px;
}

.blog-card-featured .blog-card-heading {
    font-size: 1.6rem;
}

/* Card Media */
.blog-card-media-link {
    display: block;
    overflow: hidden;
}

.blog-card-media {
    height: 240px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog-masonry-card:hover .blog-card-media {
    transform: scale(1.04);
}

.blog-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0) 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.blog-masonry-card:hover .blog-card-overlay {
    opacity: 1;
}

.blog-card-category-tag {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--primary-color);
    color: #fff;
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 5px 12px;
    border-radius: 4px;
    z-index: 2;
}

/* Card Body */
.blog-card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-card-meta-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.blog-card-date {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: var(--font-sans);
    font-size: 0.78rem;
    color: #999;
}

.blog-card-heading {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.35;
    margin: 0 0 12px 0;
}

.blog-card-heading a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.2s;
}

.blog-card-heading a:hover {
    color: var(--primary-color);
}

.blog-card-text {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 18px;
    flex-grow: 1;
}

.blog-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
    transition: gap 0.2s ease, color 0.2s;
    margin-top: auto;
}

.blog-card-link:hover {
    gap: 10px;
    color: var(--primary-hover);
}

/* Keep legacy styles for backward compat */
.blog-categories-pills .category-pill:hover,
.blog-categories-pills .category-pill.active {
    background-color: var(--primary-color) !important;
    color: #fff !important;
    border-color: var(--primary-color) !important;
}

/* ==========================================================================
   MODERN SINGLE POST STYLES
   ========================================================================== */

.single-post-modern {
    width: 100%;
}

.post-modern-header {
    text-align: center;
    padding: 50px 20px 40px;
    max-width: 800px;
    margin: 0 auto;
}

.post-category-badge {
    display: inline-block;
    background: var(--primary-color);
    color: #fff;
    font-family: var(--font-sans);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 6px 16px;
    border-radius: 4px;
    text-decoration: none;
    margin-bottom: 20px;
    transition: background 0.2s;
}

.post-category-badge:hover {
    background: var(--primary-hover);
    color: #fff;
}

.post-modern-title {
    font-family: var(--font-serif);
    font-size: 2.8rem;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.2;
    margin: 0 0 20px 0;
    letter-spacing: -0.5px;
}

.post-modern-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    color: #888;
}

.post-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.post-meta-divider {
    color: #ccc;
    font-weight: 700;
}

.post-lang-switcher {
    gap: 4px;
}

.post-lang-switcher .lang-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 3px;
    transition: background 0.2s;
}

.post-lang-switcher .lang-link:hover {
    background: rgba(188, 23, 24, 0.1);
}

/* Featured Image */
.post-featured-image-wrapper {
    width: 100%;
    max-width: 1420px;
    margin: 0 auto 40px;
    padding: 0 20px;
}

.post-featured-image {
    width: 100%;
    max-height: 550px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

/* Post Content */
.post-modern-content {
    max-width: 780px;
    margin: 0 auto;
    padding: 0 20px;
    font-family: var(--font-serif);
    font-size: 1.1rem;
    line-height: 1.85;
    color: #333;
}

.post-modern-content p {
    margin-bottom: 1.6rem;
    text-align: justify;
}

.post-modern-content h2 {
    font-size: 1.8rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

.post-modern-content h3 {
    font-size: 1.4rem;
    margin-top: 2rem;
    margin-bottom: 0.8rem;
    color: #1a1a1a;
}

.post-modern-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

.post-modern-content blockquote {
    border-left: 4px solid var(--primary-color);
    margin: 25px 0;
    padding: 15px 25px;
    background: rgba(188, 23, 24, 0.03);
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #555;
}

/* Post Footer */
.post-modern-footer {
    max-width: 780px;
    margin: 50px auto 30px;
    padding: 25px 20px 0;
    border-top: 1px solid #eee;
    text-align: center;
}

.post-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: var(--primary-color);
    color: #fff;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
}

.post-back-btn:hover {
    background: var(--primary-hover);
    transform: translateX(-4px);
    color: #fff;
}

/* Related Posts Section */
.related-posts-section {
    max-width: 780px;
    margin: 60px auto 0;
    padding: 40px 20px 0;
    border-top: 1px solid #eee;
}

.related-posts-heading {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 25px;
    text-align: center;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.related-post-card {
    text-decoration: none;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
    border: 1px solid #f0f0f0;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.related-post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.related-post-img {
    height: 160px;
    background-size: cover;
    background-position: center;
}

.related-post-info {
    padding: 16px;
}

.related-post-date {
    font-family: var(--font-sans);
    font-size: 0.72rem;
    color: #999;
    display: block;
    margin-bottom: 6px;
}

.related-post-title {
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.35;
    margin: 0;
}

.related-post-card:hover .related-post-title {
    color: var(--primary-color);
}

/* Blog Category Pills Legacy (keep for pages using old markup) */
.blog-categories-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 45px;
}

.category-pill {
    display: inline-block;
    padding: 10px 22px;
    border-radius: 30px;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 500;
    color: #555;
    background: #fff;
    border: 1.5px solid #e0e0e0;
    text-decoration: none;
    transition: all 0.2s ease;
}

.category-pill:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Responsive Blog */
@media (max-width: 1024px) {
    .blog-masonry-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .blog-card-featured {
        grid-column: span 2;
    }
    .blog-card-featured .blog-card-media {
        height: 300px;
    }
    .blog-modern-title {
        font-size: 2.2rem;
    }
    .related-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .post-modern-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .blog-masonry-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .blog-card-featured {
        grid-column: span 1;
    }
    .blog-card-featured .blog-card-media {
        height: 240px;
    }
    .blog-modern-title {
        font-size: 1.8rem;
    }
    .blog-modern-subtitle {
        font-size: 0.95rem;
    }
    .filter-pill {
        padding: 8px 16px;
        font-size: 0.8rem;
    }
    .related-posts-grid {
        grid-template-columns: 1fr;
    }
    .post-modern-title {
        font-size: 1.8rem;
    }
    .post-modern-content {
        font-size: 1rem;
    }
}

input.wpcf7-form-control.wpcf7-text.wpcf7-validates-as-required {
    width: 100%;
    height: 30px;
    border-radius: 10px;
}
input.wpcf7-form-control.wpcf7-number.wpcf7-validates-as-required.wpcf7-validates-as-number\ {
    width: 100%;
    height: 30px;
    border-radius: 10px;
}
textarea.wpcf7-form-control.wpcf7-textarea.wpcf7-validates-as-required {
    width: 100%;

    border-radius: 10px;
}

input.wpcf7-form-control.wpcf7-text.wpcf7-validates-as-required {
    width: 100%;
    height: 30px;
    border-radius: 10px;
}

/* ==========================================================================
   Modern Contact Form — Richiesta Disponibilità — Grandi dimensioni
   ========================================================================== */
.contact-modern { padding: 30px 0 60px; }

.contact-modern-header { text-align: center; margin-bottom: 35px; }
.contact-modern-eyebrow {
    display: inline-block; font-family: var(--font-sans); font-size: 0.85rem;
    font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em;
    color: var(--primary-color); margin-bottom: 12px;
    background: rgba(188,23,24,0.06); padding: 6px 16px; border-radius: 20px;
}
.contact-modern-title { font-family: var(--font-serif); font-size: 2.6rem; font-weight: 700; color: #1a1a1a; margin: 0 0 10px; }
.contact-modern-subtitle { font-family: var(--font-serif); font-size: 1.1rem; color: #666; max-width: 550px; margin: 0 auto; line-height: 1.6; }

/* Form card */
.contact-modern-form {
    max-width: 720px; margin: 0 auto; background: #fff; padding: 50px 55px;
    border-radius: 12px; box-shadow: 0 4px 24px rgba(0,0,0,0.06); border: 1px solid #eee;
}

.contact-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 25px; }

.contact-field { margin-bottom: 30px; }
.contact-field label {
    display: block; font-family: var(--font-serif); font-size: 1.1rem;
    font-weight: 600; color: #2c2c2c; margin-bottom: 10px; letter-spacing: 0.02em;
}

/* BIG inputs */
.contact-field input,
.contact-field textarea,
.contact-field select {
    width: 100%; padding: 20px 22px; border: 2px solid #ddd; border-radius: 10px;
    font-family: var(--font-serif); font-size: 1.15rem; color: #333;
    background: #fcfcfc; transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
    box-sizing: border-box;
}
.contact-field input:focus,
.contact-field textarea:focus,
.contact-field select:focus {
    outline: none; border-color: var(--primary-color);
    box-shadow: 0 0 0 5px rgba(188,23,24,0.07); background: #fff;
}
.contact-field input::placeholder,
.contact-field textarea::placeholder { color: #bbb; font-style: italic; }
.contact-field textarea { resize: vertical; min-height: 200px; line-height: 1.7; }
.contact-field select {
    appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 18px center; padding-right: 44px;
    cursor: pointer;
}

.contact-field.has-error input,
.contact-field.has-error textarea { border-color: #dc3545; background: #fff5f5; }
.field-error { display: block; font-family: var(--font-sans); font-size: 0.85rem; color: #dc3545; margin-top: 7px; font-weight: 500; }

/* Consent checkbox */
.contact-consent { margin-top: 5px; }
.consent-label {
    display: flex !important; align-items: flex-start; gap: 12px;
    font-family: var(--font-serif) !important; font-size: 0.92rem !important;
    font-weight: 400 !important; color: #555 !important; line-height: 1.5;
    cursor: pointer;
}
.consent-label input[type="checkbox"] {
    width: 20px; height: 20px; min-width: 20px; margin-top: 2px;
    accent-color: var(--primary-color); cursor: pointer;
}
.contact-consent.has-error .consent-label { color: #dc3545 !important; }

/* Closing phrase */
.contact-closing {
    font-family: var(--font-serif); font-size: 1rem; color: #888;
    margin-top: 16px; font-style: italic;
}

/* BIG submit button */
.contact-form-submit { text-align: center; margin-top: 20px; }
.contact-submit-btn {
    display: inline-flex; align-items: center; gap: 12px;
    padding: 22px 60px; background: var(--primary-color); color: #fff; border: none;
    border-radius: 10px; font-family: var(--font-serif); font-size: 1.25rem;
    font-weight: 700; letter-spacing: 0.04em; cursor: pointer;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.contact-submit-btn:hover {
    background: var(--primary-hover); transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(188,23,24,0.35);
}

/* Success */
.contact-success-box {
    max-width: 550px; margin: 0 auto; text-align: center;
    background: #d4edda; border: 1px solid #c3e6cb; border-radius: 12px; padding: 55px 45px;
}
.contact-success-icon { font-size: 3.5rem; margin-bottom: 20px; }
.contact-success-box h3 { font-family: var(--font-serif); font-size: 1.6rem; color: #155724; margin-bottom: 12px; }
.contact-success-box p { font-family: var(--font-serif); color: #155724; font-size: 1.1rem; line-height: 1.6; }

@media (max-width: 768px) {
    .contact-form-row { grid-template-columns: 1fr; gap: 0; }
    .contact-modern-form { padding: 30px 20px; }
    .contact-modern-title { font-size: 2rem; }
    .contact-field input, .contact-field textarea, .contact-field select { font-size: 1.05rem; padding: 18px 20px; }
    .contact-submit-btn { width: 100%; justify-content: center; padding: 20px 30px; }
}

/* ==========================================================================
   Elementor Photo Gallery Grid & Video Embeds (Media Pages Redesign)
   ========================================================================== */
.elementor-gallery__container {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important;
    gap: 16px !important;
    width: 100% !important;
    margin: 35px 0 !important;
    clear: both !important;
}

.e-gallery-item {
    display: block !important;
    position: relative !important;
    overflow: hidden !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08) !important;
    aspect-ratio: 4/3 !important;
    height: 180px !important;
    cursor: pointer !important;
    background-color: #f0f0f0 !important;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease !important;
}

.e-gallery-item:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.16) !important;
}

.e-gallery-image {
    width: 100% !important;
    height: 100% !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    transition: transform 0.5s ease !important;
}

.e-gallery-item:hover .e-gallery-image {
    transform: scale(1.08) !important;
}

.elementor-gallery-item__overlay {
    position: absolute !important;
    inset: 0 !important;
    background: rgba(0, 0, 0, 0.35) !important;
    opacity: 0 !important;
    transition: opacity 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.e-gallery-item:hover .elementor-gallery-item__overlay {
    opacity: 1 !important;
}

.elementor-gallery-item__overlay::after {
    content: "🔍";
    font-size: 1.6rem;
    color: #ffffff;
    filter: drop-shadow(0 2px 5px rgba(0,0,0,0.6));
}

/* Elementor Multi-Column Layout (e.g. Team Page: col-33 and col-66 side-by-side) */
.elementor-section .elementor-row {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 3% !important;
    margin: 25px 0 !important;
    align-items: flex-start !important;
}

.elementor-column.elementor-col-33 {
    flex: 0 0 32% !important;
    max-width: 32% !important;
    width: 32% !important;
    margin: 0 !important;
}

.elementor-column.elementor-col-66 {
    flex: 0 0 65% !important;
    max-width: 65% !important;
    width: 65% !important;
    margin: 0 !important;
}

@media (max-width: 768px) {
    .elementor-column.elementor-col-33,
    .elementor-column.elementor-col-66 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
    }
}

.elementor-widget-image img {
    max-width: 100% !important;
    height: auto !important;
    border-radius: 10px !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1) !important;
}

.elementor-wrapper.elementor-fit-aspect-ratio {
    position: relative !important;
    width: 100% !important;
    padding-bottom: 56.25% !important; /* 16:9 aspect ratio */
    height: 0 !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12) !important;
    background-color: #000000 !important;
}

.elementor-wrapper.elementor-fit-aspect-ratio iframe {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    border: 0 !important;
}

/* ==========================================================================
   Full-Page Menu Bistrot Display (No height clipping, full resolution)
   ========================================================================== */
.menu-page-wrapper {
    max-width: 900px !important;
    width: 100% !important;
    margin: 0 auto !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 40px !important;
}

.menu-page-card {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    aspect-ratio: auto !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
    background: #ffffff !important;
    text-decoration: none !important;
}

.menu-page-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.18) !important;
}

.menu-page-card img {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    aspect-ratio: auto !important;
    border-radius: 12px !important;
}

/* ==========================================================================
   Custom Accordion Component (Noleggio Trailers & FAQs)
   ========================================================================== */
.custom-accordion {
    width: 100%;
    margin: 30px 0;
}

.accordion-item {
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    margin-bottom: 16px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.accordion-item.active {
    border-color: var(--primary-color, #c51818);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
}

.accordion-header {
    padding: 18px 24px;
    background: #fdfdfd;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    font-size: 1.2rem;
    color: #1a1a1a;
    user-select: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.accordion-header:hover {
    background: #f7f7f7;
    color: var(--primary-color, #c51818);
}

.accordion-icon {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color, #c51818);
    transition: transform 0.3s ease;
}

.accordion-item.active .accordion-icon {
    transform: rotate(45deg);
}

.accordion-body {
    display: none;
    padding: 24px;
    border-top: 1px solid #eee;
    background: #ffffff;
    line-height: 1.7;
    color: #333;
}

.accordion-item.active .accordion-body {
    display: block;
}

.img_trailer {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 20px 0;
}

.img_trailer img {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.img_trailer img:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}

.price-box {
    background: #fdf6f6;
    border-left: 4px solid var(--primary-color, #c51818);
    padding: 16px 20px;
    border-radius: 4px;
    margin-top: 20px;
}



