/*
Theme Name: Orange by Hope Mission
Theme URI: https://hopemission.com
Author: Hope Mission
Author URI: https://hopemission.com
Description: A lightweight, mobile-first WordPress theme designed for Hope Mission. Features custom hero sections, CTAs, and comprehensive admin settings.
Version: 1.0.13
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: orange-theme
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, mobile-first, responsive

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned with others.
*/

/* ==========================================================================
   Base Styles & Reset
   ========================================================================== */

:root {
    --header-height: 60px;
}

@media (min-width: 1025px) {
    :root {
        --header-height: 50px;
    }
}

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

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body:not(.wp-admin) {
    font-family: century-gothic, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    color: #333;
    background: #fff;
    overflow-x: hidden;
}

p {
    font-weight: 400;
}

/* ==========================================================================
   Typography
   ========================================================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "poppins", sans-serif;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #292929;
}

strong,
b {
    font-weight: 700;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    font-weight: 300;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.5rem;
}

h5 {
    font-size: 1.25rem;
}

h6 {
    font-size: 1rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: #F36F28;
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #d45a1a;
}

/* Gradient Classes */
.has-orange-gradient-gradient-background {
    background: linear-gradient(225deg, #f36f28, #ed9772) !important;
}

.has-teal-gradient-gradient-background {
    background: linear-gradient(180deg, #0d7d9c 0%, rgba(34,165,167,0.81) 99%) !important;
}

.has-dark-blue-gradient-gradient-background {
    background: linear-gradient(180deg, rgba(25,39,66,0.76) 1%, rgba(32,34,71,0.87) 100%) !important;
}

.has-navy-blue-gradient-gradient-background {
    background: linear-gradient(222deg, rgba(9,20,94,0.75) 0%, rgba(48,104,165,0.92) 100%) !important;
}

/* Cover block gradient overlay fix */
.wp-block-cover__background.has-background-gradient {
    background-color: transparent !important;
}

.wp-block-cover.chwh-button .wp-block-cover__background.has-background-gradient {
    transition: background 0.3s ease;
}

.wp-block-cover.chwh-button:hover .wp-block-cover__background.has-background-gradient {
    background: rgba(242, 108, 108, 0.75) !important;
}

/* Utility classes */
.uppercase {
    text-transform: uppercase;
}

/* CHWH FAQ Details block */
.wp-block-details.chwh-faq summary {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.wp-block-details.chwh-faq summary::-webkit-details-marker {
    display: none;
}

.wp-block-details.chwh-faq summary::before {
    display: inline-block !important;
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    content: "\f138" !important;
    transition: transform 0.3s ease;
}

.wp-block-details.chwh-faq summary::after {
    display: none;
}

.wp-block-details.chwh-faq[open] summary::before {
    transform: rotate(90deg);
}

/* Custom underline class */
.underline {
    text-decoration: underline;
    text-decoration-color: #f36f28;
    text-decoration-thickness: 5px;
    text-underline-offset: 5px;
}

blockquote {
    font-size: 18px;
    font-weight: 700;
    color: #f36f28;
    margin: 1.5rem 0;
    padding: 0;
    border: none;
}

blockquote p {
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
}

/* Gutenberg blockquote block */
.wp-block-quote {
  font-size: 28px;
  line-height: 1.3em;
  text-align: center;
  font-weight: 700;
  color: #f36f28;
  border-left: none;
  padding-left: 0;
}

.wp-block-quote p {
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
}

.wp-block-quote cite,
.wp-block-quote footer,
blockquote cite,
blockquote footer {
    font-size: 14px;
    font-weight: 400;
    color: #666;
    font-style: normal;
}

/* Gutenberg Button Block */
.wp-block-button__link {
    background-color: #F36F28;
    color: #fff;
    padding: 12px 30px;
    border-radius: 10px;
    font-family: poppins, sans-serif;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.wp-block-button__link:hover {
    background-color: #d45a1a;
    color: #fff;
}

/* Outline button style */
.wp-block-button.is-style-outline .wp-block-button__link {
    background-color: transparent;
    border: 2px solid #F36F28;
    color: #F36F28;
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
    background-color: #F36F28;
    color: #fff;
}

/* Images and Videos */
img,
video {
    border-radius: 10px;
}

/* SVG images - no rounded corners */
img[src$=".svg"] {
    border-radius: 0;
}

/* Logo images - no rounded corners */
.custom-logo,
.footer-logo,
.site-logo img,
.donation-hero-logos img {
    border-radius: 0;
}

/* Hero section images - no rounded corners */
.hero-section img,
.donation-hero-image img {
    border-radius: 0;
}

/* Annual Report Cover - stacked document effect */
.annual-report-cover {
    position: relative;
    max-width: 600px;
    margin: 40px auto;
    z-index: 0;
}

.annual-report-cover::before,
.annual-report-cover::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    border-radius: 6px;
    z-index: -1;
}

.annual-report-cover::before {
    transform: rotate(2deg) translate(4px, 6px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.annual-report-cover::after {
    transform: rotate(-1.5deg) translate(-3px, 8px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.annual-report-cover img {
    position: relative;
    display: block;
    width: 100%;
    height: auto;
    border-radius: 6px;
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.15),
        0 3px 8px rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   Layout
   ========================================================================== */

.container {
    width: 80%;
    max-width: 80%;
    margin: 0 auto;
    padding: 0 20px;
}

.site-content {
    min-height: 60vh;
    padding: 2rem 0;
    padding-top: calc(var(--header-height) + 90px);
    /* Prevent content from hiding behind fixed header */
}

/* Hide page titles */
.page .entry-header .entry-title,
.single .entry-header .entry-title {
    display: none;
}

/* Gutenberg Alignments & Utilities */
.no-auto-margin {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.carousel-block {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
}

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

.alignwide {
    width: 90vw;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -45vw;
    margin-right: -45vw;
}

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

.alignleft {
    float: left;
    margin-right: 1em;
}

.alignright {
    float: right;
    margin-left: 1em;
}

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

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

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

/* Attributes support */
.has-text-color {
    color: inherit;
    /* Should inherit from style attr if var is not set, or override */
}

/* Ensure the span inherits the parents color if set */
.orange-number-counter.has-text-color .counter-value {
    color: inherit;
}

/* Utility Classes */
.rounded-corners {
    border-radius: 10px;
    overflow: hidden;
    /* Often useful for rounded corners on containers with images */
}

.pull-quote-block-left {
    margin-right: -100px;
    position: relative;
    z-index: 5;
}

.pull-quote-block-right {
    margin-left: -100px;
    position: relative;
    z-index: 5;
}

.pull-quote-block {
    position: relative;
    z-index: 5;
}

.fullwidth-header-button {
    background-color: #f36f28;
    color: #ffffff;
    border-radius: 10px;
    font-weight: 700;
    padding: 12px 30px;
    display: inline-block;
    text-decoration: none;
    margin-top: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    max-width: 10vw;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.story-content-container {
    max-width: 60%;
    margin: 0 auto;
}

.story-content-container p {
    font-size: 20px;
}

.story-content-container .entry-content>* {
    margin-bottom: 2rem;
}

/* Force alignfull to respect container in Story Template */
.story-content-container .alignfull {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.width-60 {
    max-width: 60%;
}

/* Font Sizes */
.has-small-font-size {
    font-size: 16px;
}

.has-medium-font-size {
    font-size: 24px;
}

.has-large-font-size {
    font-size: 36px;
}

.has-extra-large-font-size {
    font-size: 72px;
}

.has-xxl-font-size {
    font-size: 100px;
}

/* Colors */
.has-orange-primary-color {
    color: #F36F28;
}

.has-orange-primary-background-color {
    background-color: #F36F28;
}

.has-orange-dark-color {
    color: #d45a1a;
}

.has-orange-dark-background-color {
    background-color: #d45a1a;
}

.has-teal-color {
    color: #1f7d9c;
}

.has-teal-background-color {
    background-color: #1f7d9c;
}

.has-dark-gray-color {
    color: #333333;
}

.has-dark-gray-background-color {
    background-color: #333333;
}

.has-medium-gray-color {
    color: #666666;
}

.has-medium-gray-background-color {
    background-color: #666666;
}

.has-light-gray-color {
    color: #f5f5f5;
}

.has-light-gray-background-color {
    background-color: #f5f5f5;
}

.has-white-color {
    color: #ffffff;
}

.has-white-background-color {
    background-color: #ffffff;
}

.has-blue-color {
    color: #4574BA !important;
}

.has-blue-background-color {
    background-color: #4574BA;
}

.has-red-color {
    color: #d02320 !important;
}

.has-red-background-color {
    background-color: #d02320;
}

.has-coral-color {
    color: #F26C6C !important;
}

.has-coral-background-color {
    background-color: #F26C6C;
}

/* Ensure inheritence works for custom blocks that wrap content */
.orange-number-counter.has-text-color .counter-value {
    color: inherit;
}

.orange-number-counter[class*="has-"][class*="-font-size"] .counter-value {
    font-size: inherit;
}

/* Image Gallery Block */
.orange-image-gallery {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #000;
    border-radius: 10px;
}

.orange-image-gallery {
    position: relative;
    overflow: hidden;
}

.orange-image-gallery-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.orange-image-gallery-slide {
    min-width: 100%;
    box-sizing: border-box;
}

.orange-image-gallery-slide img {
    /* width: 100%;  Let standard block styles handle width if needed, or: */
    width: 100%;
    display: block;
    object-fit: cover;
    /* Ensure consistent aspect ratio fill if height is constrained */
}

/* Video Block Play Button */
.wp-block-video {
    position: relative;
    display: inline-block;
    width: 100%;
    /* Ensure it takes full width of container */
}

/* Play Button Circle */
.wp-block-video::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background-color: #ffffff;
    border-radius: 50%;
    z-index: 10;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.2s ease;
    opacity: 1;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Play Button Icon (Font Awesome) */
.wp-block-video::after {
    content: '\f04b';
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-40%, -50%);
    /* Optical centering */
    font-size: 30px;
    color: #F36F28;
    /* Orange Primary */
    z-index: 11;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.2s ease;
    opacity: 1;
}

/* Hide when playing */
.wp-block-video.is-playing::before,
.wp-block-video.is-playing::after {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.1);
    /* Subtle scale out effect */
}

/* Adjust icon transform for the scale out to match centering logic */
.wp-block-video.is-playing::after {
    transform: translate(-40%, -50%) scale(1.1);
}

.gallery-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1;
}

.gallery-slide.active {
    opacity: 1;
    z-index: 2;
}

/* ==========================================================================
   Header Styles
   ========================================================================== */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: auto;
    background: #fff;
    z-index: 1000;
    transition: box-shadow 0.3s ease, background 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
}

/* Offset header when WordPress admin bar is present */
.admin-bar .site-header {
    top: 32px;
}

/* Mobile admin bar offset */
@media screen and (max-width: 782px) {
    .admin-bar .site-header {
        top: 46px;
    }
}

.site-header.transparent {
    opacity: 1;
}

.site-header.homepage-header {
    opacity: 1 !important;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 15px 30px;
    transition: padding 0.3s ease;
}

/* Compact header after scrolling */
.site-header.header-scrolled .header-container {
    padding: 8px 30px;
}

.site-header.header-scrolled .site-logo img,
.site-header.header-scrolled .site-logo .custom-logo {
    height: 45px;
    transition: height 0.3s ease;
}

.site-logo {
    display: flex;
    align-items: center;
    height: 100%;
}

.site-logo a {
    display: flex;
    align-items: center;
    height: 100%;
}

.site-logo img,
.site-logo .custom-logo {
    height: 70px;
    width: auto;
    display: block;
    transition: height 0.3s ease;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Navigation */
.main-navigation {
    display: flex;
    align-items: center;
    height: 100%;
}

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

.main-navigation li {
    position: relative;
}

.main-navigation a {
    font-size: 16px;
    color: #F36F28;
    font-weight: 900;
    padding: 10px 0;
    display: flex;
    align-items: center;
    gap: 5px;
}

.main-navigation a:hover {
    color: #d45a1a;
}

/* Active menu item — use a pseudo-element underline instead of text-decoration
   so the chevron (::after) on dropdown parents is not underlined */
.main-navigation .current-menu-item > a,
.main-navigation .current-menu-ancestor > a {
    position: relative;
}

.main-navigation .current-menu-item > a::before,
.main-navigation .current-menu-ancestor > a::before {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 0;
    /* Span only the text, not the chevron — calc via CSS: 100% minus gap and icon width */
    right: 0;
    height: 3px;
    background: currentColor;
    pointer-events: none;
}

/* For items with children, stop the underline before the chevron */
.main-navigation .current-menu-item.menu-item-has-children > a::before,
.main-navigation .current-menu-ancestor.menu-item-has-children > a::before {
    /* 5px gap + ~12px icon + 6px padding = ~23px from right */
    right: 22px;
}

/* Dropdown Menu */
.main-navigation .menu-item-has-children>a::after {
    content: '\f078';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 12px;
    color: #F36F28;
    margin-left: 5px;
}

.main-navigation .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 200px;
    padding: 10px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    flex-direction: column;
    gap: 0;
    pointer-events: none;
}

.main-navigation .menu-item-has-children:hover>.sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.main-navigation .sub-menu li {
    width: 100%;
}

.main-navigation .sub-menu a {
    color: #000;
    font-weight: 700;
    padding: 12px 20px;
    display: block;
}

.main-navigation .sub-menu a:hover {
    background: #f5f5f5;
}

/* CTA Menu Item */
.main-navigation .menu-item-cta>a {
    background: #b2b92f;
    color: #fff !important;
    font-weight: 700;
    text-transform: uppercase;
    padding: 12px 30px;
    border-radius: 10px;
    text-align: center;
}

.main-navigation .menu-item-cta>a:hover {
    background: #9aa327;
    color: #fff !important;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: #F36F28;
    cursor: pointer;
    padding: 10px;
}

/* Mobile Menu Footer - Hidden by default, shown via JS/CSS on mobile */
.mobile-menu-footer {
    display: none;
}



/* ==========================================================================
   Hero Sections
   ========================================================================== */

.hero-section {
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    min-height: 500px;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin-top: 0;
}

/* Italic text in hero sections gets custom underline */
.hero-section .hero-heading em,
.hero-section .hero-subheading em,
.hero-section .hero-heading i:not(.fa):not(.fas):not(.far):not(.fab),
.hero-section .hero-subheading i:not(.fa):not(.fas):not(.far):not(.fab) {
    font-style: normal;
    position: relative;
    display: inline-block;
}

.hero-section .hero-heading em::after,
.hero-section .hero-subheading em::after,
.hero-section .hero-heading i:not(.fa):not(.fas):not(.far):not(.fab)::after,
.hero-section .hero-subheading i:not(.fa):not(.fas):not(.far):not(.fab)::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -5px;
    height: 25px;
    background-color: var(--hero-button-color, #F36F28);
    z-index: -1;
}

/* Homepage Hero - Full section link */
.hero-section-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    cursor: pointer;
}

.hero-section.homepage-hero:hover .hero-button {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

/* Homepage Hero */
.hero-section.homepage-hero {
    min-height: calc(100vh - 80px);
    /* Full height minus header */
    height: calc(100vh - 80px);
    margin-top: 0;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

/* Adjust for admin bar when logged in */
.admin-bar .hero-section.homepage-hero {
    min-height: calc(100vh - var(--header-height) - 32px);
    /* Minus header and admin bar */
    height: calc(100vh - var(--header-height) - 32px);
}

/* Mobile admin bar adjustment */
@media screen and (max-width: 782px) {
    .admin-bar .hero-section.homepage-hero {
        min-height: calc(100vh - var(--header-height) - 46px);
        height: calc(100vh - var(--header-height) - 46px);
    }
}

.hero-section.homepage-hero .container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 30px;
}

.hero-section.homepage-hero .hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
    text-align: left;
    max-width: 100%;
}

.hero-section.homepage-hero h1,
.hero-section.homepage-hero .hero-heading {
    font-family: poppins, sans-serif;
    font-size: 10vh;
    font-weight: 900;
    /* letter-spacing: 0.1em;*/
    color: #fff;
    margin-bottom: 40px;
    margin-top: 0;
    line-height: 1.1;
    max-width: 66%;
}

.hero-section.homepage-hero .hero-button-area {
    margin-top: 0;
}

.hero-section.homepage-hero .hero-button {
    display: inline-block;
    font-family: poppins, sans-serif;
    font-size: 4vh;
    font-weight: 900;
    letter-spacing: 0.1em;
    padding: 10px 60px;
    border-radius: 10px;
    color: #fff;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.hero-section.homepage-hero .hero-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

/* Default Page Hero */
.hero-section.default-hero {
    min-height: 70vh;
}

.hero-section.default-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0));
    z-index: 1;
}

.hero-section.default-hero .hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
}

.hero-section.default-hero h1 {
    font-size: 45px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 15px;
    max-width: 40%;
}

.hero-section.default-hero .hero-subheading {
    font-size: 19px;
    font-weight: 300;
    color: #fff;
    max-width: 40%;
}

.hero-section.default-hero .hero-button {
    display: inline-block;
    font-family: poppins, sans-serif;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 12px 30px;
    border-radius: 10px;
    color: #fff;
    transition: all 0.3s ease;
    text-transform: uppercase;
    margin-top: 20px;
    text-decoration: none;
}

.hero-section.default-hero .hero-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    color: #fff;
}

/* ==========================================================================
   CTA Blocks
   ========================================================================== */

.homepage-cta-section {
    margin-left: auto;
    margin-right: auto;
    display: flex;
    justify-content: center;
}

.cta-block {
    position: relative;
    height: 380px;
    width: 100%;
    max-width: 500px;
    overflow: hidden;
    cursor: pointer;
    border-radius: 8px;
    transition: transform 0.3s ease;
    display: block;
}

.cta-block:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.cta-block-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.cta-block-bar {
    position: absolute;
    bottom: 2vh;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 15px;
}

.cta-block-heading {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 10px 0;
    text-align: center;
}

.cta-block-subheading {
    font-size: 16px;
    font-weight: 400;
    color: #fff;
    margin: 0;
    text-align: center;
}

/* Fullwidth Header Template */
.fullwidth-header {
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    height: 66vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    margin-top: var(--header-height, 60px);
    margin-bottom: 10vh;
    box-shadow: 0px 12px 18px -6px rgba(0, 0, 0, 0.3);
}

/* Desktop: match larger header height */
@media (min-width: 1025px) {
    .fullwidth-header {
        margin-top: 150px;
    }
}

/* Mobile: match 70px header height */
@media (max-width: 768px) {
    .fullwidth-header {
        margin-top: 70px;
    }
}

/* Story posts - no extra margin-top needed on fullwidth header */
.single-story .fullwidth-header {
    margin-top: 0 !important;
}

.fullwidth-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(109deg, rgba(0, 0, 0, 0.75) 34%, rgba(243, 111, 40, 0) 58%);
    z-index: 1;
}

.fullwidth-header-content {
    position: relative;
    z-index: 2;
    color: #fff;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* align-items: flex-start; Removed to allow children to stretch */
    height: 100%;

}

.fullwidth-header-title {
    font-size: 45px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
    line-height: 1.2;
    max-width: 40%;
}

.fullwidth-header-subheading {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    max-width: 40%;
}

/* Force Fullwidth Header Template to flush against header - no padding needed */
body.page-template-template-fullwidth-header .site-content,
body.page-template-template-story .site-content {
    padding-top: 0 !important;
}

/* Fullwidth Header Template - always opaque header */
body.page-template-template-fullwidth-header .site-header,
body.page-template-template-fullwidth-header .site-header.transparent {
    background: #fff !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
}

/* Custom Underline for Fullwidth Header Template */
body.page-template-template-fullwidth-header u,
body.page-template-template-fullwidth-header i:not(.fa):not(.fas):not(.far):not(.fab) {
    text-decoration: none;
    font-style: normal;
    position: relative;
    display: inline-block;
}

body.page-template-template-fullwidth-header u::after,
body.page-template-template-fullwidth-header i:not(.fa):not(.fas):not(.far):not(.fab)::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 3px;
    height: 10px;
    background-color: #f36f28;
    z-index: -1;
}

/* ==========================================================================
   Footer Styles
   ========================================================================== */

.site-footer {
    background: #fff;
    min-height: 20vh;
    padding: 40px 0 0 0;
    max-width: 80%;
    margin-left: auto;
    margin-right: auto;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 0.05fr 1fr 1fr 1fr 1fr;
    gap: 30px;
    padding: 0 30px 30px 30px;
    min-height: 18vh;
}

.footer-column {
    display: flex;
    flex-direction: column;
}

/* First Column - Logo & Content */
.footer-column.footer-logo-column {
    padding-right: 20px;
}

.footer-logo {
    width: 170px;
    margin-bottom: 20px;
}

.footer-content {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
}

/* Vertical Divider */
.footer-divider {
    width: 2px;
    background: #F36F28;
    height: 100%;
    align-self: stretch;
}

/* Footer Menus */
.footer-menu-title {
    font-size: 14px;
    font-weight: 700;
    color: #F36F28;
    margin-bottom: 15px;
    font-family: poppins, sans-serif;
}

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

.footer-menu li {
    margin-bottom: 10px;
}

.footer-menu a {
    font-size: 14px;
    font-weight: 700;
    color: #333;
    transition: color 0.3s ease;
}

.footer-menu a:hover {
    color: #F36F28;
}

/* Footer Bottom */
.footer-bottom {
    display: grid;
    grid-template-columns: 1.5fr 4.5fr;
    gap: 30px;
    padding: 20px 30px;
    border-top: 1px solid #e0e0e0;
    align-items: center;
}

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

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #999999;
    border-radius: 50%;
    color: #fff;
    font-size: 18px;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: #F36F28;
    transform: scale(1.1);
}

.footer-copyright {
    font-size: 12px;
    color: #acacac;
    font-weight: 900;
    text-align: right;
}

/* ==========================================================================
   Gutenberg Block Styles
   ========================================================================== */

/* Details Block — styled to match Divi toggle modules on hopemission.com */
.wp-block-details {
    width: 100%;
    background-color: #ffffff;
    border-radius: 6px;
    border: none;
    overflow: hidden;
    margin-bottom: 10px;
    padding: 0;
}

.wp-block-details summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    font-family: 'Poppins', Helvetica, Arial, sans-serif;
    font-weight: 500;
    font-size: 16px;
    color: #474747;
    line-height: 1.4;
    margin: 0;
}

.wp-block-details summary:hover {
    color: #F36F28;
}

.wp-block-details summary::-webkit-details-marker {
    display: none;
}

.wp-block-details summary::after {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    content: "\2b";
    font-size: 18px;
    color: #F36F28;
    flex-shrink: 0;
    margin-left: 16px;
    transition: transform 0.3s ease;
}

.wp-block-details summary::before {
    display: none;
}

.wp-block-details[open] summary::after {
    content: "\f068";
    font-size: 14px;
}

.wp-block-details > *:not(summary) {
    padding: 0 20px 20px;
    font-family: 'Poppins', Helvetica, Arial, sans-serif;
    font-weight: 300;
    color: #474747;
    line-height: 1.7;
}

/* Utility class for white text */
.white {
    color: #ffffff;
}

/* Utility classes for button vertical spacing */
.button-space-s {
    margin-top: 1vh !important;
    margin-bottom: 1vh !important;
}

.button-space-m {
    margin-top: 2vh !important;
    margin-bottom: 2vh !important;
}

.button-space-l {
    margin-top: 3vh !important;
    margin-bottom: 3vh !important;
}

.button-space-xl {
    margin-top: 4vh !important;
    margin-bottom: 4vh !important;
}

.button-space-xxl {
    margin-top: 5vh !important;
    margin-bottom: 5vh !important;
}

/* Location with icon */
.location::before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    content: "\f3c5";
    margin-right: 0.5em;
}

/* Location Details - summary styled as button */
.location-details-heading summary {
    display: inline-block;
    background-color: #F36F28;
    color: #fff;
    padding: 12px 30px;
    border-radius: 10px;
    font-family: poppins, sans-serif;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
}

.location-details-heading summary:hover {
    background-color: #d45a1a;
}

.location-details-heading summary::before {
    display: none;
}

.location-details-heading > *:not(summary) {
    margin-top: 20px;
}

.wp-block-columns {
    margin-bottom: 2rem;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

.wp-block-columns.is-layout-flex {
    align-items: stretch !important;
}

.wp-block-columns > .wp-block-column {
    display: flex !important;
    flex-direction: column !important;
}

.wp-block-column > .wp-block-group {
    flex-grow: 1 !important;
    display: flex !important;
    flex-direction: column !important;
}

.wp-block-column > .wp-block-group > .wp-block-buttons:last-child {
    margin-top: auto !important;
}

/* ==========================================================================
   404 Error Page
   ========================================================================== */

/* Custom 404 page (Gutenberg content) — no extra wrapper needed,
   just ensure full-width blocks work like any other page */
.error-404-custom {
    min-height: 50vh;
}

/* Fallback 404 (no page selected in Customizer) */
.error-404.not-found {
    text-align: center;
    padding: 80px 20px;
}

.error-404 .page-title {
    font-size: 120px;
    color: #F36F28;
    margin-bottom: 20px;
    line-height: 1;
}

.error-404 .page-header p {
    font-size: 24px;
    margin-bottom: 30px;
}

.error-404 .page-content p {
    margin-bottom: 30px;
}

.error-404-cta {
    margin-top: 40px;
}

.error-404-cta .btn-primary {
    display: inline-block;
    background: #F36F28;
    color: #fff;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.3s ease;
}

.error-404-cta .btn-primary:hover {
    background: #d45a1a;
}

/* ==========================================================================
   Responsive Design - Mobile First
   ========================================================================== */

/* Hide mobile-only elements on desktop */
.mobile-menu-close {
    display: none;
}

/* Tablets and below */
@media (max-width: 1024px) {
    .header-container {
        padding: 0 20px;
    }

    .site-header {
        height: 70px;
    }

    .site-logo img,
    .site-logo .custom-logo {
        height: 40px;
    }

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

    /* Mobile Menu Close Button */
    .mobile-menu-close {
        display: none;
        position: fixed;
        top: 15px;
        right: 15px;
        width: 50px;
        height: 50px;
        background: #F36F28;
        border: none;
        border-radius: 50%;
        color: #fff;
        font-size: 28px;
        cursor: pointer;
        z-index: 10001;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    }

    .mobile-menu-close:hover {
        background: #d45a1a;
        transform: rotate(90deg);
    }

    .mobile-menu-close.active {
        display: flex;
    }

    /* Full-page mobile navigation */
    .main-navigation {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100vw;
        height: 100vh;
        background: #fff;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        z-index: 10000;
        overflow-y: auto;
        display: flex;
        flex-direction: column;
    }

    .main-navigation.active {
        opacity: 1;
        visibility: visible;
    }

    /* Mobile menu logo */
    .mobile-menu-logo {
        display: none !important;
        padding: 30px 20px 20px;
        text-align: center;
    }

    .mobile-menu-logo.active {
        display: block !important;
    }

    .mobile-menu-logo img {
        height: 50px;
        width: auto;
    }

    /* Menu items container */
    .main-navigation ul {
        flex-direction: column;
        gap: 0;
        padding: 20px 30px;
        flex: 1;
        display: flex;
        justify-content: center;
    }

    .main-navigation > ul > li {
        width: 100%;
        border-bottom: 1px solid #f0f0f0;
    }

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

    .main-navigation a {
        padding: 20px 0;
        font-size: 18px;
        font-weight: 700;
        display: block;
    }

    /* Sub-menus: fully collapsed by default, no visual footprint */
    .main-navigation .sub-menu {
        position: static !important;
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        box-shadow: none !important;
        padding: 0 !important;
        margin: 0 !important;
        max-height: 0 !important;
        overflow: hidden !important;
        transition: max-height 0.3s ease, padding 0.3s ease;
        pointer-events: auto;
        border: none !important;
        min-width: 0 !important;
    }

    .main-navigation .sub-menu li {
        border-bottom: none !important;
    }

    .main-navigation .sub-menu a {
        padding: 12px 20px !important;
        font-size: 16px !important;
        font-weight: 600 !important;
        color: #333 !important;
    }

    /* Expanded sub-menu */
    .main-navigation .menu-item-has-children.active > .sub-menu {
        max-height: 500px !important;
        padding: 5px 0 10px 10px !important;
    }

    /* Chevron rotation for expand/collapse indicator */
    .main-navigation .menu-item-has-children > a::after {
        transition: transform 0.3s ease;
    }

    .main-navigation .menu-item-has-children.active > a::after {
        transform: rotate(180deg);
    }

    /* Hide desktop-style active underline on mobile — the li border-bottom is sufficient */
    .main-navigation .current-menu-item > a::before,
    .main-navigation .current-menu-ancestor > a::before {
        display: none !important;
    }

    /* Mobile menu footer */
    .mobile-menu-footer {
        display: none;
        padding: 30px 20px;
        border-top: 1px solid #e0e0e0;
        background: #f8f8f8;
    }

    .mobile-menu-footer.active {
        display: block;
    }

    .mobile-menu-social {
        display: flex;
        justify-content: center;
        gap: 15px;
        margin-bottom: 20px;
    }

    .mobile-menu-social .social-icon {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 45px;
        height: 45px;
        background: #999999;
        border-radius: 50%;
        color: #fff;
        font-size: 20px;
        transition: all 0.3s ease;
    }

    .mobile-menu-social .social-icon:hover {
        background: #F36F28;
        transform: scale(1.1);
    }

    .mobile-menu-copyright {
        text-align: center;
        font-size: 12px;
        color: #acacac;
        font-weight: 700;
    }

    /* Hide CTA from mobile dropdown menu */
    .main-navigation .menu-item-cta {
        display: none;
    }

    /* Mobile CTA button in header */
    .mobile-cta-button {
        display: block;
        background: #b2b92f;
        color: #fff !important;
        font-weight: 700;
        text-transform: uppercase;
        padding: 8px 20px;
        border-radius: 10px;
        text-align: center;
        font-size: 14px;
        white-space: nowrap;
        text-decoration: none;
        transition: all 0.3s ease;
    }

    .mobile-cta-button:hover {
        background: #9aa327;
        color: #fff !important;
    }

    .hero-section.homepage-hero h1,
    .hero-section.homepage-hero .hero-heading {
        font-size: 72px;
        letter-spacing: 0.09em;
    }

    .hero-section.homepage-hero .hero-button {
        font-size: 36px;
        padding: 18px 50px;
        letter-spacing: 0.09em;
    }

    .hero-section.homepage-hero .container {
        padding: 0 30px;
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .footer-column.footer-logo-column {
        grid-column: 1 / -1;
    }

    .footer-divider {
        display: none;
    }

    .footer-bottom {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 20px;
    }

    .footer-social {
        justify-content: center;
    }

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

/* Mobile devices */
@media (max-width: 980px) {
    .et_pb_section_0_tb_header {
        padding-top: 50px;
        padding-bottom: 50px;
        margin-top: 0px;
        margin-bottom: 0px;
    }
}

/* Donation Page Footer Styles */
.donation-footer-wrapper {
    background-color: #ffffff;
    padding: 30px 20px;
    text-align: center;
}

.donation-footer-wrapper .footer-safe-secure {
    text-align: center;
    color: #95a0b1;
    font-size: 24px !important;
    margin-bottom: 10px;
}

.donation-footer-wrapper .footer-disclaimer {
    text-align: center;
    margin-top: 5px;
    font-size: 14px;
    line-height: 1.5em;
    color: #000;
}

.donation-footer-wrapper .footer-meta {
    text-align: center;
    color: #95a0b1;
    font-weight: bold;
    font-size: 95%;
    margin-bottom: 0;
    line-height: 1.5em;
    margin-top: 10px;
}

.donation-footer-wrapper .footer-meta a {
    color: #95a0b1;
    text-decoration: none;
}

.donation-footer-wrapper .footer-meta a:hover {
    text-decoration: underline;
}

/* Hide mobile menu logo on desktop */
.mobile-menu-logo {
    display: none !important;
}

@media (max-width: 768px) {
    .site-content {
        padding-top: 0;
    }

    .header-container {
        padding: 0 15px;
    }

    .hero-section {
        min-height: 400px;
        background-position: center top;
    }

    /* Cap homepage hero height on mobile so the banner image
       isn't cropped as aggressively by background-size: cover */
    .hero-section.homepage-hero {
        height: auto;
        min-height: 60vh;
        max-height: 70vh;
    }

    .hero-section.homepage-hero .container {
        padding: 0 20px;
    }

    .hero-section.homepage-hero h1,
    .hero-section.homepage-hero .hero-heading {
        font-size: 48px;
        letter-spacing: 0.08em;
        margin-bottom: 30px;
        max-width: 90%;
    }

    .hero-section.homepage-hero .hero-button {
        font-size: 24px;
        padding: 15px 40px;
        letter-spacing: 0.08em;
    }

    .hero-section.default-hero h1 {
        font-size: 36px;
    }

    .hero-section.default-hero .hero-subheading {
        font-size: 16px;
    }

    /* Compact hero underline on mobile */
    .hero-section .hero-heading em::after,
    .hero-section .hero-subheading em::after {
        bottom: 0;
        height: 15px;
    }

    .cta-block {
        height: 300px;
        max-width: 100%;
    }

    .cta-block-bar {
        padding: 15px 10px;
    }

    .cta-block-heading {
        font-size: 18px;
        margin: 0 0 8px 0;
    }

    .cta-block-subheading {
        font-size: 14px;
    }

    .footer-top {
        grid-template-columns: 1fr;
        padding: 0 15px 20px 15px;
    }

    .footer-column.footer-logo-column {
        grid-column: auto;
    }

    .footer-bottom {
        padding: 15px;
    }

    .footer-logo {
        width: 140px;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.5rem;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {

    .hero-section.homepage-hero h1,
    .hero-section.homepage-hero .hero-heading {
        font-size: 36px;
        letter-spacing: 0.05em;
    }

    .hero-section.homepage-hero .hero-button {
        font-size: 20px;
        padding: 12px 30px;
    }

    .hero-section.default-hero h1 {
        font-size: 30px;
    }

    .cta-block {
        height: 250px;
        max-width: 100%;
    }

    .cta-block-bar {
        padding: 12px 8px;
    }

    .cta-block-heading {
        font-size: 16px;
        margin: 0 0 6px 0;
    }

    .cta-block-subheading {
        font-size: 12px;
    }

    .footer-logo {
        width: 120px;
    }
}

/* Desktop specific */
@media (min-width: 1025px) {
    .site-header {
        height: auto;
    }

    .site-logo img {
        height: 60px;
    }

    .site-content {
        padding-top: 0;
    }

    .hero-section.default-hero {
        margin-top: 0;
    }

    .hero-section.homepage-hero {
        margin-top: 120px;
        min-height: 80vh;
    }

    .hero-section.homepage-hero .container {
        padding: 0 50px;
    }

    .cta-block {
        height: 380px;
        max-width: 500px;
    }
}

/* ==========================================================================
   Admin & Block Styles
   ========================================================================== */

.orange-error {
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 4px;
    padding: 15px;
    margin: 20px 0;
    color: #856404;
    font-weight: 500;
}

.orange-block-placeholder {
    background: #f0f0f0;
    border: 2px dashed #ccc;
    border-radius: 4px;
    padding: 40px;
    text-align: center;
    color: #666;
    font-size: 16px;
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */

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

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

.mt-1 {
    margin-top: 1rem;
}

.mt-2 {
    margin-top: 2rem;
}

.mt-3 {
    margin-top: 3rem;
}

.mb-0 {
    margin-bottom: 0;
}

.mb-1 {
    margin-bottom: 1rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

.mb-3 {
    margin-bottom: 3rem;
}

.pt-0 {
    padding-top: 0;
}

.pt-1 {
    padding-top: 1rem;
}

.pt-2 {
    padding-top: 2rem;
}

.pt-3 {
    padding-top: 3rem;
}

.pb-0 {
    padding-bottom: 0;
}

/* ==========================================================================

/* ==========================================================================
   Transparent Header Fix - Corrected
   ========================================================================== */

/* Make only the header background transparent, not the content */
.site-header.transparent {
    background: transparent !important;
    box-shadow: none !important;
}

/* Ensure logo and menu are fully visible (no opacity changes) */
.site-header.transparent .site-logo img,
.site-header.transparent .main-navigation a,
.site-header.transparent .mobile-menu-toggle {
    opacity: 1 !important;
    visibility: visible !important;
}

/* Keep menu text orange on transparent header (same as after scroll) */
.site-header.transparent .main-navigation a {
    color: #F36F28 !important;
}

.site-header.transparent .main-navigation a:hover {
    color: #d45a1a !important;
}

/* Keep CTA button styling consistent (same green as after scroll) */
.site-header.transparent .main-navigation .menu-item-cta>a {
    background: #b2b92f !important;
    color: #fff !important;
}

.site-header.transparent .main-navigation .menu-item-cta>a:hover {
    background: #9aa327 !important;
}

/* Mobile menu toggle orange on transparent */
.site-header.transparent .mobile-menu-toggle {
    color: #F36F28 !important;
}

/* Ensure dropdown menus are hidden by default on transparent header */
.site-header.transparent .sub-menu {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* Show dropdown on hover */
.site-header.transparent .menu-item-has-children:hover>.sub-menu {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

/* ==========================================================================
   Donation Form Hero Section
   ========================================================================== */

/* Donation Form Hero */
.hero-section.donation-hero {
    min-height: auto;
    padding: 0;
}

.hero-section.donation-hero .container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 30px;
}

.hero-section.donation-hero .hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
    text-align: center;
}

.hero-section.donation-hero h1,
.hero-section.donation-hero .hero-heading {
    font-family: poppins, sans-serif;
    font-size: 38px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-section.donation-hero .hero-subheading {
    font-family: poppins, sans-serif;
    font-size: 38px;
    font-weight: 300;
    color: #fff;
    margin-bottom: 0;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.exit-intent-content {
    text-align: center;
}

/* Responsive adjustments for donation hero */
@media (max-width: 768px) {
    .hero-section.donation-hero {
        padding: 0;
    }

    .hero-section.donation-hero .container {
        padding: 0 20px;
    }

    .hero-section.donation-hero h1,
    .hero-section.donation-hero .hero-heading {
        font-size: 28px;
    }

    .hero-section.donation-hero .hero-subheading {
        font-size: 28px;
    }
}

@media (max-width: 480px) {

    .hero-section.donation-hero h1,
    .hero-section.donation-hero .hero-heading {
        font-size: 24px;
    }

    .hero-section.donation-hero .hero-subheading {
        font-size: 24px;
    }
}

/* ==========================================================================
   Content Padding for Pages Without Hero Sections
   ========================================================================== */

/* Add padding to body when there's no hero section to prevent header overlap */
body:not(.has-hero) .site-content {
    padding-top: 100px;
}

@media (max-width: 768px) {
    body:not(.has-hero) .site-content {
        padding-top: 70px;
    }
}

@media (min-width: 1025px) {
    body:not(.has-hero) .site-content {
        padding-top: 150px;
    }
}

/* Custom Adjustments */
.health-services-stack {
    border-radius: 20px;
    overflow: hidden;
    border-width: 5px;
    border-style: solid;
    border-color: #1598d5;
}

.health-services-number {
    color: #ffffff;
    font-size: 20px;
    font-weight: 700;
    font-family: poppins, sans-serif;
    background-color: #f36f28;
    min-width: 30px;
    height: 30px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    margin-right: 10px;
    flex-shrink: 0;
    padding-top: 2px;
    box-sizing: border-box;
}

.health-contact-bar {
    border-left: 8px solid #f36f28;
    padding-left: 10px;
}

.underlined {
    text-decoration: none;
    border-bottom: 8px solid #f36f28;
    padding-bottom: 5px;
    display: inline;
}

.health-heading {
    padding-top: 3vh;
    padding-bottom: 3vh;
}

/* ==========================================================================
   General Gravity Forms Styling (excludes donation forms 2, 3, 9, 11)
   ========================================================================== */
.gform_wrapper:not(#gform_wrapper_2):not(#gform_wrapper_3):not(#gform_wrapper_9):not(#gform_wrapper_11) .gfield_label {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 8px;
}

.gform_wrapper:not(#gform_wrapper_2):not(#gform_wrapper_3):not(#gform_wrapper_9):not(#gform_wrapper_11) input:not([type='radio']):not([type='checkbox']):not([type='submit']):not([type='button']):not([type='file']),
.gform_wrapper:not(#gform_wrapper_2):not(#gform_wrapper_3):not(#gform_wrapper_9):not(#gform_wrapper_11) select,
.gform_wrapper:not(#gform_wrapper_2):not(#gform_wrapper_3):not(#gform_wrapper_9):not(#gform_wrapper_11) textarea {
    height: 50px;
    padding: 12px 16px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 6px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.gform_wrapper:not(#gform_wrapper_2):not(#gform_wrapper_3):not(#gform_wrapper_9):not(#gform_wrapper_11) textarea {
    height: auto;
    min-height: 120px;
}

.gform_wrapper:not(#gform_wrapper_2):not(#gform_wrapper_3):not(#gform_wrapper_9):not(#gform_wrapper_11) input:focus,
.gform_wrapper:not(#gform_wrapper_2):not(#gform_wrapper_3):not(#gform_wrapper_9):not(#gform_wrapper_11) select:focus,
.gform_wrapper:not(#gform_wrapper_2):not(#gform_wrapper_3):not(#gform_wrapper_9):not(#gform_wrapper_11) textarea:focus {
    outline: none;
    border-color: #4574BA;
    box-shadow: 0 0 0 3px rgba(69, 116, 186, 0.15);
}

.gform_wrapper:not(#gform_wrapper_2):not(#gform_wrapper_3):not(#gform_wrapper_9):not(#gform_wrapper_11) .gform_footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 30px;
    padding-top: 20px;
}

.gform_wrapper:not(#gform_wrapper_2):not(#gform_wrapper_3):not(#gform_wrapper_9):not(#gform_wrapper_11) .gform_button,
.gform_wrapper:not(#gform_wrapper_2):not(#gform_wrapper_3):not(#gform_wrapper_9):not(#gform_wrapper_11) input[type="submit"] {
    font-size: 18px;
    font-weight: 700;
    padding: 16px 40px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: opacity 0.3s ease, transform 0.2s ease;
}

.gform_wrapper:not(#gform_wrapper_2):not(#gform_wrapper_3):not(#gform_wrapper_9):not(#gform_wrapper_11) .gform_button:hover,
.gform_wrapper:not(#gform_wrapper_2):not(#gform_wrapper_3):not(#gform_wrapper_9):not(#gform_wrapper_11) input[type="submit"]:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.hm-donation-form-wrapper input[type="number"] {
    margin-left: 4vh;
}

#field_submit {
    align-items: center !important;
}

/* keep it mobile friendly by only applying these styles for larger viewports */
@media only screen and (min-width: 641px) {

    /* Make the form container a flex row to align body and footer */
    body #gform_wrapper_1 form {
        display: flex;
        flex-direction: row;
        align-items: flex-end;
        justify-content: center;
        gap: 20px;
        width: 100%;
        margin: 0 auto 8vh auto;
    }

    /* Wrapper width control */
    body #gform_wrapper_1 {
        width: 90%;
        max-width: 1200px;
        margin: 0 auto 8vh auto;
    }

    /* The body contains the fields */
    body #gform_wrapper_1 .gform_body {
        flex: 1;
        width: auto;
    }

    /* The fields container */
    body #gform_wrapper_1 .gform_fields {
        display: flex;
        flex-direction: row;
        align-items: flex-end;
        gap: 20px;
        margin: 0;
        width: 100%;
        justify-content: center;
    }

    /* Individual fields */
    body #gform_wrapper_1 .gfield {
        margin-bottom: 0 !important;
        flex: 1;
        min-width: 0;
        /* Allow shrinking if needed */
    }

    /* Specific width adjustment for Name field to accommodate two inputs */
    body #gform_wrapper_1 #field_1_1 {
        flex: 2;
    }

    /* Hide hidden fields so they don't take up space */
    body #gform_wrapper_1 .gfield.gform_hidden,
    body #gform_wrapper_1 li.gfield.gform_hidden {
        display: none !important;
    }

    /* Inputs */
    body #gform_wrapper_1 input:not([type='radio']):not([type='checkbox']):not([type='submit']),
    body #gform_wrapper_1 select {
        width: 100%;
        text-align: left;
        padding: 0 15px;
        border: 1px solid #ddd;
        border-radius: 4px;
        height: 60px;
        line-height: 58px;
        font-size: 16px;
    }

    /* Labels */
    body #gform_wrapper_1 .gfield_label {
        font-weight: 600;
        margin-bottom: 8px;
        display: block;
        font-size: 13px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        color: #555;
    }

    /* Fix Name Field Alignment */
    /* Hide sub-labels (First, Last) */
    body #gform_wrapper_1 .ginput_complex label {
        display: none !important;
    }

    /* Make Name inputs side-by-side */
    body #gform_wrapper_1 .ginput_complex {
        display: flex;
        gap: 10px;
    }

    body #gform_wrapper_1 .ginput_complex span {
        flex: 1;
    }

    /* Footer (Submit Button) */
    body #gform_wrapper_1 .gform_footer {
        margin: 0 !important;
        padding: 0 !important;
        flex-shrink: 0;
    }

    body #gform_wrapper_1 .gform_button,
    body #gform_wrapper_1 #gform_submit_button_1 {
        width: auto !important;
        margin-bottom: 0 !important;
        height: 60px !important;
        line-height: 60px !important;
        padding: 0 40px !important;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 1px;
        border-radius: 4px;
        cursor: pointer;
        background-color: #F36F28;
        color: white;
        border: none;
        transition: background-color 0.3s;
        font-size: 16px;
        box-sizing: border-box !important;
    }

    body #gform_wrapper_1 .gform_button:hover,
    body #gform_wrapper_1 #gform_submit_button_1:hover {
        background-color: #d45a1a;
    }

}

/* ==========================================================================
   Lottie Animation Centering
   ========================================================================== */

#exit-intent-lottie {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

#exit-intent-lottie creattie-embed {
    display: block;
    margin: 0 auto;
}

/* ==========================================================================
   Mobile Header CTA
   ========================================================================== */

.mobile-header-cta {
    display: none;
}

@media (max-width: 768px) {
    .mobile-header-cta {
        display: inline-block;
        background: #b2b92f;
        color: #fff !important;
        font-weight: 700;
        text-transform: uppercase;
        padding: 8px 20px;
        border-radius: 10px;
        font-size: 14px;
        margin-right: 15px;
        margin-left: auto;
        text-decoration: none;
        line-height: 1.2;
    }

    .mobile-header-cta:hover {
        background: #9aa327;
        color: #fff !important;
    }

    .main-navigation .menu-item-cta {
        display: none !important;
    }
}



/* Homepage Contact Form */
.homepage_contactform h2,
.homepage_contactform .wp-block-heading {
    margin: 5vh !important;
}

/* Donation Hero Section Styles */
.donation-hero {
    padding: 0;
    display: block;
    height: auto;
    min-height: auto;
    width: 100%;
    max-width: 1200px;
    /* Ensure it respects max-width */
    margin: 0 auto;
    /* Center it */
    border-radius: var(--hm-radius-lg, 16px) var(--hm-radius-lg, 16px) 0 0;
    /* Rounded top only */
    overflow: hidden;
    --hero-button-color: #F36F28;
    /* Default fallback */
}

.donation-hero-bar {
    background-color: var(--hero-button-color);
    min-height: 80px;
    /* Increased height for logos */
    padding: 15px 20px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    /* Left Logo | Heading | Right Logo */
    align-items: center;
    gap: 1rem;
    width: 100%;
}

.donation-hero-logos {
    display: flex;
    align-items: center;
}

.donation-hero-logos.left {
    justify-content: flex-start;
}

.donation-hero-logos.right {
    justify-content: flex-end;
}

.donation-hero-logos img {
    height: 50px;
    width: auto;
    max-width: 120px;
    /* Prevent wide logos from squashing the heading */
    object-fit: contain;
    display: block;
}

.hero-heading {
    color: white;
    margin: 0;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: clamp(20px, 4vw, 32px);
    /* Slightly smaller max size to fit with logos */
    line-height: 1.2;
    text-align: center;
    white-space: normal;
    /* Allow wrapping */
}

.donation-hero-image {
    width: 100%;
    position: relative;
}

.donation-hero-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Remove gap between hero and form container */
.hm-donation-form-wrapper {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

.hm-donation-form-wrapper .hm-donation-form-container {
    margin-top: 0 !important;
    border-top-left-radius: 0 !important;
    border-top-right-radius: 0 !important;
    max-width: 1200px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .donation-hero-bar {
        display: flex;
        flex-direction: column;
        text-align: center;
        gap: 10px;
        padding: 20px;
    }

    .donation-hero-logos {
        justify-content: center !important;
    }

    .hero-heading {
        white-space: normal;
        order: 2;
        /* Put heading below logos if they stack? Or keeping normal flow? */
        /* Flow is: Left Logo -> Heading -> Right Logo.
                    Flex column makes them stack: Logo - Heading - Logo.
           If logo stacking is odd, we can adjust order. */
    }
}

/* ==========================================================================
   Gravity Forms #2 - Field 9 Label Styling
   ========================================================================== */

body #gform_wrapper_2 #field_2_9 .gfield_label,
body #gform_wrapper_2 #field_2_9 label.gfield_label,
#gform_wrapper_2 #field_2_9 .gfield_label,
#gform_2 #field_2_9 .gfield_label,
#gform_2 #field_2_9 label,
.gform_wrapper #field_2_9 .gfield_label,
#gform_wrapper_2 li#field_2_9 label,
#gform_wrapper_2 .gfield#field_2_9 label {
    font-size: 1.75rem !important;
    font-family: poppins, sans-serif !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    margin-bottom: 1rem !important;
    color: #222 !important;
}

/* ==========================================================================
   Donation Hero Logos - Mobile Overrides
   ========================================================================== */
@media (max-width: 768px) {
    .donation-logos-wrapper {
        align-items: center !important;
        /* Center vertically on mobile */
        gap: 20px !important;
    }

    .donation-logos-wrapper img {
        width: 42vw !important;
        /* User request: Keep logos 45% width */
        height: auto !important;
        /* Maintain aspect ratio, override inline fixed height */
        max-width: none !important;
        /* Allow filling 45% space */
    }

    .donation-hero-bar {
        margin-top: 95px !important;
        /* Adjust spacing below logos */
    }

}

/* ==========================================================================
   Programs and Services Module Styles
   ========================================================================== */

/* Filters Container */
.programs-filters-group {
    background-color: #f4f2f2;
    /* Full Width Breakout Removed */
    width: 100%;
    margin: 0 auto 40px auto;
    padding: 30px;
    border-radius: 20px;
}

.programs-filters-container {
    max-width: 1600px;
    width: 60%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.programs-filter label {
    font-weight: 700;
    margin-bottom: 10px;
    color: #333;
    font-family: poppins, sans-serif;
    font-size: 14px;
    text-transform: uppercase;
}

.program-filter-select {
    width: 100%;
    padding: 12px 15px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    color: #555;
    background-color: #fff;
    font-family: "century-gothic", sans-serif;
}

/* Grid Container */
.programs-grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Program Card */
.program-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.program-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.program-card-image {
    position: relative;
    padding-top: 60%;
    /* 16:9 Aspect Ratio */
    overflow: hidden;
}

.program-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.program-card-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.program-card-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 15px 0;
    color: #333;
    font-family: poppins, sans-serif;
}

.program-card-excerpt {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 25px;
    flex: 1;
}

.program-card-button {
    display: inline-block;
    padding: 10px 25px;
    background-color: #F36F28;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 10px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.program-card-button:hover {
    background-color: #d45a1a;
    color: #fff;
    text-decoration: none;
}

/* Responsive Adjustments */
@media (max-width: 992px) {

    .programs-filters-container,
    .programs-grid-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {

    .programs-filters-container,
    .programs-grid-container {
        grid-template-columns: 1fr;
    }
}

/* Gravity Forms */
#gform_wrapper_1 {
    margin: 0 auto;
    max-width: 800px;
    /* Reasonable max-width for a form */
    width: 100%;
}

#field_1_5 {
    display: none !important;
}

/* ==========================================================================
   Featured List Styles
   ========================================================================== */
ul.featured-list {
    list-style: none;
    padding-left: 60px;
    width: 75%;

}

ul.featured-list li {
    position: relative;
    margin-bottom: 30px;
}

ul.featured-list li::before {
    content: '\f04b';
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    left: -40px;
    top: 3px;
    /* Visual alignment with text */
    font-size: 20px;
    color: #F36F28;
}

ul.featured-list li strong {
    font-weight: 700;
    font-size: 18px;
    display: block;
    margin-bottom: 2px;
}

/* ==========================================================================
   Programs Carousel Styles
   ========================================================================== */
.programs-carousel-container {
    position: relative;
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    margin-bottom: 50px;
    padding: 0;
    overflow: hidden;
}

.programs-carousel-wrapper {
    position: relative;
    /* overflow: hidden; REMOVED to allow arrows to show outside */
    margin-bottom: 30px;
    /* Space for dots */
}

.programs-carousel-track-container {
    width: 100%;
    overflow: hidden;
    padding: 20px 0;
    /* Space for box-shadow top/bottom */
    margin: -20px 0;
    /* Negate the padding so layout stays same height but paint area expands */
}

.programs-carousel-track {
    display: flex;
    transition: transform 0.5s ease;
}

.programs-carousel-slide {
    flex: 0 0 auto;
    width: 33.333%;
    /* Default desktop, JS overrides */
    padding: 0 15px;
    /* Gutter */
    box-sizing: border-box;
}

/* Navigation Arrows */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-color: #F36F28;
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.carousel-nav:hover {
    background-color: #d45a1a;
    transform: translateY(-50%) scale(1.1);
}

.carousel-nav.prev {
    left: 20px;
}

.carousel-nav.next {
    right: 20px;
}

/* Pagination Dots */
.programs-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    background-color: #e0e0e0;
    border: none;
    border-radius: 50%;
    padding: 0;
    cursor: pointer;
    transition: background-color 0.3s;
}

.carousel-dot.active,
.carousel-dot:hover {
    background-color: #F36F28;
}

/* Mobile responsive fixes for carousel */
@media (max-width: 768px) {
    .programs-carousel-container {
        padding: 0;
    }

    .carousel-nav {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }
}

/* ==========================================================================
   Carousel Marquee Animation & Fixes
   ========================================================================== */
@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.programs-carousel-track:hover {
    animation-play-state: paused;
}

/* Ensure carousel wrapper allows arrow positioning */
.programs-carousel-wrapper {
    position: relative;
}

/* Carousel navigation arrows */
.carousel-nav {
    display: flex !important;
    pointer-events: auto;
}

.programs-carousel-dots {
    display: none;
}

/* ==========================================================================
   Services Carousel (extends Programs Carousel)
   ========================================================================== */
.services-carousel-container {
    /* Inherits from .programs-carousel-container */
}

.service-carousel-slide .service-card {
    /* Service-specific card styles if needed */
}

.service-carousel-slide .program-card-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Services without images - ensure content is still properly styled */
.service-carousel-slide .service-card:not(:has(.program-card-image)) .program-card-content {
    padding-top: 20px;
}

/* Service card button reset (displayed as button element instead of anchor) */
button.program-card-button.service-modal-trigger {
    border: none;
    cursor: pointer;
    font-family: inherit;
}

/* ==========================================================================
   Stories Carousel
   ========================================================================== */
.stories-carousel-container {
    max-height: 650px;
    margin-bottom: 0;
}

.stories-carousel-container .programs-carousel-slide {
    display: flex;
}

.stories-carousel-container .program-card {
    height: 100%;
}

/* Service Description Modal */
body.service-modal-open {
    overflow: hidden;
}

.service-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.service-modal-overlay.active {
    display: flex;
}

.service-modal {
    background: #fff;
    border-radius: 12px;
    max-width: 600px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    padding: 40px 30px 30px;
}

.service-modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    color: #666;
    cursor: pointer;
    padding: 5px;
    transition: color 0.2s ease;
}

.service-modal-close:hover {
    color: #333;
}

.service-modal-image {
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
}

.service-modal-image img {
    width: 100%;
    height: auto;
    display: block;
}

.service-modal-title {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
}

.service-modal-description {
    font-size: 15px;
    line-height: 1.7;
    color: #555;
}

.service-modal-description p {
    margin-bottom: 12px;
}

.service-modal-description p:last-child {
    margin-bottom: 0;
}

@media (max-width: 480px) {
    .service-modal {
        padding: 30px 20px 20px;
    }

    .service-modal-title {
        font-size: 20px;
    }
}

/* ==========================================================================
   CTI Page Banner
   ========================================================================== */
.cti-page-banner {
    background-color: var(--cti-banner-color, #F36F28);
    width: 100%;
    padding: 12px 20px;
    position: relative;
    z-index: 999;
}

.cti-page-banner__link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.cti-page-banner__content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    max-width: 1400px;
    margin: 0 auto;
}

.cti-page-banner__icon {
    color: #fff;
    font-size: 20px;
}

.cti-page-banner__heading {
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 16px;
}

.cti-page-banner__text {
    color: #fff;
    font-size: 14px;
}

.cti-page-banner__button {
    display: inline-block;
    background-color: #fff;
    color: var(--cti-banner-color, #F36F28);
    padding: 6px 18px;
    border-radius: 6px;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.cti-page-banner__link:hover .cti-page-banner__button {
    background-color: rgba(255, 255, 255, 0.9);
    transform: scale(1.02);
}

/* ==========================================================================
   CTI Hero Section
   ========================================================================== */
.cti-hero {
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.cti-hero__video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.cti-hero__video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cti-hero__fallback-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.cti-hero__video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.5) 0%,
        rgba(0, 0, 0, 0.3) 50%,
        rgba(0, 0, 0, 0.5) 100%
    );
    z-index: 2;
}

.cti-hero__content {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: 40px 20px;
    padding-top: calc(var(--header-height) + 40px);
    max-width: 1200px;
    width: 100%;
}

/* CTI Hero Logos */
.cti-hero__logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    margin-bottom: 40px;
}

.cti-hero__logo {
    max-width: 300px;
}

.cti-hero__logo img {
    height: 120px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    border-radius: 0;
}

.cti-hero__logo a {
    display: block;
}

/* CTI Hero Heading */
.cti-hero__heading {
    font-family: 'Poppins', sans-serif;
    font-size: 70px;
    font-weight: 700;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 40px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
}

/* Italic text in CTI hero gets underline */
.cti-hero__heading em,
.cti-hero__heading i:not(.fa):not(.fas):not(.far):not(.fab) {
    font-style: normal;
    position: relative;
    display: inline-block;
}

.cti-hero__heading em::after,
.cti-hero__heading i:not(.fa):not(.fas):not(.far):not(.fab)::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 5px;
    height: 20px;
    background-color: var(--hero-button-color, #F36F28);
    z-index: -1;
}

/* CTI Hero Buttons */
.cti-hero__buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cti-hero__button {
    display: inline-block;
    padding: 15px 40px;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cti-hero__button--primary {
    background-color: var(--hero-button-color, #F36F28);
    color: #fff;
    border: 2px solid var(--hero-button-color, #F36F28);
}

.cti-hero__button--primary:hover {
    background-color: transparent;
    color: #fff;
    border-color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.cti-hero__button--secondary {
    background-color: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.cti-hero__button--secondary:hover {
    background-color: #fff;
    color: var(--hero-button-color, #F36F28);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

/* CTI Page Template - remove top padding */
body.page-template-template-cti .site-content,
body.has-hero .site-content {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* Ensure no spacing between header and homepage hero */
body.has-hero .site-main,
body.has-hero .site-main > article,
body.has-hero .site-main > article > .entry-content {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

body.has-hero .hero-section:first-child {
    margin-top: 0 !important;
}

/* CTI Page Template - hide header */
body.page-template-template-cti .site-header {
    display: none !important;
}

/* CTI Page Template - adjust hero content padding (no header) */
body.page-template-template-cti .cti-hero__content {
    padding-top: 40px;
}

/* CTI Page with banner - header positioning */
body.page-template-template-cti .site-header {
    background: #fff !important;
}

/* ==========================================================================
   CTI Hero Responsive Styles
   ========================================================================== */
@media (max-width: 1024px) {
    .cti-hero__heading {
        font-size: 56px;
    }

    .cti-hero__logos {
        gap: 40px;
    }

    .cti-hero__logo {
        max-width: 220px;
    }

    .cti-hero__logo img {
        height: 100px;
    }
}

@media (max-width: 768px) {
    .cti-hero {
        min-height: 80vh;
    }

    .cti-hero__heading {
        font-size: 40px;
        margin-bottom: 30px;
    }

    .cti-hero__heading em::after,
    .cti-hero__heading i:not(.fa):not(.fas):not(.far):not(.fab)::after {
        height: 12px;
        bottom: 2px;
    }

    .cti-hero__logos {
        gap: 30px;
        margin-bottom: 30px;
    }

    .cti-hero__logo {
        max-width: 160px;
    }

    .cti-hero__logo img {
        height: 80px;
    }

    .cti-hero__button {
        padding: 12px 30px;
        font-size: 14px;
    }

    .cti-page-banner__content {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .cti-page-banner__heading,
    .cti-page-banner__text {
        display: block;
    }
}

@media (max-width: 480px) {
    .cti-hero__heading {
        font-size: 32px;
    }

    .cti-hero__logos {
        flex-direction: column;
        gap: 20px;
    }

    .cti-hero__logo {
        max-width: 200px;
    }

    .cti-hero__buttons {
        flex-direction: column;
        gap: 15px;
    }

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

/* ==========================================================================
   Top Menu Hero Section (Cold Hands Warm Hearts)
   ========================================================================== */
.topmenu-hero {
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    min-height: 50vh;
    display: flex;
    flex-direction: column;
}

/* Top Menu Navigation */
.topmenu-hero__nav {
    width: 100%;
    padding: 15px 0;
    background-color: rgba(0, 0, 0, 0.1);
}

.topmenu-hero__nav .container {
    display: flex;
    justify-content: center;
}

.topmenu-hero__menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 40px;
    align-items: center;
}

.topmenu-hero__menu li {
    margin: 0;
}

.topmenu-hero__menu a {
    color: #fff;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 10px 0;
    position: relative;
    transition: opacity 0.3s ease;
}

.topmenu-hero__menu a:hover {
    opacity: 0.8;
}

.topmenu-hero__menu a::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 5px;
    height: 2px;
    background-color: #fff;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.topmenu-hero__menu a:hover::after {
    transform: scaleX(1);
}

/* Two Column Body */
.topmenu-hero__body {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 40px 0;
}

.topmenu-hero__columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 40px;
    width: 100%;
}

/* Left: Logo Area */
.topmenu-hero__logo-area {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.topmenu-hero__logo-link {
    display: block;
}

.topmenu-hero__logo {
    max-width: 100%;
    max-height: 350px;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Right: Text Area */
.topmenu-hero__text-area {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px;
}

.topmenu-hero__heading {
    font-family: 'Poppins', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    line-height: 1.15;
    margin: 0 0 20px 0;
    text-align: left;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
}

/* Italic text in topmenu hero gets underline */
.topmenu-hero__heading em,
.topmenu-hero__heading i:not(.fa):not(.fas):not(.far):not(.fab) {
    font-style: normal;
    position: relative;
    display: inline-block;
}

.topmenu-hero__heading em::after,
.topmenu-hero__heading i:not(.fa):not(.fas):not(.far):not(.fab)::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 2px;
    height: 10px;
    background-color: var(--hero-button-color, #F36F28);
    z-index: -1;
}

/* Button Wrapper - Centered Below Heading */
.topmenu-hero__button-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.topmenu-hero__button {
    display: inline-block;
    padding: 18px 50px;
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 10px;
    text-decoration: none;
    color: #fff;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.topmenu-hero__button:hover {
    background-color: transparent !important;
    border-color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

/* Cold Hands Warm Hearts Page Template - hide site header */
body.page-template-template-cold-hands-warm-hearts .site-header {
    display: none !important;
}

/* Cold Hands Warm Hearts Page Template - remove padding */
body.page-template-template-cold-hands-warm-hearts .site-content {
    padding: 0 !important;
}

/* Cold Hands Warm Hearts Page Template - hide footer visually */
body.page-template-template-cold-hands-warm-hearts .site-footer {
    position: absolute;
    left: -9999px;
    visibility: hidden;
    height: 0;
    overflow: hidden;
}

/* ==========================================================================
   Top Menu Hero Responsive Styles
   ========================================================================== */
@media (max-width: 1024px) {
    .topmenu-hero__heading {
        font-size: 28px;
    }

    .topmenu-hero__logo {
        max-height: 280px;
    }

    .topmenu-hero__body {
        padding: 30px 0;
    }

    .topmenu-hero__columns {
        gap: 30px;
    }

    .topmenu-hero__menu {
        gap: 25px;
    }

    .topmenu-hero__menu a {
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .topmenu-hero {
        min-height: auto;
    }

    .topmenu-hero__nav {
        padding: 15px 20px;
    }

    .topmenu-hero__menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px 25px;
    }

    .topmenu-hero__menu a {
        font-size: 13px;
    }

    .topmenu-hero__body {
        padding: 30px 0 50px;
    }

    .topmenu-hero__columns {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .topmenu-hero__logo-area {
        order: 1;
        padding: 10px;
    }

    .topmenu-hero__logo {
        max-height: 200px;
    }

    .topmenu-hero__text-area {
        order: 2;
        padding: 10px;
        text-align: center;
    }

    .topmenu-hero__heading {
        font-size: 26px;
        text-align: center;
        margin-bottom: 20px;
    }

    .topmenu-hero__heading em::after,
    .topmenu-hero__heading i:not(.fa):not(.fas):not(.far):not(.fab)::after {
        height: 8px;
        bottom: 1px;
    }

    .topmenu-hero__button {
        padding: 15px 40px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .topmenu-hero__nav {
        padding: 12px 15px;
    }

    .topmenu-hero__menu {
        gap: 10px 20px;
    }

    .topmenu-hero__menu a {
        font-size: 12px;
        letter-spacing: 0.5px;
    }

    .topmenu-hero__body {
        padding: 20px 0 40px;
    }

    .topmenu-hero__heading {
        font-size: 22px;
    }

    .topmenu-hero__logo {
        max-height: 150px;
    }

    .topmenu-hero__button {
        padding: 14px 35px;
        font-size: 14px;
        width: 100%;
        text-align: center;
    }
}

/* ==========================================================================
   Block Styles
   ========================================================================== */

.wp-block-list {
    padding-bottom: 1em;
}

ul.hoh-match-list {
    list-style: none !important;
    padding-left: 2em;
}

ul.hoh-match-list > li {
    position: relative;
    margin-bottom: 0.75em;
}

ul.hoh-match-list > li::before {
    content: "" !important;
    position: absolute;
    left: -2em;
    top: 0.25em;
    width: 16px;
    height: 16px;
    background-color: #F26C6C;
    border-radius: 50%;
}

.hoh-bullets {
    border: 5px solid #F26C6C;
    border-radius: 20px;
}

.hoh-bullets-heading {
    line-height: 1.4em;
}

.hoh-bullets-heading mark {
    padding: 10px 20px;
}

.donation-page-content {
    max-width: 1200px;
    margin: 0 auto;
}

.donation-page-content + .hm-donation-form-wrapper .hm-donation-form-container,
.donation-page-hero + .hm-donation-form-wrapper .hm-donation-form-container {
    max-width: none;
    margin-top: 0;
    border-radius: 0;
    box-shadow: none;
}

/* Unified hero/content + form card */
.donation-page-container {
    max-width: 1200px;
    margin: 30px auto;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: var(--hm-radius-lg, 16px);
    overflow: hidden;
}

.donation-page-container .donation-hero {
    max-width: none;
    border-radius: 0;
}

@media (max-width: 768px) {
    .donation-page-container {
        margin: 10px auto;
        border-radius: 0;
    }

    .donation-footer-wrapper {
        padding: 30px 24px;
    }

    .donation-footer-wrapper .footer-disclaimer br {
        display: none;
    }
}

.donation-page-content .alignwide,
.donation-page-content .alignfull {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    left: auto;
    right: auto;
    position: static;
}

.margin-top-minus25 {
    margin-top: -25px;
}

.margin-top-minus100 {
    margin-top: -100px;
}

/* ==========================================================================
   Countdown Timer Block
   ========================================================================== */

.orange-countdown {
    position: relative;
    text-align: center;
    overflow: hidden;
}

.orange-countdown__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.orange-countdown__inner {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
}

.orange-countdown__heading {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 2.5rem;
    margin: 0 0 10px;
    line-height: 1.2;
}

.orange-countdown__subheading {
    font-family: century-gothic, 'Century Gothic', CenturyGothic, AppleGothic, sans-serif;
    font-size: 1.15rem;
    margin: 0 0 40px;
    opacity: 0.85;
    line-height: 1.5;
}

.orange-countdown__timer {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.orange-countdown__unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

/* Boxed style (default) */
.orange-countdown--boxed .orange-countdown__digits {
    font-family: 'Poppins', sans-serif;
    font-size: 4rem;
    font-weight: 900;
    line-height: 1;
    min-width: 110px;
    padding: 20px 16px;
    border-radius: 12px;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    display: inline-block;
}

/* Minimal style */
.orange-countdown--minimal .orange-countdown__digits {
    font-family: 'Poppins', sans-serif;
    font-size: 4rem;
    font-weight: 900;
    line-height: 1;
    min-width: 110px;
    padding: 20px 16px;
    background: transparent !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    display: inline-block;
}

.orange-countdown__label {
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
}

.orange-countdown__separator {
    font-family: 'Poppins', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
    padding-top: 20px;
    opacity: 0.6;
}

.orange-countdown__expired {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    padding: 20px;
    opacity: 0.9;
}

.orange-countdown__cta {
    margin-top: 10px;
}

.orange-countdown__button {
    display: inline-block;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #ffffff;
    padding: 12px 30px;
    border-radius: 10px;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.orange-countdown__button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    color: #ffffff;
}

/* Responsive: Tablet */
@media (max-width: 768px) {
    .orange-countdown__heading {
        font-size: 1.8rem;
    }

    .orange-countdown--boxed .orange-countdown__digits,
    .orange-countdown--minimal .orange-countdown__digits {
        font-size: 2.8rem;
        min-width: 80px;
        padding: 14px 12px;
    }

    .orange-countdown__separator {
        font-size: 2.2rem;
        padding-top: 14px;
    }

    .orange-countdown__timer {
        gap: 8px;
    }
}

/* Responsive: Mobile */
@media (max-width: 480px) {
    .orange-countdown__heading {
        font-size: 1.4rem;
    }

    .orange-countdown__subheading {
        font-size: 1rem;
        margin-bottom: 24px;
    }

    .orange-countdown--boxed .orange-countdown__digits,
    .orange-countdown--minimal .orange-countdown__digits {
        font-size: 2rem;
        min-width: 60px;
        padding: 10px 8px;
        border-radius: 8px;
    }

    .orange-countdown__separator {
        font-size: 1.6rem;
        padding-top: 10px;
    }

    .orange-countdown__label {
        font-size: 0.7rem;
    }

    .orange-countdown__timer {
        gap: 4px;
    }
}

/* ==========================================================================
   Utility: Column Width Classes
   Apply to a wp-block-column via the "Additional CSS class(es)" field.
   Sets flex-basis to a viewport-width value so the column holds a fixed
   proportion regardless of container width.
   ========================================================================== */
.col-100 { flex-basis: 100vw !important; max-width: 100vw !important; }
.col-95  { flex-basis: 95vw !important;  max-width: 95vw !important; }
.col-90  { flex-basis: 90vw !important;  max-width: 90vw !important; }
.col-85  { flex-basis: 85vw !important;  max-width: 85vw !important; }
.col-80  { flex-basis: 80vw !important;  max-width: 80vw !important; }
.col-75  { flex-basis: 75vw !important;  max-width: 75vw !important; }
.col-70  { flex-basis: 70vw !important;  max-width: 70vw !important; }
.col-66  { flex-basis: 66vw !important;  max-width: 66vw !important; }
.col-65  { flex-basis: 65vw !important;  max-width: 65vw !important; }
.col-60  { flex-basis: 60vw !important;  max-width: 60vw !important; }
.col-55  { flex-basis: 55vw !important;  max-width: 55vw !important; }
.col-50  { flex-basis: 50vw !important;  max-width: 50vw !important; }
.col-45  { flex-basis: 45vw !important;  max-width: 45vw !important; }
.col-40  { flex-basis: 40vw !important;  max-width: 40vw !important; }
.col-35  { flex-basis: 35vw !important;  max-width: 35vw !important; }
.col-33  { flex-basis: 33vw !important;  max-width: 33vw !important; }
.col-30  { flex-basis: 30vw !important;  max-width: 30vw !important; }
.col-25  { flex-basis: 25vw !important;  max-width: 25vw !important; }

/* On mobile, collapse all col-* to full width */
@media (max-width: 768px) {
    [class*="col-"].wp-block-column {
        flex-basis: 100% !important;
        max-width: 100% !important;
    }
}
