/**
 * Action for Humanity Page Styles
 * Typography matches home.css exactly
 * Updated to match home page cream/tan/brown color theme
 */

/* Header: same as home page (home.css only; no Bricks/theme overrides on this page) */

/* ====================
   AFH CSS CUSTOM PROPERTIES
   ==================== */
:root {
    /* AFH Primary Colors (Cream/Tan/Brown Theme - matches home.css) */
    --afh-primary: #D2B48C;
    --afh-primary-dark: #995A3B;
    --afh-primary-light: #FCF1DD;
    --afh-primary-hover: #C4A67C;

    /* AFH Background Colors */
    --afh-bg-white: #ffffff;
    --afh-bg-off-white: #F8F5F0;
    --afh-bg-light-cream: #FCF1DD;
    --afh-bg-dark: #995A3B;

    /* AFH Text Colors */
    --afh-text-dark: #17110A;
    --afh-text-medium: #4a4a4a;
    --afh-text-light: #ffffff;
    --afh-text-accent: #D2B48C;
}

/* ====================
   HERO SECTION OVERRIDES
   ==================== */
.hero-section {
    position: relative;
    min-height: 92vh;
    display: flex;
    align-items: flex-start;
    padding: 120px 0;
    border-radius: 0 !important;
}

.hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    border-radius: 0 !important;
}

.hero-image-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.45) 45%, transparent 100%);
    z-index: 1;
}

/* Ensure hero image overlays never block CTA clicks */
.hero-image-wrapper,
.hero-image-wrapper::after {
    pointer-events: none;
}

.hero-image-wrapper .hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 0 !important;
}

.hero-section .hero-container {
    position: relative;
    z-index: 1;
}

.hero-section .hero-content {
    color: var(--afh-text-light);
    margin-top: 200px;
}

.hero-section .hero-eyebrow {
    color: var(--afh-primary);
}

.hero-section .hero-title {
    color: var(--afh-text-light);
}

.hero-section .hero-subtitle {
    color: var(--afh-text-light);
    max-width: 600px;
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 32px;
}

/* Hero buttons - match home.css with cream/tan theme colors */
.hero-section .btn-primary {
    background: var(--afh-primary);
    box-shadow: 0 2px 8px rgba(210, 180, 140, 0.15);
}

.hero-section .btn-primary:hover {
    background: var(--afh-primary-dark);
    box-shadow: 0 4px 12px rgba(153, 90, 59, 0.2);
    color: var(--afh-text-light);
}

.hero-section .btn-secondary {
    background: #ffffff;
    border: 2px solid var(--afh-primary);
    color: var(--afh-primary);
}

.hero-section .btn-secondary:hover {
    background: var(--afh-primary);
    color: #fff;
}

.hero-section .scroll-indicator {
    color: var(--afh-text-light);
}

/* ====================
   AFH INTRO SECTION
   ==================== */
.afh-intro-section {
    padding: 72px 0 80px;
    background-color: var(--afh-bg-white);
}

.afh-intro-grid {
    display: grid;
    grid-template-columns: minmax(240px, 320px) minmax(0, 720px);
    gap: 60px;
    align-items: stretch;
    justify-content: center;
}

.afh-intro-sidebar {
    position: sticky;
    top: 100px;
    align-self: stretch;
}

.afh-sidebar-content {
    background: var(--afh-bg-light-cream);
    padding: 19px;
    border-radius: 12px;
    border-left: 4px solid var(--afh-primary);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.afh-sidebar-heading {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    color: var(--afh-primary-dark);
    margin-bottom: 11px;
}

.afh-sidebar-info {
    margin-bottom: 11px;
}

.afh-sidebar-info p {
    margin-bottom: 8px;
    font-size: 15px;
    color: var(--afh-text-dark);
    line-height: 1.7;
}

.afh-qr-code-box {
    margin: 11px 0;
    padding-top: 11px;
    border-top: 1px solid rgba(210, 180, 140, 0.3);
    text-align: center;
}

.afh-qr-code {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 8px;
}

.afh-social-link-box {
    padding-top: 9px;
    border-top: 1px solid rgba(210, 180, 140, 0.3);
}

.afh-social-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--afh-primary-dark);
    font-size: 15px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.afh-social-link:hover {
    color: var(--afh-primary);
}

.afh-social-link svg {
    width: 24px;
    height: 24px;
}

.afh-intro-main {
    max-width: 700px;
    margin-top: -8px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.afh-page-title {
    font-family: var(--font-heading);
    font-size: clamp(44px, 6vw, 72px);
    font-weight: 900;
    line-height: 1.12;
    color: var(--afh-text-dark);
    margin-bottom: 24px;
    letter-spacing: -0.02em;
    text-wrap: balance;
}

.afh-intro-text {
    font-size: clamp(15.5px, 1.35vw, 19.5px);
    line-height: 1.75;
    color: var(--afh-text-medium);
    margin-bottom: 30px;
    max-width: 62ch;
}

.afh-intro-main .afh-btn-secondary {
    width: 100%;
    max-width: 69ch;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    white-space: normal;
    text-align: center;
}

/* ====================
   AFH BUTTONS (Match home.css exactly)
   ==================== */
.afh-btn-primary {
    display: inline-block;
    padding: 14px 28px;
    background: var(--afh-primary);
    color: #fff;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(210, 180, 140, 0.15);
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.afh-btn-primary:hover {
    background: var(--afh-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(153, 90, 59, 0.2);
    color: #fff;
}

.afh-btn-secondary {
    display: inline-block;
    background: #ffffff;
    border: 2px solid var(--afh-primary);
    color: var(--afh-primary-dark);
    padding: 14px 34px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none;
    transition: 0.3s ease;
    font-family: var(--font-body);
}

.afh-btn-secondary:hover {
    background: var(--afh-primary);
    color: #fff;
}

.afh-btn-outline {
    display: inline-block;
    background: transparent;
    color: var(--afh-primary-dark);
    padding: 14px 28px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    border: 2px solid var(--afh-primary);
    transition: all 0.3s ease;
    font-family: var(--font-body);
    text-decoration: none;
}

.afh-btn-outline:hover {
    background: var(--afh-primary);
    color: #fff;
}

.afh-btn-white {
    display: inline-block;
    background: var(--afh-bg-white);
    color: var(--afh-primary-dark);
    padding: 14px 28px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    border: 2px solid var(--afh-bg-white);
    transition: all 0.3s ease;
    font-family: var(--font-body);
    text-decoration: none;
}

.afh-btn-white:hover {
    background: var(--afh-bg-light-cream);
    border-color: var(--afh-bg-light-cream);
    color: var(--afh-primary-dark);
}

.afh-btn-white-outline {
    display: inline-block;
    background: transparent;
    color: var(--afh-bg-white);
    padding: 14px 28px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    border: 2px solid var(--afh-bg-white);
    transition: all 0.3s ease;
    font-family: var(--font-body);
    text-decoration: none;
}

.afh-btn-white-outline:hover {
    background: var(--afh-bg-white);
    color: var(--afh-primary-dark);
}

/* ====================
   AFH MISSION SECTION
   ==================== */
.afh-mission-section {
    padding: 100px 0;
    background: var(--afh-bg-off-white);
}

.afh-mission-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: stretch;
}

.afh-mission-image-wrapper {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(153, 90, 59, 0.15);
    min-height: 550px;
    margin-top: 4px;
}

.afh-mission-image {
    width: 100%;
    height: 100%;
    min-height: 550px;
    object-fit: cover;
    object-position: center 40%;
    display: block;
}

.afh-mission-content {
    max-width: 550px;
    margin-left: -1px;
}

.afh-section-title {
    font-family: var(--font-heading);
    font-size: clamp(42px, 5vw, 58px);
    font-weight: 900;
    color: var(--afh-text-dark);
    margin-bottom: 8px;
    transform: translateX(-5px);
    line-height: 1.2;
}

.afh-section-title.centered {
    text-align: center;
    transform: none;
}

.afh-section-subtitle {
    font-size: 15px;
    color: var(--afh-primary-dark);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 24px;
}

.afh-section-subtitle.centered {
    text-align: center;
}

.afh-mission-text p {
    font-size: 18px;
    line-height: 1.8;
    color: var(--afh-text-medium);
    margin-bottom: 20px;
}

.afh-mission-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 30px;
}

/* Keep all PayPal donation links clickable above decorative layers */
body.lj-page-action-for-humanity a[href*="paypal.com/donate"] {
    position: relative;
    z-index: 999;
    pointer-events: auto !important;
    cursor: pointer !important;
}

body.lj-page-action-for-humanity .hero-buttons,
body.lj-page-action-for-humanity .afh-mission-buttons,
body.lj-page-action-for-humanity .afh-tab-content {
    position: relative;
    z-index: 998;
}

body.lj-page-action-for-humanity .afh-tabs-section::before,
body.lj-page-action-for-humanity .scroll-indicator,
body.lj-page-action-for-humanity .afh-tab-content .afh-btn-primary::before {
    pointer-events: none !important;
}

/* ====================
   AFH TABS SECTION - MODERN REDESIGN
   ==================== */
.afh-tabs-section {
    padding: 120px 0 140px;
    background: var(--afh-bg-off-white);
    position: relative;
    overflow: hidden;
}

/* Subtle decorative background */
.afh-tabs-section::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -100px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(210, 180, 140, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

/* Tabs Controls - Arrow Navigation */
.afh-tabs-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin: 0 0 70px;
}

.afh-tab-arrow {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 1px solid var(--afh-primary-dark);
    background: #fff;
    color: var(--afh-primary-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.afh-tab-arrow:hover {
    background: var(--afh-primary-dark);
    color: #fff;
    transform: translateY(-1px);
}

.afh-tab-arrow:focus-visible {
    outline: 2px solid rgba(153, 90, 59, 0.4);
    outline-offset: 3px;
}

.afh-tab-label {
    min-width: 180px;
    text-align: center;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--afh-primary-dark);
}

/* Tab Navigation - Modern Pill Style */
.afh-tabs-nav {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 14px;
    margin: 0 0 70px;
    padding: 0;
    background: transparent;
    position: relative;
}

.afh-tab-button {
    padding: 10px 18px;
    background: #fff;
    border: 1px solid rgba(153, 90, 59, 0.25);
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    color: var(--afh-primary-dark);
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    font-family: var(--font-body);
    position: relative;
    z-index: 1;
    letter-spacing: 0.02em;
}

.afh-tab-button::after {
    content: none;
}

.afh-tab-button:hover:not(.active) {
    background: var(--afh-bg-light-cream);
    border-color: rgba(153, 90, 59, 0.45);
}

.afh-tab-button.active {
    background: var(--afh-primary-dark);
    border-color: var(--afh-primary-dark);
    color: var(--afh-text-light);
}

.afh-tab-button:focus-visible {
    outline: 2px solid rgba(153, 90, 59, 0.4);
    outline-offset: 4px;
}

/* Tab Panels */
.afh-tab-panel {
    display: none;
}

.afh-tab-panel.active {
    display: block;
    animation: tabFadeIn 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes tabFadeIn {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Modern Asymmetric Grid Layout */
.afh-tab-grid {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 80px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

/* Image Container - Modern Card Style */
.afh-tab-image-wrapper {
    position: relative;
}

.afh-tab-image-wrapper figure {
    position: relative;
    margin: 0;
}

.afh-tab-image {
    width: 100%;
    height: 480px;
    object-fit: cover;
    display: block;
    border-radius: 20px;
    box-shadow:
        0 20px 50px rgba(153, 90, 59, 0.12),
        0 8px 20px rgba(0, 0, 0, 0.06);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.afh-tab-image-wrapper:hover .afh-tab-image {
    transform: translateY(-6px);
    box-shadow:
        0 30px 60px rgba(153, 90, 59, 0.15),
        0 12px 24px rgba(0, 0, 0, 0.08);
}

/* Lebanon tab image - 20px shorter */
#tab-lebanon .afh-tab-image {
    height: 460px;
}

/* Gambia tab image - smaller height */
#tab-gambia .afh-tab-image {
    height: 440px;
}

/* Move Lebanon image down slightly */
#tab-lebanon .afh-tab-image-wrapper {
    margin-top: 0px;
}

/* Move Libya image down slightly */
#tab-libya .afh-tab-image-wrapper {
    margin-top: 8px;
}

/* Move Gambia image down */
#tab-gambia .afh-tab-image-wrapper {
    margin-top: 8px;
}

/* Gambia title - wider max-width to prevent wrapping */
#tab-gambia .afh-section-title {
    max-width: 580px;
}

/* Caption Below Image */
.afh-tab-image-wrapper figcaption {
    margin-top: 33px;
    padding: 18px 24px;
    background: var(--afh-bg-light-cream);
    font-size: 16px;
    color: var(--afh-text-medium);
    line-height: 1.65;
    border-radius: 12px;
    border-left: 3px solid var(--afh-primary);
    font-style: italic;
}

/* Content Area - Enhanced Typography */
.afh-tab-content {
    padding: 20px 0;
}

.afh-tab-content .afh-section-title {
    font-size: clamp(36px, 4.5vw, 52px);
    margin-bottom: 28px;
    transform: none;
    letter-spacing: -0.02em;
    position: relative;
    max-width: 520px;
}

.afh-tab-content p {
    font-size: 17px;
    line-height: 1.9;
    color: var(--afh-text-medium);
    margin-bottom: 36px;
    max-width: 520px;
}

/* Modern Initiative List with Icons */
.afh-initiative-list {
    list-style: none;
    margin-bottom: 44px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.afh-initiative-list li {
    position: relative;
    padding-left: 36px;
    font-size: 15px;
    color: var(--afh-text-dark);
    line-height: 1.7;
    font-weight: 500;
    transition: transform 0.3s ease;
}

.afh-initiative-list li:hover {
    transform: translateX(4px);
}

.afh-initiative-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    background: var(--afh-bg-light-cream);
    border-radius: 50%;
    border: 2px solid var(--afh-primary);
}

.afh-initiative-list li::after {
    content: '';
    position: absolute;
    left: 7px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: var(--afh-primary);
    border-radius: 50%;
}

/* Enhanced CTA Button */
.afh-tab-content .afh-btn-primary {
    padding: 18px 36px;
    font-size: 15px;
    border-radius: 50px;
    letter-spacing: 0.03em;
    box-shadow: 0 6px 20px rgba(210, 180, 140, 0.3);
    position: relative;
    overflow: hidden;
}

.afh-tab-content .afh-btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: left 0.5s ease;
}

.afh-tab-content .afh-btn-primary:hover::before {
    left: 100%;
}

.afh-tab-content .afh-btn-primary:hover {
    box-shadow: 0 10px 30px rgba(153, 90, 59, 0.3);
    transform: translateY(-3px);
}

/* ====================
   AFH IMPACT SECTION
   ==================== */
.afh-impact-section {
    padding: 100px 0;
    background: var(--afh-bg-off-white);
}

.afh-impact-section .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.afh-impact-header {
    margin-bottom: 60px;
    text-align: center;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.afh-impact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    width: 100%;
    max-width: 1200px;
}

.afh-impact-card {
    background: var(--afh-bg-white);
    padding: 40px 30px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(153, 90, 59, 0.08);
    transition: transform 0.3s ease;
}

.afh-impact-card:hover {
    transform: translateY(-5px);
}

.afh-impact-number {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 700;
    color: var(--afh-primary-dark);
    line-height: 1;
    margin-bottom: 16px;
}

.afh-impact-number .suffix {
    color: var(--afh-primary);
}

.afh-impact-title {
    font-size: 22px;
    font-weight: 700;
    font-family: var(--font-heading);
    color: var(--afh-text-dark);
    margin-bottom: 12px;
}

.afh-impact-description {
    font-size: 15px;
    color: var(--afh-text-medium);
    line-height: 1.7;
}

/* ====================
   AFH SUPPORT CTA SECTION
   ==================== */
.afh-support-cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--afh-primary) 0%, var(--afh-primary-dark) 100%);
    text-align: center;
}

.afh-support-cta-section .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.afh-cta-title {
    font-family: var(--font-heading);
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 900;
    color: var(--afh-text-light);
    margin-bottom: 20px;
}

.afh-cta-text {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto 35px;
    line-height: 1.8;
}

.afh-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* ====================
   AFH PARTNER SECTION
   ==================== */
.afh-partner-section {
    padding: 100px 0;
    background: var(--afh-bg-white);
}

.afh-partner-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.afh-partner-card {
    background: var(--afh-bg-off-white);
    padding: 40px;
    border-radius: 16px;
    border-top: 4px solid var(--afh-primary);
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.afh-partner-card.dark {
    background: var(--afh-primary-dark);
    color: var(--afh-text-light);
    border-top: 4px solid var(--afh-primary-light);
}

.afh-partner-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.08);
}

.afh-partner-card.dark .afh-partner-title {
    color: var(--afh-text-light);
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 16px;
}

.afh-partner-card.dark p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    line-height: 1.8;
}

.afh-partner-title {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    color: var(--afh-text-dark);
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid rgba(210, 180, 140, 0.25);
}

.afh-partner-card p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--afh-text-medium);
    margin-bottom: 16px;
}

.afh-partner-card p:last-of-type {
    margin-bottom: 0;
}

.afh-partner-card ul {
    list-style: none;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(210, 180, 140, 0.2);
}

.afh-partner-card ul li {
    margin-bottom: 12px;
    font-size: 15px;
    padding-left: 24px;
    position: relative;
    color: var(--afh-text-dark);
}

.afh-partner-card ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 8px;
    height: 8px;
    background: var(--afh-primary);
    border-radius: 50%;
}

.afh-partner-card ul li strong {
    font-weight: 600;
}

.afh-partner-cta {
    text-align: center;
    display: flex;
    justify-content: center;
    width: 100%;
}

/* ====================
   AFH APPROACH SECTION
   ==================== */
.afh-approach-section {
    padding: 100px 0;
    background: var(--afh-bg-white);
}

.afh-approach-section .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.afh-approach-header {
    margin-bottom: 60px;
    text-align: center;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.afh-approach-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    width: 100%;
    max-width: 1200px;
}

.afh-approach-card {
    background: #F8F5F0;
    padding: 40px;
    border-radius: 16px;
    border-top: 4px solid var(--afh-primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    min-height: 320px;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.afh-approach-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.08);
}

/* ====================
   ABOUT PAGE CTA (Match about.html)
   ==================== */
.cta-section {
    padding: 40px 0 100px 0 !important;
    background: var(--afh-bg-off-white) !important;
    background-image: none !important;
    min-height: auto !important;
    display: block !important;
}

.cta-section::before,
.cta-section::after {
    display: none !important;
}

.cta-section .brxe-container,
.cta-section .cta-container {
    max-width: 1100px !important;
    margin: 0 auto !important;
    padding: 64px 56px !important;
    text-align: center !important;
    background: linear-gradient(135deg, #995A3B 0%, #BD9450 100%) !important;
    border-radius: 16px !important;
    box-shadow: 0 8px 32px rgba(153, 90, 59, 0.2) !important;
}

.cta-section h2,
.cta-section .brxe-heading {
    font-family: "Playfair Display", serif !important;
    font-weight: 900 !important;
    font-size: clamp(44px, 5vw, 64px) !important;
    line-height: 1.1 !important;
    color: #fff !important;
    margin: 0 0 16px 0 !important;
}

.cta-section .brxe-text,
.cta-section .brxe-text p,
.cta-section > div > p {
    font-family: "Inter", sans-serif !important;
    font-size: 20px !important;
    line-height: 1.5 !important;
    color: #fff !important;
    margin: 0 0 24px 0 !important;
}

.cta-contact-row {
    display: flex !important;
    justify-content: center !important;
    margin-bottom: 16px !important;
}

.cta-section .brxe-button,
.cta-section .btn-primary,
.cta-section .btn-secondary {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 14px 32px !important;
    font-family: "Inclusive Sans", sans-serif !important;
    font-weight: 600 !important;
    font-size: 15px !important;
    text-decoration: none !important;
    border-radius: 8px !important;
    background-color: #fff !important;
    color: #1a1a1a !important;
    border: none !important;
    transition: all 0.3s ease !important;
    min-width: 200px !important;
}

.cta-contact-row .brxe-button:hover,
.cta-contact-row .btn-primary:hover {
    background-color: #2d4a3e !important;
    color: #fff !important;
    transform: translateY(-2px) !important;
}

.cta-buttons .brxe-button:hover,
.cta-buttons .btn-primary:hover,
.cta-buttons .btn-secondary:hover,
.cta-section .brxe-div .brxe-button:hover {
    background-color: #E8D5B7 !important;
    transform: translateY(-2px) !important;
}

.cta-buttons,
.cta-section .brxe-div {
    display: flex !important;
    gap: 20px !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
}

@media (max-width: 768px) {
    .cta-section {
        padding: 40px 16px !important;
    }

    .cta-section .brxe-container,
    .cta-section .cta-container {
        margin: 0 !important;
        padding: 36px 24px 40px !important;
        text-align: center !important;
        overflow: hidden !important;
        gap: 0 !important;
    }

    .cta-section h2,
    .cta-section .brxe-heading {
        font-size: clamp(28px, 7vw, 36px) !important;
        text-align: center !important;
        margin-bottom: 12px !important;
    }

    .cta-section .brxe-text p {
        font-size: 15px !important;
        text-align: center !important;
        margin-bottom: 20px !important;
    }

    .cta-section .cta-contact-row {
        margin: 0 0 12px 0 !important;
        width: 100% !important;
    }

    .cta-section .cta-contact-row .brxe-button,
    .cta-section .cta-contact-row .btn-primary {
        width: 100% !important;
        min-width: unset !important;
        margin: 0 !important;
    }

    .cta-section .cta-buttons,
    .cta-section .brxe-div {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 12px !important;
        margin: 0 !important;
        width: 100% !important;
    }

    .cta-section .cta-buttons .brxe-button,
    .cta-section .cta-buttons .btn-primary,
    .cta-section .cta-buttons .btn-secondary {
        width: 100% !important;
        flex: unset !important;
        box-sizing: border-box !important;
        text-align: center !important;
        justify-content: center !important;
        margin: 0 !important;
    }
}

.afh-approach-title {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    color: var(--afh-text-dark);
    margin-bottom: 16px;
}

.afh-approach-card p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--afh-text-medium);
    flex-grow: 1;
}

/* ====================
   AFH PROJECTS SECTION
   ==================== */
.afh-projects-section {
    padding: 100px 0;
    background: var(--afh-bg-white);
}

.afh-projects-section .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.afh-projects-section>.container>.afh-section-title {
    margin-bottom: 60px;
    text-align: center;
    width: 100%;
}

.afh-projects-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
    width: 100%;
    max-width: 1200px;
}

.afh-project-card {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 40px;
    align-items: center;
    background: var(--afh-bg-off-white);
    border-radius: 16px;
    overflow: hidden;
}

.afh-project-card:nth-child(even) {
    grid-template-columns: 400px 1fr;
}

.afh-project-card:nth-child(even) .afh-project-image-wrapper {
    order: -1;
}

.afh-project-content {
    padding: 40px;
}

.afh-project-title {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    color: var(--afh-text-dark);
    margin-bottom: 16px;
    line-height: 1.3;
}

.afh-project-description {
    font-size: 15px;
    line-height: 1.7;
    color: var(--afh-text-medium);
    margin-bottom: 24px;
}

.afh-project-image-wrapper {
    height: 100%;
    min-height: 300px;
}

.afh-project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ====================
   AFH BOOK CTA SECTION
   ==================== */
.afh-book-cta-section {
    padding: 100px 0;
    background: var(--afh-bg-light-cream);
}

.afh-book-cta-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 60px;
    align-items: center;
}

.afh-book-cta-title {
    font-family: var(--font-heading);
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 900;
    color: var(--afh-text-dark);
    margin-bottom: 20px;
    line-height: 1.2;
}

.afh-book-cta-text {
    font-size: 18px;
    line-height: 1.8;
    color: var(--afh-text-medium);
    margin-bottom: 30px;
}

.afh-book-cta-image-wrapper {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(153, 90, 59, 0.15);
}

.afh-book-cta-image {
    width: 100%;
    height: auto;
    display: block;
}

/* ====================
   AFH TRANSFORM CTA SECTION
   ==================== */
.afh-transform-cta-section {
    padding: 80px 0;
    background: var(--afh-bg-light-cream);
}

.afh-transform-cta-box {
    background: var(--afh-primary);
    border-radius: 24px;
    padding: 60px 80px;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.afh-transform-title {
    font-family: var(--font-heading);
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 900;
    color: var(--afh-text-light);
    margin-bottom: 20px;
    line-height: 1.2;
}

.afh-transform-text {
    font-size: 16px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto 30px;
}

.afh-transform-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* ====================
   RESPONSIVE STYLES
   ==================== */
@media (max-width: 1024px) {
    .afh-intro-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .afh-intro-sidebar {
        position: static;
    }

    .afh-mission-grid,
    .afh-book-cta-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    /* Tabs Section - Tablet */
    .afh-tabs-section {
        padding: 80px 0 100px;
    }

    .afh-tabs-controls {
        gap: 16px;
        margin-bottom: 60px;
    }

    .afh-tab-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .afh-tab-image {
        height: 400px;
    }

    #tab-lebanon .afh-tab-image {
        height: 380px;
    }

    #tab-gambia .afh-tab-image {
        height: 360px;
    }

    .afh-tab-image-wrapper figcaption {
        position: relative;
        bottom: 0;
        left: 0;
        right: 0;
        margin-top: 16px;
        border-radius: 12px;
    }

    .afh-tab-content {
        padding: 0;
    }

    .afh-tab-content p {
        max-width: 100%;
    }

    .afh-impact-grid,
    .afh-partner-grid,
    .afh-approach-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .afh-project-card,
    .afh-project-card:nth-child(even) {
        grid-template-columns: 1fr;
    }

    .afh-project-card:nth-child(even) .afh-project-image-wrapper {
        order: 0;
    }

    .afh-project-image-wrapper {
        min-height: 250px;
    }
}

@media (max-width: 768px) {
    /* Mobile hero - match home page pattern */
    .hero-section {
        min-height: 100vh;
        min-height: 100svh;
        padding: 0;
        display: flex;
        align-items: flex-end;
    }

    .hero-image-wrapper {
        display: none !important;
    }

    .hero-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 0 24px 144px;
        justify-content: flex-end;
        text-align: center;
        max-width: 100%;
        min-height: 100vh;
        min-height: 100svh;
        z-index: 2;
    }

    .hero-section .hero-content {
        padding: 0;
        transform: none !important;
        max-width: 100%;
        z-index: 2;
        text-align: center;
        margin-top: 0;
        margin-right: 0;
        margin-left: 0;
    }

    .hero-section .hero-title {
        font-size: clamp(28px, 8vw, 40px);
        margin-bottom: 20px;
        line-height: 1.15;
    }

    .hero-section .hero-eyebrow {
        font-size: 11px;
        margin-top: 0;
        margin-bottom: 14px;
        letter-spacing: 0.12em;
    }

    .hero-section .hero-subtitle {
        font-size: 15px;
    }

    .hero-buttons {
        flex-direction: row;
        gap: 10px;
        justify-content: center;
        width: 100%;
    }

    .hero-buttons .btn-primary,
    .hero-buttons .btn-secondary {
        flex: 1;
        text-align: center;
        padding: 11px 13px;
        font-size: 14px;
    }

    .hero-buttons .btn-secondary {
        color: #fff;
        border-color: rgba(255, 255, 255, 0.5);
        background: transparent;
    }

    .scroll-indicator {
        bottom: 80px;
        color: rgba(255, 255, 255, 0.7);
    }

    .afh-intro-section,
    .afh-mission-section,
    .afh-impact-section,
    .afh-partner-section,
    .afh-approach-section,
    .afh-projects-section,
    .afh-book-cta-section,
    .afh-transform-cta-section {
        padding: 60px 0;
    }

    .afh-intro-main {
        text-align: center;
        align-items: center;
    }

    .afh-page-title,
    .afh-intro-text {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }

    .afh-intro-main .afh-btn-secondary {
        margin-left: auto;
        margin-right: auto;
    }

    .afh-mission-content,
    .afh-mission-text p,
    .afh-mission-content .afh-section-title,
    .afh-mission-content .afh-section-subtitle {
        text-align: center;
    }

    .afh-mission-text p {
        margin-left: auto;
        margin-right: auto;
    }

    .afh-mission-buttons {
        justify-content: center;
    }

    .afh-transform-cta-box {
        padding: 40px 30px;
        border-radius: 16px;
    }

    .afh-transform-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .afh-transform-buttons .afh-btn-white,
    .afh-transform-buttons .afh-btn-white-outline {
        text-align: center;
        justify-content: center;
    }

    /* Tabs Section - Mobile */
    .afh-tabs-section {
        padding: 60px 0 80px;
    }

    .afh-tabs-section::before {
        display: none;
    }

    .afh-tabs-controls {
        gap: 12px;
        margin-bottom: 46px;
    }

    .afh-tab-arrow {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .afh-tab-label {
        min-width: 140px;
        font-size: 13px;
        letter-spacing: 0.18em;
    }

    .afh-tab-grid {
        gap: 40px;
    }

    .afh-tab-image {
        height: 300px;
        border-radius: 16px;
    }

    #tab-lebanon .afh-tab-image {
        height: 280px;
    }

    #tab-gambia .afh-tab-image {
        height: 260px;
    }

    .afh-tab-image-wrapper figcaption {
        padding: 14px 18px;
        font-size: 15px;
    }

    .afh-tab-content .afh-section-title {
        font-size: clamp(28px, 7vw, 36px);
        margin-bottom: 20px;
    }

    .afh-tab-content p {
        font-size: 16px;
        line-height: 1.8;
        margin-bottom: 28px;
    }

    .afh-initiative-list {
        gap: 12px;
        margin-bottom: 32px;
    }

    .afh-initiative-list li {
        font-size: 14px;
        padding-left: 32px;
    }

    .afh-initiative-list li::before {
        width: 18px;
        height: 18px;
    }

    .afh-initiative-list li::after {
        width: 6px;
        height: 6px;
        left: 6px;
    }

    .afh-tab-content .afh-btn-primary {
        padding: 16px 28px;
        width: 100%;
        text-align: center;
        display: block;
    }

    .afh-support-cta-section {
        padding: 50px 0;
    }

    .afh-impact-grid,
    .afh-partner-grid,
    .afh-approach-grid {
        grid-template-columns: 1fr;
    }

    .afh-mission-buttons,
    .afh-cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .afh-btn-primary,
    .afh-btn-outline,
    .afh-btn-white,
    .afh-btn-white-outline,
    .afh-btn-secondary {
        justify-content: center;
        text-align: center;
    }

    .afh-project-content {
        padding: 30px 20px;
    }

    .afh-impact-number {
        font-size: 2.5rem;
    }

    .afh-page-title {
        font-size: clamp(30px, 7.6vw, 50px);
    }

    .afh-section-title {
        font-size: clamp(28px, 6vw, 36px);
        transform: none !important;
    }

    .afh-cta-title {
        font-size: clamp(28px, 8vw, 42px);
    }

    /* Touch targets - min 48px height for buttons/links */
    .afh-btn-primary,
    .afh-btn-secondary,
    .afh-btn-outline,
    .afh-btn-white,
    .afh-btn-white-outline {
        min-height: 48px;
    }

    /* Ensure images don't overflow */
    .afh-mission-image,
    .afh-tab-image,
    .afh-project-image,
    .afh-book-cta-image,
    .afh-qr-code {
        max-width: 100%;
        height: auto;
    }
}

@media (max-width: 480px) {
    .afh-sidebar-content {
        padding: 16px;
    }

    .afh-intro-section,
    .afh-mission-section,
    .afh-impact-section,
    .afh-partner-section,
    .afh-approach-section,
    .afh-projects-section,
    .afh-book-cta-section,
    .afh-transform-cta-section {
        padding: 40px 0;
    }

    .afh-page-title {
        font-size: 26px;
    }

    .afh-section-title {
        font-size: 24px;
    }

    .afh-cta-title {
        font-size: 28px;
    }

    .afh-partner-card,
    .afh-approach-card {
        padding: 20px 16px;
    }

    .afh-impact-card {
        padding: 28px 16px;
    }

    .afh-project-content {
        padding: 20px 16px;
    }

    .afh-transform-cta-box {
        padding: 32px 16px;
    }

    .afh-intro-text,
    .afh-mission-text p,
    .afh-tab-content p,
    .afh-cta-text,
    .afh-book-cta-text {
        font-size: 15px;
    }

    /* Tabs Section - Small Mobile */
    .afh-tabs-section {
        padding: 50px 0 60px;
    }

    .afh-tabs-controls {
        gap: 10px;
        margin-bottom: 36px;
    }

    .afh-tab-arrow {
        width: 36px;
        height: 36px;
        font-size: 15px;
    }

    .afh-tab-label {
        min-width: 120px;
        font-size: 12px;
        letter-spacing: 0.16em;
    }

    .afh-tab-image {
        height: 240px;
        border-radius: 12px;
    }

    #tab-lebanon .afh-tab-image {
        height: 220px;
    }

    #tab-gambia .afh-tab-image {
        height: 200px;
    }

    .afh-tab-image-wrapper figcaption {
        display: none;
    }

    .afh-tab-content .afh-section-title {
        font-size: 26px;
    }

    .afh-initiative-list li {
        padding-left: 28px;
    }

    .afh-initiative-list li::before {
        width: 16px;
        height: 16px;
    }

    .afh-initiative-list li::after {
        width: 6px;
        height: 6px;
        left: 5px;
    }
}

/* Desktop parity lock: enforce Action for Humanity source sizing/gaps against shared-page collisions */
@media (min-width: 1025px) {
    body.lj-page-action-for-humanity .container {
        max-width: 1200px !important;
        padding-left: 32px !important;
        padding-right: 32px !important;
    }

    body.lj-page-action-for-humanity .hero-section {
        min-height: 92vh !important;
        padding: 120px 0 !important;
    }

    body.lj-page-action-for-humanity .hero-section .hero-content {
        margin-top: 200px !important;
    }

    body.lj-page-action-for-humanity .afh-intro-section {
        padding: 72px 0 80px !important;
    }

    body.lj-page-action-for-humanity .afh-intro-grid {
        grid-template-columns: minmax(240px, 320px) minmax(0, 720px) !important;
        gap: 60px !important;
    }

    body.lj-page-action-for-humanity .afh-mission-section {
        padding: 100px 0 !important;
    }

    body.lj-page-action-for-humanity .afh-mission-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 60px !important;
        align-items: stretch !important;
    }

    body.lj-page-action-for-humanity .afh-mission-image-wrapper {
        height: 100% !important;
    }

    body.lj-page-action-for-humanity .afh-mission-image {
        height: 100% !important;
    }

    body.lj-page-action-for-humanity .afh-tabs-section {
        padding: 120px 0 140px !important;
    }

    body.lj-page-action-for-humanity .afh-tabs-controls {
        gap: 18px !important;
        margin: 0 0 70px !important;
    }

    body.lj-page-action-for-humanity .afh-tabs-nav {
        gap: 14px !important;
        margin: 0 0 70px !important;
    }

    body.lj-page-action-for-humanity .afh-tab-grid {
        grid-template-columns: 1fr 1.15fr !important;
        gap: 80px !important;
        max-width: 1200px !important;
    }

    body.lj-page-action-for-humanity .afh-tab-image {
        height: 480px !important;
    }

    body.lj-page-action-for-humanity #tab-lebanon .afh-tab-image {
        height: 460px !important;
    }

    body.lj-page-action-for-humanity #tab-gambia .afh-tab-image {
        height: 440px !important;
    }

    body.lj-page-action-for-humanity .afh-impact-section,
    body.lj-page-action-for-humanity .afh-partner-section,
    body.lj-page-action-for-humanity .afh-approach-section,
    body.lj-page-action-for-humanity .afh-projects-section,
    body.lj-page-action-for-humanity .afh-book-cta-section {
        padding: 100px 0 !important;
    }

    body.lj-page-action-for-humanity .afh-impact-grid,
    body.lj-page-action-for-humanity .afh-partner-grid,
    body.lj-page-action-for-humanity .afh-approach-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 30px !important;
    }

    body.lj-page-action-for-humanity .afh-impact-card {
        padding: 40px 30px !important;
    }

    body.lj-page-action-for-humanity .afh-partner-card,
    body.lj-page-action-for-humanity .afh-approach-card {
        padding: 40px !important;
    }

    body.lj-page-action-for-humanity .afh-projects-list {
        gap: 40px !important;
    }

    body.lj-page-action-for-humanity .afh-project-card {
        grid-template-columns: 1fr 400px !important;
        gap: 40px !important;
    }

    body.lj-page-action-for-humanity .afh-project-card:nth-child(even) {
        grid-template-columns: 400px 1fr !important;
    }

    body.lj-page-action-for-humanity .afh-project-content {
        padding: 40px !important;
    }

    body.lj-page-action-for-humanity .afh-book-cta-grid {
        grid-template-columns: 1fr 400px !important;
        gap: 60px !important;
    }

    body.lj-page-action-for-humanity .afh-transform-cta-section {
        padding: 80px 0 !important;
    }

    body.lj-page-action-for-humanity .afh-transform-cta-box {
        max-width: 900px !important;
        padding: 60px 80px !important;
    }
}

