/*
Theme Name: Calgary Marathi Association
Theme URI: https://cmacalgary.ca
Description: A premium, modern WordPress theme for the Calgary Marathi Association community.
Version: 1.0.0
Author: Vijay Chalke
Author URI: https://chalkecc.com
Text Domain: calgary-marathi
Tags: community, association, clean, modern, responsive
*/

/* 
   Note: This is the central stylesheet for the Calgary Marathi Association theme.
   All global, component, and layout styles are consolidated here.
*/

:root {
    /* Core Colors */
    --color-primary: #F16220;
    /* Orange */
    --primary-orange: var(--color-primary);
    --color-primary-hover: #d1491e;
    --color-secondary: #149048;
    /* Green */
    --color-secondary-hover: #0c6a36;
    --color-accent: #F89E2C;
    /* Light Orange */
    --color-accent-brown: #C2542F;
    /* Brown */

    /* Background Colors */
    --color-bg: #ffffff;
    /* Shifted core body background to white for premium, airy feel */
    --color-bg-theme: #FCDEAA;
    /* Retained original vibrant background for accents/sections */
    --color-bg-alt: #FAFAFA;
    /* Soft off-white for contrasting sections */
    --color-bg-gradient: linear-gradient(135deg, #ffffff 0%, #fff7eb 100%);
    --color-white: #FFFFFF;

    /* Text Colors */
    --color-text-main: #1F2937;
    --dark-brown: #2c1810;
    /* Slightly deeper, softer black for better readability */
    --color-text-muted: #4B5563;
    --color-border: #E5E7EB;

    /* Typography Fluid Sizing (Clamp for perfect scaling) */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    --font-size-base: clamp(1rem, 0.95vw + 0.8rem, 1.125rem);
    --font-size-sm: clamp(0.875rem, 0.8vw + 0.7rem, 1rem);
    --font-size-h1: clamp(2.5rem, 4vw + 1.5rem, 4rem);
    --font-size-h2: clamp(2rem, 3vw + 1.25rem, 3rem);
    --font-size-h3: clamp(1.5rem, 2vw + 1rem, 2.25rem);

    /* Spacing (Fluid) */
    --spacing-xs: clamp(0.5rem, 1vw, 0.75rem);
    --spacing-sm: clamp(1rem, 1.5vw, 1.25rem);
    --spacing-md: clamp(1.5rem, 2.5vw, 2rem);
    --spacing-lg: clamp(2.5rem, 4vw, 3.5rem);
    --spacing-xl: clamp(4rem, 6vw, 6rem);
    --spacing-xxl: clamp(6rem, 8vw, 8rem);

    /* UI Elements */
    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 24px;
    --border-radius-full: 9999px;

    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

    /* Premium Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 10px 25px -3px rgba(0, 0, 0, 0.08), 0 4px 10px -2px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 20px 40px -5px rgba(0, 0, 0, 0.1), 0 10px 20px -5px rgba(0, 0, 0, 0.04);
    --shadow-glow: 0 0 15px rgba(241, 98, 32, 0.2);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    /* Base size for rem calculation */
}

body {
    font-family: var(--font-body);
    font-size: var(--font-size-base);
    color: var(--color-text-main);
    background-color: var(--color-bg);
    background-image: var(--color-bg-gradient);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    /* Prevent horizontal scroll caused by carousel overflow, wide content, or layout shifts */
}

/* Site-wide Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.03);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--color-primary);
    border-radius: 4px;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
    letter-spacing: -0.02em;
    /* Slightly tighter tracking for premium feel */
    color: var(--color-text-main);
}

h1 {
    font-size: var(--font-size-h1);
}

h2 {
    font-size: var(--font-size-h2);
}

h3 {
    font-size: var(--font-size-h3);
}

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

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

button {
    font-family: var(--font-heading);
    cursor: pointer;
    border: none;
    background: none;
    font-weight: 500;
}

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

/* Site-wide safeguard to prevent avatars and icons from squishing into ovals */
[class*="avatar"],
[class*="-icon"],
.icon {
    flex-shrink: 0;
}

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

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

/* Utilities */
.text-center {
    text-align: center;
}

.mt-sm {
    margin-top: var(--spacing-sm);
}

.mt-md {
    margin-top: var(--spacing-md);
}

.mt-lg {
    margin-top: var(--spacing-lg);
}

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

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

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.75rem;
    border-radius: var(--border-radius-full);
    /* Pills for modern look */
    font-family: var(--font-heading);
    font-size: var(--font-size-base);
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-normal);
    cursor: pointer;
    border: 1px transparent solid;
    line-height: 1;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-newsletter {
    background-color: var(--color-accent);
    color: var(--color-white);
    box-shadow: var(--shadow-sm);
    /* margin-top: 10px; */
    height: 40px;
}

.btn-newsletter:hover {
    background-color: var(--color-accent-brown);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md), var(--shadow-glow);
}

.btn-primary {
    background-color: var(--color-accent);
    color: var(--color-white);
    box-shadow: var(--shadow-sm);
    margin-top: 10px;
}

.btn-primary:active {
    transform: scale(0.95);
}

.btn-primary:hover {
    background-color: var(--color-primary-hover);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md), var(--shadow-glow);
}

.btn-primary.btn-glow {
    box-shadow: 0 10px 25px rgba(241, 98, 32, 0.4);
}

.btn-primary.btn-glow:hover {
    box-shadow: 0 15px 40px rgba(241, 98, 32, 0.6);
}

.btn-dark-glass {
    background-color: rgba(31, 41, 55, 0.2);
    color: var(--color-white);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: 10px;
}

.btn-dark-glass:hover {
    background-color: rgba(31, 41, 55, 0.4);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    color: white;
}

.btn-secondary:active {
    transform: scale(0.95);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-text-main);
    border: 2px solid var(--color-border);
}

.btn-outline:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background-color: rgba(241, 98, 32, 0.05);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.btn-outline-white {
    background-color: transparent;
    color: var(--color-white);
    border: 2px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
}

.btn-outline-white:hover {
    background-color: var(--color-white);
    color: var(--color-text-main);
    border-color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Match The Events Calendar buttons to Explore Membership Style */
.tribe-events-button,
.tribe-events .tribe-events-button,
.tribe-common .tribe-common-c-btn-primary,
.tribe-events-tickets-button,
#tribe-events .tribe-events-button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0.875rem 2.25rem !important;
    border-radius: var(--border-radius-full) !important;
    font-family: var(--font-heading) !important;
    font-size: var(--font-size-base) !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: all var(--transition-normal) !important;
    cursor: pointer !important;
    border: none !important;
    background-color: var(--color-accent) !important;
    color: var(--color-white) !important;
    box-shadow: var(--shadow-md) !important;
    text-transform: none !important;
    line-height: 1 !important;
}

.tribe-events-button:hover,
.tribe-events .tribe-events-button:hover,
.tribe-common .tribe-common-c-btn-primary:hover,
.tribe-events-tickets-button:hover,
#tribe-events .tribe-events-button:hover {
    background-color: var(--color-primary-hover) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 25px rgba(241, 98, 32, 0.4) !important;
    color: var(--color-white) !important;
}

/* Global WordPress Block Buttons — match approved footer Join button style */
.wp-block-button__link,
.wp-element-button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 40px !important;
    min-height: 40px !important;
    padding: 14px 28px !important;
    border: 1px solid transparent !important;
    border-radius: var(--border-radius-full) !important;
    background-color: var(--color-accent) !important;
    color: var(--color-white) !important;
    box-shadow: var(--shadow-sm) !important;
    font-family: var(--font-heading) !important;
    font-size: var(--font-size-base) !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    text-align: center !important;
    text-decoration: none !important;
    text-transform: none !important;
    cursor: pointer !important;
    transition: all var(--transition-normal) !important;
}

.wp-block-button__link:hover,
.wp-element-button:hover,
.wp-block-button__link:focus-visible,
.wp-element-button:focus-visible {
    background-color: var(--color-accent-brown) !important;
    color: var(--color-white) !important;
    transform: translateY(-2px) !important;
    box-shadow: var(--shadow-md), var(--shadow-glow) !important;
}

/* Responsive Hide Utilities */
@media (max-width: 1024px) {
    .hide-on-mobile {
        display: none !important;
    }
}

@media (min-width: 1025px) {
    .hide-on-desktop {
        display: none !important;
    }
}

/* Animations & Scroll Reveals */
.reveal {
    opacity: 1;
    transform: translateY(0);
}

body.js-reveal-ready .reveal,
body.js-reveal-ready .reveal.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.reveal-delay-1 {
    transition-delay: 0.1s;
}

.reveal-delay-2 {
    transition-delay: 0.2s;
}

.reveal-delay-3 {
    transition-delay: 0.3s;
}

.fade-in {
    opacity: 0;
    transition: opacity 1s ease-out;
}

.fade-in.visible {
    opacity: 1;
}

.about-section {
    background-color: var(--color-bg);
}

/* 
.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xxl);
    align-items: center;
} */

.about-container {
    display: grid;
    grid-template-columns: 1.5fr auto 2fr;
    /* Added auto for divider */
    gap: var(--spacing-xxl);
    align-items: center;
    /* This helps with the 70% height logic if we use relative height */
    position: relative;
}

.section-divider {
    width: 1px;
    height: 70%;
    background-color: rgba(0, 0, 0, 0.08);
    /* Light line */
    align-self: center;
}

.about-get-involved {
    display: flex;
    flex-direction: column;
}

.about-involve-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 24px;
    align-items: stretch;
    /* Keep heights equal */
}

.involve-card {
    background-color: #EFD2B0;
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-md) var(--spacing-md);
    /* Reduced height by decreasing vertical padding */
    text-align: center;
    box-shadow: var(--shadow-lg);
    /* More prominent shadow as requested */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    color: var(--color-text-main);
    /* Ensure text is visible */
    height: auto;
    min-height: 380px;
    /* Base height to keep them equal and balanced */
}

.involve-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    background-color: rgba(241, 98, 32, 0.05);
    /* Peach tint */
    border-color: rgba(241, 98, 32, 0.2);
}

.involve-card.highlight-card {
    background-color: var(--color-white);
}

.involve-icon-wrapper {
    margin-bottom: var(--spacing-md);
    font-size: 2.5rem;
}

.involve-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
    color: var(--color-text-main);
}

.involve-desc {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--color-text-muted);
}

/* Card Button behavior */
.involve-card .btn-outline {
    background-color: var(--color-white);
    border-color: rgba(0, 0, 0, 0.1);
    color: var(--color-text-main);
}

.involve-card:hover .btn-outline {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    box-shadow: var(--shadow-sm);
    color: var(--color-white);
}

.benefits-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    margin-bottom: 25px;
}

.benefits-list li {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
}

.benefit-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.bg-orange-light {
    background-color: rgba(240, 90, 40, 0.1);
}

.text-orange {
    color: var(--color-primary);
}

.bg-green-light {
    background-color: rgba(15, 133, 68, 0.1);
}

.text-green {
    color: var(--color-secondary);
}

.benefit-text h4 {
    font-size: 1.1rem;
    margin-bottom: 2px;
    color: var(--color-text-main);
}

.benefit-text p {
    font-size: 0.95rem;
    color: var(--color-text-muted);
}

/* Right Card */
.about-image-card {
    position: relative;
    background-color: #1e5c46;
    /* Matching the dark green in design */
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-xl);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
}

.image-wrapper {
    position: relative;
    width: 100%;
    border-radius: var(--border-radius-md);
    overflow: hidden;
}

.about-img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.testimonial-float {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: var(--spacing-md);
}

.quote {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: var(--spacing-xs);
    line-height: 1.4;
}

.author {
    font-size: 0.9rem;
    opacity: 0.9;
}

@media (max-width: 992px) {
    .about-container {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }

    .about-content .btn-primary {
        display: block;
        margin: 0 auto;
        width: fit-content;
    }

    .section-divider {
        display: none;
    }
}

@media (max-width: 576px) {
    .about-image-card {
        padding: var(--spacing-sm);
    }

    .about-img {
        height: 300px;
    }

    .about-involve-cards {
        grid-template-columns: 1fr;
    }
}

.events-news-section {
    background: #FFF6F6;
    /* background: linear-gradient(to bottom, var(--color-bg) 0%, var(--color-bg-alt) 100%); */
    padding: var(--spacing-xxl) 0;
    /* border-top: 1px solid rgba(0, 0, 0, 0.03); */
    /* Subtle elegant separator */
    position: relative;
    z-index: 5;
}

.events-news-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xxl);
    /* Increased gap for breathing room */
}

/* Column Styling - Ensure equal height */
.events-column,
.news-column {
    display: flex;
    flex-direction: column;
    height: 480px;
    /* Increased slightly to allow more visibility */
    overflow: hidden;
}

/* Clickable Column Headers */
.column-header {
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
    border-bottom: 2px solid var(--color-primary);
    flex-shrink: 0;
}

.column-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--color-text-main);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin: 0;
    text-decoration: none;
    transition: color 0.2s ease;
}

.events-column .column-title {
    color: var(--color-primary);
}

.events-column .column-title:hover {
    color: #C2542F;
}

.news-link {
    color: var(--color-text-main);
}

.news-link:hover {
    color: var(--color-primary);
}

.news-column .column-title span {
    font-size: 1.2rem;
}

/* Carousel Content Wrapper */
.carousel-content {
    flex: 1;
    overflow: hidden;
    position: relative;
    padding-right: 4px;
    /* Give some breathing room for scrollbar */
}

/* Sharp Slit Shadow Effect - Top and Bottom */
.carousel-content::before,
.carousel-content::after {
    content: '';
    position: absolute;
    left: 5%;
    right: 5%;
    height: 1px;
    background: rgba(0, 0, 0, 0.2);
    z-index: 20;
    pointer-events: none;
    box-shadow: 0 0 15px 2px rgba(0, 0, 0, 0.4);
    border-radius: 50%;
    /* Tapered look */
}

.carousel-content::before {
    top: -2px;
}

.carousel-content::after {
    bottom: -2px;
}

/* NATIVE SCROLLING CONTAINER */
.native-scrolling-container {
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 20px 12px 20px 0;
    scroll-behavior: smooth;
    /* Remove previous inset shadow to focus on the sharp slit effect */
    border-radius: var(--border-radius-lg);
}

/* Custom Styled Scrollbar */
.native-scrolling-container::-webkit-scrollbar {
    width: 6px;
    display: block;
}

.native-scrolling-container::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.03);
    border-radius: 10px;
}

.native-scrolling-container::-webkit-scrollbar-thumb {
    background: var(--color-primary);
    border-radius: 10px;
    transition: background 0.3s ease;
}

.native-scrolling-container::-webkit-scrollbar-thumb:hover {
    background: #C2542F;
}


/* Scrolling Content */
.native-scrolling-content {
    display: flex;
    flex-direction: column;
}

/* EVENT CARD STYLES */
.event-card {
    display: flex;
    flex-direction: row;
    gap: 16px;
    padding: 18px;
    padding-bottom: 20px;
    background: linear-gradient(135deg, #ffffff 0%, #fffcf9 100%);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--color-border);
    margin-bottom: 16px;
    box-sizing: border-box;
    min-height: 100px;
    transition: all var(--transition-normal);
    cursor: pointer;
    text-decoration: none;
    position: relative;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
}

/* Hover State - Expanded Card */
.event-card:hover {
    background: var(--color-white);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: rgba(241, 98, 32, 0.3);
}

/* Image Container */
.event-image {
    flex: 0 0 200px;
    width: 200px;
    height: 100px;
    background-size: cover;
    background-position: center;
    border-radius: var(--border-radius-sm);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin: 0;
    flex-shrink: 0;
}

/* Hover Image Size */
.event-card:hover .event-image {
    width: 200px;
    height: 200px;
    flex: 0 0 200px;
}

/* Content Wrapper */
.event-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
    padding: 2px 0;
}

/* First Row: Date & Read More */
.event-row-1 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* Second Row: Title, Meta, Desc */
.event-row-2 {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

/* Date Badge */
.event-date-badge {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    background: var(--color-primary);
    color: var(--color-white);
    border-radius: 4px;
    padding: 4px 8px;
    flex-shrink: 0;
}

.event-month {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.event-day {
    font-size: 1rem;
    font-weight: 800;
}

/* Event Title */
.event-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--color-text-main);
    margin: 0;
    line-height: 1.3;
}

/* Meta Information (Time/Location) */
.event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 2px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

/* Event Description */
.event-description {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin: 4px 0 0 0;
    line-height: 1.4;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.4s ease;
}

/* Expanded State on Hover */
.event-card:hover .event-description {
    max-height: 60px;
    opacity: 1;
}

/* Read More Link */
.event-read-more {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-primary);
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s ease;
}

.event-card:hover .event-read-more {
    opacity: 1;
    transform: translateX(0);
}

.event-read-more:hover {
    color: #C2542F;
}

/* Buy Tickets Button - Middle Aligned - Show on Hover Only */
.btn-buy-tickets {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 22px;
    background-color: var(--color-secondary);
    color: var(--color-white);
    border-radius: var(--border-radius-sm);
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 12px;
    align-self: center;
    /* Middle aligned within vertical flex column */
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.4s cubic-bezier(0.2, 1, 0.3, 1);
    box-shadow: 0 4px 10px rgba(20, 144, 72, 0.2);
    text-decoration: none;
    z-index: 10;
}

.event-card:hover .btn-buy-tickets {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.btn-buy-tickets:hover {
    background-color: var(--color-secondary-hover);
    box-shadow: 0 6px 15px rgba(20, 144, 72, 0.4);
    transform: translateY(-2px);
    color: white;
}

.btn-buy-tickets:active {
    transform: scale(0.95);
}

/* NEWS CARD STYLES */
.news-card {
    display: block;
    padding: var(--spacing-md) var(--spacing-lg);
    /* More generous padding */
    background: var(--color-white);
    border-radius: var(--border-radius-lg);
    border-left: 4px solid var(--color-secondary);
    /* Thicker for more emphasis */
    border: 1px solid var(--color-border);
    border-left: 4px solid var(--color-secondary);
    margin-bottom: 16px;
    box-sizing: border-box;
    text-decoration: none;
    transition: all var(--transition-normal);
    cursor: pointer;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
}

/* News Card Hover */
.news-card:hover {
    background: var(--color-white);
    box-shadow: var(--shadow-md);
    transform: translateX(4px);
    /* Interactive slide effect */
    border-color: rgba(20, 144, 72, 0.3);
    /* Subtle secondary border on hover */
    border-left-color: var(--color-secondary);
}

/* Category Badge */
.news-category {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-secondary);
    background: rgba(5, 150, 105, 0.1);
    padding: 3px 10px;
    border-radius: 4px;
    margin-bottom: 8px;
}

/* News Title */
.news-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text-main);
    margin: 0 0 6px 0;
    line-height: 1.35;
}

/* News Excerpt */
.news-excerpt {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin: 0 0 var(--spacing-sm) 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* News Footer */
.news-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* News Date */
.news-date {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

/* Read More Link */
.read-more {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
}

.read-more:hover {
    color: var(--color-primary-hover);
}

/* RESPONSIVE DESIGN */
@media (max-width: 1200px) {
    .events-news-grid {
        gap: var(--spacing-lg);
    }
}

@media (max-width: 1024px) {
    .events-news-grid {
        grid-template-columns: 1fr;
        /* Stack columns earlier for iPad/Tablet effectiveness */
        gap: var(--spacing-xl);
    }

    .event-meta {
        flex-direction: column;
        /* Avoid crowded wrapping on tablets */
        align-items: flex-start;
        gap: 6px;
    }

    .events-column,
    .news-column {
        height: auto;
        min-height: 450px;
    }
}

@media (max-width: 768px) {
    .column-header {
        text-align: center;
    }

    .column-title {
        justify-content: center;
    }

    .event-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 24px 20px;
        background: linear-gradient(135deg, #ffffff 0%, #fffbf8 100%);
    }

    .event-image {
        width: 100%;
        max-width: 250px;
        height: 140px;
        margin: 0 auto 15px auto;
        border-radius: var(--border-radius-md);
    }

    /* Keep image focused on mobile hover */
    .event-card:hover .event-image {
        width: 100%;
        max-width: 280px;
        height: 160px;
    }

    .event-content {
        align-items: center;
    }

    .event-row-1 {
        justify-content: center;
        margin-bottom: 8px;
    }

    .event-read-more {
        display: none;
        /* Already covered by Buy Tickets button */
    }

    .event-description {
        max-height: 80px;
        opacity: 1;
        margin-bottom: 12px;
        font-size: 0.8rem;
    }

    .event-meta {
        align-items: center;
        margin-bottom: 5px;
    }

    .btn-buy-tickets {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        margin-top: 12px;
        padding: 8px 20px;
        font-size: 0.65rem;
        width: 100%;
        max-width: 200px;
        border-radius: var(--border-radius-sm);
        background-color: var(--color-secondary);
    }

    .news-card {
        text-align: center;
        padding: 20px;
    }

    .news-footer {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
}

.footer {
    /* background-color: var(--color-accent-brown); */
    background-color: rgba(44, 24, 16, 1.0);
    color: var(--color-white);
    padding-top: var(--spacing-lg);
    border-top: 3px solid #F89E2C;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr 1.5fr;
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-lg);
}

.footer-logo {
    color: var(--color-white);
}

.footer-logo-img {
    height: 50px;
    border-radius: var(--border-radius-sm);
}

.footer-desc {
    color: #a0a0a0;
    font-size: 0.75rem;
    vertical-align: middle;
}

.footer-heading {
    color: var(--color-white);
    font-size: 1.0rem;
    margin-bottom: var(--spacing-md);
}

.social-links {
    display: flex;
    gap: var(--spacing-sm);
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--color-white);
    font-weight: bold;
    transition: all var(--transition-fast);
}

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

.footer-contact {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.footer-links {
    list-style: none;
    /* display: flex; */
    flex-direction: column;
    gap: var(--spacing-sm);
}

.footer-links a,
.footer-contact a {
    color: #a0a0a0;
    transition: color var(--transition-fast);
    font-size: 0.75rem;
}

.footer-links a:hover,
.footer-contact a:hover {
    color: var(--color-primary);
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-xs);
    color: #a0a0a0;
}

.newsletter-form {
    display: flex;
    gap: 8px;
}

.newsletter-message {
    margin-top: 0.75rem;
    margin-bottom: 0.75rem;
    padding: 0.65rem 0.8rem;
    border-radius: var(--border-radius-sm);
    background: rgba(255, 255, 255, 0.12);
    color: var(--color-white);
    font-size: 0.9rem;
    line-height: 1.4;
}

.newsletter-message-success,
.newsletter-message-already_subscribed {
    border-left: 3px solid var(--color-secondary);
}

.newsletter-message-invalid_email,
.newsletter-message-error,
.newsletter-message-invalid {
    border-left: 3px solid var(--color-primary);
}

.newsletter-form input {
    display: flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.15);
    /* border-radius: 25px; */
    padding: 2px 10px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all var(--transition-fast);
    height: 40px;
}

/* .newsletter-form input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius-sm);
    color: var(--color-white);
    font-family: var(--font-body);
} */

.newsletter-form input:focus {
    outline: none;
    border-color: var(--color-primary);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: var(--spacing-sm) 0;
    text-align: center;

}

.footer-bottom p {
    color: #888;
    font-size: 0.75rem;
}

.footer-bottom-links {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    margin-top: var(--spacing-xs);
}

.footer-bottom-links a {
    color: #888;
    font-size: 0.75rem;
}

.footer-bottom-links a:hover {
    color: var(--color-primary);
}

.volunteer-note {
    font-size: 0.8rem;
    font-style: italic;
    opacity: 0.7;
}

@media (max-width: 992px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 576px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
}

.bg-light {
    background-color: #f7eedd;
    /* Peach/Light Orange background from design */
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.w-100 {
    width: 100%;
    text-align: center;
}

.mt-auto {
    margin-top: auto;
}

/* Cleaned up legacy styles to prevent conflicts with the new consolidated About/Involved section */

@media (max-width: 992px) {
    .get-involved-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .get-involved-grid {
        grid-template-columns: 1fr;
    }
}

/* REMOVED DUPLICATE HEADER STYLES */
/* Hero Section New Structure */
.hero {
    position: relative;
    height: clamp(620px, 68vh, 740px);
    min-height: 620px;
    display: flex;
    align-items: center;
    overflow: visible;
}

.hero-carousel-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.hero-carousel-track {
    display: flex;
    height: 100%;
    width: 100%;
}

.hero-slide {
    flex-shrink: 0;
    width: 100%;
    height: 100%;
    position: relative;
}

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.2) 50%, rgba(0, 0, 0, 0) 100%);
    z-index: 1;
}

.hero-content-container {
    position: absolute;
    top: var(--spacing-lg);
    left: 0;
    right: 0;
    z-index: 2;
    display: flex;
    align-items: flex-start;
}

.hero-glass-card {
    max-width: 900px;
    background: rgba(31, 41, 55, 0.05);
    /* 10% transparency */
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-lg);
    padding: 1.0rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    color: var(--color-white);
    animation: heroReveal 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes heroReveal {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

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

.hero-badge {
    display: inline-block;
    background-color: var(--color-secondary);
    /* Green as in screenshot */
    color: white;
    padding: 6px 16px;
    border-radius: var(--border-radius-sm);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    margin-bottom: 2rem;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.01em;
}

.hero-title-mr {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 700;
    margin-bottom: 2rem;
    opacity: 0.95;
    line-height: 1.2;
}

.hero-desc {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    opacity: 0.85;
    color: var(--color-white);
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

/* Navigators */
.hero-carousel-prev,
.hero-carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 50%;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.hero-carousel-prev {
    left: 1rem;
}

.hero-carousel-next {
    right: 1rem;
}

@media (max-width: 768px) {
    .hero-content-container {
        padding: 0 1rem;
        top: 1.5rem;
    }

    .hero-glass-card {
        padding: 1.35rem;
        border-radius: 20px;
    }

    .hero-badge {
        margin-bottom: 1rem;
    }

    .hero-title {
        margin-bottom: 0.85rem;
    }

    .hero-title-mr,
    .hero-desc {
        margin-bottom: 1rem;
    }

    .hero-btns {
        gap: 0.75rem;
    }

    .hero-btns .btn {
        padding: 0.75rem 1.2rem;
        min-height: 44px;
    }

    .hero-carousel-prev,
    .hero-carousel-next {
        display: none;
    }
}


.badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--color-secondary) 0%, #1eaf5b 100%);
    color: var(--color-white);
    padding: 5px 14px;
    border-radius: var(--border-radius-full);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: var(--spacing-sm);
    box-shadow: var(--shadow-sm);
}

.hero-title {
    font-size: var(--font-size-h3);
    line-height: 1.1;
    margin-bottom: var(--spacing-md);
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    color: var(--color-white);
}

.hero-title-mr {
    font-size: var(--font-size-h3);
    line-height: 1.0;
    margin-bottom: var(--spacing-xs);
    font-weight: 500;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    color: var(--color-white);
}

.text-highlight {
    color: var(--color-accent);
    /* Changed to accent for better contrast on dark images */
}

.hero-subtitle {
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: var(--spacing-md);
    opacity: 0.9;
    color: var(--color-white);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    /* Helps buttons wrap cleanly on small screens */
    gap: var(--spacing-sm);
}

@media (max-width: 768px) {

    /* Shrink bottom padding so flex centering has room to work */
    .hero {
        min-height: 75vh;
        /* Not too tall */
        padding-bottom: 60px;
        align-items: center;
    }

    .hero-container {
        display: flex;
        align-items: center;
        justify-content: center;
        /* Center box on mobile */
        width: 100%;
    }

    .hero-content {
        max-width: 95%;
        padding: var(--spacing-md) var(--spacing-sm);
        /* Less internal padding on small phones */
        transform: translateY(0);
        /* Remove desktop lift */
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .hero-actions .btn {
        width: 100%;
        text-align: center;
    }

    .carousel-btn {
        width: 30px;
        height: 30px;
        font-size: 18px;
    }

    .prev-btn {
        left: 5px;
    }

    .next-btn {
        right: 5px;
    }
}

.initiatives-section {
    /* background: #FFF6F6; */
    background: linear-gradient(to bottom, var(--color-bg) 0%, var(--color-bg-alt) 100%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
    padding-top: 1px solid rgba(0, 0, 0, 0.03);
}

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.section-subtitle {
    color: var(--color-primary);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: block;
    margin-bottom: var(--spacing-xs);
}

.section-title {
    font-size: 2.5rem;
    color: var(--color-text-main);
    margin-bottom: var(--spacing-lg);
}

.section-desc {
    color: var(--color-text-muted);
    font-size: 1.1rem;
    max-width: 1020px;
}

.text-link {
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: none;
    font-family: var(--font-heading);
    transition: color var(--transition-fast);
}

.text-link:hover {
    color: var(--color-primary-hover);
    text-decoration: underline;
}

/* Base Card */
.initiative-card {
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
    min-height: 250px;
    cursor: pointer;
    border: 1px solid rgba(0, 0, 0, 0.05);
    /* Very subtle border to define edge */
}

.initiative-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: var(--shadow-xl);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-xs);
    background-color: rgba(255, 255, 255, 0.2);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.card-content {
    flex: 1;
}

.card-title {
    font-size: 1.5rem;
    margin-bottom: 0.1rem;
}

.card-title-mr {
    font-size: 0.95rem;
    opacity: 0.75;
    margin-bottom: var(--spacing-xs);
    font-style: italic;
    letter-spacing: 0.3px;
}

.card-desc {
    font-size: 1.05rem;
    opacity: 0.9;
}

/* Card Styles */
.card-orange {
    background-color: rgba(241, 98, 32, 0.05);
    color: var(--color-text-main);
}

.card-orange .card-icon {
    background-color: rgba(241, 98, 32, 0.1);
}

.card-green {
    background-color: rgba(20, 144, 72, 0.05);
    color: var(--color-text-main);
}

.card-green .card-icon {
    background-color: rgba(20, 144, 72, 0.1);
}

.card-white {
    background-color: var(--color-white);
    color: var(--color-text-main);
}

.card-white .card-icon {
    background-color: rgba(240, 90, 40, 0.1);
    color: var(--color-primary);
}

.card-brown {
    background-color: rgba(194, 84, 47, 0.05);
    color: var(--color-text-main);
}

.card-brown .card-icon {
    background-color: rgba(194, 84, 47, 0.1);
}

.btn-green-solid {
    background-color: rgba(20, 144, 72, 0.1);
    color: var(--color-secondary) !important;
    text-decoration: none !important;
    padding: 0.5rem 1.25rem;
    border-radius: var(--border-radius-md);
    border: 2px solid transparent;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    transition: all var(--transition-fast);
    display: inline-block;
}

.btn-green-solid:hover {
    background-color: rgba(255, 255, 255, 0.45);
    border-color: var(--color-white);
    transform: translateY(-2px);
}

/* Unified CTA button used across all initiative card types */
.card-cta-btn {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    border-radius: var(--border-radius-md);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    text-decoration: none !important;
    border: 2px solid var(--color-primary);
    background-color: transparent;
    color: var(--color-primary) !important;
    transition: all var(--transition-fast);
}

.card-cta-btn:hover {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-white) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(241, 98, 32, 0.2);
}

/* For white cards, can leave the same */
.card-white .card-cta-btn {
    background-color: transparent;
    border-color: var(--color-primary);
    color: var(--color-primary) !important;
}

.card-white .card-cta-btn:hover {
    background-color: var(--color-primary-hover);
    border-color: var(--color-primary-hover);
    color: var(--color-white) !important;
}

/* Dynamic Grid - 3 Columns with Auto Flow */
.initiatives-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
}

/* Dynamic Alternate Coloring - 7-Color Cycle (Prime number 7 vs 3-column grid) */
/* This mathematically ensures NO vertical or horizontal repeats for at least 7 rows */

.initiatives-grid .initiative-card:nth-child(7n+1) {
    background-color: rgba(241, 98, 32, 0.05) !important;
}

.initiatives-grid .initiative-card:nth-child(7n+1) .card-icon {
    background-color: rgba(241, 98, 32, 0.1) !important;
    color: var(--color-primary) !important;
}

.initiatives-grid .initiative-card:nth-child(7n+2) {
    background-color: rgba(20, 144, 72, 0.05) !important;
}

.initiatives-grid .initiative-card:nth-child(7n+2) .card-icon {
    background-color: rgba(20, 144, 72, 0.1) !important;
    color: var(--color-secondary) !important;
}

.initiatives-grid .initiative-card:nth-child(7n+3) {
    background-color: rgba(248, 158, 44, 0.05) !important;
}

.initiatives-grid .initiative-card:nth-child(7n+3) .card-icon {
    background-color: rgba(248, 158, 44, 0.1) !important;
    color: var(--color-accent) !important;
}

.initiatives-grid .initiative-card:nth-child(7n+4) {
    background-color: rgba(13, 148, 136, 0.05) !important;
}

.initiatives-grid .initiative-card:nth-child(7n+4) .card-icon {
    background-color: rgba(13, 148, 136, 0.1) !important;
    color: #0d9488 !important;
}

.initiatives-grid .initiative-card:nth-child(7n+5) {
    background-color: rgba(194, 84, 47, 0.05) !important;
}

.initiatives-grid .initiative-card:nth-child(7n+5) .card-icon {
    background-color: rgba(194, 84, 47, 0.1) !important;
    color: var(--color-accent-brown) !important;
}

.initiatives-grid .initiative-card:nth-child(7n+6) {
    background-color: rgba(225, 29, 72, 0.05) !important;
}

.initiatives-grid .initiative-card:nth-child(7n+6) .card-icon {
    background-color: rgba(225, 29, 72, 0.1) !important;
    color: #e11d48 !important;
}

.initiatives-grid .initiative-card:nth-child(7n+7) {
    background-color: rgba(79, 70, 229, 0.05) !important;
}

.initiatives-grid .initiative-card:nth-child(7n+7) .card-icon {
    background-color: rgba(79, 70, 229, 0.1) !important;
    color: #4f46e5 !important;
}

@media (max-width: 992px) {
    .initiatives-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .initiative-card:nth-child(1) {
        grid-column: 1 / 2;
        grid-row: 1;
    }

    .initiative-card:nth-child(2) {
        grid-column: 2 / 3;
        grid-row: 1;
    }

    .initiative-card:nth-child(3) {
        grid-column: 1 / 2;
        grid-row: 2;
    }

    .initiative-card:nth-child(4) {
        grid-column: 2 / 3;
        grid-row: 2;
    }

    .initiative-card:nth-child(5) {
        grid-column: 1 / 3;
        grid-row: 3;
    }

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

@media (max-width: 768px) {
    .initiatives-grid {
        grid-template-columns: 1fr;
    }

    .initiative-card:nth-child(n) {
        grid-column: 1;
        grid-row: auto;
    }

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

.sponsors-section {
    background-color: var(--color-white);
    border-top: 1px solid var(--color-border);
    padding: var(--spacing-md) 0;
}

.sponsors-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.sponsors-title {
    color: var(--color-primary);
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 700;
    margin: 0;
}

.sponsors-controls {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.pause-btn {
    background: transparent;
    border: 1px solid var(--color-border);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.pause-btn:hover {
    color: var(--color-primary);
    border-color: var(--color-primary);
    background-color: var(--color-bg-alt);
}

.sponsors-dots {
    display: flex;
    gap: 6px;
}

.sponsors-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--color-border);
    cursor: pointer;
    transition: background-color var(--transition-fast);
}

.sponsors-dots .dot.active {
    background-color: var(--color-secondary);
}

.sponsors-carousel {
    overflow: hidden;
    width: 100%;
    position: relative;
    padding: 10px 0;
}

.marquee-track {
    display: flex;
    white-space: nowrap;
    width: max-content;
}

.sponsors-track {
    display: flex;
    transition: none;
    /* JS handles this */
}

.sponsor-card-wrapper {
    padding: 10px 15px;
    box-sizing: border-box;
}

.sponsor-card {
    border: 2px solid var(--color-border);
    border-radius: var(--border-radius-lg);
    padding: 18px 16px;
    text-align: center;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
    background: var(--color-white);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.sponsor-card-wrapper:hover .sponsor-card {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

/* Sponsor Tiers Logic */
.tier-title {
    border: 2px solid var(--color-primary);
    box-shadow: 0 4px 15px rgba(241, 98, 32, 0.1);
}

.tier-title:hover {
    box-shadow: 0 8px 25px rgba(241, 98, 32, 0.2);
    /* Transform is now applied from the wrapper hover rule, but we can boost it for title sponsor */
}

.sponsor-card-wrapper:hover .tier-title {
    transform: translateY(-6px);
}

.tier-platinum {
    border: 2px solid var(--color-secondary);
}

.tier-platinum:hover {
    border-color: var(--color-secondary-hover);
}

.tier-annual {
    border: 2px solid var(--color-border);
}

.dark-card {
    background-color: #1a202c;
    /* Dark blue/gray */
    color: var(--color-white);
    border-color: transparent !important;
}

.dark-card .sponsor-name,
.dark-card .sponsor-type,
.dark-card .sponsor-desc,
.dark-card .sponsor-link {
    color: var(--color-white);
}

.dark-card .sponsor-type {
    color: #a0aec0;
}

.sponsor-type {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--color-secondary);
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-bottom: 6px;
}

.sponsor-name {
    font-size: 1.05rem;
    line-height: 1.25;
    color: var(--color-text-main);
    margin-bottom: 4px;
}

.sponsor-desc {
    font-size: 0.82rem;
    line-height: 1.35;
    color: var(--color-text-muted);
    margin-bottom: 10px;
}

.sponsor-biz-card {
    width: 100% !important;
    height: auto !important;
    min-height: 110px !important;
    max-height: none !important;
    overflow: hidden !important;
    border-radius: var(--border-radius-sm);
    border: 1px solid rgba(0, 0, 0, 0.05);
    background: #f8f9fa;
    display: block !important;
    position: relative;
    cursor: zoom-in;
    margin-top: auto;
    margin-bottom: 10px;
}

.sponsor-biz-card::after {
    content: '\1F50D';
    position: absolute;
    bottom: 6px;
    right: 6px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-fast);
    pointer-events: none;
}

.sponsor-card-wrapper:hover .sponsor-biz-card::after {
    opacity: 1;
}

/* Make the image stretch 100% across the container */
.sponsor-biz-card img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: none !important;
    object-fit: cover !important;
    display: block !important;
    margin: 0 auto !important;
}

.sponsor-link {
    font-size: 0.78rem;
    line-height: 1.3;
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.sponsor-link + .sponsor-link {
    margin-top: 2px;
}

.dark-card .sponsor-link {
    color: #cbd5e0;
}

.sponsor-lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(17, 12, 8, 0.88);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: var(--spacing-md);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-fast);
}

.sponsor-lightbox-overlay.is-active {
    opacity: 1;
    visibility: visible;
}

.sponsor-lightbox-panel {
    position: relative;
    max-width: min(90vw, 640px);
    max-height: 88vh;
    background: var(--color-white);
    border-radius: var(--border-radius-sm);
    padding: 10px;
    box-shadow: var(--shadow-md);
    display: flex;
}

.sponsor-lightbox-img {
    max-width: 100%;
    max-height: calc(88vh - 20px);
    width: auto;
    height: auto;
    display: block;
    border-radius: 4px;
}

.sponsor-lightbox-close {
    position: absolute;
    top: -16px;
    right: -16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: var(--color-primary);
    color: var(--color-white);
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    transition: background var(--transition-fast);
}

.sponsor-lightbox-close:hover,
.sponsor-lightbox-close:focus-visible {
    background: var(--dark-brown);
}

body.sponsor-lightbox-open {
    overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
    .sponsor-lightbox-overlay {
        transition: none;
    }
}

@media (max-width: 992px) {
    .sponsors-carousel {
        margin: 0 -10px;
    }

    .sponsor-card-wrapper {
        padding: 0 10px;
    }
}

@media (max-width: 576px) {
    .sponsors-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-sm);
    }

    .sponsors-carousel {
        margin: 0;
    }

    .sponsor-card-wrapper {
        padding: 0;
    }
}

.stats-section {
    position: relative;
    margin-top: -75px;
    /* Overlap hero */
    z-index: 20;
    background: transparent;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-bottom: 50px;
    gap: 30px;
}

.stat-card {
    background-color: var(--color-white);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-xs) var(--spacing-md);
    text-align: center;
    box-shadow: var(--shadow-md);
    border-bottom: 5px solid var(--theme-color, var(--color-primary));
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background-color: var(--theme-color);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.stat-card>* {
    position: relative;
    z-index: 1;
}

.stat-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.1), 0 10px 20px -5px rgba(0, 0, 0, 0.05);
}

.stat-card:hover::before {
    opacity: 0.08;
}



.stat-icon {
    width: 65px;
    height: 65px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0;
}

.icon-orange {
    background: rgba(241, 98, 32, 0.1);
    color: #f16220;
}

.icon-green {
    background: rgba(20, 144, 72, 0.1);
    color: #149048;
}

.icon-gold {
    background: rgba(248, 158, 44, 0.1);
    color: #f89e2c;
}

.icon-brown {
    background: rgba(194, 84, 47, 0.1);
    color: #c2542f;
}

.stat-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    /* Slightly reduced for better fit in compact card */
    font-weight: 800;
    color: #1a202c;
    line-height: 1;
}

.stat-number::after {
    content: "";
}

.stat-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: #718096;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}


@media (max-width: 992px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-section {
        margin-top: -60px;
    }
}

@media (max-width: 576px) {
    .stats-grid {
        /* grid-template-columns: 1fr; */
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-section {
        margin-top: -40px;
    }

    .stat-card {
        padding: 2rem var(--spacing-md);
    }
}

.testimonials-section {
    padding-top: 75px;
    /* Attach directly to the previous bg-light section if needed, or keep spacing */
    padding-bottom: 100px;
}

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

.testimonial-card {
    background-color: var(--color-white);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-sm);
    position: relative;
    display: flex;
    flex-direction: column;
}

.quote-icon {
    font-family: var(--font-heading);
    font-size: 4rem;
    color: rgba(240, 90, 40, 0.2);
    /* Light primary color */
    position: absolute;
    top: 10px;
    left: 20px;
    line-height: 1;
}

.testimonial-text {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--color-text-main);
    margin-bottom: var(--spacing-xl);
    position: relative;
    z-index: 2;
    flex: 1;
}

.testimonial-author-area {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    border-top: 1px solid var(--color-border);
    padding-top: var(--spacing-md);
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #eee;
    flex-shrink: 0;
    aspect-ratio: 1 / 1;
}

.avatar-orange {
    background-color: #fca75a;
}

.avatar-gray {
    background-color: #e0e0e0;
}

.avatar-green {
    background-color: #1e5c46;
}

.author-name {
    font-size: 1.05rem;
    margin-bottom: 2px;
}

.author-role {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

@media (max-width: 992px) {
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}

.header {
    background-color: rgba(44, 24, 16, 1.0);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 2000;
    /* Extremely high to stay above the menu panel */
    padding: var(--spacing-sm) 0;
    color: var(--color-white);
    border-bottom: 3px solid #F89E2C;
}

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

.header-right-area {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.header-top-row {
    display: flex;
    align-items: center;
}

.header-bottom-row {
    display: flex;
    align-items: center;
}

.header-search-social-container {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
}

.header-social-links {
    display: flex;
    gap: 12px;
}

.header-social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--color-white);
    transition: all var(--transition-fast);
    font-size: 0.65rem;
}

.header-cart-link-wrapper.is-empty,
.mobile-cart-link-wrapper.is-empty {
    display: none;
}

.header-cart-link-wrapper {
    display: inline-flex;
    align-items: center;
}

.header-cart-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 28px;
    padding: 6px 14px 6px 12px;
    border-radius: 999px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--color-white);
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
    transition: all var(--transition-fast);
}

.header-cart-link i,
.header-cart-label {
    color: var(--color-white);
    transition: color var(--transition-fast);
}

.header-cart-count {
    position: absolute;
    top: -7px;
    right: -7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--color-primary);
    color: var(--color-white);
    border: 2px solid var(--color-secondary-dark, #2c1810);
    font-size: 0.62rem;
    font-weight: 800;
    line-height: 1;
}

.header-social-links a:hover,
.header-cart-link:hover,
.header-cart-link:focus-visible {
    background-color: var(--color-primary);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(241, 98, 32, 0.4);
}

.header-cart-link:hover i,
.header-cart-link:hover .header-cart-label,
.header-cart-link:focus-visible i,
.header-cart-link:focus-visible .header-cart-label {
    color: var(--color-white);
}


.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    text-decoration: none;
    grid-column: 1;
    grid-row: 1 / 3;
}

.logo-card {
    background-color: transparent;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 65px;
    height: 65px;
    flex-shrink: 0;
    overflow: hidden;
}

.site-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 10px;
}

.logo-text-gap {
    height: 1.5rem;
    /* Creates a clear blank line gap */
}

.logo-text-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0px;
    line-height: 1.1;
    margin-left: 2px;
}

.logo-text-en {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--color-white);
    letter-spacing: -0.01em;
}

.logo-text-mr {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 1.15rem;
    color: var(--color-white);
    opacity: 1;
}



/* Desktop Nav */
.desktop-nav .nav-links {
    display: flex;
    gap: var(--spacing-lg);
    list-style: none;
}

.desktop-nav .nav-links>li>a {
    color: var(--color-white);
    font-weight: 600;
    text-transform: uppercase;
    transition: color var(--transition-fast), transform var(--transition-fast);
    font-size: 0.8rem;
    letter-spacing: 2px;
    padding: var(--spacing-xs) 0;
    position: relative;
    display: inline-block;
}

.desktop-nav .nav-links>li>a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--color-primary);
    transition: width var(--transition-normal);
}

.desktop-nav .nav-links>li>a:hover::after {
    width: 100%;
}

.desktop-nav .nav-links>li>a:hover {
    color: var(--color-primary);
    transform: translateY(-1px);
}

/* Dropdown specific */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 110%;
    left: 0;
    background-color: var(--color-white);
    min-width: 250px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-md);
    padding: var(--spacing-sm) 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition-normal);
    z-index: 110;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li a {
    display: block;
    padding: var(--spacing-xs) var(--spacing-md);
    color: #2c1810;
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 600;
    transition: background-color var(--transition-fast), color var(--transition-fast), padding-left var(--transition-fast);
}

.dropdown-menu li a:hover {
    color: var(--color-primary);
    background-color: rgba(44, 24, 16, 0.05);
    padding-left: calc(var(--spacing-md) + 4px);
}

/* Header Actions (Search) */
.header-actions {
    display: flex;
    align-items: center;
}

.header-search {
    display: flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 0 var(--spacing-sm);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: box-shadow var(--transition-fast);
}

.header-search:focus-within {
    box-shadow: 0 0 0 2px rgba(240, 90, 40, 0.4);
    border-color: var(--color-primary);
}

.header-search input {
    border: none;
    background: transparent;
    padding: 8px 4px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--color-white);
    width: 120px;
    /* Reduced by 20% (from 150px) */
    transition: width var(--transition-normal);
}

.header-search input:focus {
    outline: none;
    width: 160px;
    /* Reduced by 20% (from 200px) */
}

.header-search button {
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.2);
    padding: 4px;
}

.header-search button:hover {
    color: var(--color-primary);
}

/* Mobile Toggle â€” hidden by default on desktop */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 32px;
    /* Slightly larger */
    height: 28px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 2000 !important;
    /* Extremely high to stay on top of the panel header */
}

.mobile-menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: var(--color-white);
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    transform-origin: center;
    /* Center origin for better rotation */
}

.mobile-menu-toggle .bar.open:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle .bar.open:nth-child(2) {
    opacity: 0;
    transform: translateX(10px);
}

.mobile-menu-toggle .bar.open:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Nav Panel â€” hidden on desktop */
.mobile-nav-panel {
    display: none;
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 320px;
    height: 100vh;
    background-color: #2c1810;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.6);
    padding: 110px 25px 40px;
    /* Restored padding to clear sticky header */
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    overflow-y: auto;
    overflow-x: hidden;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Mobile Nav Content Area */
.mobile-nav-content {
    width: 100%;
    box-sizing: border-box;
}

/* Hide scrollbar for Chrome, Safari and Opera */
.mobile-nav-panel::-webkit-scrollbar {
    display: none;
}

/* Ensure toggle stays visible on top of everything inside the header stack */
.mobile-menu-toggle {
    z-index: 1001 !important;
    position: relative;
}

/* Simple body lock when menu open */
body.mobile-menu-open {
    overflow: hidden !important;
}

.mobile-nav-panel.open {
    display: flex;
    /* Ensure it's shown */
    right: 0;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
    font-family: var(--font-heading);
    /* Match header typography */
}

.mobile-nav-links>li>a {
    color: var(--color-white);
    font-size: 0.65rem;
    /* Back to slightly smaller size to ensure no wrapping */
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    /* Tighter letter spacing to save width */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
}

.mobile-social-links {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
    padding-top: var(--spacing-sm);
    padding-bottom: 10px;
    border-top: none;
}

.mobile-social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    /* Slightly smaller to fit rows better */
    height: 32px;
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    color: var(--color-white);
    transition: all var(--transition-fast);
    font-size: 0.8rem;
}

.mobile-nav-links li:last-child a {
    border-bottom: none;
}

.mobile-nav-links a:hover,
.mobile-nav-links li.current-menu-item>a,
.mobile-nav-links li.current-menu-ancestor>a,
.mobile-nav-links li.current_page_item>a,
.mobile-nav-links li.current_page_ancestor>a {
    color: var(--color-primary) !important;
}

/* Mobile Submenu Drawer Styles - more robust selectors */
.mobile-nav-links .sub-menu {
    list-style: none !important;
    margin: 0 !important;
    padding-left: 20px !important;
    max-height: 0;
    overflow: hidden;
    position: static !important;
    display: block !important;
    opacity: 0;
    visibility: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease;
    border: none !important;
    box-shadow: none !important;
}

.mobile-nav-links li.expanded .sub-menu {
    max-height: 1500px !important;
    /* Forces drawer open */
    opacity: 1 !important;
    visibility: visible !important;
    padding-top: 10px !important;
    padding-bottom: 10px !important;
}

.mobile-nav-links li.expanded>a {
    color: var(--color-primary) !important;
}

.mobile-nav-links .sub-menu li {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
}

.mobile-nav-links .sub-menu li a {
    font-family: var(--font-heading);
    font-size: 0.65rem;
    font-weight: 500;
    /* Slightly bolder for ALL-CAPS clarity */
    text-transform: uppercase;
    /* ALL-CAPS as requested */
    letter-spacing: 0.5px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.75);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.mobile-nav-links .sub-menu li a::before {
    content: '-';
    /* Subtle dash indicator for sub-items */
    font-size: 0.7rem;
    opacity: 0.4;
    transition: opacity 0.3s ease;
}

.mobile-nav-links .sub-menu li a:active,
.mobile-nav-links .sub-menu li a:hover {
    color: var(--color-primary);
    padding-left: 8px;
}

.mobile-nav-links .sub-menu li a:hover::before {
    opacity: 1;
    color: var(--color-primary);
}

.mobile-nav-links .sub-menu li:last-child a {
    border-bottom: none;
}

.mobile-nav-links .menu-item-has-children>a::after {
    content: '\f107';
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 0.65rem;
    color: inherit;
    /* Matches active (orange) or default (white) color */
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-nav-links li.expanded>a::after {
    transform: rotate(180deg);
}

.mobile-cart-link-wrapper {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-cart-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 44px;
    padding: 11px 18px;
    border-radius: var(--border-radius-full);
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--color-white);
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.mobile-cart-link:hover,
.mobile-cart-link:focus-visible {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(241, 98, 32, 0.25);
}

.mobile-cart-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--color-primary);
    color: var(--color-white);
    font-size: 0.68rem;
    font-weight: 900;
    line-height: 1;
}

.mobile-cart-link:hover .mobile-cart-count,
.mobile-cart-link:focus-visible .mobile-cart-count {
    background: var(--color-white);
    color: var(--color-primary);
}

.mobile-cart-link-wrapper + .mobile-search-item {
    margin-top: 18px;
}

.mobile-search-item {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-search-form {
    display: flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.06);
    border-radius: var(--border-radius-full);
    /* Pill shape */
    padding: 2px 16px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
    width: 100%;
}

.mobile-search-form:focus-within {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--color-primary);
    box-shadow: 0 0 15px rgba(241, 98, 32, 0.1);
}

.mobile-search-form input {
    border: none;
    background: transparent;
    padding: 12px 8px;
    font-family: var(--font-body);
    font-size: 0.65rem;
    color: var(--color-white);
    flex: 1 1 0;
    /* grow and shrink */
    min-width: 0;
    /* critical: prevents input from overflowing flex container */
    width: 0;
    /* forces shrink from 0, flex-grow handles the rest */
}

.mobile-search-form input:focus {
    outline: none;
}

.mobile-search-form button {
    color: var(--color-white);
    padding: 8px;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    /* Never push it outside */
    background: none;
    border: none;
}

.mobile-social-links a:hover {
    background-color: var(--color-primary);
    transform: translateY(-2px);
}

@media (max-width: 1024px) {
    .header-right-area {
        flex-direction: row;
        align-items: center;
    }

    .header-top-row,
    .header-bottom-row {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }
}

@media (min-width: 1025px) {

    /* Desktop specific sub-menu positioning */
    .main-navigation ul.sub-menu,
    .menu-item-has-children .sub-menu {
        position: absolute;
        top: 100%;
        left: 0;
        background-color: var(--color-white);
        min-width: 240px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
        border-radius: var(--border-radius-md);
        padding: 10px 0;
        list-style: none;
        opacity: 0;
        visibility: hidden;
        transform: translateY(15px);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 110;
        border-top: 3px solid var(--color-primary);
    }

    .main-navigation .menu-item-has-children {
        position: relative;
    }

    /* Desktop hover visibility */
    .main-navigation .menu-item-has-children:hover>.sub-menu {
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateY(0) !important;
    }
}

/* Main nav uses your desktop-nav styling */
.main-navigation>ul {
    display: flex;
    gap: 50px;
    /* Reduced gap between menu items */
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.main-navigation>ul>li>a {
    color: var(--color-white);
    font-family: var(--font-heading);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    padding: 10px 0;
    /* Reduced padding */
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    position: relative;
}

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

/* NEW Underline Effect (using ::before) */
.main-navigation>ul>li>a::before {
    content: '';
    position: absolute;
    bottom: 2px;
    /* Close to text */
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--color-primary);
    transition: width 0.3s ease;
}

.main-navigation>ul>li:hover>a::before,
.main-navigation>ul>li.current-menu-item>a::before,
.main-navigation>ul>li.current-menu-ancestor>a::before,
.main-navigation>ul>li.current_page_item>a::before,
.main-navigation>ul>li.current_page_ancestor>a::before {
    width: 100%;
}

/* NEW Caret Indicator (using ::after) */
.main-navigation .menu-item-has-children>a::after {
    content: '\f107';
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 0.75rem;
    margin-left: 8px;
    /* Leave some space */
    color: inherit;
    transition: transform 0.3s ease;
    display: inline-block;
}

.main-navigation .menu-item-has-children:hover>a::after {
    transform: rotate(180deg);
    /* Optional flip on hover */
}



/* Submenu Items - Back to standard list */
.main-navigation ul.sub-menu {
    display: block !important;
    width: auto;
    min-width: 220px;
}

.main-navigation ul.sub-menu li {
    display: block !important;
    width: 100%;
}

.main-navigation ul.sub-menu li a {
    display: block;
    padding: 12px 24px;
    color: #4b5563;
    font-family: var(--font-heading);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.main-navigation ul.sub-menu li a:hover,
.main-navigation ul.sub-menu li.current-menu-item a {
    color: var(--color-primary);
    background-color: transparent;
    /* No bg change in screenshot for hover, just color change */
    padding-left: 24px;
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background-color: var(--color-accent-brown);
    color: #fff;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 1100;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background-color: #e68d1b;
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.scroll-to-top i {
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .scroll-to-top {
        bottom: 76px;
        right: 21px;
        width: 40px;
        height: 40px;
        z-index: 99997;
    }
}

/* --- Inner Pages Formatting --- */

/* Subtle Page Title Bar */
.inner-page-header {
    background-color: var(--color-white);
    border-bottom: 2px solid var(--color-primary);
    padding: var(--spacing-sm) 0;
    margin: 0;
    box-shadow: var(--shadow-sm);
    /* Minor depth under header */
}

.inner-page-title {
    font-size: clamp(1.2rem, 3vw, 1.4rem);
    /* Kept aligned with main header text */
    font-family: var(--font-heading);
    font-weight: 800;
    color: var(--color-text-main);
    margin: 0;
    padding: 0;
    line-height: 1.2;
}

/* Page content area */
.inner-page-content {
    background-color: transparent;
    /* inherits page background */
    padding-top: var(--spacing-xs);
    padding-bottom: var(--spacing-lg);
}

/* Ensure typography in standard content flows naturally, no box */
:where(.page-content, .editor-styles-wrapper) {
    background-color: transparent;
    padding: 0;
    border: none;
    box-shadow: none;
    /* max-width: 1200px; */
    /* Keeps reading line length comfortable */
}

:where(.page-content, .editor-styles-wrapper) p {
    margin-bottom: 1.25rem;
    /* Tighter margin replacing large var(--spacing-md) */
    font-size: var(--font-size-base);
    line-height: 1.6;
    /* Slightly tighter line-height */
    color: var(--color-text-main);
    /* Crisp reading color */
}

:where(.page-content, .editor-styles-wrapper) h2,
:where(.page-content, .editor-styles-wrapper) h3,
:where(.page-content, .editor-styles-wrapper) h4 {
    color: var(--color-text-main);
    margin-top: 2rem;
    /* Tighter layout */
    margin-bottom: 1rem;
}

:where(.page-content, .editor-styles-wrapper) ul,
:where(.page-content, .editor-styles-wrapper) ol {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
    /* Standard bullet indentation */
    color: var(--color-text-main);
    font-size: var(--font-size-base);
}

:where(.page-content, .editor-styles-wrapper) a:not(.btn) {
    color: var(--color-primary);
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 500;
}

:where(.page-content, .editor-styles-wrapper) a:not(.btn):hover {
    color: var(--color-primary-hover);
}

/* ============================================================
   SEARCH RESULTS PAGE STYLING
   ============================================================ */


.search-results .inner-page-title {
    /* font-size: clamp(1.75rem, 3vw + 1rem, 2.5rem) !important;
    font-weight: 700 !important;
    color: var(--color-text-main) !important;
    margin-bottom: 0 !important; */
    font-size: clamp(1.2rem, 3vw, 1.4rem);
    /* Kept aligned with main header text */
    font-family: var(--font-heading);
    font-weight: 800;
    color: var(--color-text-main);
    margin: 0;
    padding: 0;
    line-height: 1.2;
}

/* Reduced excessive white space in the results section */
.search-results .inner-page-content.section {
    padding-top: var(--spacing-lg) !important;
    padding-bottom: var(--spacing-lg) !important;
}

.search-results .post-preview {
    padding-bottom: var(--spacing-md) !important;
    margin-bottom: var(--spacing-md) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
}

.search-results .post-preview:last-child {
    border-bottom: none !important;
}

/* Result titles now use CMA Orange as standard for clicks */
.search-results .post-preview h2 {
    font-size: clamp(1.25rem, 2vw + 1rem, 1.6rem) !important;
    margin-bottom: 6px !important;
}

.search-results .post-preview h2 a {
    color: #F89E2C !important;
    /* CMA Orange as a link */
    text-decoration: none !important;
    font-weight: 600 !important;
    transition: color 0.2s ease !important;
}

.search-results .post-preview h2 a:hover {
    color: var(--color-primary-hover) !important;
    text-decoration: underline !important;
    /* Visual feedback on hover */
}

/* ============================================================
   CMA CUSTOM STYLING FOR MXCHAT
   ============================================================ */

/* 1. The Floating Trigger Button */
.floating-chatbot-button {
    background: var(--color-accent, #F89E2C) !important;
    /* Matches 'Signup for Membership' button */
    box-shadow: 0 10px 25px rgba(248, 158, 44, 0.4) !important;
    border-radius: 50% !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    border: 2px solid rgba(255, 255, 255, 0.2) !important;
    right: 90px !important;
    /* Slightly moved for better balance */
    bottom: 25px !important;
    /* Lowered as requested */
    z-index: 999999 !important;
}

.floating-chatbot-button:hover {
    background-color: var(--color-primary-hover) !important;
    transform: translateY(-5px) scale(1.05) !important;
    box-shadow: 0 15px 35px rgba(241, 98, 32, 0.6) !important;
}

/* 2. Chat Window Container - Matched to Sub-Menu Aesthetic */
.mxchat-chatbot-wrapper {
    right: 90px !important;
    bottom: 90px !important;
    /* Lowered position */
    width: 380px !important;
    max-height: 70vh !important;
    /* Prevents overflow */
    background-color: var(--color-white) !important;
    border-radius: var(--border-radius-md) !important;
    overflow: hidden !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
    /* Matched to Sub-menu */
    border-top: 3px solid var(--color-primary) !important;
    /* Matched to Sub-menu */
    z-index: 999999 !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Mobile Fixes for Sizing and Visibility */
@media screen and (max-width: 768px) {
    .floating-chatbot-button {
        right: 18px !important;
        bottom: 18px !important;
        width: 46px !important;
        height: 46px !important;
        z-index: 99998 !important;
    }

    .floating-chatbot-button.is-soft-hidden {
        opacity: 0 !important;
        pointer-events: none !important;
        transform: translateY(12px) scale(0.92) !important;
    }

    .mxchat-chatbot-wrapper {
        right: 10px !important;
        left: 10px !important;
        width: calc(100% - 20px) !important;
        bottom: 15px !important;
        /* Move more towards bottom, covers button for full-screen feel */
        top: auto !important;
        height: 85vh !important;
        /* Almost full screen height */
        max-height: 85vh !important;
        display: flex !important;
        flex-direction: column !important;
        box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3) !important;
    }

    /* Force internal plugin container to fill the new height */
    .mxchat-chatbot,
    .mxchat-chatbot-wrapper iframe,
    .mxchat-chatbot-wrapper .chatbot-content {
        height: 100% !important;
        flex: 1 !important;
    }

    .pre-chat-message {
        display: none !important;
    }
}

/* 3. Top Bar (Header) - Matched to Site Brown */
.chatbot-top-bar {
    background: #2C1810 !important;
    padding: 15px 20px !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}

.chatbot-top-bar .chatbot-title {
    font-family: var(--font-heading) !important;
    font-weight: 700 !important;
    font-size: 1.1rem !important;
    color: white !important;
    margin: 0 !important;
}

/* Ensure the minimize/close icon is large enough on mobile */
.chatbot-top-bar .close-chat,
.chatbot-top-bar .minimize-chat {
    color: white !important;
    font-size: 1.25rem !important;
    padding: 5px !important;
    cursor: pointer !important;
}

/* 4. Chat Messages - Readability Overhaul */
.mxchat-chatbot .bot-message {
    background: #FFF7F2 !important;
    color: #1F2937 !important;
    border-radius: 4px 18px 18px 18px !important;
    border: 1px solid rgba(241, 98, 32, 0.1) !important;
    padding: 12px 16px !important;
    font-size: 0.95rem !important;
}

.mxchat-chatbot .bot-message * {
    color: #1F2937 !important;
}

.mxchat-chatbot .user-message {
    background: #F3F4F6 !important;
    color: #1F2937 !important;
    border-radius: 18px 18px 4px 18px !important;
    padding: 10px 16px !important;
    font-size: 0.95rem !important;
}

/* 5. Input Area Realignment */
.input-container {
    padding: 12px 15px !important;
    background: white !important;
    border-top: 1px solid #F3F4F6 !important;
}

.chat-input {
    border-radius: 12px !important;
    border: 1px solid #E5E7EB !important;
    padding: 10px 45px 10px 15px !important;
    font-family: var(--font-body) !important;
    font-size: 0.9rem !important;
}

.send-button {
    right: 25px !important;
}

/* Quick Action Buttons */
.mxchat-popular-question {
    background-color: white !important;
    border: 1px solid var(--color-border) !important;
    border-radius: 9999px !important;
    color: var(--color-text-main) !important;
    font-size: 0.85rem !important;
    padding: 6px 14px !important;
}

.mxchat-popular-question:hover {
    background-color: var(--color-primary) !important;
    color: white !important;
    border-color: var(--color-primary) !important;
}

/* END CUSTOM STYLING FOR MXCHAT */

/* ============================================================
   MEMBERSHIP CTA BUTTON ('Explore Membership')
   ============================================================ */
a[href="http://localhost:8884/#membership"],
a[href="#membership"] {
    display: inline-flex !important;
    padding: 0.875rem 2.25rem !important;
    /* Button padding */
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    line-height: 1 !important;
}

a[href="http://localhost:8884/#membership"]:hover,
a[href="#membership"]:hover {
    background-color: var(--color-accent-brown) !important;
    /* Hover state color */
    transform: translateY(-2px) !important;
    box-shadow: var(--shadow-md), var(--shadow-glow) !important;
    color: var(--color-white) !important;
    text-decoration: none !important;
}

/* === Editable sub-page block patterns === */
:where(.page-content, .editor-styles-wrapper) .cma-page-hero,
:where(.page-content, .editor-styles-wrapper) .cma-content-section,
:where(.page-content, .editor-styles-wrapper) .cma-page-cta {
    width: 100%;
    max-width: none;
    margin-right: 0;
    margin-bottom: clamp(2rem, 4vw, 3.5rem);
    margin-left: 0;
}

:where(.page-content, .editor-styles-wrapper) .cma-page-hero > .wp-block-group__inner-container,
:where(.page-content, .editor-styles-wrapper) .cma-content-section > .wp-block-group__inner-container,
:where(.page-content, .editor-styles-wrapper) .cma-page-cta > .wp-block-group__inner-container {
    max-width: none;
}

:where(.page-content, .editor-styles-wrapper) .cma-page-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(2rem, 5vw, 4.5rem);
    border: 1px solid rgba(241, 98, 32, 0.16);
    border-radius: var(--border-radius-lg);
    background: radial-gradient(circle at 92% 18%, rgba(248, 158, 44, 0.24), transparent 32%), linear-gradient(135deg, #fff7eb 0%, #ffffff 62%, #fef3df 100%);
    box-shadow: var(--shadow-lg);
}

:where(.page-content, .editor-styles-wrapper) .cma-page-hero h1,
:where(.page-content, .editor-styles-wrapper) .cma-page-hero h2 {
    max-width: 100%;
    margin-top: 0;
    margin-bottom: 1rem;
}

:where(.page-content, .editor-styles-wrapper) .cma-page-kicker {
    color: var(--color-primary);
    font-family: var(--font-heading);
    font-size: clamp(1.15rem, 2vw, 1.55rem);
    font-weight: 700;
}

:where(.page-content, .editor-styles-wrapper) .cma-page-intro {
    max-width: 850px;
    color: var(--color-text-muted);
    font-size: clamp(1.05rem, 1.5vw, 1.25rem);
    line-height: 1.75;
}

:where(.page-content, .editor-styles-wrapper) .cma-page-hero .cma-page-intro {
    max-width: none;
}

:where(.page-content, .editor-styles-wrapper) .cma-notice-card,
:where(.page-content, .editor-styles-wrapper) .cma-page-cta {
    padding: clamp(1.5rem, 4vw, 3rem);
    border: 1px solid rgba(241, 98, 32, 0.16);
    border-radius: var(--border-radius-lg);
    background: #fffaf2;
    box-shadow: var(--shadow-md);
}

:where(.page-content, .editor-styles-wrapper) .cma-notice-card {
    border-left: 6px solid var(--color-primary);
}

:where(.page-content, .editor-styles-wrapper) .cma-content-section > .wp-block-group__inner-container > .wp-block-heading,
:where(.page-content, .editor-styles-wrapper) .cma-notice-card > .wp-block-group__inner-container > .wp-block-heading {
    width: 100%;
    max-width: none;
}

:where(.page-content, .editor-styles-wrapper) .cma-notice-card > .wp-block-group__inner-container > h3.wp-block-heading,
:where(.page-content, .editor-styles-wrapper) .cma-notice-card > .wp-block-group__inner-container > h4.wp-block-heading {
    font-size: clamp(2rem, 3vw, 2.25rem);
    line-height: 1.2;
}

:where(.page-content, .editor-styles-wrapper) .cma-benefit-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem 1.25rem;
    margin-top: 1.5rem;
    padding: 0;
    list-style: none;
}

:where(.page-content, .editor-styles-wrapper) .cma-benefit-list li {
    position: relative;
    padding: 1rem 1rem 1rem 3rem;
    border: 1px solid rgba(20, 144, 72, 0.14);
    border-radius: var(--border-radius-md);
    background: #ffffff;
    box-shadow: var(--shadow-sm);
}

:where(.page-content, .editor-styles-wrapper) .cma-benefit-list li::before {
    content: "";
    position: absolute;
    top: 1.15rem;
    left: 1rem;
    width: 1.1rem;
    height: 1.1rem;
    border-radius: 50%;
    background: var(--color-secondary);
    box-shadow: inset 0 0 0 4px #e7f6ed;
}

:where(.page-content, .editor-styles-wrapper) .cma-link-cards {
    align-items: stretch;
    margin-top: 1.5rem;
}

:where(.page-content, .editor-styles-wrapper) .cma-link-cards .wp-block-column {
    position: relative;
    display: flex;
    overflow: hidden;
    flex-direction: column;
    padding: clamp(1.25rem, 3vw, 2rem);
    border: 1px solid rgba(31, 41, 55, 0.08);
    border-radius: var(--border-radius-lg);
    background: #ffffff;
    box-shadow: var(--shadow-md);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
}

:where(.page-content, .editor-styles-wrapper) .cma-link-cards .wp-block-column::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    opacity: 0.85;
}

:where(.page-content, .editor-styles-wrapper) .cma-link-cards .wp-block-column:hover {
    border-color: rgba(241, 98, 32, 0.2);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

:where(.page-content, .editor-styles-wrapper) .cma-link-cards .wp-block-heading {
    margin-top: 0;
    margin-bottom: 0.85rem;
    color: var(--color-text-main);
    font-family: var(--font-heading);
    font-size: clamp(1.45rem, 2.1vw, 1.85rem);
    line-height: 1.18;
    width: 100%;
}

:where(.page-content, .editor-styles-wrapper) .cma-link-cards .wp-block-column .wp-block-buttons {
    margin-top: auto;
}

:where(.page-content, .editor-styles-wrapper) .cma-page-cta {
    background: radial-gradient(circle at 10% 20%, rgba(248, 158, 44, 0.2), transparent 30%), linear-gradient(135deg, #2b130c 0%, #4b2012 100%);
    color: #ffffff;
}

:where(.page-content, .editor-styles-wrapper) .cma-page-cta h2,
:where(.page-content, .editor-styles-wrapper) .cma-page-cta h3,
:where(.page-content, .editor-styles-wrapper) .cma-page-cta p {
    color: #ffffff;
}

:where(.page-content, .editor-styles-wrapper) .cma-page-cta h2,
:where(.page-content, .editor-styles-wrapper) .cma-page-cta h3 {
    width: 100%;
    max-width: none;
    margin-top: 0;
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.24);
}

:where(.page-content, .editor-styles-wrapper) .cma-page-cta p {
    width: 100%;
    max-width: none;
    color: rgba(255, 255, 255, 0.92);
}

:where(.page-content, .editor-styles-wrapper) .cma-resource-accordion details.wp-block-details {
    margin-top: 0.85rem;
    border: 1px solid rgba(241, 98, 32, 0.16);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

:where(.page-content, .editor-styles-wrapper) .cma-resource-accordion details.wp-block-details summary {
    padding: 1rem 1.25rem;
    color: var(--color-text-main);
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
}

:where(.page-content, .editor-styles-wrapper) .cma-resource-accordion details.wp-block-details[open] summary {
    border-bottom: 1px solid rgba(241, 98, 32, 0.12);
    background: linear-gradient(135deg, #fff8ee, #ffffff);
}

:where(.page-content, .editor-styles-wrapper) .cma-resource-accordion details.wp-block-details > ul {
    padding: 0.25rem 1.5rem 1.25rem 2.25rem;
}

:where(.page-content, .editor-styles-wrapper) .cma-resource-accordion details.wp-block-details a {
    font-weight: 700;
}

:where(.page-content, .editor-styles-wrapper) .cma-photo-gallery {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 247, 235, 0.92));
    border: 1px dashed rgba(241, 98, 32, 0.35);
    border-radius: var(--border-radius-lg);
    padding: clamp(1.5rem, 4vw, 2.5rem);
    box-shadow: var(--shadow-md);
}

:where(.page-content, .editor-styles-wrapper) .cma-photo-gallery .wp-block-heading {
    margin-top: 0;
    max-width: none;
}

:where(.page-content, .editor-styles-wrapper) .cma-photo-gallery .wp-block-gallery {
    margin-top: 1.5rem;
}

:where(.page-content, .editor-styles-wrapper) .cma-sample-gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(0.85rem, 2vw, 1.25rem);
}

:where(.page-content, .editor-styles-wrapper) .cma-sample-gallery.has-nested-images figure.wp-block-image {
    position: relative;
    overflow: hidden;
    width: 100% !important;
    max-width: none !important;
    flex-basis: auto !important;
    border-radius: 18px;
    box-shadow: var(--shadow-md);
    aspect-ratio: 4 / 3;
    align-items: center;
}

:where(.page-content, .editor-styles-wrapper) .cma-sample-gallery.has-nested-images figure.wp-block-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal), filter var(--transition-normal);
}

:where(.page-content, .editor-styles-wrapper) .cma-sample-gallery.has-nested-images figure.wp-block-image:hover img {
    transform: scale(1.06);
    filter: saturate(1.08) contrast(1.04);
}

@media (prefers-reduced-motion: reduce) {
    :where(.page-content, .editor-styles-wrapper) .cma-link-cards .wp-block-column,
    :where(.page-content, .editor-styles-wrapper) .cma-sample-gallery.has-nested-images figure.wp-block-image img {
        transition: none;
        transform: none;
    }
}

@media (max-width: 768px) {
    :where(.page-content, .editor-styles-wrapper) .cma-page-hero,
    :where(.page-content, .editor-styles-wrapper) .cma-notice-card,
    :where(.page-content, .editor-styles-wrapper) .cma-page-cta,
    :where(.page-content, .editor-styles-wrapper) .cma-photo-gallery {
        padding: 1.5rem;
        border-radius: 18px;
    }

    :where(.page-content, .editor-styles-wrapper) .cma-benefit-list,
    :where(.page-content, .editor-styles-wrapper) .cma-sample-gallery {
        grid-template-columns: 1fr;
    }
}

/* === The Events Calendar archive polish === */
.tribe-events-page-template .tribe-events .tribe-events-l-container {
    max-width: 1160px;
    padding: clamp(3rem, 5vw, 5rem) 1.5rem clamp(4rem, 7vw, 7rem);
}

.tribe-events-page-template .tribe-events-header {
    padding: clamp(1.25rem, 3vw, 2rem);
    border: 1px solid rgba(241, 98, 32, 0.16);
    border-radius: var(--border-radius-lg);
    background: linear-gradient(135deg, #fffaf2 0%, #ffffff 68%, #fff0d6 100%);
    box-shadow: var(--shadow-md);
}

.tribe-events-page-template .tribe-events-c-events-bar,
.tribe-events-page-template .tribe-events-c-events-bar--border {
    border-color: rgba(241, 98, 32, 0.18) !important;
    border-radius: var(--border-radius-md);
    background: #ffffff;
}

.tribe-events-page-template .tribe-events-c-search__button {
    min-height: 46px;
    border-radius: var(--border-radius-full) !important;
    background: var(--color-accent) !important;
    box-shadow: 0 10px 25px rgba(241, 98, 32, 0.25);
    color: #ffffff !important;
    font-family: var(--font-heading) !important;
    font-weight: 700 !important;
    transition: transform var(--transition-fast), background-color var(--transition-fast), box-shadow var(--transition-fast);
}

.tribe-events-page-template .tribe-events-c-search__button:hover,
.tribe-events-page-template .tribe-events-c-search__button:focus-visible {
    background: var(--color-primary) !important;
    box-shadow: var(--shadow-md), var(--shadow-glow);
    transform: translateY(-2px);
}

.tribe-events-page-template .tribe-events-c-messages__message {
    border: 1px solid rgba(20, 144, 72, 0.14);
    border-radius: var(--border-radius-md) !important;
    background: #f1fbf5 !important;
    color: var(--color-text-main) !important;
    font-family: var(--font-body) !important;
    font-size: 1rem !important;
}

.tribe-events-page-template .tribe-events-calendar-latest-past__heading,
.tribe-events-page-template .tribe-events-calendar-list__month-separator-text {
    color: var(--color-text-main) !important;
    font-family: var(--font-heading) !important;
    font-size: clamp(2rem, 3vw, 3rem) !important;
    letter-spacing: -0.03em;
}

.tribe-events-page-template .tribe-events-calendar-latest-past__event-row {
    margin: 2rem 0 !important;
    padding: clamp(1.25rem, 3vw, 2rem);
    border: 1px solid rgba(31, 41, 55, 0.08);
    border-radius: var(--border-radius-lg);
    background: #ffffff;
    box-shadow: var(--shadow-md);
}

.tribe-events-page-template .tribe-events-calendar-latest-past__event-date-tag {
    padding-left: 0 !important;
}

.tribe-events-page-template .tribe-events-calendar-latest-past__event-date-tag-datetime {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    min-width: 68px;
    padding: 0.75rem 0.5rem;
    border-radius: var(--border-radius-md);
    background: #fff7eb;
    color: var(--color-primary);
    font-family: var(--font-heading);
    box-shadow: inset 0 0 0 1px rgba(241, 98, 32, 0.14);
}

.tribe-events-page-template .tribe-events-calendar-latest-past__event-title-link,
.tribe-events-page-template .tribe-events-calendar-list__event-title-link {
    color: var(--color-text-main) !important;
    font-family: var(--font-heading) !important;
    font-size: clamp(1.45rem, 2vw, 2rem) !important;
    line-height: 1.18 !important;
    letter-spacing: -0.025em !important;
    border-bottom-color: transparent !important;
}

.tribe-events-page-template .tribe-events-calendar-latest-past__event-title-link:hover,
.tribe-events-page-template .tribe-events-calendar-list__event-title-link:hover {
    color: var(--color-primary) !important;
}

.tribe-events-page-template .tribe-events-calendar-latest-past__event-featured-image-link,
.tribe-events-page-template .tribe-events-calendar-list__event-featured-image-link {
    overflow: hidden;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
}

.tribe-events-page-template .tribe-events-calendar-latest-past__event-featured-image,
.tribe-events-page-template .tribe-events-calendar-list__event-featured-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

.tribe-events-page-template .tribe-events-calendar-latest-past__event-featured-image-link:hover img,
.tribe-events-page-template .tribe-events-calendar-list__event-featured-image-link:hover img {
    transform: scale(1.035);
}

@media (max-width: 768px) {
    .tribe-events-page-template .tribe-events .tribe-events-l-container {
        padding: 2rem 1.25rem 4rem;
    }

    .tribe-events-page-template .tribe-events-header,
    .tribe-events-page-template .tribe-events-calendar-latest-past__event-row {
        padding: 1.25rem;
        border-radius: 18px;
    }

    .tribe-events-page-template .tribe-events-calendar-latest-past__event-row {
        display: grid !important;
        grid-template-columns: 64px minmax(0, 1fr);
        gap: 0.85rem;
        margin: 1.5rem 0 !important;
        overflow: hidden;
    }

    .tribe-events-page-template .tribe-events-calendar-latest-past__event-date-tag {
        width: 64px !important;
        height: auto !important;
        padding: 0 !important;
    }

    .tribe-events-page-template .tribe-events-calendar-latest-past__event-date-tag-datetime {
        min-width: 58px;
        padding: 0.65rem 0.35rem;
    }

    .tribe-events-page-template .tribe-events-calendar-latest-past__event-wrapper,
    .tribe-events-page-template .tribe-events-calendar-latest-past__event,
    .tribe-events-page-template .tribe-events-calendar-latest-past__event-featured-image-wrapper,
    .tribe-events-page-template .tribe-events-calendar-latest-past__event-details {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .tribe-events-page-template .tribe-events-calendar-latest-past__event {
        display: flex !important;
        flex-direction: column !important;
        flex-wrap: nowrap !important;
        gap: 1rem;
    }

    .tribe-events-page-template .tribe-events-calendar-latest-past__event-featured-image-wrapper {
        order: -1;
        height: auto !important;
        margin-bottom: 0 !important;
    }

    .tribe-events-page-template .tribe-events-calendar-latest-past__event-featured-image-link {
        width: 100% !important;
        height: auto !important;
    }

    .tribe-events-page-template .tribe-events-calendar-latest-past__event-featured-image {
        height: auto !important;
        object-fit: contain;
    }

    .tribe-events-page-template .tribe-events-calendar-latest-past__event-title-link {
        font-size: clamp(1.25rem, 7vw, 1.75rem) !important;
        overflow-wrap: anywhere;
    }
}

/* === Donation page cards === */
:where(.page-content, .editor-styles-wrapper) .cma-donation-cards .wp-block-image,
:where(.page-content, .editor-styles-wrapper) .cma-donation-cards figure {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-right: auto;
    margin-bottom: 1.5rem;
    margin-left: auto;
}

:where(.page-content, .editor-styles-wrapper) .cma-donation-cards img {
    display: block;
    width: 100%;
    max-width: 240px;
    margin-right: auto;
    margin-left: auto;
    aspect-ratio: 1;
    object-fit: contain;
    padding: 0.75rem;
    border-radius: var(--border-radius-md);
    background: #fff7eb;
    box-shadow: inset 0 0 0 1px rgba(241, 98, 32, 0.12);
}

:where(.page-content, .editor-styles-wrapper) .cma-donation-cards .cma-donation-range {
    color: var(--color-text-main);
    font-family: var(--font-heading);
    font-weight: 700;
}

@media (max-width: 768px) {
    :where(.page-content, .editor-styles-wrapper) .cma-donation-cards img {
        max-width: 180px;
    }

    :where(.page-content, .editor-styles-wrapper) .cma-donation-cards .wp-block-column {
        min-height: auto;
    }
}

/* === History page === */
:where(.page-content, .editor-styles-wrapper) .cma-history-image {
    margin-top: 0;
    margin-bottom: 2.5rem;
}

:where(.page-content, .editor-styles-wrapper) .cma-history-image img {
    display: block;
    width: 100%;
    border-radius: var(--border-radius-lg);
    border: 1px solid rgba(241, 98, 32, 0.14);
    box-shadow: var(--shadow-lg);
}

@media (max-width: 768px) {
    :where(.page-content, .editor-styles-wrapper) .cma-history-image {
        margin-bottom: 2rem;
    }

    :where(.page-content, .editor-styles-wrapper) .cma-history-image img {
        border-radius: var(--border-radius-md);
    }
}

/* === Mission & Vision page === */
:where(.page-content, .editor-styles-wrapper) .cma-values-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
}

:where(.page-content, .editor-styles-wrapper) .cma-values-grid .wp-block-column {
    width: auto !important;
    min-width: 0;
    height: auto;
}

:where(.page-content, .editor-styles-wrapper) .cma-values-grid .wp-block-heading {
    overflow-wrap: normal;
    word-break: normal;
}

:where(.page-content, .editor-styles-wrapper) .cma-objectives-section {
    padding: 2.6rem;
    border: 1px solid rgba(241, 98, 32, 0.16);
    border-left: 6px solid var(--color-primary);
    border-radius: var(--border-radius-lg);
    background: #fffaf2;
    box-shadow: var(--shadow-md);
}

:where(.page-content, .editor-styles-wrapper) .cma-objectives-section .wp-block-list {
    margin-left: 1.2rem;
    padding-left: 0.5rem;
}

:where(.page-content, .editor-styles-wrapper) .cma-objectives-section .wp-block-list li {
    margin-bottom: 0.65rem;
    padding-left: 0.25rem;
}

:where(.page-content, .editor-styles-wrapper) .cma-objectives-section .wp-block-list li::marker {
    color: var(--color-primary);
}

@media (max-width: 768px) {
    :where(.page-content, .editor-styles-wrapper) .cma-values-grid {
        grid-template-columns: 1fr;
        gap: 1.6rem;
    }

    :where(.page-content, .editor-styles-wrapper) .cma-objectives-section {
        padding: 1.5rem;
        border-radius: var(--border-radius-md);
    }
}

/* === Executive Board page === */
:where(.page-content, .editor-styles-wrapper) .cma-board-archive {
    position: relative;
}

:where(.page-content, .editor-styles-wrapper) .cma-board-archive .wp-block-details {
    margin: 0 0 0.85rem;
    overflow: hidden;
    border: 1px solid rgba(31, 41, 55, 0.08);
    border-radius: var(--border-radius-md);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: var(--shadow-sm);
}

:where(.page-content, .editor-styles-wrapper) .cma-board-archive .wp-block-details[open] {
    border-color: rgba(241, 98, 32, 0.18);
    background: #fffaf2;
    box-shadow: var(--shadow-md);
}

:where(.page-content, .editor-styles-wrapper) .cma-board-archive summary {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-height: 3.5rem;
    padding: 0.95rem 1.25rem;
    color: var(--color-text-main);
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    cursor: pointer;
    list-style-position: inside;
    transition: background-color 0.2s ease, color 0.2s ease;
}

:where(.page-content, .editor-styles-wrapper) .cma-board-archive summary:hover,
:where(.page-content, .editor-styles-wrapper) .cma-board-archive summary:focus-visible {
    color: var(--color-primary-dark);
    background: rgba(248, 158, 44, 0.08);
    outline: none;
}

:where(.page-content, .editor-styles-wrapper) .cma-board-archive summary::marker {
    color: var(--color-primary);
}

:where(.page-content, .editor-styles-wrapper) .cma-board-archive .wp-block-details > :not(summary) {
    margin-left: 1.5rem;
    margin-right: 1.5rem;
}

:where(.page-content, .editor-styles-wrapper) .cma-board-archive .wp-block-details[open] > :last-child {
    margin-bottom: 1.5rem;
}

:where(.page-content, .editor-styles-wrapper) .cma-board-archive .wp-block-details p strong {
    color: var(--color-text-main);
    font-family: var(--font-heading);
    font-size: 1.05rem;
}

:where(.page-content, .editor-styles-wrapper) .cma-board-archive .wp-block-list {
    margin-top: 0.5rem;
    margin-bottom: 1.35rem;
    padding-left: 1.35rem;
}

:where(.page-content, .editor-styles-wrapper) .cma-board-archive .wp-block-list li {
    margin-bottom: 0.35rem;
}

:where(.page-content, .editor-styles-wrapper) .cma-board-archive .wp-block-list li::marker {
    color: var(--color-primary);
}

@media (max-width: 768px) {
    :where(.page-content, .editor-styles-wrapper) .cma-board-archive summary {
        min-height: 3.25rem;
        padding: 0.85rem 1rem;
        font-size: 1rem;
    }

    :where(.page-content, .editor-styles-wrapper) .cma-board-archive .wp-block-details > :not(summary) {
        margin-left: 1.15rem;
        margin-right: 1.15rem;
    }
}

/* === CMA By-Laws page === */
:where(.page-content, .editor-styles-wrapper) .cma-bylaws-featured-doc {
    border-left: 6px solid var(--color-primary);
}

:where(.page-content, .editor-styles-wrapper) .cma-bylaws-roles {
    position: relative;
}

:where(.page-content, .editor-styles-wrapper) .cma-bylaws-roles .wp-block-details {
    margin: 0 0 1rem;
    overflow: hidden;
    border: 1px solid rgba(31, 41, 55, 0.08);
    border-radius: var(--border-radius-md);
    background: #ffffff;
    box-shadow: var(--shadow-sm);
}

:where(.page-content, .editor-styles-wrapper) .cma-bylaws-roles .wp-block-details[open] {
    border-color: rgba(241, 98, 32, 0.2);
    background: #fffaf2;
    box-shadow: var(--shadow-md);
}

:where(.page-content, .editor-styles-wrapper) .cma-bylaws-roles summary {
    display: flex;
    align-items: center;
    min-height: 3.6rem;
    padding: 1rem 1.25rem;
    color: var(--color-text-main);
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    cursor: pointer;
    list-style-position: inside;
    transition: background-color 0.2s ease, color 0.2s ease;
}

:where(.page-content, .editor-styles-wrapper) .cma-bylaws-roles summary:hover,
:where(.page-content, .editor-styles-wrapper) .cma-bylaws-roles summary:focus-visible {
    color: var(--color-primary-dark);
    background: rgba(248, 158, 44, 0.08);
    outline: none;
}

:where(.page-content, .editor-styles-wrapper) .cma-bylaws-roles summary::marker {
    color: var(--color-primary);
}

:where(.page-content, .editor-styles-wrapper) .cma-bylaws-roles .wp-block-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
    margin: 0;
    padding: 1.25rem;
    list-style: none;
}

:where(.page-content, .editor-styles-wrapper) .cma-bylaws-roles .wp-block-list li {
    margin: 0;
}

:where(.page-content, .editor-styles-wrapper) .cma-bylaws-roles .wp-block-list a {
    display: block;
    min-height: 100%;
    padding: 0.9rem 1rem;
    border: 1px solid rgba(241, 98, 32, 0.14);
    border-radius: var(--border-radius-sm);
    background: rgba(255, 255, 255, 0.8);
    color: var(--color-text-main);
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

:where(.page-content, .editor-styles-wrapper) .cma-bylaws-roles .wp-block-list a:hover,
:where(.page-content, .editor-styles-wrapper) .cma-bylaws-roles .wp-block-list a:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(241, 98, 32, 0.42);
    box-shadow: var(--shadow-sm);
    outline: none;
}

@media (max-width: 768px) {
    :where(.page-content, .editor-styles-wrapper) .cma-bylaws-roles summary {
        min-height: 3.25rem;
        padding: 0.85rem 1rem;
        font-size: 1rem;
    }

    :where(.page-content, .editor-styles-wrapper) .cma-bylaws-roles .wp-block-list {
        grid-template-columns: 1fr;
        padding: 1rem;
    }
}

/* === Newsletters page === */
:where(.page-content, .editor-styles-wrapper) .cma-newsletter-intro {
    border-left: 6px solid var(--color-primary);
}

:where(.page-content, .editor-styles-wrapper) .cma-newsletter-archive .wp-block-details {
    margin: 0 0 1rem;
    overflow: hidden;
    border: 1px solid rgba(31, 41, 55, 0.08);
    border-radius: var(--border-radius-md);
    background: #ffffff;
    box-shadow: var(--shadow-sm);
}

:where(.page-content, .editor-styles-wrapper) .cma-newsletter-archive .wp-block-details[open] {
    border-color: rgba(241, 98, 32, 0.2);
    background: #fffaf2;
    box-shadow: var(--shadow-md);
}

:where(.page-content, .editor-styles-wrapper) .cma-newsletter-archive summary {
    display: flex;
    align-items: center;
    min-height: 3.75rem;
    padding: 1rem 1.25rem;
    color: var(--color-text-main);
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 800;
    cursor: pointer;
    list-style-position: inside;
    transition: background-color 0.2s ease, color 0.2s ease;
}

:where(.page-content, .editor-styles-wrapper) .cma-newsletter-archive summary:hover,
:where(.page-content, .editor-styles-wrapper) .cma-newsletter-archive summary:focus-visible {
    color: var(--color-primary-dark);
    background: rgba(248, 158, 44, 0.08);
    outline: none;
}

:where(.page-content, .editor-styles-wrapper) .cma-newsletter-archive summary::marker {
    color: var(--color-primary);
}

:where(.page-content, .editor-styles-wrapper) .cma-newsletter-file {
    padding: 0 1.25rem 1.25rem;
}

:where(.page-content, .editor-styles-wrapper) .cma-newsletter-file object {
    display: block;
    overflow: hidden;
    min-height: 600px;
    border: 1px solid rgba(31, 41, 55, 0.1);
    border-radius: var(--border-radius-sm);
    background: #f7f3ed;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7);
}

:where(.page-content, .editor-styles-wrapper) .cma-newsletter-file > a:not(.wp-block-file__button) {
    display: inline-flex;
    margin-top: 1rem;
    margin-right: 0.75rem;
    color: var(--color-primary-dark);
    font-weight: 800;
    text-decoration: none;
}

:where(.page-content, .editor-styles-wrapper) .cma-newsletter-file > a:not(.wp-block-file__button):hover,
:where(.page-content, .editor-styles-wrapper) .cma-newsletter-file > a:not(.wp-block-file__button):focus-visible {
    color: var(--color-primary);
    text-decoration: underline;
    outline: none;
}

:where(.page-content, .editor-styles-wrapper) .cma-newsletter-file .wp-block-file__button {
    margin-top: 1rem;
    margin-left: 0;
}

@media (max-width: 768px) {
    :where(.page-content, .editor-styles-wrapper) .cma-newsletter-archive summary {
        min-height: 3.35rem;
        padding: 0.9rem 1rem;
        font-size: 1rem;
    }

    :where(.page-content, .editor-styles-wrapper) .cma-newsletter-file {
        padding: 0 1rem 1rem;
    }

    :where(.page-content, .editor-styles-wrapper) .cma-newsletter-file object {
        min-height: 420px;
        height: 420px !important;
    }

    :where(.page-content, .editor-styles-wrapper) .cma-newsletter-file > a:not(.wp-block-file__button),
    :where(.page-content, .editor-styles-wrapper) .cma-newsletter-file .wp-block-file__button {
        display: flex;
        justify-content: center;
        width: 100%;
        margin-right: 0;
        text-align: center;
    }
}

/* === CMA Shop final WooCommerce polish === */
body.woocommerce-shop article.page-content > div.woocommerce.columns-4,
body.woocommerce-shop article.page-content > .woocommerce:not(.cma-shop-products) {
    display: none !important;
}

:where(.page-content, .editor-styles-wrapper) .cma-shop-products ul.wc-block-product-template,
:where(.page-content, .editor-styles-wrapper) .cma-shop-products .wc-block-product-template__responsive {
    gap: clamp(1.25rem, 3vw, 1.75rem) !important;
}

:where(.page-content, .editor-styles-wrapper) .cma-shop-products li.wc-block-product {
    overflow: hidden;
    background: #fff !important;
    border: 1px solid rgba(241, 98, 32, 0.14) !important;
    border-radius: 20px !important;
    box-shadow: var(--shadow-md) !important;
    padding: clamp(1rem, 2.5vw, 1.4rem) !important;
    text-align: center !important;
    transition: transform 180ms ease, box-shadow 180ms ease !important;
}

:where(.page-content, .editor-styles-wrapper) .cma-shop-products li.wc-block-product:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg) !important;
}

:where(.page-content, .editor-styles-wrapper) .cma-shop-products .wc-block-components-product-image {
    overflow: hidden;
    border-radius: 16px;
    margin-bottom: 1rem;
}

:where(.page-content, .editor-styles-wrapper) .cma-shop-products .wc-block-components-product-image img {
    display: block;
    aspect-ratio: 4 / 3;
    width: 100% !important;
    height: 220px !important;
    object-fit: cover !important;
    border-radius: 16px;
}

:where(.page-content, .editor-styles-wrapper) .cma-shop-products .wp-block-post-title,
:where(.page-content, .editor-styles-wrapper) .cma-shop-products .wp-block-post-title a {
    color: var(--dark-brown) !important;
    font-family: var(--font-heading) !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    text-decoration: none !important;
}

:where(.page-content, .editor-styles-wrapper) .cma-shop-products .wp-block-post-title a:hover {
    color: var(--primary-orange) !important;
}

:where(.page-content, .editor-styles-wrapper) .cma-shop-products .wc-block-components-product-price {
    color: var(--primary-orange) !important;
    font-family: var(--font-heading) !important;
    font-size: 1.12rem !important;
    font-weight: 800 !important;
}

:where(.page-content, .editor-styles-wrapper) .cma-shop-products .wp-block-button__link,
:where(.page-content, .editor-styles-wrapper) .cma-shop-products .wc-block-components-product-button__button {
    background-color: #f89e2c !important;
    background-image: linear-gradient(135deg, #f16220 0%, #f89e2c 100%) !important;
    border: 0 !important;
    border-radius: 999px !important;
    box-shadow: 0 12px 28px rgba(241, 98, 32, 0.22) !important;
    color: #fff !important;
    font-family: var(--font-heading) !important;
    font-weight: 700 !important;
    padding: 0.85rem 1.4rem !important;
}

@media (max-width: 782px) {
    :where(.page-content, .editor-styles-wrapper) .cma-shop-panel {
        padding: 1.25rem;
    }

    :where(.page-content, .editor-styles-wrapper) .cma-shop-products .wc-block-components-product-image img {
        height: auto !important;
        min-height: 220px;
    }
}

@media (prefers-reduced-motion: reduce) {
    :where(.page-content, .editor-styles-wrapper) .cma-shop-products li.wc-block-product {
        transition: none !important;
        transform: none !important;
    }
}

/* === CMA shared WooCommerce panel polish === */
:where(.page-content, .editor-styles-wrapper) .cma-shop-panel,
:where(.page-content, .editor-styles-wrapper) .cma-cart-notice,
:where(.page-content, .editor-styles-wrapper) .cma-cart-panel,
:where(.page-content, .editor-styles-wrapper) .cma-checkout-notice,
:where(.page-content, .editor-styles-wrapper) .cma-checkout-panel {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 250, 243, 0.96));
    border: 1px solid rgba(241, 98, 32, 0.18);
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    padding: clamp(1.5rem, 4vw, 2.6rem);
}

/* === CMA Cart WooCommerce polish === */

:where(.page-content, .editor-styles-wrapper) .cma-cart-notice,
:where(.page-content, .editor-styles-wrapper) .cma-checkout-notice {
    border-left: 7px solid var(--primary-orange);
}

:where(.page-content, .editor-styles-wrapper) .cma-cart-panel .wp-block-woocommerce-cart {
    max-width: none !important;
    margin: 0 !important;
}

:where(.page-content, .editor-styles-wrapper) .cma-cart-panel .wc-block-cart__main,
:where(.page-content, .editor-styles-wrapper) .cma-cart-panel .wc-block-cart__sidebar,
:where(.page-content, .editor-styles-wrapper) .cma-cart-panel .wc-block-components-sidebar,
:where(.page-content, .editor-styles-wrapper) .cma-cart-panel .wc-block-components-main {
    border-radius: 20px;
}

:where(.page-content, .editor-styles-wrapper) .cma-cart-panel .wc-block-cart-items,
:where(.page-content, .editor-styles-wrapper) .cma-cart-panel .wc-block-components-totals-wrapper,
:where(.page-content, .editor-styles-wrapper) .cma-cart-panel .wc-block-components-sidebar-layout .wc-block-components-main,
:where(.page-content, .editor-styles-wrapper) .cma-cart-panel .wc-block-components-sidebar-layout .wc-block-components-sidebar {
    background: #fff;
    border-color: rgba(241, 98, 32, 0.14) !important;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
}

:where(.page-content, .editor-styles-wrapper) .cma-cart-panel .wc-block-cart-items__header,
:where(.page-content, .editor-styles-wrapper) .cma-cart-panel .wc-block-cart-items__row,
:where(.page-content, .editor-styles-wrapper) .cma-cart-panel .wc-block-components-totals-wrapper {
    border-color: rgba(241, 98, 32, 0.14) !important;
}

:where(.page-content, .editor-styles-wrapper) .cma-cart-panel .wc-block-components-product-name,
:where(.page-content, .editor-styles-wrapper) .cma-cart-panel .wc-block-components-product-name a,
:where(.page-content, .editor-styles-wrapper) .cma-cart-panel .wc-block-components-totals-item__label,
:where(.page-content, .editor-styles-wrapper) .cma-cart-panel .wc-block-components-order-summary__button-text,
:where(.page-content, .editor-styles-wrapper) .cma-cart-panel .wp-block-woocommerce-cart-order-summary-heading-block {
    color: var(--dark-brown) !important;
    font-family: var(--font-heading) !important;
    font-weight: 800 !important;
}

:where(.page-content, .editor-styles-wrapper) .cma-cart-panel .wc-block-components-product-price,
:where(.page-content, .editor-styles-wrapper) .cma-cart-panel .wc-block-components-totals-item__value,
:where(.page-content, .editor-styles-wrapper) .cma-cart-panel .wc-block-components-formatted-money-amount {
    color: var(--primary-orange) !important;
    font-family: var(--font-heading) !important;
    font-weight: 800 !important;
}

:where(.page-content, .editor-styles-wrapper) .cma-cart-panel .wc-block-components-quantity-selector {
    border-color: rgba(241, 98, 32, 0.22) !important;
    border-radius: 999px !important;
}

:where(.page-content, .editor-styles-wrapper) .cma-cart-panel .wc-block-components-quantity-selector__button,
:where(.page-content, .editor-styles-wrapper) .cma-cart-panel .wc-block-components-quantity-selector__input,
:where(.page-content, .editor-styles-wrapper) .cma-cart-panel .wc-block-components-text-input input,
:where(.page-content, .editor-styles-wrapper) .cma-cart-panel .wc-block-components-text-input label {
    color: var(--dark-brown) !important;
    font-family: var(--font-body) !important;
}

:where(.page-content, .editor-styles-wrapper) .cma-cart-panel .wc-block-components-button,
:where(.page-content, .editor-styles-wrapper) .cma-cart-panel .wc-block-cart__submit-button,
:where(.page-content, .editor-styles-wrapper) .cma-cart-panel .wc-block-components-checkout-place-order-button {
    background-color: #f89e2c !important;
    background-image: linear-gradient(135deg, #f16220 0%, #f89e2c 100%) !important;
    border: 0 !important;
    border-radius: 999px !important;
    box-shadow: 0 12px 28px rgba(241, 98, 32, 0.22) !important;
    color: #fff !important;
    font-family: var(--font-heading) !important;
    font-weight: 800 !important;
    min-height: 48px;
}

:where(.page-content, .editor-styles-wrapper) .cma-cart-panel .wc-block-cart__empty-cart__title {
    color: var(--dark-brown) !important;
    font-size: clamp(2rem, 4vw, 3rem) !important;
}

:where(.page-content, .editor-styles-wrapper) .cma-cart-panel .wp-block-woocommerce-product-new,
:where(.page-content, .editor-styles-wrapper) .cma-cart-panel .wp-block-woocommerce-product-collection {
    margin-top: 2rem;
}

:where(.page-content, .editor-styles-wrapper) .cma-cart-panel .wc-block-grid__product,
:where(.page-content, .editor-styles-wrapper) .cma-cart-panel li.wc-block-product {
    overflow: hidden;
    background: #fff !important;
    border: 1px solid rgba(241, 98, 32, 0.14) !important;
    border-radius: 20px !important;
    box-shadow: var(--shadow-md) !important;
    padding: 1rem !important;
    text-align: center !important;
}

:where(.page-content, .editor-styles-wrapper) .cma-cart-panel .wc-block-grid__product-image img,
:where(.page-content, .editor-styles-wrapper) .cma-cart-panel .wc-block-components-product-image img {
    aspect-ratio: 4 / 3;
    width: 100% !important;
    height: 180px !important;
    object-fit: cover !important;
    border-radius: 16px;
}

@media (max-width: 782px) {
    :where(.page-content, .editor-styles-wrapper) .cma-cart-panel,
    :where(.page-content, .editor-styles-wrapper) .cma-cart-notice {
        padding: 1.25rem;
    }

    :where(.page-content, .editor-styles-wrapper) .cma-cart-panel .wc-block-components-sidebar-layout {
        display: block !important;
    }

    :where(.page-content, .editor-styles-wrapper) .cma-cart-panel .wc-block-cart-items,
    :where(.page-content, .editor-styles-wrapper) .cma-cart-panel .wc-block-components-sidebar-layout .wc-block-components-main,
    :where(.page-content, .editor-styles-wrapper) .cma-cart-panel .wc-block-components-sidebar-layout .wc-block-components-sidebar {
        box-shadow: none;
    }
}

/* === CMA Checkout WooCommerce polish === */
:where(.page-content, .editor-styles-wrapper) .cma-checkout-panel .wp-block-woocommerce-checkout {
    max-width: none !important;
    margin: 0 !important;
}

:where(.page-content, .editor-styles-wrapper) .cma-checkout-panel .wc-block-components-sidebar-layout {
    gap: clamp(1.25rem, 3vw, 2rem) !important;
}

@media (min-width: 783px) {
    :where(.page-content, .editor-styles-wrapper) .cma-checkout-panel .wc-block-components-sidebar-layout.is-large {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) minmax(260px, 316px);
        align-items: start;
    }

    :where(.page-content, .editor-styles-wrapper) .cma-checkout-panel .wc-block-components-sidebar-layout.is-large .wc-block-components-main,
    :where(.page-content, .editor-styles-wrapper) .cma-checkout-panel .wc-block-components-sidebar-layout.is-large .wc-block-components-sidebar {
        width: auto !important;
        max-width: none !important;
    }
}

:where(.page-content, .editor-styles-wrapper) .cma-checkout-panel .wc-block-components-main,
:where(.page-content, .editor-styles-wrapper) .cma-checkout-panel .wc-block-components-sidebar,
:where(.page-content, .editor-styles-wrapper) .cma-checkout-panel .wc-block-checkout__main,
:where(.page-content, .editor-styles-wrapper) .cma-checkout-panel .wc-block-checkout__sidebar {
    background: #fff;
    border: 1px solid rgba(241, 98, 32, 0.14) !important;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    padding: clamp(1.25rem, 3vw, 2rem) !important;
}

:where(.page-content, .editor-styles-wrapper) .cma-checkout-panel .wc-block-components-checkout-step,
:where(.page-content, .editor-styles-wrapper) .cma-checkout-panel .wc-block-components-totals-wrapper,
:where(.page-content, .editor-styles-wrapper) .cma-checkout-panel .wc-block-components-order-summary-item {
    border-color: rgba(241, 98, 32, 0.14) !important;
}

:where(.page-content, .editor-styles-wrapper) .cma-checkout-panel .wc-block-components-checkout-step__title,
:where(.page-content, .editor-styles-wrapper) .cma-checkout-panel .wc-block-components-title,
:where(.page-content, .editor-styles-wrapper) .cma-checkout-panel .wc-block-components-order-summary__button-text,
:where(.page-content, .editor-styles-wrapper) .cma-checkout-panel .wc-block-components-product-name,
:where(.page-content, .editor-styles-wrapper) .cma-checkout-panel .wc-block-components-product-name a,
:where(.page-content, .editor-styles-wrapper) .cma-checkout-panel .wc-block-components-totals-item__label {
    color: var(--dark-brown) !important;
    font-family: var(--font-heading) !important;
    font-weight: 800 !important;
}

:where(.page-content, .editor-styles-wrapper) .cma-checkout-panel .wc-block-components-form .wc-block-components-text-input label,
:where(.page-content, .editor-styles-wrapper) .cma-checkout-panel .wc-block-components-text-input label,
:where(.page-content, .editor-styles-wrapper) .cma-checkout-panel .wc-block-components-checkbox__label,
:where(.page-content, .editor-styles-wrapper) .cma-checkout-panel .wc-block-components-radio-control__label,
:where(.page-content, .editor-styles-wrapper) .cma-checkout-panel .wc-block-components-address-form__address_2-toggle {
    color: var(--dark-brown) !important;
    font-family: var(--font-body) !important;
}

:where(.page-content, .editor-styles-wrapper) .cma-checkout-panel .wc-block-components-text-input input,
:where(.page-content, .editor-styles-wrapper) .cma-checkout-panel .wc-block-components-combobox .wc-block-components-combobox-control input.components-combobox-control__input,
:where(.page-content, .editor-styles-wrapper) .cma-checkout-panel .wc-block-components-form .wc-block-components-text-input input,
:where(.page-content, .editor-styles-wrapper) .cma-checkout-panel .wc-block-components-textarea {
    min-height: 48px;
    border-color: rgba(241, 98, 32, 0.22) !important;
    border-radius: 14px !important;
    background: #fffaf3 !important;
    color: var(--dark-brown) !important;
    font-family: var(--font-body) !important;
}

:where(.page-content, .editor-styles-wrapper) .cma-checkout-panel .wc-block-components-text-input input:focus,
:where(.page-content, .editor-styles-wrapper) .cma-checkout-panel .wc-block-components-combobox .wc-block-components-combobox-control input.components-combobox-control__input:focus,
:where(.page-content, .editor-styles-wrapper) .cma-checkout-panel .wc-block-components-textarea:focus {
    border-color: var(--primary-orange) !important;
    box-shadow: 0 0 0 3px rgba(248, 158, 44, 0.18) !important;
    outline: none !important;
}

:where(.page-content, .editor-styles-wrapper) .cma-checkout-panel .wc-block-components-formatted-money-amount,
:where(.page-content, .editor-styles-wrapper) .cma-checkout-panel .wc-block-components-totals-item__value,
:where(.page-content, .editor-styles-wrapper) .cma-checkout-panel .wc-block-components-product-price {
    color: var(--primary-orange) !important;
    font-family: var(--font-heading) !important;
    font-weight: 800 !important;
}

:where(.page-content, .editor-styles-wrapper) .cma-checkout-panel .wc-block-components-button,
:where(.page-content, .editor-styles-wrapper) .cma-checkout-panel .wc-block-components-checkout-place-order-button,
:where(.page-content, .editor-styles-wrapper) .cma-checkout-panel .wc-block-components-address-card__edit {
    background-color: #f89e2c !important;
    background-image: linear-gradient(135deg, #f16220 0%, #f89e2c 100%) !important;
    border: 0 !important;
    border-radius: 999px !important;
    box-shadow: 0 12px 28px rgba(241, 98, 32, 0.22) !important;
    color: #fff !important;
    font-family: var(--font-heading) !important;
    font-weight: 800 !important;
    min-height: 48px;
}

:where(.page-content, .editor-styles-wrapper) .cma-checkout-panel .wc-block-components-button:hover,
:where(.page-content, .editor-styles-wrapper) .cma-checkout-panel .wc-block-components-checkout-place-order-button:hover {
    filter: brightness(0.98);
    transform: translateY(-1px);
}

:where(.page-content, .editor-styles-wrapper) .cma-checkout-panel .wc-block-components-notice-banner {
    border-radius: 16px !important;
    border-color: rgba(241, 98, 32, 0.2) !important;
    background: #fff7eb !important;
    color: var(--dark-brown) !important;
}

@media (max-width: 782px) {
    :where(.page-content, .editor-styles-wrapper) .cma-checkout-panel,
    :where(.page-content, .editor-styles-wrapper) .cma-checkout-notice {
        padding: 1.25rem;
    }

    :where(.page-content, .editor-styles-wrapper) .cma-checkout-panel .wc-block-components-sidebar-layout {
        display: block !important;
    }

    :where(.page-content, .editor-styles-wrapper) .cma-checkout-panel .wc-block-components-main,
    :where(.page-content, .editor-styles-wrapper) .cma-checkout-panel .wc-block-components-sidebar,
    :where(.page-content, .editor-styles-wrapper) .cma-checkout-panel .wc-block-checkout__main,
    :where(.page-content, .editor-styles-wrapper) .cma-checkout-panel .wc-block-checkout__sidebar {
        padding: 1rem !important;
        box-shadow: none;
    }
}

/* === CMA My Account page polish === */
.woocommerce-account .cma-account-panel .woocommerce {
    margin-top: 1.5rem;
}

.woocommerce-account .cma-account-panel .woocommerce-MyAccount-content {
    float: none;
    width: 100%;
    max-width: none;
    padding: clamp(1.5rem, 4vw, 3rem);
    border: 1px solid rgba(241, 98, 32, 0.16);
    border-left: 6px solid var(--color-primary);
    border-radius: var(--border-radius-lg);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 250, 243, 0.98));
    box-shadow: var(--shadow-md);
}

.woocommerce-account .cma-account-panel .woocommerce-MyAccount-content p:first-child {
    margin-top: 0;
}

.woocommerce-account .cma-account-welcome {
    margin-bottom: 1.5rem;
}

.woocommerce-account .cma-account-welcome h4 {
    margin: 0 0 0.5rem;
    color: var(--color-text-main);
    font-family: var(--font-heading);
    font-size: clamp(1.45rem, 2.4vw, 1.9rem);
    line-height: 1.2;
}

.woocommerce-account .cma-account-welcome p {
    max-width: 780px;
    margin: 0;
    color: var(--color-text-muted);
    line-height: 1.65;
}

.woocommerce-account .cma-account-quick-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(1rem, 2vw, 1.25rem);
}

.woocommerce-account .cma-account-quick-summary a {
    display: block;
    min-height: 132px;
    padding: clamp(1.2rem, 3vw, 1.6rem);
    border: 1px solid rgba(44, 24, 16, 0.12);
    border-radius: var(--border-radius-lg);
    background: var(--color-white);
    color: var(--color-text-main) !important;
    box-shadow: var(--shadow-sm);
    text-decoration: none !important;
    transition: box-shadow var(--transition-normal), transform var(--transition-normal);
}

.woocommerce-account .cma-account-quick-summary a:hover,
.woocommerce-account .cma-account-quick-summary a:focus-visible {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.woocommerce-account .cma-account-quick-summary span {
    display: block;
    margin-bottom: 0.45rem;
    color: var(--color-text-main);
    font-family: var(--font-heading);
    font-weight: 700;
}

.woocommerce-account .cma-account-quick-summary strong {
    display: block;
    color: var(--color-text-muted);
    font-family: var(--font-heading);
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    line-height: 1.25;
}

.woocommerce-account .cma-account-panel .woocommerce-MyAccount-content a:not(.button) {
    color: var(--color-primary);
    font-weight: 600;
    text-underline-offset: 3px;
}

.woocommerce-account .cma-account-panel .woocommerce-info,
.woocommerce-account .cma-account-panel .woocommerce-message,
.woocommerce-account .cma-account-panel .woocommerce-error {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1rem;
    width: 100%;
    max-width: none;
    box-sizing: border-box;
    margin: 0;
    padding: clamp(1.25rem, 3vw, 1.75rem);
    border: 1px solid rgba(241, 98, 32, 0.16);
    border-radius: var(--border-radius-lg);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 250, 243, 0.98));
    color: var(--color-text-main);
    box-shadow: var(--shadow-sm);
}

.woocommerce-account .cma-account-panel .woocommerce-info::before,
.woocommerce-account .cma-account-panel .woocommerce-message::before,
.woocommerce-account .cma-account-panel .woocommerce-error::before {
    display: none;
}

.woocommerce-account .cma-account-panel .button,
.woocommerce-account .cma-account-panel .woocommerce-Button,
.woocommerce-account .cma-account-panel button.button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    height: 40px !important;
    min-height: 40px !important;
    padding: 14px 28px !important;
    border: 1px solid transparent !important;
    border-radius: var(--border-radius-full) !important;
    background-color: var(--color-accent) !important;
    color: var(--color-white) !important;
    box-shadow: var(--shadow-sm) !important;
    font-family: var(--font-heading) !important;
    font-size: var(--font-size-base) !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    text-align: center;
    text-decoration: none !important;
    transition: all var(--transition-normal) !important;
}

.woocommerce-account .cma-account-panel .button:hover,
.woocommerce-account .cma-account-panel .button:focus-visible,
.woocommerce-account .cma-account-panel .woocommerce-Button:hover,
.woocommerce-account .cma-account-panel .woocommerce-Button:focus-visible,
.woocommerce-account .cma-account-panel button.button:hover,
.woocommerce-account .cma-account-panel button.button:focus-visible {
    background-color: var(--color-accent-brown) !important;
    color: var(--color-white) !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md), var(--shadow-glow) !important;
}

.woocommerce-account .cma-account-panel .cma-form-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem !important;
}

.woocommerce-account .cma-account-panel .woocommerce-EditAccountForm > .cma-form-actions {
    grid-area: actions;
}

.woocommerce-account .cma-account-panel .cma-cancel-edit-button {
    border-color: rgba(44, 24, 16, 0.2) !important;
    background: rgba(44, 24, 16, 0.08) !important;
    color: var(--color-text-main) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45) !important;
}

.woocommerce-account .cma-account-panel .cma-cancel-edit-button:hover,
.woocommerce-account .cma-account-panel .cma-cancel-edit-button:focus-visible {
    border-color: var(--color-primary) !important;
    background: rgba(241, 98, 32, 0.12) !important;
    color: var(--color-primary) !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm) !important;
}

.woocommerce-account .cma-account-panel .cma-account-cancel-row {
    margin-top: 1rem;
}

.woocommerce-account .cma-account-panel .woocommerce-Addresses {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas: "billing shipping";
    gap: clamp(1rem, 3vw, 1.5rem);
    align-items: stretch;
}

.woocommerce-account .cma-account-panel .woocommerce-Addresses .u-column1 {
    grid-area: billing;
}

.woocommerce-account .cma-account-panel .woocommerce-Addresses .u-column2 {
    grid-area: shipping;
}

.woocommerce-account .cma-account-panel .woocommerce-Address {
    float: none;
    width: auto;
    padding: clamp(1.25rem, 3vw, 1.75rem);
    border: 1px solid rgba(44, 24, 16, 0.12);
    border-radius: var(--border-radius-lg);
    background: var(--color-white);
    box-shadow: var(--shadow-sm);
}

.woocommerce-account .cma-account-panel .woocommerce-Address-title {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.woocommerce-account .cma-account-panel .woocommerce-Address-title h2,
.woocommerce-account .cma-account-panel fieldset legend {
    margin: 0 0 1rem;
    color: var(--color-text-main);
    font-family: var(--font-heading);
    font-size: clamp(1.3rem, 2vw, 1.65rem);
    font-weight: 700;
    line-height: 1.2;
}

.woocommerce-account .cma-account-panel .woocommerce .woocommerce-Address-title h2 {
    margin: 0 0 1rem;
    color: var(--color-text-main);
    font-size: clamp(1.3rem, 2vw, 1.65rem);
    line-height: 1.2;
    letter-spacing: normal;
}

.woocommerce-account .cma-account-panel .woocommerce-EditAccountForm {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(340px, 1.08fr);
    grid-template-areas:
        "first password"
        "last password"
        "display password"
        "email password"
        "actions password";
    gap: 1rem 2rem;
    width: 100%;
    max-width: none;
    align-items: start;
}

.woocommerce-account .cma-account-panel .woocommerce-EditAccountForm .form-row {
    float: none !important;
    width: 100% !important;
    max-width: 460px;
    margin: 0 !important;
    padding: 0 !important;
}

.woocommerce-account .cma-account-panel .woocommerce-EditAccountForm .form-row-first {
    grid-area: first;
}

.woocommerce-account .cma-account-panel .woocommerce-EditAccountForm .form-row-last {
    grid-area: last;
}

.woocommerce-account .cma-account-panel .woocommerce-EditAccountForm > .form-row-wide:nth-of-type(3) {
    grid-area: display;
}

.woocommerce-account .cma-account-panel .woocommerce-EditAccountForm > .form-row-wide:nth-of-type(4) {
    grid-area: email;
}

.woocommerce-account .cma-account-panel .woocommerce-EditAccountForm fieldset {
    grid-area: password;
    width: 100%;
    max-width: none;
}

.woocommerce-account .cma-account-panel .woocommerce-EditAccountForm > p:last-child {
    grid-area: actions;
}

.woocommerce-account .cma-account-panel .woocommerce-EditAccountForm .clear {
    display: none;
}

.woocommerce-account .cma-account-panel .woocommerce-Address address {
    margin: 0;
    color: var(--color-text-muted);
    font-style: normal;
    line-height: 1.65;
}

.woocommerce-account .cma-account-panel .woocommerce-Address-title .edit {
    flex: 0 0 auto;
    color: var(--color-primary);
    font-family: var(--font-heading);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.woocommerce-account .cma-account-panel .woocommerce h2 {
    margin: clamp(1.5rem, 3vw, 2rem) 0 1rem;
    color: var(--color-text-main);
    font-family: var(--font-heading);
    font-size: clamp(1.85rem, 3.2vw, 2.35rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.woocommerce-account .cma-account-panel .woocommerce-form-login,
.woocommerce-account .cma-account-panel .woocommerce-form-register {
    margin-top: 1.25rem;
    padding: clamp(1.25rem, 3vw, 1.75rem);
    border: 1px solid rgba(241, 98, 32, 0.16);
    border-left: 6px solid var(--color-primary);
    border-radius: var(--border-radius-lg);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 250, 243, 0.98));
    box-shadow: var(--shadow-md);
}

.woocommerce-account .cma-account-panel form .form-row {
    margin-bottom: 1rem;
}

.woocommerce-account .cma-account-panel form label {
    display: block;
    margin-bottom: 0.55rem;
    color: var(--color-text-main);
    font-family: var(--font-heading);
    font-size: 0.98rem;
    font-weight: 700;
}

/* CMA form field system: search-inspired translucent fields with readable text. */
:where(.page-content, .editor-styles-wrapper) input:not([type="submit"]):not([type="button"]):not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"]),
:where(.page-content, .editor-styles-wrapper) textarea,
:where(.page-content, .editor-styles-wrapper) select,
.woocommerce input.input-text,
.woocommerce textarea,
.woocommerce select,
.woocommerce-account .cma-account-panel input.input-text,
.woocommerce-account .cma-account-panel input[type="text"],
.woocommerce-account .cma-account-panel input[type="email"],
.woocommerce-account .cma-account-panel input[type="password"],
.woocommerce-account .cma-account-panel input[type="tel"] {
    width: 100%;
    height: 40px;
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid rgba(44, 24, 16, 0.18);
    border-radius: 20px;
    background: rgba(44, 24, 16, 0.08);
    color: var(--color-text-main);
    caret-color: var(--color-primary);
    font-family: var(--font-heading);
    font-size: 0.98rem;
    font-weight: 500;
    line-height: 38px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast);
}

:where(.page-content, .editor-styles-wrapper) textarea,
.woocommerce textarea {
    height: auto;
    min-height: 120px;
    padding-top: 12px;
    padding-bottom: 12px;
    border-radius: var(--border-radius-lg);
    resize: vertical;
}

:where(.page-content, .editor-styles-wrapper) input::placeholder,
:where(.page-content, .editor-styles-wrapper) textarea::placeholder,
:where(.page-content, .editor-styles-wrapper) .woocommerce input::placeholder,
:where(.page-content, .editor-styles-wrapper) .woocommerce textarea::placeholder {
    color: rgba(44, 24, 16, 0.52);
    opacity: 1;
}

.header-search input::placeholder,
.mobile-search-form input::placeholder {
    color: rgba(255, 255, 255, 0.62) !important;
    opacity: 1;
}

.header-search input,
.mobile-search-form input {
    color: var(--color-white) !important;
    caret-color: var(--color-primary);
}

:where(.page-content, .editor-styles-wrapper) input:not([type="submit"]):not([type="button"]):not([type="checkbox"]):not([type="radio"]):focus,
:where(.page-content, .editor-styles-wrapper) textarea:focus,
:where(.page-content, .editor-styles-wrapper) select:focus,
.woocommerce input.input-text:focus,
.woocommerce textarea:focus,
.woocommerce select:focus,
.woocommerce-account .cma-account-panel input:focus {
    border-color: var(--color-primary);
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 0 0 3px rgba(241, 98, 32, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.65);
    outline: none;
}

:where(.page-content, .editor-styles-wrapper) input:-webkit-autofill,
.woocommerce input:-webkit-autofill {
    -webkit-text-fill-color: var(--color-text-main);
    box-shadow: 0 0 0 1000px rgba(44, 24, 16, 0.08) inset;
}

.newsletter-form input,
.site-footer input[type="email"] {
    font-family: var(--font-body) !important;
    font-size: 0.95rem !important;
    font-weight: 400 !important;
    line-height: 38px !important;
    background-color: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 20px !important;
    color: var(--color-white) !important;
    caret-color: var(--color-primary);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.newsletter-form input::placeholder,
.site-footer input[type="email"]::placeholder {
    color: rgba(255, 255, 255, 0.62) !important;
    opacity: 1;
}

.newsletter-form input:focus,
.site-footer input[type="email"]:focus {
    border-color: var(--color-primary) !important;
    background-color: rgba(255, 255, 255, 0.14) !important;
    box-shadow: 0 0 0 2px rgba(240, 90, 40, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
    outline: none;
}

:where(.page-content, .editor-styles-wrapper) .cma-contact-form-section form.contact-form {
    width: 100%;
    margin-top: 1.5rem;
    padding: clamp(1.25rem, 3vw, 2rem);
    border: 1px solid rgba(241, 98, 32, 0.16);
    border-left: 6px solid var(--color-primary);
    border-radius: var(--border-radius-lg);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 250, 243, 0.98));
    box-shadow: var(--shadow-sm);
}

:where(.page-content, .editor-styles-wrapper) .cma-contact-form-section .wp-block-jetpack-contact-form {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem 1.5rem;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

:where(.page-content, .editor-styles-wrapper) .cma-contact-form-section .wp-block-jetpack-contact-form > *,
:where(.page-content, .editor-styles-wrapper) .cma-contact-form-section form > * {
    margin: 0;
}

:where(.page-content, .editor-styles-wrapper) .cma-contact-form-section .grunion-field-textarea-wrap,
:where(.page-content, .editor-styles-wrapper) .cma-contact-form-section .contact-form-field-textarea,
:where(.page-content, .editor-styles-wrapper) .cma-contact-form-section .wp-block-button {
    grid-column: 1 / -1;
}

:where(.page-content, .editor-styles-wrapper) .cma-contact-form-section textarea {
    min-height: 180px;
    height: 180px;
    line-height: 1.5;
}

:where(.page-content, .editor-styles-wrapper) .cma-contact-form-section label,
:where(.page-content, .editor-styles-wrapper) .cma-contact-form-section .jetpack-field-label {
    display: block;
    margin-bottom: 0.55rem;
    color: var(--color-text-main);
    font-family: var(--font-heading);
    font-size: 0.98rem;
    font-weight: 700;
}

@media (max-width: 782px) {
    :where(.page-content, .editor-styles-wrapper) .cma-contact-form-section .wp-block-jetpack-contact-form,
    :where(.page-content, .editor-styles-wrapper) .cma-contact-form-section form {
        grid-template-columns: 1fr;
    }
}

.woocommerce-account .cma-account-panel .woocommerce-notices-wrapper:not(:empty) {
    margin-bottom: 1.5rem;
}

.woocommerce-account .cma-account-panel .woocommerce-EditAccountForm > .woocommerce-notices-wrapper:not(:empty) {
    grid-column: 1 / -1;
}

.woocommerce-account .cma-account-panel fieldset {
    margin: 0;
    padding: clamp(1.35rem, 3vw, 1.75rem);
    border: 1px solid rgba(44, 24, 16, 0.12);
    border-radius: var(--border-radius-lg);
    background: var(--color-white);
    box-shadow: var(--shadow-sm);
}

.woocommerce-account .cma-account-panel fieldset legend {
    display: block;
    float: left;
    width: 100%;
    margin: 0 0 1.25rem;
    padding: 0;
    color: var(--color-text-main);
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.2;
}

.woocommerce-account .cma-account-panel fieldset legend + * {
    clear: both;
}

.woocommerce-account .cma-account-panel fieldset .form-row {
    max-width: none;
}

.woocommerce-account .cma-account-panel fieldset .form-row + .form-row {
    margin-top: 1rem !important;
}

.woocommerce-account .cma-account-panel form .woocommerce-address-fields {
    width: 100%;
    max-width: none;
}

.woocommerce-account .cma-account-panel form .woocommerce-address-fields__field-wrapper {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-areas:
        "first last country"
        "address1 address2 city"
        "state postcode phone"
        "email email email";
    gap: 1.35rem 1.35rem;
    align-items: start;
    width: 100%;
    max-width: none;
}

.woocommerce-account .cma-account-panel form .woocommerce-address-fields .form-row {
    float: none !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.woocommerce-account .cma-account-panel form .woocommerce-address-fields #billing_first_name_field,
.woocommerce-account .cma-account-panel form .woocommerce-address-fields #shipping_first_name_field {
    grid-area: first;
}

.woocommerce-account .cma-account-panel form .woocommerce-address-fields #billing_last_name_field,
.woocommerce-account .cma-account-panel form .woocommerce-address-fields #shipping_last_name_field {
    grid-area: last;
}

.woocommerce-account .cma-account-panel form .woocommerce-address-fields #billing_company_field,
.woocommerce-account .cma-account-panel form .woocommerce-address-fields #shipping_company_field {
    grid-area: company;
}

.woocommerce-account .cma-account-panel form .woocommerce-address-fields #billing_country_field,
.woocommerce-account .cma-account-panel form .woocommerce-address-fields #shipping_country_field {
    grid-area: country;
}

.woocommerce-account .cma-account-panel form .woocommerce-address-fields #billing_address_1_field,
.woocommerce-account .cma-account-panel form .woocommerce-address-fields #shipping_address_1_field {
    grid-area: address1;
}

.woocommerce-account .cma-account-panel form .woocommerce-address-fields #billing_address_2_field,
.woocommerce-account .cma-account-panel form .woocommerce-address-fields #shipping_address_2_field {
    grid-area: address2;
    align-self: end;
}

.woocommerce-account .cma-account-panel form .woocommerce-address-fields #billing_city_field,
.woocommerce-account .cma-account-panel form .woocommerce-address-fields #shipping_city_field {
    grid-area: city;
}

.woocommerce-account .cma-account-panel form .woocommerce-address-fields #billing_state_field,
.woocommerce-account .cma-account-panel form .woocommerce-address-fields #shipping_state_field {
    grid-area: state;
}

.woocommerce-account .cma-account-panel form .woocommerce-address-fields #billing_postcode_field,
.woocommerce-account .cma-account-panel form .woocommerce-address-fields #shipping_postcode_field {
    grid-area: postcode;
}

.woocommerce-account .cma-account-panel form .woocommerce-address-fields #billing_phone_field,
.woocommerce-account .cma-account-panel form .woocommerce-address-fields #shipping_phone_field {
    grid-area: phone;
}

.woocommerce-account .cma-account-panel form .woocommerce-address-fields #billing_email_field {
    grid-area: email;
}

.woocommerce-account .cma-account-panel form .woocommerce-address-fields p:last-child {
    margin-top: 1.5rem !important;
}

:where(.page-content, .editor-styles-wrapper) select,
.woocommerce select {
    appearance: none;
    line-height: 38px;
    background-image: linear-gradient(45deg, transparent 50%, var(--color-text-main) 50%), linear-gradient(135deg, var(--color-text-main) 50%, transparent 50%);
    background-position: calc(100% - 18px) 17px, calc(100% - 12px) 17px;
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
    padding-right: 2.4rem;
}

.woocommerce-account .cma-account-panel .select2-container .select2-selection--single,
.select2-container--default .select2-selection--single {
    height: 40px;
    border: 1px solid rgba(44, 24, 16, 0.18);
    border-radius: 20px;
    background: rgba(44, 24, 16, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast);
}

.woocommerce-account .cma-account-panel .select2-container--default.select2-container--focus .select2-selection--single,
.woocommerce-account .cma-account-panel .select2-container--default.select2-container--open .select2-selection--single,
.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--open .select2-selection--single {
    border-color: var(--color-primary);
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 0 0 3px rgba(241, 98, 32, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.woocommerce-account .cma-account-panel .select2-container--default .select2-selection--single .select2-selection__rendered,
.select2-container--default .select2-selection--single .select2-selection__rendered {
    display: flex;
    align-items: center;
    height: 38px;
    min-height: 38px;
    color: var(--color-text-main);
    line-height: 1.2;
    padding-top: 0 !important;
    padding-right: 34px;
    padding-bottom: 0 !important;
    padding-left: 14px;
    font-family: var(--font-heading);
    font-size: 0.98rem;
    font-weight: 500;
}

.select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: rgba(44, 24, 16, 0.52);
}

.woocommerce-account .cma-account-panel .select2-container--default .select2-selection--single .select2-selection__arrow,
.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 38px;
    right: 8px;
}

.select2-dropdown {
    overflow: hidden;
    margin-top: 0.35rem;
    border: 1px solid rgba(44, 24, 16, 0.12);
    border-radius: var(--border-radius-lg);
    background: rgba(255, 250, 243, 0.98);
    box-shadow: var(--shadow-lg);
    color: var(--color-text-main);
    font-family: var(--font-body);
}

.select2-search--dropdown {
    padding: 0.75rem;
    background: rgba(44, 24, 16, 0.04);
}

.select2-container--default .select2-search--dropdown .select2-search__field {
    height: 40px;
    border: 1px solid rgba(44, 24, 16, 0.14);
    border-radius: 20px;
    background: var(--color-white);
    color: var(--color-text-main);
    padding: 6px 14px;
    font-family: var(--font-body);
}

.select2-container--default .select2-results > .select2-results__options {
    max-height: 280px;
    padding: 0.4rem;
}

.select2-results__option {
    margin: 0.18rem 0;
    padding: 0.72rem 0.9rem;
    border-radius: 14px;
    color: var(--color-text-main);
    font-family: var(--font-heading);
    font-size: 0.96rem;
    font-weight: 700;
    transition: background-color var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
}

.select2-container--default .select2-results__option--highlighted[aria-selected],
.select2-container--default .select2-results__option--highlighted[data-selected] {
    background: var(--color-primary);
    color: var(--color-white);
}

.select2-container--default .select2-results__option[aria-selected="true"],
.select2-container--default .select2-results__option[data-selected="true"] {
    background: var(--dark-brown);
    color: var(--color-white);
}

.woocommerce-account .cma-copy-billing-card {
    width: min(100%, 905px);
    margin: 1.25rem 0 0;
    padding: 1rem 1.25rem;
    border: 1px solid rgba(44, 24, 16, 0.12);
    border-radius: var(--border-radius-lg);
    background: var(--color-white);
    box-shadow: var(--shadow-sm);
}

.woocommerce-account .cma-copy-billing-card label {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin: 0;
    color: var(--color-text-main);
    font-family: var(--font-heading);
    font-weight: 700;
}

.woocommerce-account .cma-copy-billing-card input[type="checkbox"] {
    width: auto;
    height: auto;
    min-height: 0;
}

.woocommerce-account .cma-copy-billing-card p {
    margin: 0.45rem 0 0;
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

.woocommerce-account .cma-account-panel .woocommerce-EditAccountForm em {
    display: block;
    margin-top: 0.35rem;
    color: var(--color-text-muted);
    font-size: 0.9rem;
    line-height: 1.45;
}

@media (max-width: 980px) {
    .woocommerce-account .cma-account-quick-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 782px) {
    .woocommerce-account .cma-account-panel .woocommerce-MyAccount-content {
        padding: 1.25rem;
    }

    .woocommerce-account .cma-account-panel .woocommerce-EditAccountForm {
        grid-template-columns: 1fr;
        grid-template-areas:
            "first"
            "last"
            "display"
            "email"
            "password"
            "actions";
        width: 100%;
    }

    .woocommerce-account .cma-account-panel .woocommerce-EditAccountForm .form-row,
    .woocommerce-account .cma-account-panel form .woocommerce-address-fields .form-row,
    .woocommerce-account .cma-account-panel form .woocommerce-address-fields .form-row-wide {
        max-width: none;
    }

    .woocommerce-account .cma-account-panel form .woocommerce-address-fields,
    .woocommerce-account .cma-copy-billing-card {
        width: 100%;
    }

    .woocommerce-account .cma-account-panel form .woocommerce-address-fields__field-wrapper {
        grid-template-columns: 1fr !important;
        grid-template-areas:
            "first"
            "last"
            "country"
            "address1"
            "address2"
            "city"
            "state"
            "postcode"
            "phone"
            "email" !important;
        gap: 1.15rem !important;
        max-width: 100%;
        overflow: visible;
    }

    .woocommerce-account .cma-account-panel form .woocommerce-address-fields .form-row,
    .woocommerce-account .cma-account-panel form .woocommerce-address-fields .form-row-first,
    .woocommerce-account .cma-account-panel form .woocommerce-address-fields .form-row-last,
    .woocommerce-account .cma-account-panel form .woocommerce-address-fields .form-row-wide {
        float: none !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        margin-right: 0 !important;
        margin-left: 0 !important;
    }

    .woocommerce-account .cma-account-panel .woocommerce-info,
    .woocommerce-account .cma-account-panel .woocommerce-message,
    .woocommerce-account .cma-account-panel .woocommerce-error {
        align-items: flex-start;
        flex-direction: column;
    }

    .woocommerce-account .cma-account-quick-summary,
    .woocommerce-account .cma-account-panel .woocommerce-Addresses {
        grid-template-columns: 1fr !important;
    }

    .woocommerce-account .cma-account-panel .woocommerce-Addresses {
        grid-template-areas:
            "billing"
            "shipping" !important;
        max-width: 100%;
        overflow: visible;
    }

    .woocommerce-account .cma-account-panel .woocommerce-Address {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
    }
}

/* === CMA My Account navigation dropdown === */
.main-navigation li.menu-item-has-children > a[href*="my-account"]::after {
    content: "\f107";
    display: inline-block;
    margin-left: 0.45rem;
    font-family: "Font Awesome 6 Free";
    font-size: 0.8em;
    font-weight: 900;
    line-height: 1;
}

.main-navigation li.menu-item-has-children > a[href*="my-account"] + .sub-menu {
    min-width: 210px;
}

.mobile-nav-links .cma-account-menu-link a {
    font-size: 0.95rem;
    opacity: 0.92;
}

/* Start of styling for Post Links on Archives/News Page */
.wp-block-post-template .wp-block-post-title a {
    color: #333333 !important; /* Dark neutral text color instead of orange */
    text-decoration: none !important; /* Remove harsh default underline */
    font-size: 1.25rem; /* Standardized link heading size */
    font-weight: 600; /* Medium-bold structure */
    transition: color 0.2s ease-in-out;
}

/* Hover & Focus state */
.wp-block-post-template .wp-block-post-title a:hover,
.wp-block-post-template .wp-block-post-title a:focus {
    color: #e65100 !important; /* Primary theme color on hover */
    text-decoration: underline !important; /* Underline appears only on hover */
}

/* Spacing between post titles in the list */
.wp-block-post-template li {
    margin-bottom: 1.25rem !important;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #f0f0f0; /* Optional subtle dividing line */
}
/* End of styling for Post Links on Archives/News Page */
