/*
Theme Name: TheresahMary Foundation
Theme URI: 
Author: Benedicta
Author URI: 
Description: Custom theme for TheresahMary Foundation - Igniting Hopes
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: theresahmary-theme
*/

/* ============================================
   RESET & BASE
============================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #1a5c2e;
    --secondary: #4a9e5c;
    --accent: #f5f5f0;
    --text-dark: #0d2b17;
    --white: #ffffff;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background: var(--white);
    line-height: 1.6;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   HEADER — DESKTOP
============================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    height: 80px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.site-header.hidden {
    transform: translateY(-100%);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.site-header .logo {
    display: flex;
    align-items: center;
    height: 100%;
}

.site-header .logo a {
    display: flex;
    align-items: center;
    height: 100%;
}

.site-header .logo img,
.site-header .logo .custom-logo {
    height: 60px;
    width: auto;
    display: block;
}

.site-header .logo .custom-logo-link {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
}

.footer-logo .custom-logo-link {
    display: inline-flex;
    margin: 0;
    padding: 0;
}

/* Account for WordPress admin bar — desktop */
.admin-bar .site-header {
    top: 32px;
}

/* ============================================
   NAVIGATION — DESKTOP
============================================ */
.main-nav {
    display: flex;
    align-items: center;
    height: 100%;
}

.main-nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 36px;
    margin: 0;
    padding: 0;
    height: 100%;
}

.main-nav ul li {
    display: flex;
    align-items: center;
    height: 100%;
    position: relative;
}

.main-nav ul li a {
    text-decoration: none;
    color: var(--text-dark) !important;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0 4px;
    position: relative;
    transition: color 0.3s ease;
}

.main-nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary);
    transition: width 0.3s ease;
}

.main-nav ul li a:hover {
    color: var(--secondary) !important;
}

.main-nav ul li a:hover::after {
    width: 100%;
}

.main-nav ul li.current_page_item a {
    color: var(--primary) !important;
}

.main-nav ul li.current_page_item a::after {
    width: 100%;
    background: var(--primary);
}

/* ============================================
   HAMBURGER — hidden on desktop
============================================ */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
    background: none;
    border: none;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-dark);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ============================================
   MAIN CONTENT — push below fixed header
============================================ */
.home-main {
    padding-top: 0;
}

body:not(.home) main {
    padding-top: 100px;
    min-height: 60vh;
}

/* ============================================
   FOOTER
============================================ */
.site-footer {
    background: var(--primary);
    color: var(--white);
    padding: 60px 0 30px;
}

.site-footer .container {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo img {
    height: 80px;
    width: auto;
}

.footer-nav ul {
    list-style: none;
}

.footer-nav ul li {
    margin-bottom: 10px;
}

.footer-nav ul li a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.85;
    transition: opacity 0.3s;
}

.footer-nav ul li a:hover {
    opacity: 1;
}

.footer-contact p {
    margin-bottom: 8px;
    opacity: 0.85;
    font-size: 14px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 20px;
    text-align: center;
    opacity: 0.7;
    font-size: 13px;
    grid-column: 1 / -1;
}

/* ============================================
   BUTTONS
============================================ */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 4px;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background: var(--secondary);
    color: var(--white);
    border: 2px solid var(--secondary);
}

.btn-primary:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary);
}

.btn-white {
    background: var(--white);
    color: var(--primary);
    border: 2px solid var(--white);
}

.btn-white:hover {
    background: transparent;
    color: var(--white);
}

.btn-outline-white {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255,255,255,0.6);
}

.btn-outline-white:hover {
    border-color: var(--white);
    background: rgba(255,255,255,0.1);
}

/* ============================================
   SECTION LABELS & HEADINGS
============================================ */
.section-label {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--secondary);
    margin-bottom: 12px;
}

section h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    color: var(--text-dark);
    margin-bottom: 40px;
    line-height: 1.3;
}

/* ============================================
   HERO SECTION
============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    background-image: url('assets/images/hero-bg.jpeg');
    background-size: cover;
    background-position: center top;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(13, 43, 23, 0.65);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 5vw, 4rem);
    font-weight: 700;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: rgba(255,255,255,0.9);
    margin-bottom: 40px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   ABOUT STRIP
============================================ */
.about-strip {
    padding: 70px 0;
    background: var(--accent);
}

.about-strip-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h2 {
    margin-bottom: 20px;
}

.about-text p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 32px;
}

.about-image img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}

/* ============================================
   PROGRAMS
============================================ */
.programs {
    padding: 70px 0;
    background: var(--white);
    text-align: center;
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 20px;
}

.program-card {
    background: var(--accent);
    padding: 40px 24px;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.program-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(26, 92, 46, 0.12);
}

.program-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.program-card h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: 12px;
}

.program-card p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.7;
}

/* ============================================
   IMPACT NUMBERS
============================================ */
.impact {
    background: var(--primary);
    padding: 60px 0;
}

.impact-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.impact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.impact-number {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 4vw, 4rem);
    font-weight: 700;
    color: var(--white);
    line-height: 1;
    margin-bottom: 10px;
}

.impact-label {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.8);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ============================================
   SCHOLARS
============================================ */
.scholars {
    padding: 70px 0;
    background: var(--accent);
    text-align: center;
}

.scholars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 36px;
    margin-top: 20px;
}

.scholar-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.07);
    transition: transform 0.3s ease;
    text-align: left;
}

.scholar-card:hover {
    transform: translateY(-6px);
}

.scholar-image img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    object-position: top;
}

.scholar-placeholder {
    width: 100%;
    height: 260px;
    background: #e8f0eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.scholar-info {
    padding: 24px;
}

.scholar-info h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--primary);
    margin-bottom: 6px;
}

.scholar-program {
    display: inline-block;
    font-size: 0.85rem;
    color: var(--secondary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.scholar-info p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.7;
    font-style: italic;
}

.scholar-card h3 a {
    color: var(--primary);
    text-decoration: none;
}

.scholar-card h3 a:hover {
    color: var(--secondary);
}

.scholar-read-more {
    display: inline-block;
    margin-top: 12px;
    color: var(--secondary);
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.3s;
}

.scholar-read-more:hover {
    color: var(--primary);
}

/* ============================================
   CALL TO ACTION
============================================ */
.cta {
    background: var(--secondary);
    padding: 70px 0;
    text-align: center;
}

.cta h2 {
    color: var(--white);
    margin-bottom: 16px;
}

.cta p {
    color: rgba(255,255,255,0.9);
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   INNER PAGE HERO
============================================ */
.page-hero {
    background: var(--primary);
    padding: 60px 0 30px;
    text-align: center;
}

.page-hero .section-label {
    color: var(--secondary);
}

.page-hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3.2rem);
    color: var(--white);
    margin-bottom: 16px;
    margin-top: 12px;
}

.page-hero p {
    color: rgba(255,255,255,0.85);
    font-size: 1.1rem;
}

/* ============================================
   ABOUT PAGE
============================================ */
.founder-story {
    padding: 80px 0;
    background: var(--accent);
}

.founder-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.founder-text p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 20px;
}

.founder-quote-box {
    background: var(--primary);
    padding: 48px 40px;
    border-radius: 8px;
}

.founder-quote-box blockquote {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--white);
    line-height: 1.6;
    font-style: italic;
    margin-bottom: 20px;
}

.founder-quote-box cite {
    color: rgba(255,255,255,0.75);
    font-size: 0.9rem;
}

.vision-section {
    padding: 80px 0;
    background: var(--white);
}

.vision-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.vision-card {
    background: var(--accent);
    padding: 40px 30px;
    border-radius: 8px;
    text-align: center;
}

.vision-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.vision-card h3 {
    font-family: var(--font-heading);
    color: var(--primary);
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.vision-card p {
    color: #555;
    line-height: 1.7;
    font-size: 0.95rem;
}

.meet-founder {
    padding: 80px 0;
    background: var(--accent);
}

.meet-founder-text p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 16px;
}

.founder-contact {
    margin-top: 24px;
    padding: 24px;
    background: var(--white);
    border-radius: 8px;
    border-left: 4px solid var(--secondary);
}

.founder-contact p {
    margin-bottom: 8px;
    font-size: 0.95rem;
}

/* FOUNDER INLINE QUOTE */
.founder-inline-quote {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-style: italic;
    color: var(--primary);
    border-left: 4px solid var(--secondary);
    padding: 16px 20px;
    margin: 24px 0;
    line-height: 1.7;
}

/* MEET FOUNDER INNER — desktop layout */
.meet-founder-inner {
    max-width: 800px;
    margin: 0 auto;
}

/* ============================================
   PROGRAMS PAGE
============================================ */
.programs-intro {
    padding: 60px 0 0;
    background: var(--white);
}

.programs-intro-inner {
    max-width: 750px;
    margin: 0 auto;
    text-align: center;
}

.programs-intro-inner p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #444;
}

.programs-detail {
    padding: 60px 0 80px;
    background: var(--white);
}

.program-detail-card {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 40px;
    align-items: start;
    padding: 50px 0;
    border-bottom: 1px solid #e8ede9;
}

.program-detail-card:last-child {
    border-bottom: none;
}

.program-detail-number {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
    -webkit-text-stroke: 2px var(--secondary);
}

.program-detail-icon {
    font-size: 2rem;
    margin-bottom: 12px;
}

.program-detail-content h2 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    color: var(--primary);
    margin-bottom: 16px;
}

.program-detail-content p {
    font-size: 1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 16px;
}

.program-highlight {
    background: var(--accent);
    border-left: 4px solid var(--secondary);
    padding: 16px 20px;
    border-radius: 0 6px 6px 0;
    font-size: 0.95rem;
    color: #444;
    margin-top: 8px;
}

/* ============================================
   APPLY PAGE
============================================ */
.eligibility-section {
    padding: 80px 0;
    background: var(--white);
}

.eligibility-section p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 32px;
}

.eligibility-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 32px;
}

.eligibility-card {
    padding: 32px;
    border-radius: 8px;
}

.eligibility-card.yes {
    background: #f0f7f2;
    border-left: 4px solid var(--secondary);
}

.eligibility-card.no {
    background: #fdf5f5;
    border-left: 4px solid #c0392b;
}

.eligibility-card h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.eligibility-card ul {
    list-style: none;
    padding: 0;
}

.eligibility-card ul li {
    padding: 6px 0;
    font-size: 0.95rem;
    color: #444;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    line-height: 1.5;
}

.eligibility-card ul li:last-child {
    border-bottom: none;
}

.process-section {
    padding: 80px 0;
    background: var(--accent);
    text-align: center;
}

.process-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 48px;
    flex-wrap: wrap;
}

.process-step {
    background: var(--white);
    padding: 32px 24px;
    border-radius: 8px;
    max-width: 200px;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.step-number {
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 auto 16px;
}

.process-step h3 {
    font-family: var(--font-heading);
    color: var(--primary);
    font-size: 1rem;
    margin-bottom: 8px;
}

.process-step p {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.6;
}

.process-arrow {
    font-size: 1.5rem;
    color: var(--secondary);
    font-weight: bold;
}

.application-form-section {
    padding: 80px 0;
    background: var(--white);
}

.applications-closed {
    max-width: 600px;
    text-align: center;
    margin: 0 auto;
    padding: 60px 20px;
}

.applications-closed h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.applications-closed p {
    color: #666;
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 12px;
}

.applications-closed a {
    color: var(--primary);
    text-decoration: underline;
}

.form-intro {
    font-size: 1rem;
    color: #666;
    margin-bottom: 40px;
}

.application-form-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background: var(--accent);
    padding: 48px;
    border-radius: 12px;
}

.application-form-wrapper .wpcf7-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.application-form-wrapper input[type="text"],
.application-form-wrapper input[type="email"],
.application-form-wrapper input[type="tel"],
.application-form-wrapper input[type="number"],
.application-form-wrapper select,
.application-form-wrapper textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e8e2;
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-dark);
    background: var(--white);
    transition: border-color 0.3s ease;
    outline: none;
}

.application-form-wrapper input:focus,
.application-form-wrapper select:focus,
.application-form-wrapper textarea:focus {
    border-color: var(--secondary);
}

.application-form-wrapper .wpcf7-submit {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 16px 48px;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s ease;
    align-self: flex-start;
    margin-top: 8px;
}

.application-form-wrapper .wpcf7-submit:hover {
    background: var(--secondary);
}

/* ============================================
   DONATE PAGE
============================================ */
.why-donate {
    padding: 80px 0;
    background: var(--white);
}

.why-donate-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.why-donate-text p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 32px;
}

.impact-examples {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.impact-example {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--accent);
    border-radius: 6px;
}

.impact-amount {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
    min-width: 100px;
}

.impact-desc {
    font-size: 0.95rem;
    color: #555;
}

.why-donate-quote {
    background: var(--primary);
    padding: 48px 40px;
    border-radius: 8px;
}

.why-donate-quote blockquote {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--white);
    line-height: 1.6;
    font-style: italic;
    margin-bottom: 20px;
}

.why-donate-quote cite {
    color: rgba(255,255,255,0.75);
    font-size: 0.9rem;
}

.donation-methods {
    padding: 80px 0;
    background: var(--accent);
    text-align: center;
}

.methods-intro {
    font-size: 1.05rem;
    color: #555;
    margin-bottom: 48px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.methods-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    text-align: left;
}

.methods-grid--single {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
}

.method-card {
    background: var(--white);
    padding: 40px 32px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.method-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.method-card h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--primary);
    margin-bottom: 12px;
}

.method-card > p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.7;
    margin-bottom: 24px;
}

.method-details {
    background: var(--accent);
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 16px;
}

.method-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    font-size: 0.9rem;
}

.method-detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    font-weight: 600;
    color: var(--text-dark);
}

.detail-value {
    color: var(--primary);
    font-weight: 600;
}

.method-details.coming-soon {
    border: 2px dashed #ccd9ce;
    background: transparent;
}

.method-details.coming-soon p {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 8px;
    line-height: 1.6;
}

.method-note {
    font-size: 0.85rem;
    color: #777;
    font-style: italic;
    line-height: 1.6;
    margin-top: 16px;
}

.other-ways {
    padding: 80px 0;
    background: var(--white);
    text-align: center;
}

.other-ways-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 48px;
}

.other-way-card {
    background: var(--accent);
    padding: 40px 24px;
    border-radius: 8px;
}

.other-way-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.other-way-card h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: 12px;
}

.other-way-card p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.7;
}

/* ============================================
   SINGLE SCHOLAR PAGE
============================================ */
.scholar-hero p {
    color: rgba(255,255,255,0.85);
    font-size: 1.1rem;
    font-style: italic;
}

.scholar-single {
    padding: 80px 0;
    background: var(--white);
}

.scholar-single-inner {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 60px;
    align-items: start;
}

.scholar-single-photo img {
    width: 100%;
    height: 350px;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    object-fit: cover;
    object-position: top;
}

.scholar-single-quote {
    background: var(--primary);
    padding: 32px;
    border-radius: 8px;
    margin-top: 24px;
}

.scholar-single-quote blockquote {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--white);
    line-height: 1.6;
    font-style: italic;
    margin-bottom: 12px;
}

.scholar-single-quote cite {
    color: rgba(255,255,255,0.75);
    font-size: 0.85rem;
}

.scholar-single-meta {
    margin-top: 24px;
    background: var(--accent);
    border-radius: 8px;
    padding: 20px;
}

.scholar-meta-row {
    display: flex;
    flex-direction: column;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.scholar-meta-row:last-child {
    border-bottom: none;
}

.meta-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--secondary);
    margin-bottom: 4px;
}

.meta-value {
    font-size: 0.95rem;
    color: var(--text-dark);
    font-weight: 600;
}

.scholar-single-bio h2 {
    margin-bottom: 24px;
}

.scholar-bio-content p {
    font-size: 1.05rem;
    line-height: 1.9;
    color: #444;
    margin-bottom: 20px;
}

.other-scholars {
    padding: 80px 0;
    background: var(--accent);
    text-align: center;
}

/* ============================================
   CONTACT PAGE
============================================ */
.contact-section {
    padding: 80px 0;
    background: var(--white);
}

.contact-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.contact-details p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 32px;
}

.contact-details h2 {
    margin-bottom: 16px;
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 40px;
}

.contact-info-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.contact-info-icon {
    font-size: 1.5rem;
    min-width: 40px;
}

.contact-info-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.contact-info-label {
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--secondary);
}

.contact-info-content a,
.contact-info-content span {
    font-size: 0.95rem;
    color: #444;
    text-decoration: none;
    line-height: 1.5;
}

.contact-info-content a:hover {
    color: var(--primary);
}

.contact-social {
    margin-top: 16px;
}

.contact-social p {
    font-size: 0.9rem;
    color: #888;
    font-style: italic;
}

.contact-form-wrapper {
    background: var(--accent);
    padding: 48px;
    border-radius: 12px;
}

.contact-form-wrapper h2 {
    margin-bottom: 8px;
}

.contact-form-wrapper > p {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 32px;
}

.contact-form-wrapper input[type="text"],
.contact-form-wrapper input[type="email"],
.contact-form-wrapper textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e8e2;
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-dark);
    background: var(--white);
    transition: border-color 0.3s ease;
    outline: none;
    margin-bottom: 16px;
}

.contact-form-wrapper input:focus,
.contact-form-wrapper textarea:focus {
    border-color: var(--secondary);
}

.contact-form-wrapper .wpcf7-submit {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 14px 40px;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.contact-form-wrapper .wpcf7-submit:hover {
    background: var(--secondary);
}

.contact-form-wrapper label {
    display: block;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-dark);
    margin-bottom: 6px;
}

/* ============================================
   GALLERY PAGE
============================================ */
.gallery-section {
    padding: 80px 0;
    background: var(--white);
}

.gallery-group {
    margin-bottom: 72px;
}

.gallery-group:last-child {
    margin-bottom: 0;
}

.gallery-group-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 32px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--accent);
}

.gallery-event {
    margin-bottom: 48px;
}

.gallery-event-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.gallery-event-caption {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.7;
    margin-top: 14px;
    max-width: 700px;
    font-style: italic;
}

/* SLIDER */
.gallery-slider-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
}

.gallery-slider-track {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 4px 0;
    flex: 1;
}

.gallery-slider-track::-webkit-scrollbar {
    display: none;
}

.gallery-slide {
    flex: 0 0 320px;
    scroll-snap-align: start;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}

.gallery-slide:hover {
    transform: translateY(-3px);
}

.gallery-slide img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    object-position: top;
    display: block;
}

.slider-prev,
.slider-next {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    background: var(--white);
    color: var(--primary);
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 2;
}

.slider-prev:hover,
.slider-next:hover {
    background: var(--primary);
    color: var(--white);
}

/* LIGHTBOX */
#gallery-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.92);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 24px;
}

#gallery-lightbox.active {
    display: flex;
}

#lightbox-img {
    max-width: 90vw;
    max-height: 75vh;
    object-fit: contain;
    border-radius: 4px;
}

#lightbox-caption {
    color: rgba(255,255,255,0.8);
    font-size: 0.95rem;
    margin-top: 16px;
    text-align: center;
    max-width: 600px;
    font-style: italic;
}

#lightbox-close {
    position: absolute;
    top: 20px;
    right: 24px;
    background: none;
    border: none;
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
}

#lightbox-prev,
#lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.15);
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

#lightbox-prev { left: 16px; }
#lightbox-next { right: 16px; }

#lightbox-prev:hover,
#lightbox-next:hover {
    background: rgba(255,255,255,0.3);
}

/* ============================================
   MOBILE — max-width: 768px
============================================ */
@media (max-width: 768px) {

    /* HEADER */
    .site-header {
        position: relative;
        height: 46px;
        top: auto;
        left: auto;
        width: 100%;
    }

    .site-header .container {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        height: 100%;
        padding: 0 16px;
    }

    .site-header .logo {
        height: 100%;
        display: flex;
        align-items: center;
    }

    .site-header .logo a {
        height: 100%;
        display: flex;
        align-items: center;
    }

    .site-header .logo img {
        height: 34px;
    }

    .hamburger {
        display: flex;
        align-self: center;
    }

    /* NAV DROPDOWN */
    .main-nav {
        position: absolute;
        top: 46px;
        left: 0;
        width: 100%;
        background: var(--white);
        box-shadow: 0 8px 20px rgba(0,0,0,0.1);
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, padding 0.3s ease;
        z-index: 999;
        /* reset desktop flex alignment */
        display: block;
        height: auto;
    }

    .main-nav.open {
        max-height: 400px;
        padding: 16px 0;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0;
        align-items: stretch;
        height: auto;
    }

    .main-nav ul li {
        height: auto;
        border-bottom: 1px solid #f0f0f0;
        display: block;
    }

    .main-nav ul li:last-child {
        border-bottom: none;
    }

    .main-nav ul li a {
        display: block;
        padding: 14px 24px;
        font-size: 14px;
    }

    .main-nav ul li a::after {
        display: none;
    }

    /* ADMIN BAR */
    .admin-bar .site-header {
        top: 0;
    }

    .admin-bar .main-nav {
        top: 46px;
    }

    /* MAIN CONTENT — no offset needed since header is not fixed */
    .home-main {
        padding-top: 0;
    }

    body:not(.home) main {
        padding-top: 0;
        min-height: 60vh;
    }

    /* HERO */
    .hero {
        min-height: 90vh;
    }

    .hero-title {
        font-size: 1.9rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .btn {
        width: 100%;
        text-align: center;
        padding: 14px 24px;
    }

    /* SECTIONS */
    .about-strip,
    .programs,
    .scholars,
    .cta,
    .founder-story,
    .vision-section,
    .meet-founder,
    .eligibility-section,
    .process-section,
    .application-form-section,
    .why-donate,
    .donation-methods,
    .other-ways,
    .contact-section,
    .scholar-single,
    .other-scholars {
        padding: 48px 0;
    }

    /* ABOUT STRIP */
    .about-strip-inner {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .about-image {
        display: none;
    }

    /* PROGRAMS */
    .programs-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .program-card {
        padding: 24px 20px;
    }

    /* IMPACT */
    .impact {
        padding: 40px 0;
    }

    .impact-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .impact-number {
        font-size: 2.2rem;
    }

    /* SCHOLARS */
    .scholars-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* GALLERY PAGE */
    .gallery-section {
        padding: 48px 0;
    }

    .gallery-group-title {
        font-size: 1.4rem;
    }

    .gallery-slide {
        flex: 0 0 240px;
    }

    .gallery-slide img {
        height: 180px;
    }

    .slider-prev,
    .slider-next {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }

    #lightbox-prev { left: 8px; }
    #lightbox-next { right: 8px; }

    /* CTA */
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    /* FOOTER */
    .site-footer {
        padding: 40px 0 20px;
    }

    .site-footer .container {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: flex-start;
        gap: 24px;
        margin-bottom: 24px;
    }

    .footer-logo {
        flex: 0 0 auto;
    }

    .footer-logo img {
        height: 60px;
    }

    .footer-links {
        display: none;
    }

    .footer-contact {
        flex: 1;
        text-align: right;
    }

    .footer-contact p {
        font-size: 0.8rem;
        margin-bottom: 6px;
    }

    .footer-bottom {
        grid-column: unset;
        width: 100%;
        font-size: 0.8rem;
    }

    /* INNER PAGES */
    .page-hero {
        padding: 40px 0 28px;
    }

    .page-hero h1 {
        font-size: 1.8rem;
    }

    section h2 {
        font-size: 1.5rem;
        margin-bottom: 24px;
    }

    /* ABOUT PAGE */
    .founder-inner {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .vision-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .founder-quote-box {
        padding: 28px 24px;
    }

    .founder-quote-box blockquote {
        font-size: 1.1rem;
    }

    /* APPLY PAGE */
    .eligibility-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .process-steps {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }

    .process-arrow {
        transform: rotate(90deg);
        font-size: 1.2rem;
    }

    .process-step {
        max-width: 100%;
        width: 100%;
    }

    .application-form-wrapper {
        padding: 24px 16px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    /* DONATE PAGE */
    .why-donate-inner {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .methods-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .other-ways-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    /* CONTACT PAGE */
    .contact-inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .contact-form-wrapper {
        padding: 24px 16px;
    }

    /* SCHOLAR SINGLE */
    .scholar-single-inner {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .scholar-single-photo img {
        height: 280px;
    }
}

/* ============================================
   SMALL MOBILE — max-width: 480px
============================================ */
@media (max-width: 480px) {
    .impact-number {
        font-size: 1.8rem;
    }

    .hero-title {
        font-size: 1.6rem;
    }

    .container {
        padding: 0 16px;
    }
}

/* ============================================
   WORDPRESS ADMIN BAR — desktop
============================================ */
@media screen and (min-width: 769px) {
    .admin-bar .site-header {
        top: 32px;
    }
}

/* ============================================
   ABOUT PAGE — MOBILE FIXES
============================================ */

/* Reduce top padding on founder story so it doesn't gap from hero */
@media (max-width: 768px) {

    .founder-story {
        padding: 32px 0 48px;
    }

    /* Vision section — remove excess top gap */
    .vision-section {
        padding: 32px 0 48px;
    }

    /* Meet founder section */
    .meet-founder {
        padding: 32px 0 48px;
    }

    /* Founder inline quote */
    .founder-inline-quote {
        font-family: var(--font-heading);
        font-size: 1rem;
        font-style: italic;
        color: var(--primary);
        border-left: 4px solid var(--secondary);
        padding: 12px 16px;
        margin: 20px 0;
        line-height: 1.7;
    }

    /* Footer contact — left align on mobile */
    .footer-contact {
        flex: 1;
        text-align: left;
    }

    /* PROGRAMS PAGE */
    .programs-intro {
        padding: 32px 0 0;
    }

    .programs-intro-inner p {
        font-size: 1rem;
        text-align: left;
    }

    .programs-detail {
        padding: 24px 0 48px;
    }

    .program-detail-card {
        grid-template-columns: 48px 1fr;
        gap: 16px;
        padding: 28px 0;
    }

    .program-detail-number {
        font-size: 2.2rem;
    }

    .program-detail-content h2 {
        font-size: 1.3rem;
        margin-bottom: 12px;
    }

    .program-detail-content p {
        font-size: 0.95rem;
        margin-bottom: 12px;
    }

    .program-highlight {
        padding: 12px 16px;
        font-size: 0.9rem;
    }
}

