/**
 * Base: Layout
 * Defines the high-level structure of the entire site
 */
/* ----------------------------------------Global Layout Fixes ----------------------------------------  */
/* Remove default padding from main container to allow full-width sections */
main {
    padding: 0 !important;
}
/* ----- BEGIN: Sticky Footer ----- 
 *
 * Forces the main content area to expand and push the footer down.
 * It is not a reusable component or a module, but a global rule that affects the entire page
 */
.wp-site-blocks {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 80px); /*var(--header-height, 80px));*/
    box-sizing: border-box;
}

body > .wp-site-blocks > .wp-block-group {
    flex-grow: 1;
}
/* -----  END:  Sticky Footer ----- */


/* ----- BEGIN: Google Address Autocomplete -----
*/
.pac-container{
    border-radius: 16px 16px 0 16px;
}

.hdpi .pac-icon {
    opacity: 0;
    width: 6px;
}

.pac-container.pac-logo.hdpi:after {
	filter: grayscale(.6);
    height: 16px;
}

.pac-item.custom-manual-entry {
    color: rgb(81, 81, 170);
}
/* ----- END: Google Address Autocomplete -----
*/
/**
 * Base: Typography
 * Global default styles for basic HTML tags.
 * Mobile styles - default (assumes min-width: 0)
 */
h1 {
    font-family: var(--wp--preset--font-family--heading);
    /*font-size: clamp(1.75rem, 4vw, 2rem);*/ /*2.5rem;*/
    font-weight: 500;
}

h2 {
    font-family: var(--wp--preset--font-family--heading);
    font-size: clamp(1.5rem, 6vw, 1.85rem);
    font-weight: 600;
    font-style: normal;
    line-height: 3.9875rem;
    letter-spacing: 0rem;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

p, .tds-p {
    font-family: var(--wp--preset--font-family--base);
    font-size: 1.1rem;
    font-style: normal;
    font-weight: 400;
    line-height: 1.85625rem;
    color: var(--tds-color-text); /*rgba(43, 40, 36, .5);*/
    margin-bottom: var(--wp--preset--spacing--5-9);
}

a {
    font-family: var(--wp--preset--font-family--ui);
    font-weight: 400;
    letter-spacing: 0.025rem;
}

/* 640px - 768px */
@media (min-width: 640px) {
    h2 {
    font-size: clamp(1.85rem, 3.5vw, 2.1rem);
    font-weight: 500;
}
}

/* 768px - 1024px */
@media (min-width: 768px) {
    h2 {
    font-size: clamp(1.85rem, 3.5vw, 2.4rem);
    font-weight: 400;
}
}

/* 1024px - 1280px */
@media (min-width: 1024px) {
    h2 {
    font-size: clamp(2.25rem, 3vw, 2.6rem);
}
}

/* 1280px and above */
@media (min-width: 1280px) {
    h2 {
    font-size: clamp(2.4rem, 2vw, 2.75rem);
}
}

/* I need to differentiate the vars from theme.json: var(--wp--custom--tds...) more visually disruptive than what i have now, perhaps just var(tds-color...)
as i have already confused myself and themakeup of variables due to such*/

:root {
  /* --- Global --- */
  --tds-color-background-base: var(--wp--preset--color--white);
  --tds-color-background-header-footer: var(--wp--preset--color--grey-9-9);
  --tds-color-text: var(--wp--preset--color--grey-4-9);

  --tds-color-text-nav-a: var(--wp--preset--color--grey-4-9);
  --tds-color-text-mob-nav-a: var(--wp--preset--color--grey-2-9);
  --tds-color-background-mobile-nav: var(--wp--preset--color--grey-9-9);

  /* --- Buttons --- */
  --tds-color-button-primary-bg: var(--wp--preset--color--grey-4-9);
  --tds-color-button-primary-text: var(--wp--preset--color--white);
  --tds-color-button-primary-bg-hover: var(--wp--preset--color--grey-5-9);

  --tds-color-button-orange-bg: #db5800;
  --tds-color-button-orange-text: var(--wp--preset--color--white);
  --tds-color-button-orange-bg-hover: #ff6600;
}
/**
 * Element: Button
 */
.wp-block-button__link,
.tds-button {
  border-width: 0;
  border-style: none;
  border-radius: var(--wp--custom--tds--border--radius--5-5);
  color: var(--wp--preset--color--white);
  background-color: var(--tds-color-button-primary-bg);
  font-size: clamp(1rem, 1.5vw, 1.3rem);/*var(--wp--preset--font-size--xl);*/
  letter-spacing: 0.01rem;
  font-family: var(--wp--preset--font-family--ui);
  padding: var(--wp--preset--spacing--6-9);
  transition: var(--wp--custom--tds--transition--preset--base);
  line-height: 0;
  box-shadow: var(--wp--preset--shadow--2-5);
  /*--- New PGB 2025-09-02 ---*/
  text-decoration: none;
  min-width: var(--wp--preset--spacing--9-9);
  display: inline-block;
  text-align: center;
  cursor: pointer;
}

.wp-block-button__link:hover,
.tds-button:hover {
  background-color: var(--tds-color-button-primary-bg-hover);
}
/**
 * TDS Checkbox Component
 * A modern, accessible checkbox using Font Awesome icons
 * Maintains native checkbox functionality with custom styling
 */

/* Visually hidden class for accessibility */
.visually-hidden {
    position: absolute;
    height: 1px;
    width: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
    white-space: nowrap;
}

/* Main checkbox label container - horizontal layout: label text left, icon right */
.tds-checkbox {
    position: relative;
    cursor: pointer;
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-bottom: var(--wp--preset--spacing--3-9); /* 0.75rem */
    font-size: var(--wp--preset--font-size--medium, 1.125rem);
    user-select: none;
    line-height: 1.5;
    gap: var(--wp--preset--spacing--2-9); /* 0.5rem*/
    text-align: center;
    color: var(--wp--preset--color--grey-6-9);
}

.tds-checkbox a {
    text-decoration: none;
    color: unset;
}

.form-field-group:has(> .tds-checkbox) {
    display: flex;
    justify-content: center;
}

/* Native checkbox input - visually hidden but accessible */
.tds-checkbox input[type="checkbox"] {
    position: absolute;
    height: 1px;
    width: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
    white-space: nowrap;
}

/* Label text styling - positioned on the left */
.tds-checkbox__label {
    order: 1;
    flex: 1;
    /*color: var(--wp--preset--color--contrast, #333);*/
}

/* Icon base styles - positioned on the right */
.tds-checkbox__checked,
.tds-checkbox__unchecked {
    order: 2;
    font-size: 1.5em;
    transition: color 0.2s ease, opacity 0.2s ease;
    flex-shrink: 0;
    margin-left: var(--wp--preset--spacing--3-9)
}

/* Unchecked icon (default visible) */
.tds-checkbox__unchecked {
    display: inline-block;
    /*color: var(--wp--preset--color--contrast, #333);*/
}

/* Checked icon (hidden by default) */
.tds-checkbox__checked {
    display: none !important;
    color: var(--wp--preset--color--primary, #0d6efd);
}

/* When checkbox is checked - show checked icon, hide unchecked icon */
.tds-checkbox input:checked ~ .tds-checkbox__checked {
    display: inline-block !important;
}

.tds-checkbox input:checked ~ .tds-checkbox__unchecked {
    display: none !important;
}

/* Focus state - keyboard navigation indicator */
.tds-checkbox input:focus ~ .tds-checkbox__checked,
.tds-checkbox input:focus ~ .tds-checkbox__unchecked {
    outline: 3px solid var(--wp--preset--color--accent, #ff9800);
    outline-offset: 2px;
    border-radius: 2px;
}

/* Hover state */
.tds-checkbox:hover .tds-checkbox__unchecked {
    color: var(--wp--preset--color--primary, #0d6efd);
}

/* Disabled state */
.tds-checkbox:has(input:disabled) {
    cursor: not-allowed;
}

.tds-checkbox input:disabled ~ .tds-checkbox__checked,
.tds-checkbox input:disabled ~ .tds-checkbox__unchecked,
.tds-checkbox input:disabled ~ .tds-checkbox__label {
    opacity: 0.5;
    color: var(--wp--preset--color--neutral, #6c757d);
}

/* Block style for full-width checkboxes */
.tds-checkbox--block {
    display: flex;
    width: 100%;
    padding: var(--wp--preset--spacing--2-9) var(--wp--preset--spacing--3-9);
    background-color: var(--wp--preset--color--base-2, #f8f9fa);
    border-radius: var(--wp--custom--tds--border--radius--1-5); /*4px*/
    transition: background-color 0.2s ease;
}

.tds-checkbox--block:hover {
    background-color: var(--wp--preset--color--base-3, #e9ecef);
}

/* Group container for multiple checkboxes */
.tds-checkbox-group {
    display: flex;
    flex-direction: column;
    gap: var(--wp--preset--spacing--2-9);
}

/* Inline group variant */
.tds-checkbox-group--inline {
    flex-direction: row;
    flex-wrap: wrap;
    gap: var(--wp--preset--spacing--4-9);
}

.tds-checkbox-group--inline .tds-checkbox {
    margin-bottom: 0;
}

/* Form integration - when used inside form-field-group */
.form-field-group .tds-checkbox {
    margin-top: var(--wp--preset--spacing--2-9);
    font-family: var(--wp--preset--font-family--ui);
    font-weight: 300;
}

/* Error state */
.tds-checkbox--error .tds-checkbox-input {
    border-color: var(--wp--preset--color--vivid-red, #dc3545);
}

.tds-checkbox--error .tds-checkbox__label {
    color: var(--wp--preset--color--vivid-red, #dc3545);
}

/* Success state */
.tds-checkbox--success .tds-checkbox-input {
    border-color: var(--wp--preset--color--vivid-green, #28a745);
}

/* WordPress Block Editor Integration */
.wp-block .tds-checkbox {
    margin-bottom: var(--wp--preset--spacing--3-9);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .tds-checkbox {
        font-size: var(--wp--preset--font-size--small, 1rem);
        gap: var(--wp--preset--spacing--2-9);
    }
}

/* Input styling - override default form input styles for checkboxes */
.tds-checkbox-input.tds-input {
    width: auto;
    min-width: 1.2em;
    height: 1.2em;
    box-shadow: unset;
    border: 2px solid var(--wp--preset--color--contrast, #333);
    border-radius: 3px;
    background-color: var(--wp--preset--color--base, #fff);
    transition: all 0.2s ease;
}

.tds-checkbox-input.tds-input:checked {
    background-color: var(--wp--preset--color--primary, #0d6efd);
    border-color: var(--wp--preset--color--primary, #0d6efd);
}

.tds-checkbox-input.tds-input:hover {
    border-color: var(--wp--preset--color--primary, #0d6efd);
}
/**
 * Element: Container
 * Base styles for the core/group block.
 *
 * Purpose | Generic, multi-purpose container.
 * Role    | A basic building block (a "panel").
 * Context | Can be used anywhere for anything.
 * Analogy | A generic LEGO baseplate.
 */
.wp-block-group, .wp-block-post-content {
    padding-top: var(--wp--preset--spacing--5-9);
    padding-right: var(--wp--preset--spacing--5-9);
    padding-bottom: var(--wp--preset--spacing--5-9);
    padding-left: var(--wp--preset--spacing--5-9);
}
/**
 * Element: Currency Input
 * Styled currency input field with Font Awesome dollar sign positioned inside
 */

.tds-currency {
    position: relative;
    display: inline-block;
    width: 100%;
    height: 2.5rem; /* Match select dropdown height constraint */
}

.tds-currency-input {
    display: block;
    width: 100%;
    height: 2.5rem;
    box-sizing: border-box;
    
    padding: 0 var(--wp--preset--spacing--4-9) 0 var(--wp--preset--spacing--4-9) !important;

    
    font-family: var(--wp--preset--font-family--ui);
    letter-spacing: 0.01rem;
    font-size: 1rem;
    line-height: 1.5rem;
    color: var(--wp--preset--color--grey-6-9);

    
    border: none;
    border-radius: var(--wp--custom--tds--border--radius--5-5);
    box-shadow: var(--wp--custom--shadows--input-default, 2px 2px 4px rgba(0, 0, 0, 0.2)), var(--wp--custom--shadows--input-inner, -1px -1px 2px rgba(0, 0, 0, 0.1));
    background-color: var(--wp--preset--color--white);
    padding-left: var(--wp--preset--spacing--8-0); /* Make room for dollar sign */
}

/* Add Font Awesome dollar sign using ::after pseudo-element on wrapper like select dropdown */
.tds-currency::after {
    content: "\24";
    position: absolute;
    left: var(--wp--preset--spacing--4-0);
    top: 50%;
    transform: translateY(-50%);
    color: var(--wp--preset--color--neutral-600);
    pointer-events: none;
    font-size: var(--wp--preset--font-size--sm);
    font-family: var(--wp--preset--font-family--icons);
    font-weight: 900;
    left: 14px;
}

/* Focus state - highlight the icon when input is focused */
.tds-currency:focus-within::after {
    color: var(--wp--preset--color--primary);
}
/**
 * Element: Input
 * The base style for all form input and select elements.
 */
.tds-input {
    /* Layout & Box Model */
    display: block;
    width: 100%;
    height: 2.5rem;
    box-sizing: border-box;
    /* Needs to remove or override donation-block-frontend.css in hrf-management-fse*/
    padding: 0 var(--wp--preset--spacing--4-9) 0 var(--wp--preset--spacing--4-9) !important;

    /* Typography */
    font-family: var(--wp--preset--font-family--ui);
    letter-spacing: 0.01rem;
    font-size: 1rem;
    line-height: 1.5rem;
    color: var(--wp--preset--color--grey-6-9);

    /* Appearance */
    border: none;
    border-radius: var(--wp--custom--tds--border--radius--5-5);
    box-shadow: var(--wp--custom--shadows--input-default, 2px 2px 4px rgba(0, 0, 0, 0.2)), var(--wp--custom--shadows--input-inner, -1px -1px 2px rgba(0, 0, 0, 0.1));
    background-color: var(--wp--preset--color--white);
}

.tds-input:focus {
    outline: none;
    box-shadow: var(--wp--custom--shadows--input-focus, 2px 2px 6px rgba(0, 115, 170, 0.5)), var(--wp--custom--shadows--input-focus-inner, -1px -1px 4px rgba(0, 115, 170, 0.2));
}

.tds-input.tds--invalid {
    box-shadow: var(--wp--custom--shadows--input-error, 2px 2px 4px rgb(192 0 0 / 50%)), var(--wp--custom--shadows--input-error-inner, -1px -1px 2px rgb(255 0 0 / 20%)) !important;
}

.tds-select-dropdown__input {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}
.hrf-donation-block {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

.hrf-donation-block .donation-step {
    display: none;
}

.hrf-donation-block .donation-step.active {
    display: block;
}

.hrf-donation-block input,
.hrf-donation-block select,
.hrf-donation-block button {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    box-sizing: border-box;
}

.hrf-donation-block label {
    /*display: flex; block;*/
    margin-bottom: 5px;
    font-weight: bold;
}

.hrf-donation-block .summary {
    font-size: 1.2em;
    margin-top: 20px;
}

.hrf-donation-block .loading-state {
    text-align: center;
    font-size: 1em;
}

/* === SHARED COMPONENTS! === */

/* Shared styles for option containers (donation-type, donor-type, payment-method) */
.option-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    margin-top: 5px;
    margin-bottom: 15px;
}

/* Shared styles for option labels */
.option-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    flex-grow: 1;
    flex-basis: 0;
    justify-content: flex-start;
    white-space: nowrap;
    font-weight: normal;
}

/* Shared styles for form controls (checkbox, radio) */
.form-control {
    width: auto;
    margin: 0;
    flex-shrink: 0;
}

/* Unified error message styling */
.error-message {
    color: #dc3232;
    margin-bottom: 10px;
}

/* === SPECIFIC IMPLEMENTATIONS === */

/* --- Step 1 Specific Styles --- */
#donation-interval {
    text-align: center;
}

.donation-type-options {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    margin-top: 5px;
    margin-bottom: 15px;
}

.donation-type-options label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    flex-grow: 1;
    flex-basis: 0;
    justify-content: flex-start;
    white-space: nowrap;
    font-weight: normal;
}

/* Style for sub-headings like "Donation Type", "Donation Amount" */
.donation-sub-heading {
    font-weight: bold;
    display: block;
    margin-bottom: 8px;
}

/* --- Amount Selection --- */
.donation-amount-options {
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); 
    gap: 10px;
    margin-bottom: 10px; 
}

/* General styles for amount buttons */
.amount-option {
    padding: 10px 15px;
    border: 1px solid #ccc;
    background-color: #f9f9f9;
    border-radius: 4px;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease; 
    font-size: 1em; 
    box-sizing: border-box; 
    color: #333;
}

/* Specific style for the custom amount input */
#custom-amount {
    /*padding: 10px 15px;
    border: 1px solid #ccc;
    background-color: #fff; 
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
    font-size: 1em; 
    box-sizing: border-box; 
    margin-top: 10px; 
    text-align: left;
    grid-column: 1 / -1;*/ 
    width: 100%;
    text-align: center;
}

/* Style for the SELECTED amount button/input - CORRECTED SELECTOR */
.donation-amount-options .amount-option.selected {/*,  Use .selected */
/*.donation-amount-options #custom-amount.selected {  Use .selected */
    background-color: #0073aa; 
    color: #fff; 
    border-color: #005a87; 
}

.amount-option:hover:not(.selected) { /* Use .selected */
     background-color: #e9e9e9; 
     border-color: #bbb;
}
/*
#custom-amount:hover:not(.selected) {
     border-color: #bbb; 
}*/

/* --- Step 2 Specific Styles --- */

/* Layout for Organization Checkbox */
.hrf-donation-block .step-2 > label:has(#is-organization) { 
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    flex-grow: 1;
    flex-basis: 0;
    justify-content: flex-start;
    white-space: nowrap;
    font-weight: normal;
    margin-bottom: 15px; 
    white-space: nowrap; 
}

.hrf-donation-block .step-2 > label:has(#is-organization) input[type="checkbox"] {
    width: auto;
    margin: 0;
    flex-shrink: 0;
    order: 1; 
}

/* Layout for Name Fields ORIG */
.name-fields {
    display: flex;
    flex-wrap: wrap; 
    gap: 15px; 
    margin-bottom: 15px; 
}

.name-fields .name-field-group {
    flex: 1; 
    min-width: 200px; 
    display: flex;
    flex-direction: column; 
}

.name-fields label {
     margin-bottom: 5px; 
     font-weight: normal; 
}

.name-fields input[type="text"] {
    width: 100%; 
    box-sizing: border-box; 
}

/* Form Fields Row Layout NEW */
.form-fields-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.form-fields-row #first-name-form-field {
    flex: 0 1 45%;
}

/*.form-fields-row > div:last-child {*/
.form-fields-row #last-name-form-field {
    flex: 0 1 55%;
}
.form-fields-row #address_street_number-form-field {
    flex: 0 1 40%;
}
.form-fields-row #address_street_name-form-field {
    flex: 0 1 60%;
}
.form-fields-row #address_state-form-field {
    flex: 0 1 65%;
}
.form-fields-row #address_postal_code-form-field {
    flex: 0 1 35%;
}

/* Stack name fields on smaller screens */
@media (max-width: 1000px) {
    .form-fields-row {
        flex-direction: column;
        gap: 0;
    }
    /*
    .form-fields-row > div:first-child,
    .form-fields-row > div:last-child {*/
    .form-fields-row > div {
        flex: 1 1 100%;
        min-width: unset;
        margin-bottom: 15px;
    }
}

/* --- Navigation Buttons Container --- */
.step-navigation-buttons {
    display: flex;
    /*justify-content: space-between;*/
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: 30px;
    gap: 20px;
}

.step-navigation-buttons .prev-button,
.step-navigation-buttons .next-button {
    width: auto;
    min-width: 60px;
}

/* Add styles for validation feedback */
.invalid-input {
    border-color: red !important; /* Highlight invalid fields */
}
.donation-result p {
    padding: 10px;
    margin-top: 15px;
    border-radius: 4px;
}
.donation-result .success-message {
    background-color: #d1e7dd;
    border: 1px solid #badbcc;
    color: #0f5132;
}
.donation-result .error-message {
    color: #dc3232;
    margin-bottom: 10px;
    background-color: #f8d7da;
    border: 1px solid #f5c2c7;
}

/* Styles for Donor Type Radio Buttons */
.donor-type-options {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    margin-top: 5px;
    margin-bottom: 15px;
}

.donor-type-options label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    flex-grow: 1;
    flex-basis: 0;
    justify-content: flex-start;
    white-space: nowrap;
    font-weight: normal;
}

/* --- Step 3 Specific Styles --- */

/* Payment Method Options Layout */
.payment-method-options {
    display: flex;          /* Use flexbox for the container */
    flex-direction: column; /* Stack labels vertically */
    gap: 10px;              /* Add space between payment options */
    margin-bottom: 20px;    /* Space below the payment options */
}

.payment-method-options label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    flex-grow: 1;
    flex-basis: 0;
    justify-content: flex-start;
    white-space: nowrap;
    font-weight: normal;
    flex-grow: 0;
    margin-bottom: 0;      /* Remove default bottom margin if any */
}

.payment-method-options label input[type="radio"] {
    width: auto;
    margin: 0;
    flex-shrink: 0;
}

/* Cover Fees Checkbox Layout */
label:has(#cover-fees) {  /* Select the label containing the checkbox */
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    flex-grow: 1;
    flex-basis: 0;
    justify-content: flex-start;
    white-space: nowrap;
    font-weight: normal;
    margin-bottom: 20px;   /* Space below the checkbox line */
}

label:has(#cover-fees) input[type="checkbox"] {
    width: auto;
    margin: 0;
    flex-shrink: 0;
}

/* Validation Styles */
.hrf-error-message {
    color: #dc3232;
    margin-bottom: 10px;
    /*display: block;*/
    font-size: 0.875em;
    margin-top: 4px;
    margin-bottom: 8px;
    margin-left: 0.25rem;
}

input.invalid,
select.invalid,
textarea.invalid {
    border-color: #a64545 !important; /* Ensure it overrides other border styles */
    box-shadow: 2px 2px 4px #dc3232 !important; /* Optional: adds a glow similar to some WP error fields */
}

/* Clearfix for name fields if error messages cause layout issues, adjust as needed */
.name-fields::after {
    content: "";
    clear: both;
    display: table;
}

/* Edit Address Manually Button 
.edit-address-manually-btn {
    display: inline-block;
    width: auto;
    padding: 8px 16px;
    margin-top: 10px;
    margin-bottom: 15px;
    background-color: #0073aa;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9em;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.edit-address-manually-btn:hover {
    background-color: #005a87;
}*/

/* Address Fields Toggle Animation */
.address-fields {
    overflow: hidden;
    transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
    max-height: 0;
    opacity: 0;
}

.address-fields.show {
    max-height: 1000px;
    opacity: 1;
    transition: max-height 0.4s ease-in, opacity 0.4s ease-in;
    overflow: unset;
}

/*---------------------------------------- Section: Footer ---------------------------------------- */
  footer {
      margin-top: 2.5rem;
  }
  
    footer .wp-block-column {
      display: flex;
      flex-direction: column;
      align-items: center;
  }
/*
  footer .wp-block-column > *:not(ul) {
      width: 100%;
  }*/

  footer ul {
      list-style: none;
      color: var(--wp--preset--color--grey-5-9);
      /*padding-inline-start: var(--wp--preset--spacing--3-9);*/
      padding-inline-start: 0;
      margin: 0 auto;
      width: fit-content;
      display: block;
  }
  
  footer .wp-block-heading {
      color: var(--wp--preset--color--grey-2-9);
      letter-spacing: 0.25rem;
      font-family: var(--wp--preset--font-family--heading);
      font-weight: 600;
      margin: 1rem 0 1rem;
      text-align: center;
  }
  
  footer .wp-block-navigation-link a {
      color: var(--wp--preset--color--grey-5-9);
      padding: 0;
  }
  
  footer .wp-block-navigation-link a:hover {
      color: var(--wp--preset--color--white);
  }
  
  
  footer li.has-small-font-size.wp-block-navigation-item.wp-block-navigation-link {
      margin-left: 0.75rem;
  }
  
  footer p {
      color: var(--wp--preset--color--grey-5-9);
      font-family: var(--wp--preset--font-family--ui);
  }
  
  footer .wp-block-social-links {
      gap: var(--wp--preset--spacing--3-9);
      justify-content: center;
      margin: 0 auto;
      width: fit-content;
  }
/*  
footer .wp-block-list {
    color: var(--wp--preset--color--medium-gray);
}*/

footer ul li {
    text-align: left;
    padding: 0.2rem 0;
}

footer .accc-logo-pattern-container figure { 
    text-align: center;
  }

  footer .accc-logo-pattern-container img {
    opacity: 0.4;
    width: 150px;  
  }

  footer .wp-block-column ul.wp-block-list {
    margin-block-end: var(--wp--preset--spacing--7-9);
}




/*
@media (min-width: 640px) {
    footer .wp-block-columns:not(.is-not-stacked-on-mobile) > .wp-block-column {
        flex-basis: 100% !important;
        max-width: 100%;
}
}

@media (min-width: 768px) {
    footer .wp-block-columns:not(.is-not-stacked-on-mobile) > .wp-block-column {
        flex-basis: 50% !important;
        max-width: 50%;
}
}

@media (min-width: 1024px) {
    footer .wp-block-columns:not(.is-not-stacked-on-mobile) > .wp-block-column {
        flex-basis: 25% !important;
        max-width: 25%;
}
}*/







/* Responsive footer columns */
/* Tablet - 2 columns */
@media (min-width: 782px) and (max-width: 1023px) {
    footer .wp-block-columns .wp-block-column {
        flex-basis: 50% !important;
        max-width: 50%;
    }
}

/* Small tablets - 2 columns */
@media (min-width: 600px) and (max-width: 781px) {
    footer .wp-block-columns:not(.is-not-stacked-on-mobile) > .wp-block-column {
        flex-basis: 50% !important;
        max-width: 50%;
    }
}

/* Mobile - 1 column (this overrides WordPress default) */
@media (max-width: 599px) {
    footer .wp-block-columns:not(.is-not-stacked-on-mobile) > .wp-block-column {
        flex-basis: 100% !important;
        max-width: 100%;
    }
}

/*
footer .custom-post-list {
    display: flex;
    justify-content: center;
    /*width: 100%;
}

footer .custom-post-list ul {
    width: fit-content;
    margin: 0 auto;
}*/
/**
 * Module: Form Field
 */
.form-field-group {
    margin-bottom: var(--wp--preset--spacing--4-9);
    flex-wrap: wrap; /* pgb 25-09-05 */
}

.form-field-group label {
    /*was display: block; PGB
    display: inline-block;*/
    font-weight: 600;
    margin-bottom: var(--wp--preset--spacing--1-9);
}

.tds-select-dropdown,
.tds-input-wrapper {
    position: relative;
    height: 2.5rem;
}

.tds-select-dropdown::after {
    content: "\f078"; /* Font Awesome down arrow */
    position: absolute;
    top: 50%;
    right: 18px;
    transform: translateY(-50%);
    pointer-events: none;
    font-family: var(--wp--preset--font-family--icons); /*"Font Awesome 6 Free"; */
    font-weight: 900;
    color: var(--wp--preset--color--grey-6-9);
}
/* Ensure submenu backgrounds match header color */
.wp-block-navigation .wp-block-page-list,
.wp-block-navigation .wp-block-navigation__submenu-container {
    background-color: var(--tds-color-background-header-footer);
}

/* Ensure navigation item text does not wrap */
.wp-block-navigation-item__label {
    white-space: nowrap;
}
/* Header Base Styles */
.site-header-wrapper {
    background-color: var(--tds-color-background-header-footer);
    /*box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);*/
    z-index: 2000;
    position: fixed; /* Changed from sticky for more reliable behavior */
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height, 80px);
}

.site-header {
    width: 100%;
    max-width: 1200px; /* Adjust as per your theme's content width */
    margin: 0 auto;
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 var(--wp--preset--spacing--4-9);
}

body {
    padding-top: var(--header-height, 80px); /* Ensure content isn't hidden */
}

/* Navigation Base */
.wp-block-navigation {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.wp-block-navigation-item {
    position: relative;
    margin: 0;
    display: flex;
    align-items: center;
    /*height: 100%;*/
}

/* UPDATED Base Link Color */
.wp-block-navigation-item a {
    color: var(--tds-color-text-nav-a);
    text-decoration: none;
    padding: 0.5em;
    display: block;
    transition: color 0.2s ease, opacity 0.2s ease; /* Added transition */
}

/* Desktop Navigation */
.navigation-center {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.desktop-navigation {
    display: flex;
    align-items: center;
}

.desktop-navigation .wp-block-navigation__container {
    display: flex;
    flex-direction: row;
    align-items: center;
    /* UPDATED Gap using clamp for responsiveness */
    gap: clamp(1.5rem, 2.5vw, 2.5rem); /* Adjust min, scaling, max as needed */
    margin: 0;
    padding: 0;
}

/* ADDED Desktop link hover */
.desktop-navigation .wp-block-navigation-item a:hover {
    color: #ffffff; /* White color on hover */
    opacity: 0.8; /* Optional: Slight fade effect */
}

/* ADDED Desktop submenu link hover */
.desktop-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item a:hover {
     color: #ffffff;
     opacity: 1; /* Submenu items fully white on hover */
}

/* Responsive Container Controls (Keep hidden) */
.wp-block-navigation__responsive-container-open,
.wp-block-navigation__responsive-container-close {
    display: none !important;
}


/* Submenu Button Styling */
.wp-block-navigation-submenu {
    position: relative;
    padding-right: 20px; /* Space for the toggle */
}

.wp-block-navigation-submenu__toggle {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    width: 12px;
    height: 12px;
    cursor: pointer;
    color: var(--tds-color-text-nav-a);
}

.wp-block-navigation-submenu__toggle svg {
    width: 12px;
    height: 12px;
    stroke: var(--tds-color-text-nav-a);
}

.wp-block-navigation-submenu__toggle:hover,
.wp-block-navigation-submenu__toggle:focus {
    outline: none;
    background: none;
}

.wp-block-navigation-submenu > .wp-block-navigation-item__content {
    padding-right: 0; /* Adjust if needed with toggle */
}

/* Submenu Styling */
.wp-block-navigation__submenu-container {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--tds-color-background-header-footer);
    /*box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);*/
    z-index: 100;
    padding: 1rem;
    white-space: nowrap;
    /* Animation properties */
    transform: translateY(10px); /* Start slightly lower */
    opacity: 0;
    visibility: hidden; /* Use visibility for accessibility */
    transition: transform 0.2s ease, opacity 0.2s ease, visibility 0s linear 0.2s; /* Smooth fade/slide */
    pointer-events: none; /* Prevent interaction when hidden */
}

.wp-block-navigation-submenu:hover > .wp-block-navigation__submenu-container {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    transition: transform 0.2s ease, opacity 0.2s ease, visibility 0s linear 0s;
    pointer-events: auto; /* Re-enable interaction */
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none; /* Hidden by default */
    flex-direction: column;
    justify-content: space-around;
    width: 24px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001; /* Ensure toggle is above header */
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background-color: white;
    transition: all 0.3s linear;
    display: block; /* Ensure spans are block */
}

/* X - close animation */
.mobile-menu-toggle.is-active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.mobile-menu-toggle.is-active span:nth-child(2) {
    transform: scaleX(0);
    opacity: 0;
}

.mobile-menu-toggle.is-active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}


/* === RESPONSIVE & MOBILE MENU STYLES === */
@media (max-width: 999px) {
    .hide-on-mobile {
        display: none !important;
    }

    .mobile-menu-toggle {
        display: flex !important; /* Show toggle */
    }

    /* Mobile Logo */
     .site-header .wp-block-site-logo img {
        height: 80px;
        width: auto;
        box-shadow: none;
    }

    /* UPDATED Mobile Navigation Container */
    .mobile-navigation {
        display: block; /* Make it block for positioning and transition */
        position: fixed;
        top: var(--header-height, 80px); /* Position below header */
        left: 0;
        width: 100%;
        height: calc(100vh - var(--header-height, 80px)); /* Full height minus header */
        background: var(--tds-color-background-mobile-nav);
        padding: var(--wp--preset--spacing--6-9) var(--wp--preset--spacing--4-9); /* More padding */
        box-shadow: inset 0 4px 8px rgba(0, 0, 0, 0.2); /* Inner shadow */
        overflow-y: auto; /* Allow scrolling if content overflows */
        z-index: 1001; /* Below toggle but above content */
        transform: translateX(-100%); /* Start off-screen */
        transition: transform 0.4s ease-in-out; /* Smooth slide transition */
        border-top: var(--wp--custom--tds--border--width--3-5) solid var(--wp--preset--color--grey-8-9); /* Separator line */
    }

    .mobile-navigation.is-open {
        transform: translateX(0); /* Slide in when active */
    }

    .mobile-navigation .wp-block-navigation {
        flex-direction: column;
        width: 100%;
    }

    /* UPDATED Mobile Navigation Item */
    .mobile-navigation .wp-block-navigation-item {
        width: 100%;
        border-bottom: var(--wp--custom--tds--border--width--3-5) solid var(--wp--preset--color--grey-8-9); /* Separator lines */
    }
     .mobile-navigation .wp-block-navigation-item:last-child {
        border-bottom: none; /* No border for the last item */
    }

     /* UPDATED Mobile Navigation Link */
    .mobile-navigation .wp-block-navigation-item a {
        padding: 1rem 0.5rem; /* More padding */
        color: var(--tds-color-text-mob-nav-a);
        display: block; /* Ensure full width clickable */
        width: 100%;
        transition: background-color 0.2s ease, color 0.2s ease; /* Transition for hover */
        font-size: 1.1em; /* Slightly larger font */
    }

     /* ADDED Hover effect for mobile links */
     .mobile-navigation .wp-block-navigation-item a:hover {
        background-color: var(--wp--preset--color--white-opacity-1-5);/*rgba(255, 255, 255, 0.1);  Subtle background highlight */
        color: #fff;
     }

    /* UPDATED Mobile Submenu */
    .mobile-submenu {
        padding-left: 1.5rem; /* More indent */
        margin-top: 0.5rem;
        margin-bottom: 0.5rem;
        border-left: var(--wp--custom--tds--border--width--4-5) solid var(--wp--preset--color--primary); /* Accent line */
        background-color: var(--wp--preset--color--black-opacity-1-5);/*rgba(0,0,0,0.1);  Subtle background */
    }

    .mobile-submenu .wp-block-navigation-link {
        opacity: 0.9;
        font-size: 1em; /* Slightly smaller font */
        padding-top: 0.5rem; /* Adjust padding */
        padding-bottom: 0.5rem;
    }

    .mobile-navigation .mobile-submenu .wp-block-navigation-item.current-menu-item a {
        color: #fff; /* Ensure active sub-items are white */
     }

    /* Hide desktop submenu toggle icon in mobile view */
    .mobile-navigation .wp-block-navigation-submenu__toggle,
    .mobile-navigation .wp-block-navigation__submenu-icon {
        display: none !important;
    }

    /* Ensure desktop submenu containers are hidden properly in mobile */
    .mobile-navigation .wp-block-navigation__submenu-container {
        display: none !important; /* Ensure desktop dropdowns don't show */
    }

    /* UPDATED Mobile Donate Button */
    .mobile-navigation .wp-block-buttons {
        display: flex;
        justify-content: center;
        width: 100%; /* Ensure container takes full width */
        margin-top: 2rem; /* Keep the top margin */
    }

    .mobile-navigation .donate-button {
        width: 100%;
    }

    .mobile-navigation .donate-button .wp-block-button__link {
        width: 100%;
        text-align: center;
    }

    .wp-block-navigation__responsive-container {
        width: 100%;
    }

    .wp-block-navigation__responsive-dialog {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}


@media (min-width: 1000px) {
    .hide-on-desktop {
        display: none !important;
    }
}

/* Mobile Header Actions Fix */
@media (max-width: 999px) { /* Adjusted breakpoint to match mobile styles */
    .header-actions {
        display: flex !important; /* Ensure it shows */
        align-items: center;
        gap: var(--wp--preset--spacing--3-9); /* Spacing for items if needed */
        /* Justify content might not be needed if only toggle is visible */
    }
}

/* Removed gap overrides as clamp() is used now */
/* @media (max-width: 1200px) { ... } */
/* @media (max-width: 1100px) { ... } */


/* Mobile Navigation States */
body.mobile-menu-open {
    overflow: hidden; /* Prevent scrolling body when menu is open */
}

/* Site Logo Styling (Keep as is unless changes needed) */
.wp-block-site-logo {
    height: 100%;
    display: flex;
    align-items: flex-start; /* Or center depending on desired alignment */
    width: 85px; /* Adjust as needed */
}

.wp-block-site-logo img {
    /*max-height: calc(var(--header-height, 80px) - 20px);*/ /* Example: Ensure padding */
    width: auto;
    object-fit: contain;
    box-shadow: var(--wp--preset--color--custom-dark) 0px 0px 30px;  /* Consider removing if too strong */
}


/* ACTIVE STATE STYLES (Desktop & Mobile) */

/* UPDATED Active Link Colors */
.wp-block-navigation-item.current-menu-item > a,
.wp-block-navigation-item.current-menu-ancestor > a {
    color: #fff; /* White for active/ancestor */
}

/* Active Submenu Item Color */
.wp-block-navigation__submenu-container .wp-block-navigation-item.current-menu-item a {
    color: #fff; /* White for active submenu items */
}

/* Active Submenu Toggle Color */
.wp-block-navigation-item.current-menu-ancestor .wp-block-navigation-submenu__toggle,
.wp-block-navigation-item.current-menu-ancestor .wp-block-navigation-submenu__toggle svg {
    color: #fff;
    stroke: #fff;
}

/* UPDATED Mobile Active Styles */
.mobile-navigation .wp-block-navigation-item.current-menu-item > a,
.mobile-navigation .wp-block-navigation-item.current-menu-ancestor > a {
    color: #fff;
    font-weight: bold; /* Optional: Make active mobile links bold */
    background-color: var(--wp--preset--color--white-opacity-1-5);
}
/* Donation Page Layout Styles */
.donation-content-wrapper {
    position: relative;
    z-index: 10;
}

.donation-content-wrapper ul {
    font-family: var(--wp--preset--font-family--base);
    font-size: 1.1rem;
    font-style: normal;
    font-weight: 400;
    line-height: 1.85625rem;
    color: var(--tds-color-text); 
    margin-bottom: var(--wp--preset--spacing--5-9);
}

.donation-content-wrapper .wp-block-columns {
    gap: var(--wp--preset--spacing--8-9); /* 40px */
    align-items: flex-start;
}

.donation-content-wrapper .donation-section {
    box-shadow: var(--wp--custom--shadows--card, 0 4px 20px rgba(0, 0, 0, 0.1));
    position: relative;
}

/* Content Section Styling */
.content-section {
    padding-top: var(--wp--preset--spacing--8-9); /* 40px */
}

/* Mobile Responsive Layout */
@media (max-width: 781px) {
    .donation-content-wrapper {
        
    }
    
    .donation-content-wrapper .wp-block-columns {
        flex-direction: column;
    }
    
    .donation-content-wrapper .wp-block-column {
        flex-basis: 100% !important;
        max-width: 100%;
        margin-top: 0 !important;
    }
    
    /* On mobile: donation form comes first, then content */
    .donation-content-wrapper .wp-block-columns {
        display: flex;
        flex-direction: column;
    }
    
    .donation-content-wrapper .wp-block-column:first-child {
        order: 2; /* Content section moves to second */
    }
    
    .donation-content-wrapper .wp-block-column:last-child {
        order: 1; /* Donation form moves to first */
        margin-bottom: var(--wp--preset--spacing--7-9); /* 30px */
    }
    
    .donation-content-wrapper .donation-section {
        margin-left: -20px;
        margin-right: -20px;
        border-radius: 0 !important;
    }
    
    .content-section {
        padding-top: 0;
    }
}
/**
 * Module: Post Card
 * Styles for the elements within a post list item,
 * combining styles for several core post blocks.
 */

/* From core/post-featured-image */
.wp-block-post-featured-image img {
    object-fit: cover;
    width: 100%;
    height: 200px;
}

/* From core/post-title */
.wp-block-post-title {
    font-size: 1.2rem;
    margin-top: 1rem;
}

/* From core/post-excerpt */
.wp-block-post-excerpt {
    font-size: 0.9rem;
}

/* From core/read-more */
.wp-block-read-more {
    text-decoration: none;
    margin-top: 1rem;
}

.wp-block-read-more:hover {
    text-decoration: underline;
}
/**
 * Module: Post Template
 * Styles for the core/post-template block wrapper.
 *
 * Purpose | Specific, single-purpose layout manager.
 * Role    | A structural component (a "grid" or "list").
 * Context | Used in archive/index templates to control the main loop.
 * Analogy | A specific car chassis.
 */
.wp-block-post-template {
    gap: 2rem; /* From spacing.blockGap */
}
/* 
File: custom-block-styles.css
Path: /assets/css/custom-block-styles.css
*/

/*
Following Separation of Concerns by properly separating block styles from page-specific styles, which aligns with WordPress's component-based approach.
These block styles will be available globally, ensuring that all the blocks will display correctly wherever they appear in the site.
*/

/* ----------------------------------------Common Grid Styles ----------------------------------------  */
.hrf-item-grid__blurb {
    max-width: 900px; /*(--wp--custom--grid-content-width);*/
    margin-bottom: 2rem;
}

/* ----------------------------------------Event List Style ----------------------------------------  */
.is-style-event-list {
    list-style-type: none;
    padding-left: 0;
}

.is-style-event-list li {
    margin-bottom: var(--wp--preset--spacing--30);
    border-bottom: 1px solid var(--wp--preset--color--light-gray);
    padding-bottom: var(--wp--preset--spacing--20);
}

.is-style-event-list li:last-child {
    border-bottom: none;
}

/* Featured Project Pattern */
.wp-block-group .wp-block-columns.are-vertically-aligned-center {
    align-items: center;
}

/* Nature Inspired Button hover effect - don think this even exists? */
.is-style-nature-inspired .wp-block-button__link:hover {
    transform: translateY(-2px);
    box-shadow: var(--wp--preset--shadow--1-5); /* "0 2px 4px rgba(0,0,0,0.1)" */
}

/* Responsive adjustments - check why i was attempting this - as it never worked whther i knew or not due to var in query 
@media (max-width: var(--wp--custom--tablet-breakpoint)) {
    .hrf-item-grid__blurb {
        max-width: 100%;
        padding-left: var(--wp--preset--spacing--20);
        padding-right: var(--wp--preset--spacing--20);
    }
}*/

/* ----------------------------------------Project Block Styles ----------------------------------------  */
/* These styles are for the wp-block-hrf-management-base-item-grid block type with project data */

.hrf-project-card {
    position: relative;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    border-radius: var(--wp--custom--tds--border--radius--2-5);
    overflow: hidden;
}

.hrf-project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.75) 0%,
        rgba(0, 0, 0, 0.4) 40%,
        rgba(0, 0, 0, 0) 100%
    );
}

.hrf-project-card__content {
    position: relative;
    height: 400px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: white;
}

.hrf-project-card__title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    color: white;
    line-height: 1.2;
}

.hrf-project-card__action {
    margin-bottom: 0.5rem;
}

.hrf-project-card__button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background-color: #00A651;
    color: white;
    text-decoration: none;
    border-radius: var(--wp--custom--tds--border--radius--1-5);
    transition: background-color 0.3s ease;
}

.hrf-project-card__button:hover {
    background-color: #008c44;
}

.hrf-project-card__button-icon {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

.hrf-project-card__button:hover .hrf-project-card__button-icon {
    transform: translateY(2px);
} 

main section .hrf-item-grid[data-post-type=hrf_project] .hrf-item-grid__items {
    grid-template-columns: repeat(auto-fit, minmax(200px, 400px)) !important;
}

a.hrf-project-card__button {
    visibility: hidden;
}

p.hrf-event-thumbnail__time, p.hrf-event-thumbnail__address {
    color: white;
}
/* Board Members Page Styles */
.board-members-title {
    font-family: var(--wp--preset--font-family--ui);
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: var(--wp--preset--font-size--extra-small);
    margin-top: calc(var(--wp--preset--spacing--20) * -2) !important;
    margin-bottom: var(--wp--preset--spacing--20) !important;
    color: var(--wp--preset--color--grey-7-9) !important;
}

/* 
 * Responsive Board Members Columns 
 * 3 columns on desktop (WordPress default)
 * 2 columns on tablet (our custom layout)
 * 1 column on mobile (WordPress default)
 */

/* Board Members Grid Layout */
.board-members-columns {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 20px !important;
    width: 100% !important;
}

.board-members-column {
    margin: 0 !important;
    width: 100% !important;
}

/* Responsive adjustments */
@media (max-width: 781px) and (min-width: 600px) {
    .board-members-columns {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 599px) {
    .board-members-columns {
        grid-template-columns: 1fr !important;
    }
}

/* Card styling */
.board-members-card {
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.board-members-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--wp--custom--box-shadow--medium);
}
/**
 * Vendor: another-mailchimp-widget
 * Overrides the default styles for the mailchimp form found at:
 * http://.../wp-content/plugins/another-mailchimp-widget/assets/css/style.css
 */
 .subscription-blurb {
    font-family: var(--wp--preset--font-family--base);
    font-size: 1.1rem;
    font-style: normal;
    font-weight: 400;
    line-height: 1.85625rem;
    color: var(--tds-color-text); 
    margin-bottom: var(--wp--preset--spacing--5-9);
}

.submit-wrap {
    width: 100%;
    max-width: 200px;
    margin-top: var(--wp--preset--spacing--2-9);
}

.an_mailchimp_wrapper form p:not(.notification) {
    display: none;
}

.an_mailchimp_wrapper .inline-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--wp--preset--spacing--2-9);
}

.an_mailchimp_wrapper .form-fields {
    gap: 2.25rem;
}

.an_mailchimp_wrapper .field-wrap input {
    box-shadow: unset;
    border-radius: 0;
    border: none;
    border-bottom: var(--wp--custom--tds--border--width--4-5) solid;
}

.an_mailchimp_wrapper .hidden-fields {
    display: none;
}

/* Button */
.mpam-submit {
    /* This rule will be replaced by the entire style block
       from the .tds-button selector during compilation. */
    border-width: 0;
  border-style: none;
  border-radius: var(--wp--custom--tds--border--radius--5-5);
  color: var(--wp--preset--color--white);
  background-color: var(--tds-color-button-primary-bg);
  font-size: clamp(1rem, 1.5vw, 1.3rem);
  letter-spacing: 0.01rem;
  font-family: var(--wp--preset--font-family--ui);
  padding: var(--wp--preset--spacing--6-9);
  transition: var(--wp--custom--tds--transition--preset--base);
  line-height: 0;
  box-shadow: var(--wp--preset--shadow--2-5);
  
  text-decoration: none;
  min-width: var(--wp--preset--spacing--9-9);
  display: inline-block;
  text-align: center;
  cursor: pointer;
}

.mpam-submit:hover {
    background-color: var(--tds-color-button-primary-bg-hover);
}

/**
 * Vendor: wp-swiper
 * Overrides
 * http://.../wp-content/plugins/wp-swiper/style.css
 */
/*---------------------------------------- Section: WP Swiper Height Fix ---------------------------------------- */
/* WP Swiper Height Fix 
-- TODO: Ascertain why autoheight is not working.
-- This is a temporary fix for the WP Swiper plugin.
*/

.wp-swiper__wrapper {
    height: 650px;
}

.wp-swiper .swiper-container,
.wp-swiper .swiper-wrapper {
    height: 100%;
}

.wp-swiper .wp-swiper__slide {
    height: 100%;
}

/* Slide Content Wrapper */
.wp-swiper__slide-content-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

/* Background Image */
.wp-swiper__background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/placeholder.svg?height=500&width=1200');
    background-size: cover;
    background-position: center;
}

/* Blurred Left Column */
.wp-swiper__blur {
    position: absolute;
    top: 0;
    left: 0;
    width: 40%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px); /* Vendor prefix for compatibility */
}

/* Content Container */
.wp-swiper__content {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 40%;
    padding: 0 40px;
    box-sizing: border-box;
}

.wp-swiper__inner-content {
    max-width: 100%;
}

/* Typography */
.wp-swiper__content h1 {
    font-family: 'Poppins';
    font-size: clamp(2rem, 4vw, 3.5rem);
    margin: 0 0 1rem 0;
    color: white;
    line-height: 1.2;
}

.wp-swiper__content p {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    margin: 0 0 2rem 0;
    color: white;
    line-height: 1.5;
    opacity: 0.9;
}



/* Navigation Arrows */
.wp-swiper__slide-content-wrapper button[aria-label="Previous slide"],
.wp-swiper__slide-content-wrapper button[aria-label="Next slide"] {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

.wp-swiper__slide-content-wrapper button[aria-label="Previous slide"] {
    left: 20px;
}

.wp-swiper__slide-content-wrapper button[aria-label="Next slide"] {
    right: 20px;
}

/* Swiper Navigation */
.swiper-button-next, .swiper-button-prev {
    width: 50px;
    height: 50px;
    color: white;
}

.swiper-button-next:after, .swiper-button-prev:after {
    font-size: 2rem;
}

.swiper-pagination-bullet {
    background: white;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.swiper-pagination-bullet-active {
    opacity: 1;
}

/* Actually remove inline navigation buttons if using Swiper's */
button[aria-label="Next slide"], 
button[aria-label="Previous slide"] {
    display: none;
}

/* Overlayed */
.wp-swiper__slide .wp-swiper__slide-content {
    height: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

/* Media query for tablet breakpoint and below
@media (max-width: 768px) {*/

@media (max-width: 640px) {
    /* Blurred Bottom Column */
    .wp-swiper__blur {
        top: auto;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 50%; /* Max height of 50% */
        background: linear-gradient(
            to top,
            rgba(0, 0, 0, 1) 0%,
            rgba(0, 0, 0, 0) 100%
        );
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        /* Apply gradient mask to transition blur effect */
        -webkit-mask: linear-gradient(
            to top,
            rgba(0, 0, 0, 1) 0%,
            rgba(0, 0, 0, 0) 100%
        );
        mask: linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0) 0%,
            rgba(0, 0, 0, 1) 30%
        );
}

    /* Content Container - Move to bottom */
    .wp-swiper__content {
        width: 100%;
        padding: 20px 40px;
        position: absolute;
        top: auto;
        bottom: 0;
        left: 0;
        justify-content: flex-end;
    }

    /* Center the orange button */
    .wp-swiper__content button {
        display: block;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 2rem;
    }

    /* Adjust text sizes for better legibility */
    .wp-swiper__content h1 {
        font-size: clamp(1.5rem, 3vw, 2.5rem);
    }

    .wp-swiper__content p {
        font-size: clamp(0.9rem, 1.2vw, 1rem);
    }
}
/*
 * Vendor: Overrides for third-party plugins to make them conform to the TDS button style.
 *
/* Buttons */
.wp-swiper__content button {
    /* This rule will be replaced by the entire style block
       from the .tds-button selector during compilation. */
    border-width: 0;
  border-style: none;
  border-radius: var(--wp--custom--tds--border--radius--5-5);
  color: var(--wp--preset--color--white);
  background-color: var(--tds-color-button-primary-bg);
  font-size: clamp(1rem, 1.5vw, 1.3rem);
  letter-spacing: 0.01rem;
  font-family: var(--wp--preset--font-family--ui);
  padding: var(--wp--preset--spacing--6-9);
  transition: var(--wp--custom--tds--transition--preset--base);
  line-height: 0;
  box-shadow: var(--wp--preset--shadow--2-5);
  
  text-decoration: none;
  min-width: var(--wp--preset--spacing--9-9);
  display: inline-block;
  text-align: center;
  cursor: pointer;
    background-color: var(--tds-color-button-orange-bg);
    color: var(--tds-color-button-orange-text);
}

.wp-swiper__content button:hover {
    background-color: var(--tds-color-button-primary-bg-hover);
    background-color: var(--tds-color-button-orange-bg-hover);
    color: var(--tds-color-button-orange-text);
    opacity: 1;
}
/**
 * block-styles: hero-section_wp-swiper.css
 * Overrides: vendor/wp-swiper.css
 */
.hero-section .wp-swiper h1 {
    font-weight: 700;
}

.hero-section .wp-swiper>.wp-swiper__wrapper {
    margin-bottom: 0;
}

.hero-section .swiper-button-next {
    background-image: linear-gradient(to left, rgba(0, 0, 0, 0.5), transparent);
    border-radius: 0 var(--wp--custom--tds--border--radius--5-5) var(--wp--custom--tds--border--radius--5-5) 0;
}

.hero-section .swiper-button-prev {
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0.5), transparent);
    border-radius: var(--wp--custom--tds--border--radius--5-5) 0 0 var(--wp--custom--tds--border--radius--5-5);
}

.hero-section .swiper-button-next:hover {
    background-image: linear-gradient(to left, rgba(0, 0, 0, 0.75), transparent);
    transform: scale(1.1);
}

.hero-section .swiper-button-prev:hover {
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0.75), transparent);
    transform: scale(1.1);
}
.wp-block-column:has(.hrf-project-details-block){
	background-color: #f3f3f3; /*var(--wp--preset--color--grey-1-9);*/
    border-radius: var(--wp--custom--tds--border--radius--2-5) var(--wp--custom--tds--border--radius--2-5) 0 0; /* Tops */
}

.hrf-project-details-block, .hrf-project-costs-block {
	padding: var(--wp--preset--spacing--4-9);
    padding-left: var(--wp--preset--spacing--7-9);
}

.hrf-project-details-block h3, .hrf-project-costs-block h3 {
	font-family: var(--wp--preset--font-family--base);
}

.hrf-project-details-block p, .hrf-project-costs-block p {
	font-family: var(--wp--preset--font-family--ui);
}

.hrf-project-details-block .details-value {
    color: var(--wp--preset--color--grey-7-9);
}

/* Map */
.single-hrf_project .b2n-osm-map {
    border-radius: 0 0 var(--wp--custom--tds--border--radius--2-5) var(--wp--custom--tds--border--radius--2-5); /* Bottoms */
}


/*@media (max-width: 768px) {*/
@media (min-width: 768px) {
    .wp-block-column:has(.hrf-project-details-block) {
        border-radius: var(--wp--custom--tds--border--radius--2-5) 0 0 var(--wp--custom--tds--border--radius--2-5);
}

    .single-hrf_project .b2n-osm-map {
        border-radius: 0 var(--wp--custom--tds--border--radius--2-5) var(--wp--custom--tds--border--radius--2-5) 0;
    }
}
/* Project Gallery Styles */
.single-hrf_project .hrf-project-gallery {
    margin: 0;/*2rem 0;*/
}

.single-hrf_project .hrf-project-gallery__carousel {
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.single-hrf_project .hrf-project-gallery__image {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    overflow: hidden;
}

.single-hrf_project .hrf-project-gallery__image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.single-hrf_project .hrf-project-gallery__image:hover img {
    transform: scale(1.05);
}

.single-hrf_project .hrf-project-gallery__caption {
    position: absolute;
    bottom: 0;
    left: unset;
    right: 0;
    background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.0),        /* 0% — fully transparent */
    rgba(0, 0, 0, 0.5) 33%,    /* 33% — semi-transparent black */
    rgba(0, 0, 0, 0.7) 100%    /* 100% — more opaque black */
    );
    color: white;
    padding: 1rem 1rem 1rem 2rem;
    font-size: 0.9rem;
    text-align: center;
    font-family: var(--wp--preset--font-family--ui);
    opacity: 0.75;
}

/* Swiper Navigation Styles for Project Gallery */
.single-hrf_project .hrf-project-gallery .swiper-button-prev,
.single-hrf_project .hrf-project-gallery .swiper-button-next {
    color: white;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    margin-top: -22px;
    transition: all 0.3s ease;
}

.single-hrf_project .hrf-project-gallery .swiper-button-prev:hover,
.single-hrf_project .hrf-project-gallery .swiper-button-next:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

.single-hrf_project .hrf-project-gallery .swiper-button-prev::after,
.single-hrf_project .hrf-project-gallery .swiper-button-next::after {
    font-size: 18px;
}

/* Swiper Pagination Styles for Project Gallery */
.single-hrf_project .hrf-project-gallery .swiper-pagination {
    bottom: 1rem;
}

.single-hrf_project .hrf-project-gallery .swiper-pagination-bullet {
    background: white;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.single-hrf_project .hrf-project-gallery .swiper-pagination-bullet-active {
    opacity: 1;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .single-hrf_project .hrf-project-gallery__image {
        padding-bottom: 75%; /* 4:3 aspect ratio on mobile */
    }
    
    .single-hrf_project .hrf-project-gallery .swiper-button-prev,
    .single-hrf_project .hrf-project-gallery .swiper-button-next {
        width: 36px;
        height: 36px;
        margin-top: -18px;
    }
    
    .single-hrf_project .hrf-project-gallery .swiper-button-prev::after,
    .single-hrf_project .hrf-project-gallery .swiper-button-next::after {
        font-size: 14px;
    }

    .single-hrf_project .hrf-project-gallery__caption {
        display: none;
    }
}

/* Full Width Project Gallery Styles */
.single-hrf_project .hrf-project-gallery.full-width {
    width: 100vw !important;
    max-width: none !important;
}

.single-hrf_project .hrf-project-gallery.full-width .hrf-project-gallery__carousel {
    border-radius: 0;
    /*box-shadow: none;*/
}
/**
 * Label: Orange
 */
.is-style-orange .wp-block-button__link,
.tds-button--orange {
    border-width: 0;
  border-style: none;
  border-radius: var(--wp--custom--tds--border--radius--5-5);
  color: var(--wp--preset--color--white);
  background-color: var(--tds-color-button-primary-bg);
  font-size: clamp(1rem, 1.5vw, 1.3rem);
  letter-spacing: 0.01rem;
  font-family: var(--wp--preset--font-family--ui);
  padding: var(--wp--preset--spacing--6-9);
  transition: var(--wp--custom--tds--transition--preset--base);
  line-height: 0;
  box-shadow: var(--wp--preset--shadow--2-5);
  
  text-decoration: none;
  min-width: var(--wp--preset--spacing--9-9);
  display: inline-block;
  text-align: center;
  cursor: pointer;
    background-color: var(--tds-color-button-orange-bg);
    color: var(--tds-color-button-orange-text);
}

.is-style-orange .wp-block-button__link:hover,
.tds-button--orange:hover {
    background-color: var(--tds-color-button-primary-bg-hover);
    background-color: var(--tds-color-button-orange-bg-hover);
    color: var(--tds-color-button-orange-text);
    opacity: 1;
}
/**
 * Label: Outline
 */
.is-style-outline .wp-block-button__link,
.tds-button--outline {
    background-color: transparent;
    border-color: var(--tds-color-button-orange-bg);
    color: var(--tds-color-button-orange-bg);
}

.is-style-outline .wp-block-button__link:hover,
.tds-button--outline:hover {
    background-color: var(--tds-color-button-orange-bg);
    color: var(--wp--preset--color--white);
    opacity: 1;
}
/**
 * Label: Secondary
 */
.is-style-secondary .wp-block-button__link,
.tds-button--secondary {
    background-color: var(--wp--preset--color-secondary);
    color: var(--wp--preset--color-text);
}
