/*
Theme Name: Yahweh Global Mission
Theme URI: https://yahwehglobalmission.org
Author: Yahweh Global Mission
Author URI: https://yahwehglobalmission.org
Description: A professional, trust-focused WordPress theme built for Yahweh Global Mission — the humanitarian arm of the Christian Outreach Centre Foundation Thailand. Designed for donations, community engagement, and transparent humanitarian work.
Version: 4.10.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ygm-theme
Tags: charity, nonprofit, humanitarian, donations, responsive, custom-logo, custom-menu, featured-images

Yahweh Global Mission Theme — Built for impact. Designed for trust.
*/

/* ============================================
   CSS RESET & BASE
   ============================================ */

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

:root {
    --color-primary: #0F4C5C;
    --color-primary-dark: #0a3640;
    --color-primary-light: #1a6b80;
    --color-secondary: #D4AF37;
    --color-secondary-dark: #b8962e;
    --color-secondary-light: #e6c755;
    --color-white: #ffffff;
    --color-off-white: #f8f9fa;
    --color-light-gray: #e9ecef;
    --color-mid-gray: #6c757d;
    --color-dark-gray: #343a40;
    --color-text: #2d3436;
    --color-text-light: #636e72;
    --color-success: #27ae60;
    --color-danger: #e74c3c;

    --font-heading: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    --container-max: 1200px;
    --container-narrow: 800px;
    --header-height: 80px;

    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --shadow-xl: 0 12px 40px rgba(0,0,0,0.15);

    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;

    --transition: 0.3s ease;
}

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

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-text);
    background-color: var(--color-white);
    overflow-x: hidden;
}

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

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

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

ul, ol {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.3;
    color: var(--color-primary);
    margin-bottom: 0.5em;
}

h1 { font-size: 2.75rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.375rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
}

/* ============================================
   LAYOUT
   ============================================ */

.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.container-narrow {
    max-width: var(--container-narrow);
}

.section {
    padding: 5rem 0;
}

.section-sm {
    padding: 3rem 0;
}

.section-lg {
    padding: 7rem 0;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    line-height: 1;
    white-space: nowrap;
}

.btn-primary {
    background-color: var(--color-secondary);
    color: var(--color-white);
    border-color: var(--color-secondary);
}

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

.btn-secondary {
    background-color: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}

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

.btn-outline {
    background-color: transparent;
    color: var(--color-white);
    border-color: var(--color-white);
}

.btn-outline:hover {
    background-color: var(--color-white);
    color: var(--color-primary);
    transform: translateY(-2px);
}

.btn-outline-dark {
    background-color: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn-outline-dark:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 1.125rem 2.75rem;
    font-size: 1.125rem;
}

.btn-sm {
    padding: 0.625rem 1.5rem;
    font-size: 0.875rem;
}

.btn-donate {
    background: linear-gradient(135deg, var(--color-secondary), var(--color-secondary-dark));
    color: var(--color-white);
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

.btn-donate:hover {
    background: linear-gradient(135deg, var(--color-secondary-dark), #a07d22);
    color: var(--color-white);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--color-white);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
}

.site-header.scrolled {
    box-shadow: var(--shadow-md);
}

/* Desktop: 3-column flex — [Logo] [Nav center] [Donate right] */
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
    gap: 1rem;
}

.site-branding {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.site-branding img {
    height: 50px;
    width: auto;
}

.site-branding .site-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-primary);
    margin: 0;
    line-height: 1.2;
}

.site-branding .site-title span {
    color: var(--color-secondary);
}

.site-branding a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

/* Navigation — fills center space on desktop */
.main-navigation {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-navigation ul {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.main-navigation li {
    position: relative;
}

.main-navigation a {
    display: block;
    padding: 0.5rem 1rem;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    white-space: nowrap;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a {
    color: var(--color-secondary);
    background-color: rgba(212, 175, 55, 0.1);
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* Desktop Donate button — right side of header */
.nav-donate-desktop {
    flex-shrink: 0;
}

.nav-donate-desktop .btn {
    padding: 0.625rem 1.5rem;
    font-size: 0.9rem;
}

/* Mobile Donate button — hidden on desktop, shown inside mobile menu */
.nav-donate-mobile {
    display: none;
}

/* Mobile Menu Toggle — hidden on desktop */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    flex-shrink: 0;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--color-primary);
    transition: all var(--transition);
    border-radius: 2px;
}

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

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

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

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 50%, #072a33 100%);
    margin-top: var(--header-height);
    overflow: hidden;
}

.hero.has-bg-image {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.hero.has-bg-image::before {
    background: rgba(15, 76, 92, 0.75);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="p" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(255,255,255,0.03)"/></pattern></defs><rect fill="url(%23p)" width="100" height="100"/></svg>');
    opacity: 0.5;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to top, var(--color-white), transparent);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

.hero-badge {
    display: inline-block;
    background: rgba(212, 175, 55, 0.2);
    color: var(--color-secondary);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.hero h1 {
    font-size: 3.25rem;
    font-weight: 800;
    color: var(--color-white);
    margin-bottom: 1.25rem;
    line-height: 1.15;
}

.hero h1 span {
    color: var(--color-secondary);
}

.hero-description {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.85);
    margin-bottom: 2.5rem;
    line-height: 1.8;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 3.5rem;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(255,255,255,0.15);
}

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

.hero-stat-number {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-secondary);
}

.hero-stat-label {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ============================================
   SECTION HEADERS
   ============================================ */

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    font-size: 2.25rem;
    margin-bottom: 1rem;
    position: relative;
}

.section-header h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--color-secondary);
    margin: 0.75rem auto 0;
    border-radius: 2px;
}

.section-header p {
    color: var(--color-text-light);
    font-size: 1.1rem;
}

/* ============================================
   CORE WORK CARDS
   ============================================ */

.work-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.work-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all var(--transition);
    border: 1px solid var(--color-light-gray);
    position: relative;
    overflow: hidden;
}

.work-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    transform: scaleX(0);
    transition: transform var(--transition);
}

.work-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.work-card:hover::before {
    transform: scaleX(1);
}

.work-card-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(15, 76, 92, 0.08), rgba(15, 76, 92, 0.15));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.75rem;
    color: var(--color-primary);
    transition: all var(--transition);
}

.work-card:hover .work-card-icon {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    color: var(--color-white);
    transform: scale(1.1);
}

.work-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.work-card p {
    color: var(--color-text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Bottom row centering for 5 cards in 3-column grid */
.work-grid-5 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.work-grid-5 .work-card:nth-child(4),
.work-grid-5 .work-card:nth-child(5) {
    /* These will be on the second row */
}

/* Center the last two cards */
@supports (display: grid) {
    .work-grid-5 {
        justify-items: center;
    }
    .work-grid-5 .work-card {
        width: 100%;
    }
    .work-grid-centered {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 2rem;
    }
    .work-grid-centered .work-card {
        flex: 0 1 calc(33.333% - 1.34rem);
        min-width: 280px;
    }
}

/* ============================================
   IMPACT / PROJECTS SECTION
   ============================================ */

.impact-section {
    background: var(--color-off-white);
}

.impact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.impact-text h2 {
    margin-bottom: 1rem;
}

.impact-text h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--color-secondary);
    margin-top: 0.75rem;
    border-radius: 2px;
}

.impact-text p {
    color: var(--color-text-light);
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
}

.impact-image-placeholder {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    border-radius: var(--radius-xl);
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.5);
    font-size: 1rem;
    text-align: center;
    padding: 2rem;
}

.impact-image {
    border-radius: var(--radius-xl);
    height: 400px;
    overflow: hidden;
}
.impact-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-xl);
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.projects-grid.cols-1 { grid-template-columns: 1fr; }
.projects-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.projects-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }

.project-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition);
    box-shadow: var(--shadow-sm);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.project-card-image {
    height: 220px;
    background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.4);
    font-size: 0.9rem;
    overflow: hidden;
}

.project-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-card-body {
    padding: 1.75rem;
}

.project-card-body h3 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
}

.project-card-body p {
    color: var(--color-text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ============================================
   BLOG SECTION
   ============================================ */

.blog-section {
    background: var(--color-white);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.blog-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition);
    border: 1px solid var(--color-light-gray);
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.blog-card-image {
    height: 200px;
    background: var(--color-off-white);
    overflow: hidden;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition);
}

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

.blog-card-image .placeholder-img {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-off-white), var(--color-light-gray));
    color: var(--color-mid-gray);
    font-size: 0.85rem;
}

.blog-card-body {
    padding: 1.5rem;
}

.blog-card-meta {
    font-size: 0.8rem;
    color: var(--color-mid-gray);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.blog-card-meta span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.blog-card-body h3 {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.blog-card-body h3 a {
    color: var(--color-primary);
}

.blog-card-body h3 a:hover {
    color: var(--color-secondary);
}

.blog-card-excerpt {
    color: var(--color-text-light);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.blog-card .read-more {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-secondary);
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    transition: gap var(--transition);
}

.blog-card .read-more:hover {
    gap: 0.625rem;
    color: var(--color-secondary-dark);
}

/* Global Read More */
.read-more {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--color-secondary);
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.9rem;
    transition: gap var(--transition), color var(--transition);
}
.read-more:hover {
    gap: 0.625rem;
    color: var(--color-secondary-dark);
}

/* ============================================
   GALLERY SLIDER
   ============================================ */

.gallery-section {
    padding: 5rem 0;
    background: var(--color-off-white);
    overflow: hidden;
}
.gallery-slider {
    position: relative;
    max-width: 100%;
    overflow: hidden;
}
.gallery-track {
    display: flex;
    transition: transform 0.5s ease;
    gap: 1.5rem;
}
.gallery-slide {
    flex: 0 0 calc(33.333% - 1rem);
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 300px;
}
.gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition);
}
.gallery-slide img:hover {
    transform: scale(1.05);
}
.gallery-prev,
.gallery-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: var(--color-white);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    z-index: 10;
    color: var(--color-primary);
    transition: all var(--transition);
}
.gallery-prev:hover,
.gallery-next:hover {
    background: var(--color-primary);
    color: var(--color-white);
}
.gallery-prev { left: 1rem; }
.gallery-next { right: 1rem; }

/* ============================================
   CTA SECTION
   ============================================ */

.cta-section {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.cta-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.cta-content h2 {
    color: var(--color-white);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-content p {
    color: rgba(255,255,255,0.85);
    font-size: 1.15rem;
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   DONATE PAGE
   ============================================ */

.donate-hero {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    padding: 8rem 0 4rem;
    margin-top: var(--header-height);
    text-align: center;
}

.donate-hero h1 {
    color: var(--color-white);
    font-size: 2.75rem;
    margin-bottom: 0.75rem;
}

.donate-hero p {
    color: rgba(255,255,255,0.85);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

.donate-content {
    padding: 4rem 0;
}

.donate-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.donate-qr-section {
    background: var(--color-white);
    border-radius: var(--radius-xl);
    padding: 3rem;
    text-align: center;
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--color-light-gray);
}

.donate-qr-section h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.donate-qr-section .qr-subtitle {
    color: var(--color-text-light);
    margin-bottom: 2rem;
}

.qr-placeholder {
    width: 280px;
    height: 280px;
    margin: 0 auto 1.5rem;
    background: var(--color-off-white);
    border: 3px dashed var(--color-light-gray);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-mid-gray);
    font-size: 0.9rem;
    text-align: center;
    padding: 1rem;
    line-height: 1.5;
}

.qr-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: var(--radius-md);
}

.qr-label {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--color-primary);
    font-size: 1rem;
}

.donate-bank-section {
    background: var(--color-white);
    border-radius: var(--radius-xl);
    padding: 3rem;
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--color-light-gray);
}

.donate-bank-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.bank-details {
    background: var(--color-off-white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 2rem;
}

.bank-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0.875rem 0;
    border-bottom: 1px solid var(--color-light-gray);
}

.bank-detail-row:last-child {
    border-bottom: none;
}

.bank-detail-label {
    font-weight: 600;
    color: var(--color-primary);
    font-size: 0.9rem;
    flex-shrink: 0;
    margin-right: 1rem;
}

.bank-detail-value {
    text-align: right;
    font-weight: 500;
    color: var(--color-text);
}

.donate-instructions {
    background: rgba(15, 76, 92, 0.05);
    border-left: 4px solid var(--color-primary);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.donate-instructions h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.donate-instructions p {
    color: var(--color-text-light);
    font-size: 0.95rem;
    margin-bottom: 0;
}

.donate-trust {
    background: var(--color-off-white);
    border-radius: var(--radius-xl);
    padding: 3rem;
    text-align: center;
    margin-top: 3rem;
}

.donate-trust-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    font-size: 1.5rem;
    color: var(--color-white);
}

.donate-trust h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.donate-trust p {
    color: var(--color-text-light);
    max-width: 500px;
    margin: 0 auto 1.5rem;
}

.donate-contact-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.donate-contact-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all var(--transition);
}

.donate-contact-link.whatsapp {
    background: #25d366;
    color: var(--color-white);
}

.donate-contact-link.whatsapp:hover {
    background: #1da851;
    color: var(--color-white);
    transform: translateY(-2px);
}

.donate-contact-link.email {
    background: var(--color-primary);
    color: var(--color-white);
}

.donate-contact-link.email:hover {
    background: var(--color-primary-dark);
    color: var(--color-white);
    transform: translateY(-2px);
}


/* ============================================
   PAGE HEADERS (INNER PAGES)
   ============================================ */

.page-header {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    padding: 8rem 0 4rem;
    margin-top: var(--header-height);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.08) 0%, transparent 60%);
    border-radius: 50%;
}

.page-header h1 {
    color: var(--color-white);
    font-size: 2.75rem;
    margin-bottom: 0.75rem;
    position: relative;
}

.page-header p {
    color: rgba(255,255,255,0.8);
    font-size: 1.15rem;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.page-header .breadcrumb {
    margin-top: 1.5rem;
    position: relative;
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
}

.page-header .breadcrumb a {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
}

.page-header .breadcrumb a:hover {
    color: var(--color-secondary);
}

.page-header .breadcrumb span {
    color: rgba(255,255,255,0.4);
    margin: 0 0.5rem;
}

/* ============================================
   ABOUT PAGE
   ============================================ */

.about-content {
    padding: 5rem 0;
}

.about-section {
    margin-bottom: 4rem;
}

.about-section:last-child {
    margin-bottom: 0;
}

.about-section h2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.about-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--color-secondary);
    border-radius: 2px;
}

.about-section p {
    color: var(--color-text-light);
    font-size: 1.05rem;
    line-height: 1.8;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.mission-vision-card {
    background: var(--color-off-white);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    border-left: 4px solid var(--color-secondary);
}

.mission-vision-card h3 {
    font-size: 1.375rem;
    margin-bottom: 1rem;
    color: var(--color-primary);
}

.mission-vision-card p {
    margin-bottom: 0;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.value-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--color-off-white);
    border-radius: var(--radius-md);
}

.value-icon {
    width: 40px;
    height: 40px;
    background: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    font-size: 1rem;
    flex-shrink: 0;
}

.value-item h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.value-item p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* ============================================
   OUR WORK PAGE
   ============================================ */

.work-section {
    padding: 4rem 0;
    border-bottom: 1px solid var(--color-light-gray);
}

.work-section:last-child {
    border-bottom: none;
}

.work-section:nth-child(even) {
    background: var(--color-off-white);
}

.work-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.work-section:nth-child(even) .work-detail {
    direction: rtl;
}

.work-section:nth-child(even) .work-detail > * {
    direction: ltr;
}

.work-detail-content h2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.work-detail-content h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: var(--color-secondary);
    margin-top: 0.75rem;
    border-radius: 2px;
}

.work-detail-content p {
    color: var(--color-text-light);
    font-size: 1.05rem;
    line-height: 1.8;
}

.work-detail-image {
    border-radius: var(--radius-xl);
    height: 350px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.4);
    font-size: 0.9rem;
    overflow: hidden;
}

.work-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.work-detail-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    height: 100%;
    min-height: 250px;
    background: var(--color-off-white);
    border-radius: var(--radius-lg);
    color: var(--color-mid-gray);
    font-size: 0.9rem;
}

.work-detail-placeholder svg {
    width: 48px;
    height: 48px;
    opacity: 0.3;
}

/* ============================================
   CONTACT PAGE
   ============================================ */

.contact-content {
    padding: 4rem 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
    align-items: start;
}

.contact-info h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.contact-info p {
    color: var(--color-text-light);
    font-size: 0.975rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.875rem 1.125rem;
    background: var(--color-off-white);
    border-radius: var(--radius-lg);
    transition: all var(--transition);
    text-decoration: none;
    color: var(--color-text);
}

.contact-method:hover {
    background: var(--color-white);
    box-shadow: var(--shadow-md);
    transform: translateX(4px);
    color: var(--color-text);
}

.contact-method-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    flex-shrink: 0;
}

.contact-method-icon svg {
    width: 20px;
    height: 20px;
}

.contact-method-icon.email-icon {
    background: var(--color-primary);
}

.contact-method-icon.whatsapp-icon {
    background: #25d366;
}

.contact-method-icon.facebook-icon {
    background: #1877f2;
}

.contact-method-content h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.1rem;
}

.contact-method-content p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--color-mid-gray);
}

.contact-form-section {
    background: var(--color-off-white);
    border-radius: var(--radius-xl);
    padding: 2rem;
}

.contact-form-section h2 {
    font-size: 1.35rem;
    margin-bottom: 1.25rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.375rem;
    color: var(--color-text);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    font-family: var(--font-body);
    font-size: 1rem;
    border: 2px solid var(--color-light-gray);
    border-radius: var(--radius-md);
    background: var(--color-white);
    transition: border-color var(--transition);
    color: var(--color-text);
}

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

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* WPForms Integration Styles */
.contact-form-plugin .wpforms-container {
    width: 100%;
}

.contact-form-plugin .wpforms-form {
    width: 100%;
}

.contact-form-plugin .wpforms-form .wpforms-field {
    padding: 0.5rem 0;
}

.contact-form-plugin .wpforms-form .wpforms-field-label {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--color-text);
    margin-bottom: 0.375rem;
}

.contact-form-plugin .wpforms-form input[type="text"],
.contact-form-plugin .wpforms-form input[type="email"],
.contact-form-plugin .wpforms-form input[type="tel"],
.contact-form-plugin .wpforms-form input[type="url"],
.contact-form-plugin .wpforms-form textarea,
.contact-form-plugin .wpforms-form select {
    width: 100% !important;
    padding: 0.875rem 1rem;
    font-family: var(--font-body);
    font-size: 1rem;
    border: 2px solid var(--color-light-gray);
    border-radius: var(--radius-md);
    background: var(--color-white);
    transition: border-color var(--transition);
    color: var(--color-text);
    box-sizing: border-box;
}

.contact-form-plugin .wpforms-form input:focus,
.contact-form-plugin .wpforms-form textarea:focus {
    outline: none;
    border-color: var(--color-primary);
}

.contact-form-plugin .wpforms-form textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-form-plugin .wpforms-form .wpforms-field-name-first,
.contact-form-plugin .wpforms-form .wpforms-field-name-last {
    width: 48% !important;
}

.contact-form-plugin .wpforms-form .wpforms-submit-container {
    padding-top: 0.5rem;
}

.contact-form-plugin .wpforms-form button[type="submit"],
.contact-form-plugin .wpforms-form .wpforms-submit {
    width: 100%;
    padding: 1rem 2rem;
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--color-white);
    background: var(--color-primary);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition);
}

.contact-form-plugin .wpforms-form button[type="submit"]:hover,
.contact-form-plugin .wpforms-form .wpforms-submit:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.contact-form-plugin .wpforms-form .wpforms-field-sublabel {
    font-size: 0.8rem;
    color: var(--color-mid-gray);
}

/* ============================================
   BLOG ARCHIVE & SINGLE
   ============================================ */

.blog-archive {
    padding: 4.5rem 0;
}

.blog-archive .container {
    max-width: 1320px;
}

.blog-layout {
    align-items: start;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 2.25rem;
}

.blog-layout.cols-2 .blog-posts,
.blog-layout.cols-3 .blog-posts {
    display: grid;
    gap: 1.5rem;
}
.blog-layout.cols-2 .blog-posts { grid-template-columns: repeat(2, 1fr); }
.blog-layout.cols-3 .blog-posts { grid-template-columns: repeat(3, 1fr); }

.blog-posts {
    display: grid;
    gap: 2rem;
}

.blog-posts.has-single-post,
.blog-layout.cols-2 .blog-posts.has-single-post,
.blog-layout.cols-3 .blog-posts.has-single-post {
    display: block;
}

.blog-posts.has-single-post .blog-post-card {
    width: 100%;
}

.blog-post-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--color-light-gray);
    transition: all var(--transition);
}

.blog-post-card:hover {
    box-shadow: var(--shadow-md);
    border-color: transparent;
}

.blog-post-thumbnail {
    height: 230px;
    overflow: hidden;
}

.blog-post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-post-content {
    padding: 1.5rem;
}

.blog-post-content h2 {
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
}

.blog-post-content h2 a {
    color: var(--color-primary);
}

.blog-post-content h2 a:hover {
    color: var(--color-secondary);
}

.blog-post-meta {
    font-size: 0.85rem;
    color: var(--color-mid-gray);
    margin-bottom: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
}

.blog-post-excerpt {
    color: var(--color-text-light);
    line-height: 1.7;
}

/* Single Post */
.single-post-content {
    padding: 5rem 0;
}

.single-post-article {
    max-width: 750px;
    margin: 0 auto;
}

.single-post-article .entry-content {
    font-size: 1.1rem;
    line-height: 1.9;
}

.single-post-article .entry-content h2 {
    margin-top: 2.5rem;
}

.single-post-article .entry-content h3 {
    margin-top: 2rem;
}

.single-post-article .entry-content p {
    margin-bottom: 1.5rem;
}

.single-post-article .entry-content ul,
.single-post-article .entry-content ol {
    padding-left: 2rem;
    margin-bottom: 1.5rem;
}

.single-post-article .entry-content li {
    list-style: disc;
    margin-bottom: 0.5rem;
}

.single-post-article .entry-content ol li {
    list-style: decimal;
}

.single-post-article .entry-content img {
    border-radius: var(--radius-lg);
    margin: 2rem 0;
}

.single-post-article .entry-content blockquote {
    border-left: 4px solid var(--color-secondary);
    padding: 1.5rem 2rem;
    background: var(--color-off-white);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    margin: 2rem 0;
    font-style: italic;
    color: var(--color-text-light);
}

/* Comments */
.ygm-comments {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--color-light-gray);
}
.ygm-comments-title {
    font-size: 1.375rem;
    margin-bottom: 1.5rem;
    color: var(--color-primary);
}
.ygm-comment-list {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
}
.ygm-comment-list .comment {
    padding: 1.5rem;
    margin-bottom: 1rem;
    background: var(--color-off-white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-light-gray);
}
.ygm-comment-list .comment .comment-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}
.ygm-comment-list .comment .comment-author img {
    border-radius: 50%;
}
.ygm-comment-list .comment .comment-author .fn {
    font-weight: 600;
    color: var(--color-primary);
}
.ygm-comment-list .comment .comment-metadata {
    font-size: 0.8rem;
    color: var(--color-mid-gray);
    margin-bottom: 0.75rem;
}
.ygm-comment-list .comment .comment-content p {
    margin-bottom: 0.5rem;
    color: var(--color-text-light);
    line-height: 1.7;
}
.ygm-comment-list .comment .reply a {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-secondary);
}
.ygm-comment-form-wrapper {
    background: var(--color-off-white);
    border-radius: var(--radius-xl);
    padding: 2rem;
    border: 1px solid var(--color-light-gray);
}
.ygm-comment-form-wrapper .comment-reply-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 1.25rem;
}
.ygm-comment-form-wrapper .comment-form label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.375rem;
    color: var(--color-text);
}
.ygm-comment-form-wrapper .comment-form input[type="text"],
.ygm-comment-form-wrapper .comment-form input[type="email"],
.ygm-comment-form-wrapper .comment-form input[type="url"],
.ygm-comment-form-wrapper .comment-form textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    font-family: var(--font-body);
    font-size: 1rem;
    border: 2px solid var(--color-light-gray);
    border-radius: var(--radius-md);
    background: var(--color-white);
    transition: border-color var(--transition);
    color: var(--color-text);
    margin-bottom: 1rem;
}
.ygm-comment-form-wrapper .comment-form input:focus,
.ygm-comment-form-wrapper .comment-form textarea:focus {
    outline: none;
    border-color: var(--color-primary);
}
.ygm-comment-form-wrapper .comment-form textarea {
    resize: vertical;
    min-height: 150px;
}
.ygm-comment-form-wrapper .comment-form .form-submit {
    margin-top: 0.5rem;
}

/* ============================================
   SIDEBAR
   ============================================ */

.sidebar {
    position: sticky;
    top: calc(var(--header-height) + 2rem);
}

.sidebar .widget {
    background: var(--color-off-white);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    margin-bottom: 1.25rem;
}

.sidebar .widget-title,
.sidebar .widget h2,
.sidebar .wp-block-heading {
    font-size: 1.2rem;
    line-height: 1.25;
    margin-bottom: 0.85rem;
    padding-bottom: 0.6rem;
    border-bottom: 2px solid var(--color-light-gray);
}

.sidebar .widget ul li {
    padding: 0.45rem 0;
    border-bottom: 1px solid var(--color-light-gray);
}

.sidebar .widget ul li:last-child {
    border-bottom: none;
}

.sidebar .widget ul li a {
    color: var(--color-text);
    font-size: 0.9rem;
    line-height: 1.5;
}

.sidebar .widget ul li a:hover {
    color: var(--color-primary);
}

.sidebar .widget > :last-child {
    margin-bottom: 0;
}

.sidebar .widget_recent_comments,
.sidebar .widget:has(.wp-block-latest-comments),
.sidebar .wp-block-latest-comments {
    display: none;
}

.sidebar .search-form,
.sidebar .wp-block-search__inside-wrapper {
    display: flex;
    gap: 0.5rem;
}

.sidebar .search-form label,
.sidebar .wp-block-search__input {
    flex: 1;
    min-width: 0;
}

.sidebar .search-field,
.sidebar .wp-block-search__input {
    height: 44px;
    width: 100%;
}

.sidebar .search-submit,
.sidebar .wp-block-search__button {
    min-height: 44px;
    padding: 0.65rem 1rem;
}

.sidebar .wp-block-latest-posts__list li,
.sidebar .wp-block-latest-posts li {
    margin-bottom: 0;
}

.ygm-sidebar-categories a {
    align-items: center;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}

.ygm-sidebar-categories a span {
    background: var(--color-white);
    border-radius: 999px;
    color: var(--color-mid-gray);
    font-size: 0.8rem;
    min-width: 1.75rem;
    padding: 0.125rem 0.5rem;
    text-align: center;
}

.projects-layout {
    align-items: start;
    display: grid;
    gap: 2.25rem;
    grid-template-columns: minmax(0, 1fr) 300px;
}

/* ============================================
   FOOTER
   ============================================ */

.site-footer {
    background: var(--color-primary-dark);
    color: rgba(255,255,255,0.8);
    padding: 4rem 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand {
    max-width: 350px;
}

.footer-logos {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-logo-item {
    height: 50px;
    width: auto;
    border-radius: var(--radius-sm);
    transition: transform var(--transition);
}

.footer-logo-link:hover .footer-logo-item {
    transform: scale(1.08);
}

.footer-brand img {
    height: 50px;
    margin-bottom: 0;
}

.footer-brand p a {
    color: var(--color-secondary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.footer-brand p a:hover {
    color: var(--color-secondary-light);
}

.footer-brand .footer-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 1rem;
}

.footer-brand .footer-title span {
    color: var(--color-secondary);
}

.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.6);
}

.footer-column h4 {
    color: var(--color-white);
    font-size: 1rem;
    margin-bottom: 1.25rem;
    font-family: var(--font-heading);
}

.footer-column ul li {
    margin-bottom: 0.625rem;
}

.footer-column ul li a {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    transition: all var(--transition);
}

.footer-column ul li a:hover {
    color: var(--color-secondary);
    padding-left: 5px;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
}

.footer-contact-item a {
    color: rgba(255,255,255,0.6);
}

.footer-contact-item a:hover {
    color: var(--color-secondary);
}

.footer-contact-icon {
    width: 24px;
    text-align: center;
    color: var(--color-secondary);
    flex-shrink: 0;
    margin-top: 2px;
}

.footer-bottom {
    padding: 1.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.4);
}

.footer-bottom a {
    color: rgba(255,255,255,0.4);
}

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

/* ============================================
   PAGINATION
   ============================================ */

.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--color-text);
    background: var(--color-off-white);
    transition: all var(--transition);
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background: var(--color-primary);
    color: var(--color-white);
}

/* ============================================
   404 PAGE
   ============================================ */

.page-404 {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    margin-top: var(--header-height);
}

.page-404 h1 {
    font-size: 6rem;
    color: var(--color-secondary);
    margin-bottom: 0.5rem;
}

.page-404 h2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.page-404 p {
    color: var(--color-text-light);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* ============================================
   SEARCH RESULTS
   ============================================ */

.search-results-section {
    padding: 5rem 0;
}

.search-result-item {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--color-light-gray);
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item h2 {
    font-size: 1.375rem;
    margin-bottom: 0.5rem;
}

.search-result-item h2 a {
    color: var(--color-primary);
}

.search-result-item h2 a:hover {
    color: var(--color-secondary);
}

.search-result-item p {
    color: var(--color-text-light);
}

/* ============================================
   WORDPRESS DEFAULTS
   ============================================ */

.wp-block-image {
    margin: 2rem 0;
}

.alignleft {
    float: left;
    margin-right: 1.5rem;
    margin-bottom: 1rem;
}

.alignright {
    float: right;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

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

.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    font-size: 0.85rem;
    color: var(--color-mid-gray);
    text-align: center;
    padding: 0.5rem 0;
}

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

/* ============================================
   Our Work - Editor Content
   ============================================ */

.work-content-area {
    padding: 4rem 0;
}
.work-content-area .entry-content {
    font-size: 1.05rem;
    line-height: 1.8;
}
.work-content-area .entry-content h2 {
    margin-top: 3rem;
    margin-bottom: 1rem;
    font-size: 1.75rem;
    position: relative;
    padding-bottom: 0.75rem;
}
.work-content-area .entry-content h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--color-secondary);
    border-radius: 2px;
}
.work-content-area .entry-content h3 {
    margin-top: 2rem;
}
.work-content-area .entry-content p {
    color: var(--color-text-light);
    margin-bottom: 1.5rem;
}
.work-content-area .entry-content img {
    border-radius: var(--radius-xl);
    margin: 2rem 0;
}
.work-content-area .entry-content ul,
.work-content-area .entry-content ol {
    padding-left: 2rem;
    margin-bottom: 1.5rem;
}
.work-content-area .entry-content li {
    list-style: disc;
    margin-bottom: 0.5rem;
    color: var(--color-text-light);
}
.work-content-area .entry-content ol li {
    list-style: decimal;
}
.work-content-area .entry-content .wp-block-columns {
    gap: 3rem;
    margin: 3rem 0;
}
.work-content-area .entry-content .wp-block-image {
    border-radius: var(--radius-xl);
    overflow: hidden;
}
.work-content-area .entry-content .wp-block-image img {
    margin: 0;
}

/* ============================================
   WhatsApp Floating Button
   ============================================ */

.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    background: #25d366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all var(--transition);
    text-decoration: none;
}
.whatsapp-float:hover {
    background: #1da851;
    color: #fff;
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.5);
}
.whatsapp-float svg {
    width: 30px;
    height: 30px;
}
.whatsapp-float-tooltip {
    position: absolute;
    right: 72px;
    background: var(--color-dark-gray);
    color: var(--color-white);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition);
}
.whatsapp-float:hover .whatsapp-float-tooltip {
    opacity: 1;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1024px) {
    .work-grid,
    .work-grid-5,
    .work-grid-centered {
        grid-template-columns: repeat(2, 1fr);
    }

    .work-grid-centered .work-card {
        flex: 0 1 calc(50% - 1rem);
    }

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

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

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .blog-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .projects-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .sidebar {
        position: static;
    }

    .impact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .work-detail {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .work-section:nth-child(even) .work-detail {
        direction: ltr;
    }

    .donate-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* --- Header: mobile / tablet layout --- */
    :root {
        --header-height: 70px;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-donate-desktop {
        display: none;
    }

    .main-navigation {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--color-white);
        transform: translateX(100%);
        transition: transform var(--transition);
        overflow-y: auto;
        z-index: 999;
        box-shadow: 0 8px 30px rgba(0,0,0,0.15);
        max-height: calc(100vh - var(--header-height));
        /* Override desktop flex layout for vertical mobile menu */
        flex: none;
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
    }

    .main-navigation.active {
        transform: translateX(0);
    }

    .main-navigation ul {
        flex-direction: column;
        gap: 0;
        padding: 0;
    }

    .main-navigation li {
        border-bottom: 1px solid var(--color-light-gray);
    }

    .main-navigation a {
        padding: 1rem 1.5rem;
        font-size: 1.1rem;
        border-radius: 0;
        white-space: normal;
    }

    .main-navigation a:hover,
    .main-navigation .current-menu-item > a,
    .main-navigation .current_page_item > a {
        color: var(--color-secondary);
        background-color: rgba(212, 175, 55, 0.08);
    }

    /* Donate button — directly after last menu item */
    .nav-donate-mobile {
        display: block;
        padding: 1rem 1.5rem 1.5rem;
    }

    .nav-donate-mobile .btn {
        display: block;
        width: 100%;
        text-align: center;
        padding: 1rem 2rem;
        font-size: 1.1rem;
    }

    .gallery-slide {
        flex: 0 0 calc(50% - 0.75rem);
    }
    .projects-grid.cols-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    .blog-layout.cols-2 .blog-posts,
    .blog-layout.cols-3 .blog-posts {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.375rem; }

    .hero {
        min-height: 70vh;
    }

    .hero h1 {
        font-size: 2.25rem;
    }

    .hero-description {
        font-size: 1.05rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
    }

    .section {
        padding: 3.5rem 0;
    }

    .blog-archive {
        padding: 3rem 0;
    }

    .blog-post-content {
        padding: 1.25rem;
    }

    .blog-post-content h2 {
        font-size: 1.25rem;
    }

    .blog-post-thumbnail {
        height: 220px;
    }

    .sidebar .widget {
        padding: 1.15rem;
    }

    .sidebar .widget-title,
    .sidebar .widget h2,
    .sidebar .wp-block-heading {
        font-size: 1.1rem;
    }

    .section-header h2 {
        font-size: 1.75rem;
    }

    .work-grid,
    .work-grid-5,
    .projects-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .work-grid-centered {
        flex-direction: column;
    }

    .work-grid-centered .work-card {
        flex: 1 1 100%;
    }

    .donate-grid {
        grid-template-columns: 1fr;
    }

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

    .values-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }


    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .page-header {
        padding: 6rem 0 3rem;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .donate-hero h1 {
        font-size: 2rem;
    }

    .cta-content h2 {
        font-size: 1.75rem;
    }

    .page-404 h1 {
        font-size: 4rem;
    }

    .gallery-section {
        padding: 3rem 0;
    }
    .gallery-slide {
        flex: 0 0 calc(100% - 0rem);
        height: 250px;
    }
    .gallery-prev, .gallery-next {
        width: 40px;
        height: 40px;
    }
    .projects-grid.cols-2,
    .projects-grid.cols-3 {
        grid-template-columns: 1fr;
    }
    .impact-image {
        height: 300px;
    }
    .whatsapp-float {
        width: 54px;
        height: 54px;
        bottom: 16px;
        right: 16px;
    }
    .whatsapp-float svg {
        width: 26px;
        height: 26px;
    }
    .whatsapp-float-tooltip {
        display: none;
    }
    .ygm-comment-form-wrapper {
        padding: 1.5rem;
    }
    /* Mobile text readability */
    body {
        font-size: 1rem;
        line-height: 1.8;
    }
    .blog-post-content {
        padding: 1.5rem;
    }
    .blog-post-content h2 {
        font-size: 1.25rem;
    }
    .work-content-area .entry-content {
        font-size: 1rem;
    }
    .gallery-lightbox-img {
        max-width: 95vw;
        max-height: 85vh;
    }
    .gallery-lightbox-close {
        top: 0.5rem;
        right: 0.75rem;
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .hero h1 {
        font-size: 1.875rem;
    }

    .btn-lg {
        padding: 1rem 2rem;
        font-size: 1rem;
    }

    .work-card {
        padding: 2rem 1.5rem;
    }

    .donate-qr-section,
    .donate-bank-section {
        padding: 2rem 1.5rem;
    }

    .qr-placeholder {
        width: 240px;
        height: 240px;
    }

    .site-branding .site-title {
        font-size: 1rem;
    }

    .gallery-slide {
        height: 200px;
    }
    .hero {
        min-height: 80vh;
    }
    .hero-content {
        padding: 1.5rem 1rem;
    }
    .hero-description {
        font-size: 1rem;
    }
    .hero-stats {
        gap: 1rem;
    }
    .section-header h2 {
        font-size: 1.5rem;
    }
    .project-card-body {
        padding: 1.25rem;
    }
    .project-card-image {
        height: 180px;
    }
    .ygm-comment-form-wrapper {
        padding: 1rem;
    }
    .work-content-area {
        padding: 2.5rem 0;
    }
    .whatsapp-float {
        bottom: 12px;
        right: 12px;
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.bg-light { background: var(--color-off-white); }
.bg-white { background: var(--color-white); }

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

.fade-in-up.delay-1 { animation-delay: 0.1s; }
.fade-in-up.delay-2 { animation-delay: 0.2s; }
.fade-in-up.delay-3 { animation-delay: 0.3s; }
.fade-in-up.delay-4 { animation-delay: 0.4s; }
.fade-in-up.delay-5 { animation-delay: 0.5s; }

/* ============================================
   FRONT PAGE CONTENT (Block Editor)
   ============================================ */

.front-page-content {
    padding: 4rem 0;
}

.front-page-content .entry-content > *:last-child {
    margin-bottom: 0;
}

.entry-content img:not(a img) {
    cursor: zoom-in;
    transition: transform var(--transition);
}

.entry-content img:not(a img):hover {
    transform: scale(1.02);
}

/* (contact-methods-bar removed — unused, was conflicting with .contact-method) */

/* ============================================
   GALLERY LIGHTBOX
   ============================================ */

.gallery-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.gallery-lightbox-img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: var(--radius-md);
    cursor: default;
}

.gallery-lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: var(--color-white);
    font-size: 2.5rem;
    cursor: pointer;
    line-height: 1;
    padding: 0.5rem;
    opacity: 0.8;
    transition: opacity var(--transition);
}

.gallery-lightbox-close:hover {
    opacity: 1;
}

.gallery-lightbox-trigger {
    cursor: zoom-in;
}

.gallery-lightbox-trigger img {
    transition: transform var(--transition);
}

.gallery-lightbox-trigger:hover img {
    transform: scale(1.03);
}

.work-detail-image a {
    display: block;
    height: 100%;
}

.work-detail-image a img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-lg);
    transition: transform var(--transition);
}

.work-detail-image a:hover img {
    transform: scale(1.03);
}
