/*
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.9
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: 130px;
    }
}

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

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

body {
    font-family: century-gothic, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background: #fff;
    overflow-x: hidden;
}

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

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

strong,
b {
    font-weight: 700;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

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;
}

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

.container {
    width: 100%;
    max-width: 1600px;
    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;
}

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

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: #fff;
    z-index: 1000;
    transition: opacity 0.3s ease, background 0.3s ease, height 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: 7vh 30px;
    height: 100%;
}

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

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

.site-logo img {
    height: 50px;
    width: auto;
    display: block;
}

/* 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;
}

/* 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: 1;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    flex-direction: column;
    gap: 0;
}

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

.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: 50px;
    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 {
    font-style: normal;
    position: relative;
    display: inline-block;
}

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

/* 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: 20vh 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: 40px;
    line-height: 1.1;
    max-width: 66%;
}

.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: 50px;
    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: 400px;
}

.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;
    text-align: center;
}

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

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

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

.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: 0;
}

.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;
    height: 100%;
}

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

.fullwidth-header-subheading {
    font-size: 19px;
    font-weight: 300;
    font-weight: 300;
    color: #fff;
    max-width: 50%;
}

/* Force Fullwidth Header Template to flush against header */
body.page-template-template-fullwidth-header .site-content {
    padding-top: var(--header-height) !important;
}

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

.site-footer {
    background: #fff;
    min-height: 20vh;
    padding: 40px 0 0 0;
    border-top: 1px solid #e0e0e0;
}

.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
   ========================================================================== */

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

.wp-block-column {
    padding: 0 10px;
}

/* Ensure columns container uses full available width */
.entry-content .wp-block-columns {
    max-width: 90%;
}

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

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

    .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;
        gap: 30px;
    }

    .footer-divider {
        display: none;
    }

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

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

/* Mobile devices */
@media (max-width: 768px) {
    .site-header {
        height: 70px;
    }

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

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

    .site-logo img {
        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;
        padding: 30px 20px 20px;
        text-align: center;
    }

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

    .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 li {
        width: 100%;
        border-bottom: 1px solid #f0f0f0;
    }

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

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

    .main-navigation .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding-left: 20px;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .main-navigation .menu-item-has-children.active>.sub-menu {
        max-height: 500px;
    }

    /* 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: 50px;
        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 {
        min-height: 400px;
    }

    .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;
    }

    .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 {
        padding: 0 15px 20px 15px;
    }

    .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: 150px;
    }

    .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;
}

/* Show dropdown on hover */
.site-header.transparent .menu-item-has-children:hover>.sub-menu {
    opacity: 1 !important;
    visibility: visible !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 */
.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: 50px;
        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;
}