/*
Theme Name:  Rose Seko Foundation
Theme URI:   https://rosesekofoundation.org
Author:      Rose Seko Foundation
Author URI:  https://rosesekofoundation.org
Description: Official theme for Rose Seko Foundation — Building The Future We Deserve!
Version:     1.0
Text Domain: roseseko
Tags:        charity, nonprofit, kenya, custom-menu, featured-images, full-width-template
*/

/* ==========================================================================
   Custom Properties
   ========================================================================== */
:root {
    --navy:         #032B52;
    --navy-dark:    #021e3a;
    --navy-light:   #054070;
    --gold:         #D4A017;
    --gold-dark:    #b88a12;
    --charcoal:     #333333;
    --white:        #FFFFFF;
    --off-white:    #F8F9FC;
    --light-gray:   #E8ECF4;
    --text-muted:   #666680;

    --font-heading: 'Ubuntu', sans-serif;
    --font-body:    'Nunito', sans-serif;

    --radius:       8px;
    --radius-lg:    16px;
    --shadow-sm:    0 2px 8px rgba(26, 52, 114, 0.08);
    --shadow-md:    0 8px 32px rgba(26, 52, 114, 0.14);
    --shadow-lg:    0 20px 60px rgba(26, 52, 114, 0.20);

    --transition:   0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --max-width:    1200px;
    --section-pad:  80px 24px;
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: var(--font-body);
    color: var(--charcoal);
    background: var(--white);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold); }
ul { list-style: none; }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--navy);
    line-height: 1.2;
    font-weight: 700;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
h4 { font-size: 1.25rem; }

p { margin-bottom: 1rem; }

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

.skip-link.screen-reader-text:focus {
    background: var(--gold);
    clip: auto !important;
    clip-path: none;
    color: var(--navy);
    display: block;
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 700;
    height: auto;
    left: 8px;
    line-height: normal;
    padding: 12px 24px;
    text-decoration: none;
    top: 8px;
    width: auto;
    z-index: 100000;
    border-radius: var(--radius);
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

.btn-gold {
    background: var(--gold);
    color: var(--navy);
    border-color: var(--gold);
}
.btn-gold:hover {
    background: var(--gold-dark);
    border-color: var(--gold-dark);
    color: var(--navy);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(212, 160, 23, 0.4);
}

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

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

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

/* Dropdown toggle button (nav walker) */
.primary-nav .dropdown-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 6px;
    color: rgba(255,255,255,0.7);
    display: inline-flex;
    align-items: center;
    transition: color var(--transition);
    vertical-align: middle;
}
.primary-nav .dropdown-toggle:hover,
.primary-nav .dropdown-toggle[aria-expanded="true"] { color: var(--white); }
.primary-nav .dropdown-toggle svg {
    transition: transform var(--transition);
}
.primary-nav .dropdown-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }

.section-label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 12px;
}

.section-title {
    color: var(--navy);
    margin-bottom: 16px;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin-bottom: 40px;
}

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes countUp {
    from { opacity: 0; transform: scale(0.8); }
    to   { opacity: 1; transform: scale(1); }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.animate-on-scroll:nth-child(2) { transition-delay: 0.1s; }
.animate-on-scroll:nth-child(3) { transition-delay: 0.2s; }
.animate-on-scroll:nth-child(4) { transition-delay: 0.3s; }

/* ==========================================================================
   Navbar
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--navy);
    transition: all var(--transition);
}

.site-header.scrolled {
    box-shadow: 0 4px 24px rgba(26, 52, 114, 0.3);
    backdrop-filter: blur(10px);
    background: rgba(26, 52, 114, 0.97);
}

.navbar {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.site-logo a,
.custom-logo-link { display: flex; align-items: center; }

.custom-logo {
    width: var(--logo-width, 160px);
    height: auto;
    object-fit: contain;
}

/* Navbar — constrain to bar height */
.navbar .custom-logo {
    max-height: 62px;
}

/* Footer — unconstrained, let width drive sizing */
.site-footer .custom-logo {
    max-height: none;
    width: auto;
    max-width: var(--logo-width, 200px);
}

.site-name-text {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--white);
    font-weight: 700;
    line-height: 1.1;
}
.site-name-text span {
    display: block;
    font-family: var(--font-body);
    font-size: 0.65rem;
    font-weight: 400;
    color: var(--gold);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* Primary Nav */
.primary-nav { display: flex; align-items: center; }

.primary-nav ul {
    display: flex;
    gap: 4px;
    align-items: center;
}

.primary-nav ul li a {
    color: rgba(255,255,255,0.85);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 8px 16px;
    border-radius: var(--radius);
    transition: all var(--transition);
    display: block;
}

.primary-nav ul li a:hover,
.primary-nav ul li.current-menu-item > a {
    color: var(--white);
    background: rgba(255,255,255,0.1);
}

/* Dropdown */
.primary-nav ul li.menu-item-has-children { position: relative; }

.primary-nav ul li.menu-item-has-children > ul {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 200px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 8px;
    flex-direction: column;
    gap: 2px;
}

.primary-nav ul li.menu-item-has-children:hover > ul,
.primary-nav ul li.menu-item-has-children:focus-within > ul { display: flex; }

.primary-nav ul li.menu-item-has-children > ul li a {
    color: var(--charcoal);
    padding: 10px 14px;
}
.primary-nav ul li.menu-item-has-children > ul li a:hover {
    background: var(--off-white);
    color: var(--navy);
}

.navbar-donate { display: flex; align-items: center; gap: 12px; }

.navbar-donate .btn { padding: 10px 22px; font-size: 0.9rem; }

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    cursor: pointer;
    padding: 4px;
    border: none;
    background: none;
}
.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: all var(--transition);
}
.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); }

/* Mobile Nav */
.mobile-nav {
    display: none;
    background: var(--navy-dark);
    border-top: 1px solid rgba(255,255,255,0.1);
}
.mobile-nav.open { display: block; }
.mobile-nav ul { padding: 16px 24px 24px; text-align: center; }
.mobile-nav ul li a {
    display: block;
    color: rgba(255,255,255,0.85);
    padding: 12px 0;
    font-weight: 600;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    text-align: center;
}
.mobile-nav ul li:last-child a { border-bottom: none; }
.mobile-nav ul li a:hover { color: var(--gold); }

/* ==========================================================================
   Hero / Slider
   ========================================================================== */
.hero-section {
    margin-top: 70px;
    position: relative;
    overflow: hidden;
    background: var(--navy);
}

.hero-section .smartslider-placeholder,
.hero-section [class*="smart-slider"],
.hero-section .n2-ss-slider-wrapper { width: 100%; }

/* ==========================================================================
   Stats Bar
   ========================================================================== */
.stats-bar {
    background: var(--navy);
    padding: 60px 24px;
}

.stats-bar .container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    text-align: center;
}

.stat-item {}

.stat-number {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
    display: block;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 1rem;
    font-weight: 600;
    color: rgba(255,255,255,0.8);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* ==========================================================================
   About Section
   ========================================================================== */
.about-section {
    padding: var(--section-pad);
    background: var(--white);
}

.about-section .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.about-image::after {
    content: '';
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 60%;
    height: 60%;
    border: 4px solid var(--gold);
    border-radius: var(--radius-lg);
    z-index: -1;
}

.about-content .section-subtitle { margin-bottom: 32px; }

/* ==========================================================================
   Programmes Section
   ========================================================================== */
.programmes-section {
    padding: var(--section-pad);
    background: var(--off-white);
}

.programmes-section .section-header,
.blog-section .section-header {
    text-align: center;
    margin-bottom: 56px;
}

.programmes-section .section-header .section-subtitle,
.blog-section .section-header .section-subtitle {
    margin: 0 auto 0;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 48px;
}

/* ==========================================================================
   Programme Card
   ========================================================================== */
.programme-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
    border: 1px solid transparent;
}
.programme-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--gold);
}

.programme-card__image {
    aspect-ratio: 16/10;
    overflow: hidden;
}
.programme-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition);
}
.programme-card:hover .programme-card__image img { transform: scale(1.05); }

.programme-card__image-placeholder {
    aspect-ratio: 16/10;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}
.programme-card__image-placeholder svg { opacity: 0.3; }

.programme-card__body { padding: 28px; flex: 1; display: flex; flex-direction: column; }

.programme-card__status {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 100px;
    margin-bottom: 14px;
    width: fit-content;
}
.programme-card__status.active {
    background: rgba(212, 160, 23, 0.12);
    color: var(--gold-dark);
}
.programme-card__status.completed {
    background: rgba(26, 52, 114, 0.08);
    color: var(--navy);
}

.programme-card__title {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--navy);
}

.programme-card__excerpt {
    color: var(--text-muted);
    font-size: 0.95rem;
    flex: 1;
    margin-bottom: 20px;
}

.programme-card__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    color: var(--navy);
    font-size: 0.9rem;
    transition: all var(--transition);
}
.programme-card__link:hover { color: var(--gold); gap: 10px; }
.programme-card__link svg { transition: transform var(--transition); }
.programme-card:hover .programme-card__link svg { transform: translateX(4px); }

/* ==========================================================================
   Blog Section
   ========================================================================== */
.blog-section {
    padding: var(--section-pad);
    background: var(--white);
}

/* ==========================================================================
   Post Card
   ========================================================================== */
.post-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
    border: 1px solid var(--light-gray);
    display: flex;
    flex-direction: column;
}
.post-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--gold);
}

.post-card__image {
    aspect-ratio: 16/9;
    overflow: hidden;
}
.post-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition);
}
.post-card:hover .post-card__image img { transform: scale(1.05); }

.post-card__image-placeholder {
    aspect-ratio: 16/9;
    background: var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.post-card__body { padding: 24px; flex: 1; display: flex; flex-direction: column; }

.post-card__meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.post-card__category {
    background: rgba(212, 160, 23, 0.1);
    color: var(--gold-dark);
    padding: 3px 10px;
    border-radius: 100px;
    font-weight: 700;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.post-card__title {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--navy);
    transition: color var(--transition);
}
.post-card:hover .post-card__title { color: var(--gold-dark); }

.post-card__excerpt {
    color: var(--text-muted);
    font-size: 0.9rem;
    flex: 1;
    margin-bottom: 16px;
}

.post-card__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    color: var(--navy);
    font-size: 0.88rem;
    transition: all var(--transition);
}
.post-card__link:hover { color: var(--gold); gap: 10px; }

/* ==========================================================================
   CTA Band
   ========================================================================== */
.cta-band {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    padding: 80px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-band .container { position: relative; }

.cta-band h2 {
    color: var(--navy);
    margin-bottom: 16px;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
}

.cta-band p {
    color: var(--navy);
    font-size: 1.15rem;
    max-width: 600px;
    margin: 0 auto 40px;
    opacity: 0.85;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    background: var(--navy-dark);
    color: rgba(255,255,255,0.75);
}

.footer-main {
    padding: 72px 24px 48px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-main .container {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 60px;
}

.footer-brand .site-name-text { color: var(--white); margin-bottom: 16px; display: block; }

.footer-tagline {
    color: rgba(255,255,255,0.6);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 24px;
}

.social-links { display: flex; gap: 12px; }

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.7);
    transition: all var(--transition);
    font-size: 1.1rem;
    text-decoration: none;
}
.social-link:hover {
    background: var(--gold);
    color: var(--navy);
    transform: translateY(-2px);
}

.footer-widget .widget-title {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--gold);
    display: inline-block;
}

.footer-widget a { color: rgba(255,255,255,0.65); font-size: 0.9rem; }
.footer-widget a:hover { color: var(--gold); }
.footer-widget p { color: rgba(255,255,255,0.65); font-size: 0.9rem; margin-bottom: 8px; }

.footer-nav ul { display: flex; flex-direction: column; gap: 10px; }
.footer-nav ul li a { color: rgba(255,255,255,0.65); font-size: 0.9rem; transition: color var(--transition); }
.footer-nav ul li a:hover { color: var(--gold); }

.footer-bottom {
    padding: 20px 24px;
}

.footer-bottom .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.45);
}

/* ==========================================================================
   Standard Page / Content
   ========================================================================== */
.page-content-wrap {
    margin-top: 70px;
    padding: 80px 24px;
    min-height: 60vh;
}

.page-content-wrap .entry-content { max-width: 800px; margin: 0 auto; }
.page-content-wrap .entry-content h1,
.page-content-wrap .entry-content h2,
.page-content-wrap .entry-content h3 { margin: 1.5rem 0 0.75rem; }
.page-content-wrap .entry-content p { margin-bottom: 1.25rem; }
.page-content-wrap .entry-content img { border-radius: var(--radius); margin: 1rem 0; }
.page-content-wrap .entry-content ul,
.page-content-wrap .entry-content ol { padding-left: 1.5rem; margin-bottom: 1.25rem; list-style: disc; }

/* ==========================================================================
   Full-width Elementor Page Layout
   ========================================================================== */
body.elementor-page .site-main,
body.roseseko-elementor-page .site-main {
    margin-top: 70px;
}

body.elementor-page .page-content-wrap {
    padding: 0;
    margin-top: 70px;
}

/* Elementor canvas — no padding override */
.elementor-template-canvas .site-header + * { margin-top: 0; }

/* ==========================================================================
   Single Post
   ========================================================================== */
.single-post-wrap {
    margin-top: 70px;
    padding: 60px 24px 80px;
}

.single-post-wrap .container { max-width: 800px; }

.post-header { margin-bottom: 40px; }
.post-header .post-category {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 12px;
}
.post-header h1 { margin-bottom: 16px; }
.post-header .post-meta { color: var(--text-muted); font-size: 0.9rem; }

.post-featured-image { border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 48px; }
.post-featured-image img { width: 100%; }

.post-body { font-size: 1.05rem; line-height: 1.8; }
.post-body h2, .post-body h3, .post-body h4 { margin: 2rem 0 1rem; }
.post-body p { margin-bottom: 1.4rem; }
.post-body img { border-radius: var(--radius); margin: 1.5rem 0; }
.post-body ul, .post-body ol { padding-left: 1.5rem; margin-bottom: 1.4rem; }
.post-body ul { list-style: disc; }
.post-body ol { list-style: decimal; }

/* ==========================================================================
   Archive
   ========================================================================== */
.archive-wrap {
    margin-top: 70px;
    padding: 60px 24px 80px;
}

.archive-header { text-align: center; margin-bottom: 56px; }

.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 56px;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius);
    font-weight: 600;
    border: 2px solid var(--light-gray);
    color: var(--navy);
    transition: all var(--transition);
}
.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background: var(--navy);
    border-color: var(--navy);
    color: var(--white);
}

/* ==========================================================================
   404 Page
   ========================================================================== */
.not-found-wrap {
    min-height: 100vh;
    background: var(--navy);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 24px;
}

.not-found-wrap .error-number {
    font-family: var(--font-heading);
    font-size: clamp(6rem, 20vw, 12rem);
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
    margin-bottom: 24px;
    display: block;
    opacity: 0.9;
}

.not-found-wrap h2 {
    color: var(--white);
    margin-bottom: 16px;
    font-size: 1.75rem;
}

.not-found-wrap p {
    color: rgba(255,255,255,0.65);
    font-size: 1.05rem;
    max-width: 460px;
    margin: 0 auto 40px;
}

/* ==========================================================================
   Contact Page Fallback
   ========================================================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    margin-top: 56px;
}

.contact-detail {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 28px;
}

.contact-detail-icon {
    width: 48px;
    height: 48px;
    background: rgba(26, 52, 114, 0.08);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--navy);
    font-size: 1.2rem;
}

.contact-detail-text strong {
    display: block;
    color: var(--navy);
    font-weight: 700;
    margin-bottom: 4px;
}
.contact-detail-text span,
.contact-detail-text a { color: var(--text-muted); font-size: 0.95rem; }

/* ==========================================================================
   Team Card
   ========================================================================== */
.team-card {
    text-align: center;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
    border: 1px solid var(--light-gray);
}
.team-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.team-card__photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 20px;
    border: 3px solid var(--gold);
}
.team-card__photo img { width: 100%; height: 100%; object-fit: cover; }

.team-card__photo-placeholder {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--navy);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    border: 3px solid var(--gold);
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--gold);
    font-weight: 700;
}

.team-card__name { color: var(--navy); font-size: 1.1rem; margin-bottom: 6px; }
.team-card__role { color: var(--gold-dark); font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 14px; }
.team-card__bio { color: var(--text-muted); font-size: 0.9rem; }

/* ==========================================================================
   Page Banner (About/Programmes/Contact)
   ========================================================================== */
.page-banner {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    padding: 120px 24px 60px;
    text-align: center;
    margin-top: 70px;
}

.page-banner h1 { color: var(--white); margin-bottom: 12px; }
.page-banner p { color: rgba(255,255,255,0.7); font-size: 1.1rem; max-width: 560px; margin: 0 auto; }

/* ==========================================================================
   Breadcrumbs
   ========================================================================== */
.breadcrumbs {
    margin-bottom: 28px;
}
.breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.85rem;
}
.breadcrumbs ol li a {
    color: rgba(255,255,255,0.55);
    text-decoration: none;
    transition: color var(--transition);
}
.breadcrumbs ol li a:hover { color: var(--gold); }
.breadcrumbs ol li span[aria-current="page"] { color: var(--gold); font-weight: 600; }
.breadcrumbs .breadcrumb-sep { color: rgba(255,255,255,0.3); font-size: 0.9rem; }

/* Breadcrumbs on light backgrounds (archive, search) */
.archive-wrap .breadcrumbs ol li a,
.single-post-wrap .breadcrumbs ol li a {
    color: var(--text-muted);
}
.archive-wrap .breadcrumbs ol li a:hover,
.single-post-wrap .breadcrumbs ol li a:hover { color: var(--navy); }
.archive-wrap .breadcrumbs ol li span[aria-current="page"],
.single-post-wrap .breadcrumbs ol li span[aria-current="page"] { color: var(--navy); }
.archive-wrap .breadcrumbs .breadcrumb-sep,
.single-post-wrap .breadcrumbs .breadcrumb-sep { color: var(--text-muted); }

/* ==========================================================================
   Reading time
   ========================================================================== */
.reading-time {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--text-muted);
    font-size: 0.85rem;
}
.reading-time svg { opacity: 0.6; }

.post-card__read-time {
    font-size: 0.78rem;
    color: var(--text-muted);
}
.post-card__read-time::before { content: '·'; margin-right: 4px; }

/* ==========================================================================
   Social share
   ========================================================================== */
.post-share {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    padding: 24px 0;
    border-top: 1px solid var(--light-gray);
    border-bottom: 1px solid var(--light-gray);
    margin: 40px 0;
}
.post-share__label {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--navy);
    white-space: nowrap;
}
.post-share__links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition);
    border: 2px solid transparent;
}
.share-btn--whatsapp {
    background: #25D366;
    color: #fff;
}
.share-btn--whatsapp:hover {
    background: #1da851;
    color: #fff;
    transform: translateY(-2px);
}
.share-btn--facebook {
    background: #1877F2;
    color: #fff;
}
.share-btn--facebook:hover {
    background: #0d65d9;
    color: #fff;
    transform: translateY(-2px);
}
.share-btn--twitter {
    background: var(--charcoal);
    color: #fff;
}
.share-btn--twitter:hover {
    background: #000;
    color: #fff;
    transform: translateY(-2px);
}

/* ==========================================================================
   Related posts
   ========================================================================== */
.related-posts {
    margin-top: 64px;
    padding-top: 48px;
    border-top: 2px solid var(--light-gray);
}
.related-posts h2 {
    margin-bottom: 32px;
    font-size: 1.5rem;
}

/* ==========================================================================
   Post footer
   ========================================================================== */
.post-footer {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--light-gray);
}

/* ==========================================================================
   Back to top
   ========================================================================== */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--navy);
    color: var(--white);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    transition: all var(--transition);
    z-index: 900;
    opacity: 0;
    transform: translateY(16px);
}
.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
}
.back-to-top:hover {
    background: var(--gold);
    color: var(--navy);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

@media (max-width: 600px) {
    .back-to-top { bottom: 20px; right: 20px; width: 44px; height: 44px; }
    .post-share { flex-direction: column; align-items: flex-start; gap: 12px; }
    .share-btn { font-size: 0.82rem; padding: 8px 14px; }
}

/* ==========================================================================
   Grids for PHP-template detail pages (moved out of inline <style> blocks)
   ========================================================================== */
.prog-detail-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 64px;
    align-items: start;
}

.team-detail-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 64px;
    align-items: start;
}

.mission-vision-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

/* ==========================================================================
   Responsive — Desktop large (max 1200px)
   ========================================================================== */
@media (max-width: 1200px) {
    .about-section .container { gap: 56px; }
    .prog-detail-grid { grid-template-columns: 1fr 300px; gap: 48px; }
}

/* ==========================================================================
   Responsive — Tablet landscape (max 1024px)
   ========================================================================== */
@media (max-width: 1024px) {
    :root { --section-pad: 64px 24px; }

    .about-section .container { gap: 40px; }

    .cards-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
    .posts-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }

    .footer-main { padding: 56px 24px 40px; }
    .footer-main .container { grid-template-columns: 1fr 1fr; gap: 40px; }
    .footer-main .container > :first-child { grid-column: 1 / -1; }

    .prog-detail-grid { grid-template-columns: 1fr 280px; gap: 40px; }
    .team-detail-grid { grid-template-columns: 220px 1fr; gap: 40px; }
    .mission-vision-grid { gap: 32px; }
}

/* ==========================================================================
   Responsive — Tablet portrait (max 768px)
   ========================================================================== */
@media (max-width: 768px) {
    :root { --section-pad: 56px 20px; }

    /* Navbar */
    .primary-nav { display: none; }
    .hamburger { display: flex; }
    .navbar-donate .btn { display: none; }
    .navbar-donate .hamburger { display: flex; }

    /* Mobile nav donate button */
    .mobile-nav .mobile-donate {
        display: block;
        padding: 16px 24px 20px;
        border-top: 1px solid rgba(255,255,255,0.1);
        text-align: center;
    }
    .mobile-nav .mobile-donate .btn {
        display: inline-flex;
        width: auto;
        min-width: 200px;
        justify-content: center;
    }

    /* Stats bar — 3 across on tablets */
    .stats-bar { padding: 48px 20px; }
    .stats-bar .container { gap: 24px; }
    .stat-number { font-size: clamp(2rem, 8vw, 3rem); }

    /* About */
    .about-section .container { grid-template-columns: 1fr; gap: 40px; }
    .about-image::after { display: none; }

    /* Cards — keep 2-col on tablet portrait */
    .cards-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .posts-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }

    /* Detail page grids */
    .prog-detail-grid { grid-template-columns: 1fr; gap: 40px; }
    .team-detail-grid { grid-template-columns: 1fr; gap: 32px; }
    .mission-vision-grid { grid-template-columns: 1fr; }

    /* Contact */
    .contact-grid { grid-template-columns: 1fr; gap: 48px; }

    /* Footer */
    .footer-main .container { grid-template-columns: 1fr; gap: 36px; }
    .footer-bottom .container { flex-direction: column; text-align: center; gap: 8px; }

    /* Archive / search */
    .archive-header { margin-bottom: 40px; }

    /* Pagination touch targets */
    .pagination .page-numbers { width: 48px; height: 48px; }

    /* Taxonomy filter tabs */
    .programme-type-filters { gap: 8px; }

    /* CTA band */
    .cta-band { padding: 56px 20px; }
    .cta-band .btn { width: 100%; justify-content: center; max-width: 360px; }

    /* Page banner */
    .page-banner { padding: 110px 20px 48px; }
    .page-banner h1 { font-size: clamp(1.75rem, 6vw, 2.5rem); }

    /* Post / single */
    .post-header h1 { font-size: clamp(1.5rem, 5vw, 2.2rem); }
    .post-body { font-size: 1rem; }

    /* Team detail photo */
    .team-detail-grid > div:first-child { max-width: 240px; margin: 0 auto; }

    /* Comments */
    .comments-area { margin-top: 40px; }
}

/* ==========================================================================
   Responsive — Mobile (max 600px)
   ========================================================================== */
@media (max-width: 600px) {
    :root { --section-pad: 48px 16px; }

    /* Cards — single column on phones */
    .cards-grid { grid-template-columns: 1fr; gap: 20px; }
    .posts-grid { grid-template-columns: 1fr; gap: 20px; }

    /* Stats bar — single column on phones */
    .stats-bar .container { grid-template-columns: 1fr; gap: 28px; }
    .stat-item { padding: 0 16px; }

    /* About image full width */
    .about-section .container { padding: 0; }
    .about-image img { border-radius: var(--radius); }

    /* Navbar */
    .navbar { padding: 0 16px; }
    .site-name-text { font-size: 0.95rem; }

    /* Section titles */
    .section-title { font-size: clamp(1.5rem, 6vw, 2rem); }

    /* Buttons full width in CTA contexts */
    .cta-band .btn { width: 100%; max-width: 100%; }

    /* Footer */
    .footer-main { padding: 48px 16px 32px; }
    .social-links { justify-content: flex-start; }

    /* Page/single content */
    .page-content-wrap { padding: 48px 16px 64px; }
    .single-post-wrap { padding: 48px 16px 64px; }
    .archive-wrap { padding: 48px 16px 64px; }
    .contact-detail { gap: 12px; }

    /* Search form */
    .archive-header form { flex-direction: column; }
    .archive-header form input,
    .archive-header form button { width: 100%; }
}

/* ==========================================================================
   Responsive — Small phones (max 480px)
   ========================================================================== */
@media (max-width: 480px) {
    :root { --section-pad: 40px 16px; }

    /* Navbar height */
    .navbar { height: 60px; }
    .hero-section { margin-top: 60px; }
    .page-banner { margin-top: 60px; padding: 90px 16px 40px; }
    .page-content-wrap { margin-top: 60px; padding: 40px 16px 56px; }
    .single-post-wrap { margin-top: 60px; padding: 40px 16px 56px; }
    .archive-wrap { margin-top: 60px; padding: 40px 16px 56px; }
    body.elementor-page .site-main,
    body.roseseko-elementor-page .site-main { margin-top: 60px; }

    /* Typography */
    h1 { font-size: clamp(1.6rem, 7vw, 2.2rem); }
    h2 { font-size: clamp(1.35rem, 6vw, 1.8rem); }

    /* Stat numbers */
    .stat-number { font-size: clamp(2rem, 10vw, 3rem); }

    /* Cards */
    .programme-card__body { padding: 20px; }
    .post-card__body { padding: 18px; }

    /* Footer bottom */
    .footer-bottom { padding: 16px; }
    .footer-bottom .container { font-size: 0.8rem; }

    /* Not found */
    .not-found-wrap .error-number { font-size: clamp(5rem, 25vw, 9rem); }

    /* Pagination */
    .pagination { flex-wrap: wrap; gap: 6px; }
    .pagination .page-numbers { width: 40px; height: 40px; font-size: 0.85rem; }

    /* Comment form */
    .comment-form .btn { width: 100%; }
}

/* ==========================================================================
   Donorbox Donation Modal
   ========================================================================== */
.rsf-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.rsf-modal[aria-hidden="true"] { display: none; }

.rsf-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(3, 43, 82, 0.75);
    backdrop-filter: blur(4px);
    cursor: pointer;
}

.rsf-modal__content {
    position: relative;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px 32px 32px;
    max-width: 560px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
}

.rsf-modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--charcoal);
    padding: 6px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color var(--transition), background var(--transition);
}
.rsf-modal__close:hover { color: var(--navy); background: var(--light-gray); }

/* ==========================================================================
   WPForms brand overrides
   ========================================================================== */
.wpforms-container .wpforms-submit-container button[type="submit"],
.wpforms-container .wpforms-field-submit input[type="submit"] {
    background: var(--gold) !important;
    border-color: var(--gold) !important;
    color: var(--navy) !important;
    font-family: var(--font-body) !important;
    font-weight: 700 !important;
    border-radius: var(--radius) !important;
    padding: 14px 32px !important;
    font-size: 1rem !important;
    cursor: pointer !important;
    transition: background var(--transition), transform var(--transition) !important;
}
.wpforms-container .wpforms-submit-container button[type="submit"]:hover {
    background: var(--gold-dark) !important;
    border-color: var(--gold-dark) !important;
    transform: translateY(-2px) !important;
}
.wpforms-container .wpforms-field input,
.wpforms-container .wpforms-field textarea,
.wpforms-container .wpforms-field select {
    font-family: var(--font-body) !important;
    border: 2px solid var(--light-gray) !important;
    border-radius: var(--radius) !important;
    padding: 12px 16px !important;
    transition: border-color 0.2s !important;
}
.wpforms-container .wpforms-field input:focus,
.wpforms-container .wpforms-field textarea:focus,
.wpforms-container .wpforms-field select:focus {
    border-color: var(--navy) !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(3, 43, 82, 0.1) !important;
}
.wpforms-container .wpforms-field-label {
    font-family: var(--font-body) !important;
    font-weight: 600 !important;
    color: var(--navy) !important;
}

/* ==========================================================================
   Class aliases — rsf- prefix variants for JS targeting
   ========================================================================== */
.rsf-stats-bar { /* same as .stats-bar — JS count-up targets both */ }

.rsf-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.rsf-animate.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   Responsive — Extra small (max 360px)
   ========================================================================== */
@media (max-width: 360px) {
    :root { --section-pad: 36px 12px; }

    .navbar { padding: 0 12px; }
    .container { padding: 0 12px; }
    .btn { padding: 12px 20px; font-size: 0.9rem; }
    .stat-number { font-size: 2rem; }
}
