/*
Theme Name: Samriddha Nepal 6
Theme URI: https://samriddhanepal.org/
Author: PROTECH
Author URI: https://protech.org.np/
Description: Custom theme for Samriddha Nepal NGO
Version: 6.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: samriddha-nepal
Tags: custom, non-profit, responsive
*/

/* ============================================================
   ROOT VARIABLES
   ============================================================ */
:root {
    --primary: #1e5f1f;
    --primary-light: #2e8b2f;
    --primary-dark: #143d14;
    --accent: #e8732a;
    --accent-light: #f5934d;
    --gold: #d4a017;
    --light-bg: #f4f7f4;
    --white: #ffffff;
    --dark: #1a1a1a;
    --text: #3d3d3d;
    --text-light: #6b7280;
    --border: #e2e8f0;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 20px 48px rgba(0, 0, 0, 0.18);
    --radius: 12px;
    --radius-lg: 20px;
    --transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    line-height: 1.7;
    color: var(--text);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent);
}

ul {
    list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.25;
    color: var(--primary-dark);
}

p {
    margin-bottom: 1rem;
    color: var(--text);
}



/* ============================================================
   TOP BAR
   ============================================================ */
.top-bar {
    background: var(--primary-dark);
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.863rem;
    padding: 0.45rem 0;
}

.top-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.top-bar-contact {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.top-bar-contact span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.top-bar-contact i {
    color: var(--accent-light);
}

.top-bar-social {
    display: flex;
    gap: 0.75rem;
}

.top-bar-social a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
    transition: var(--transition);
}

.top-bar-social a:hover {
    color: #fff;
}

@media (max-width:640px) {
    .top-bar-contact {
        gap: 0.75rem;
        font-size: 0.783rem;
    }

    .top-bar {
        display: none;
    }
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 900;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
    padding: 0;
}

.site-header.scrolled {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.10);
    background: rgba(255, 255, 255, 0.99);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
    gap: 1rem;
}

/* Logo */
.site-branding {
    flex-shrink: 0;
}

.logo-text-wrap {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
}

.logo-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-name {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--primary-dark);
}

.logo-desc {
    font-size: 0.68rem;
    color: var(--text-light);
    font-weight: 400;
}

.wp-block-site-logo img,
.site-branding img.custom-logo {
    height: 75px;
    width: auto;
}

/* ============================================================
   NAVIGATION – DESKTOP
   ============================================================ */
.main-navigation {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.main-menu {
    display: flex;
    align-items: center;
    gap: 0.1rem;
    list-style: none;
}

/* Top-level item wrapper – needed for dropdown positioning */
.main-menu>li {
    position: relative;
}

.main-menu>li>a {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.45rem 0.9rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--dark);
    border-radius: 7px;
    transition: var(--transition);
    white-space: nowrap;
}

.main-menu>li>a:hover,
.main-menu>li.current-menu-item>a,
.main-menu>li:hover>a {
    color: var(--primary);
    background: rgba(30, 95, 31, 0.08);
}

/* Caret arrow for parent items that have children */
.main-menu>li.menu-item-has-children>a::after {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    transition: transform 0.2s ease;
    opacity: 0.65;
    flex-shrink: 0;
}

.main-menu>li.menu-item-has-children:hover>a::after {
    transform: rotate(225deg) translateY(-2px);
}

/* Caret for nested sub-menu items */
.main-menu .sub-menu li.menu-item-has-children>a::after {
    content: '';
    display: inline-block;
    width: 5px;
    height: 5px;
    border-right: 2px solid currentColor;
    border-top: 2px solid currentColor;
    transform: rotate(45deg) translateY(0);
    transition: transform 0.2s ease;
    opacity: 0.65;
    margin-left: auto;
    /* push to the right */
    flex-shrink: 0;
}

/* ——— DROPDOWN SUBMENU (desktop) ——— */
.main-menu li>.sub-menu {
    position: absolute;
    min-width: 210px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.14), 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--border);
    list-style: none;
    z-index: 999;
    /* Hidden by default */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* 2nd level specifics */
.main-menu>li>.sub-menu {
    top: 100%;
    left: 50%;
    padding: 10px 0 0.5rem;
    transform: translateX(-50%) translateY(6px);
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0s linear 0.22s;
}

/* Tiny arrow pointing up (only 2nd level) */
.main-menu>li>.sub-menu::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 12px;
    height: 12px;
    background: #ffffff;
    border-left: 1px solid var(--border);
    border-top: 1px solid var(--border);
}

/* 3rd level specifics */
.main-menu .sub-menu li>.sub-menu {
    top: -10px;
    /* offset upwards to align */
    left: 100%;
    padding: 0.5rem 0;
    transform: translateX(10px) translateY(0);
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0s linear 0.22s;
}

/* Show on hover — NO gap, pointer-events on immediately */
.main-menu>li:hover>.sub-menu,
.main-menu>li:focus-within>.sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0s linear 0s;
}

.main-menu .sub-menu li:hover>.sub-menu,
.main-menu .sub-menu li:focus-within>.sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0) translateY(0);
    pointer-events: auto;
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0s linear 0s;
}

/* Submenu links */
.main-menu li>.sub-menu li {
    list-style: none;
    position: relative;
    /* relative for 3rd level sub to anchor correctly */
}

.main-menu li>.sub-menu li a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1.25rem;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text);
    text-decoration: none;
    transition: var(--transition);
    white-space: nowrap;
    border-radius: 0;
}

.main-menu li>.sub-menu li a::before {
    content: '';
    display: inline-block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--primary);
    opacity: 0;
    flex-shrink: 0;
    transition: opacity 0.15s ease;
}

.main-menu li>.sub-menu li a:hover {
    color: var(--primary);
    background: rgba(30, 95, 31, 0.06);
    padding-left: 1.5rem;
}

.main-menu li>.sub-menu li a:hover::before {
    opacity: 1;
}

.main-menu li>.sub-menu li:first-child a {
    border-radius: 10px 10px 0 0;
}

.main-menu li>.sub-menu li:last-child a {
    border-radius: 0 0 10px 10px;
}

.main-menu li>.sub-menu li+li {
    border-top: 1px solid rgba(0, 0, 0, 0.04);
}

.nav-donate-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1.2rem;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    color: #fff !important;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 700;
    margin-left: 0.75rem;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(232, 115, 42, 0.35);
    white-space: nowrap;
}

.nav-donate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(232, 115, 42, 0.45);
    color: #fff !important;
}

/* Hamburger */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.4rem;
    flex-shrink: 0;
}

.hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 24px;
}

.hamburger span {
    display: block;
    height: 2.5px;
    width: 100%;
    background: var(--primary-dark);
    border-radius: 4px;
    transition: var(--transition);
}

.nav-toggle.open .hamburger span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}

.nav-toggle.open .hamburger span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.open .hamburger span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}

/* Mobile overlay */
.mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 800;
    backdrop-filter: blur(2px);
}

.mobile-overlay.active {
    display: block;
}

/* ============================================================
   NAV SEARCH BUTTON
   ============================================================ */
.nav-search-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: rgba(30, 95, 31, 0.08);
    border: 1.5px solid rgba(30, 95, 31, 0.18);
    border-radius: 9px;
    color: var(--primary-dark);
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
    margin-left: 0.5rem;
}

.nav-search-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    transform: scale(1.07);
    box-shadow: 0 4px 14px rgba(30, 95, 31, 0.3);
}

/* ============================================================
   SEARCH OVERLAY
   ============================================================ */
.search-overlay {
    position: fixed;
    inset: 0;
    z-index: 1100;
    background: rgba(10, 30, 10, 0.72);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease, visibility 0s linear 0s;
}

.search-overlay-inner {
    width: 100%;
    max-width: 680px;
    padding: 0 1.5rem;
    transform: translateY(18px);
    transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.search-overlay.active .search-overlay-inner {
    transform: translateY(0);
}

.search-overlay-form {
    display: flex;
    align-items: center;
    gap: 0;
    background: rgba(255, 255, 255, 0.07);
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.35);
    transition: border-color 0.2s ease;
}

.search-overlay-form:focus-within {
    border-color: rgba(255, 255, 255, 0.55);
}

.search-overlay-icon {
    color: rgba(255, 255, 255, 0.55);
    font-size: 1.05rem;
    padding: 0 1rem 0 1.25rem;
    flex-shrink: 0;
}

.search-overlay-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-size: 1.25rem;
    font-family: 'Inter', 'Segoe UI', sans-serif;
    font-weight: 400;
    padding: 1rem 0.5rem;
    caret-color: var(--accent-light);
}

.search-overlay-input::placeholder {
    color: rgba(255, 255, 255, 0.38);
}

.search-overlay-input::-webkit-search-cancel-button {
    display: none;
}

.search-overlay-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    background: var(--primary);
    border: none;
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s ease;
    margin: 4px;
    border-radius: 10px;
}

.search-overlay-submit:hover {
    background: var(--primary-light);
}

.search-overlay-hint {
    margin-top: 1rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.38);
    font-size: 0.8rem;
    letter-spacing: 0.3px;
}

.search-overlay-hint kbd {
    display: inline-block;
    padding: 0.1rem 0.45rem;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    font-family: inherit;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.6);
}

.search-overlay-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
}

.search-overlay-close:hover {
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
    transform: rotate(90deg);
}


/* ============================================================
   RESPONSIVE NAV  (mobile)
   ============================================================ */
@media (max-width: 900px) {
    .nav-toggle {
        display: flex;
        position: relative;
        z-index: 900;
    }

    /* Slide-in drawer */
    .main-navigation {
        position: fixed;
        top: 0;
        right: -320px;
        width: 300px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 5.5rem 0 2rem;
        box-shadow: -8px 0 30px rgba(0, 0, 0, 0.15);
        z-index: 850;
        transition: right 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        overflow-y: auto;
        gap: 0;
    }

    .main-navigation.open {
        right: 0;
    }

    .main-menu {
        flex-direction: column;
        width: 100%;
        gap: 0;
        padding: 0 1rem;
    }

    .main-menu>li {
        width: 100%;
        border-bottom: 1px solid var(--border);
    }

    .main-menu>li:last-child {
        border-bottom: none;
    }

    /* Top-level links */
    .main-menu>li>a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0.85rem 0.5rem;
        font-size: 0.97rem;
        font-weight: 600;
        color: var(--dark);
        border-radius: 0;
        width: 100%;
        background: transparent;
    }

    .main-menu>li>a:hover,
    .main-menu>li.current-menu-item>a {
        color: var(--primary);
        background: transparent;
    }

    /* Caret becomes a + / x toggle indicator on mobile */
    .main-menu li.menu-item-has-children>a::after {
        content: '+';
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 22px;
        height: 22px;
        border-right: none;
        border-bottom: none;
        border-top: none;
        border-radius: 6px;
        background: rgba(30, 95, 31, 0.08);
        border: none;
        font-size: 1rem;
        font-weight: 700;
        color: var(--primary);
        transform: none;
        opacity: 1;
        transition: var(--transition);
        margin-left: auto;
        flex-shrink: 0;
    }

    .main-menu li.menu-item-has-children.submenu-open>a::after {
        content: '−';
        background: rgba(30, 95, 31, 0.12);
        transform: none;
    }

    /* ——— MOBILE SUBMENU hidden by default ——— */
    .main-menu li>.sub-menu {
        /* fully override ALL desktop positioning */
        position: static !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        /* reset transforms */
        transform: none !important;
        /* reset visibility/opacity — controlled by max-height */
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        /* reset desktop decorations */
        box-shadow: none !important;
        border: none !important;
        border-radius: 0 !important;
        padding: 0 !important;
        background: #f8faf8 !important;
        min-width: unset !important;
        width: 100% !important;
        /* accordion: hide with max-height */
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s ease;
        /* ensure it doesn't break the drawer width */
        box-sizing: border-box;
        margin: 0;
    }

    .main-menu li>.sub-menu::before {
        display: none !important;
    }

    /* Open state toggled via JS (.submenu-open class) */
    .main-menu li.submenu-open>.sub-menu {
        max-height: 800px;
    }

    .main-menu li>.sub-menu li {
        border-top: none;
        width: 100%;
        list-style: none;
    }

    .main-menu li>.sub-menu>li>a {
        display: flex;
        align-items: center;
        gap: 0.6rem;
        padding: 0.65rem 1rem 0.65rem 1.5rem;
        font-size: 0.88rem;
        font-weight: 500;
        color: var(--text);
        border-radius: 0;
        background: transparent;
        white-space: normal;
        width: 100%;
        box-sizing: border-box;
    }

    .main-menu li>.sub-menu>li>a::before {
        content: '';
        display: inline-block;
        width: 5px;
        height: 5px;
        border-radius: 50%;
        background: var(--primary);
        opacity: 0.5;
        flex-shrink: 0;
    }

    .main-menu li>.sub-menu>li>a:hover {
        color: var(--primary);
        background: rgba(30, 95, 31, 0.06);
        padding-left: 1.75rem;
    }

    .main-menu li>.sub-menu>li>a:hover::before {
        opacity: 1;
    }

    /* ——— 3RD LEVEL SPECIFICS ——— */
    .main-menu .sub-menu .sub-menu {
        background: #ffffff !important;
        border-top: 1px solid rgba(0, 0, 0, 0.04) !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.04) !important;
    }

    .main-menu .sub-menu .sub-menu li a {
        padding: 0.6rem 1rem 0.6rem 2.8rem;
        font-size: 0.82rem;
        color: #555;
        display: flex;
        align-items: center;
        gap: 0.6rem;
        white-space: normal;
        width: 100%;
        box-sizing: border-box;
        text-decoration: none;
    }

    .main-menu .sub-menu .sub-menu li a::before {
        content: '';
        display: inline-block;
        width: 4px;
        height: 4px;
        background: #888;
        border-radius: 50%;
        opacity: 0.4;
        transition: 0.2s ease;
    }

    .main-menu .sub-menu .sub-menu li a:hover {
        padding-left: 3.1rem;
        color: var(--primary);
        background: #f4f6f4;
    }

    .main-menu .sub-menu .sub-menu li a:hover::before {
        background: var(--primary);
        opacity: 1;
    }

    .main-menu li>.sub-menu li+li {
        border-top: 1px solid rgba(0, 0, 0, 0.05);
    }

    .nav-donate-btn {
        margin: 1.25rem 1rem 0;
        width: calc(100% - 2rem);
        justify-content: center;
        padding: 0.75rem;
    }
}

/* ============================================================
   CONTAINER & LAYOUT
   ============================================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 5rem 0;
}

.alternate {
    background: var(--light-bg);
}

.section-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: fit-content;
    margin: 0 auto 1rem;
    /* centers the pill + adds bottom gap */
    background: rgba(30, 95, 31, 0.08);
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 0.35rem 0.9rem;
    border-radius: 100px;
}

.section-label.light {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.section-label.centered {
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    font-size: 2.3rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 1rem;
    line-height: 1.2;
    text-align: center;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-light);
    max-width: 580px;
    margin: 0 auto 3rem;
    /* auto left/right centers the capped-width block */
    text-align: center;
    /* centers the text inside */
    line-height: 1.7;
}

.text-center {
    text-align: center;
}

/* ============================================================
   HERO SLIDER
   ============================================================ */
.hero-slider-section {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-slides {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.25);
}

.hero-overlay-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 2rem 0;
}

.hero-inner-container {
    display: flex;
    justify-content: flex-end;
}

.hero-right-content {
    max-width: 600px;
    text-align: right;
    padding-right: 2rem;
}

.hero-slider-title {
    font-size: clamp(2rem, 3.5vw, 3.2rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.25;
    margin-bottom: 1.5rem;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.btn-slider-donate {
    display: inline-block;
    padding: 0.9rem 2.8rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid #fff;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.btn-slider-donate:hover {
    background: #fff;
    color: #333;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.hero-slider-dots {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    gap: 12px;
}

.hero-slider-dots .dot {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}

.hero-slider-dots .dot.active {
    background: #fff;
    transform: scale(1.3);
}

@media(max-width:768px) {
    .hero-slider-section {
        min-height: 45vh;
    }

    .hero-right-content {
        padding-right: 0;
        text-align: center;
        margin: 0 auto;
        padding-top: 2rem;
    }

    .hero-slider-title {
        font-size: 1.6rem;
        margin-bottom: 1rem;
    }

    .btn-slider-donate {
        padding: 0.7rem 1.8rem;
        font-size: 0.85rem;
    }
}

/* ============================================================
   ABOUT US SECTION
   ============================================================ */
.home-about-section {
    padding: 6rem 0;
    background: #faeed7;
}

.home-about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.home-about-video {
    width: 100%;
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.home-about-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.home-about-content {
    color: #4a4a4a;
    font-size: 1.1rem;
    line-height: 1.8;
}

.home-about-content p.lead-text {
    font-size: 1.4rem;
    color: #222;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.home-about-content p.lead-text strong {
    font-weight: 800;
}

.home-about-content p {
    margin-bottom: 1.25rem;
}

.home-about-content p:last-of-type {
    margin-bottom: 0;
}

.home-about-content strong {
    color: #222;
    font-weight: 700;
}

@media (max-width: 992px) {
    .home-about-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .home-about-content {
        font-size: 1rem;
    }

    .home-about-content p.lead-text {
        font-size: 1.2rem;
    }
}

/* ============================================================
   WE REACHED STATS SECTION
   ============================================================ */
.we-reached-section {
    position: relative;
    padding: 3rem 0 7rem;
    background-color: #f0f7fc;
    background-image: url("data:image/svg+xml,%3Csvg width='50' height='50' viewBox='0 0 50 50' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M25 22l3 3-3 3-3-3 3-3z' fill='%23dae4ed'/%3E%3C/svg%3E");
    overflow: hidden;
}

.we-reached-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.5) 0%, transparent 70%);
    pointer-events: none;
}

.we-reached-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    z-index: 2;
}

.we-reached-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 900;
    color: #1a2a1a;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 0.6rem;
    position: relative;
    display: inline-block;
}

.we-reached-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary, #1e5f1f), var(--gold, #d4a017));
    border-radius: 2px;
    margin: 1rem auto 0;
}

.we-reached-subtitle {
    font-size: 1.15rem;
    color: #555555;
    margin: 0;
    line-height: 1.6;
}

.we-reached-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

/* ---- Card ---- */
.reached-item {
    opacity: 0;
    transform: translateY(28px);
    transition: none;
}

.reached-item.revealed {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.reached-item:nth-child(2).revealed {
    transition-delay: 0.1s;
}

.reached-item:nth-child(3).revealed {
    transition-delay: 0.2s;
}

.reached-item:nth-child(4).revealed {
    transition-delay: 0.3s;
}

.reached-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 2.2rem 1.5rem 1.8rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Card specific soft colorful backgrounds */
.reached-item:nth-child(1) .reached-card {
    background: linear-gradient(145deg, #ffffff 30%, #fff1f0 100%);
    border-color: rgba(192, 57, 43, 0.15);
}

.reached-item:nth-child(2) .reached-card {
    background: linear-gradient(145deg, #ffffff 30%, #fff8e8 100%);
    border-color: rgba(200, 160, 74, 0.2);
}

.reached-item:nth-child(3) .reached-card {
    background: linear-gradient(145deg, #ffffff 30%, #eef9fd 100%);
    border-color: rgba(91, 196, 224, 0.2);
}

.reached-item:nth-child(4) .reached-card {
    background: linear-gradient(145deg, #ffffff 30%, #eefbf3 100%);
    border-color: rgba(46, 125, 82, 0.2);
}

.reached-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

/* Colored circular icon background */
.reached-icon-wrap {
    width: 110px;
    height: 90px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.2rem;
    padding: 1rem;
}

.reached-icon-wrap svg {
    width: 100%;
    height: 100%;
}

.reached-color--health {
    background: #fff;
    box-shadow: 0 8px 25px rgba(192, 57, 43, 0.12);
}

.reached-color--education {
    background: #fff;
    box-shadow: 0 8px 25px rgba(200, 160, 74, 0.15);
}

.reached-color--livelihood {
    background: #fff;
    box-shadow: 0 8px 25px rgba(91, 196, 224, 0.15);
}

.reached-color--drm {
    background: #fff;
    box-shadow: 0 8px 25px rgba(46, 125, 82, 0.15);
}

.reached-number {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 0.5rem;
    letter-spacing: -1px;
}

.reached-label {
    font-size: 0.875rem;
    color: #555;
    font-weight: 500;
    line-height: 1.5;
    flex: 1;
}

/* Bottom accent stripe */
.reached-accent {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    border-radius: 0 0 16px 16px;
    opacity: 0.7;
    transform: scaleX(0.4);
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: center;
}

.reached-card:hover .reached-accent {
    transform: scaleX(1);
    opacity: 1;
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
    .we-reached-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
}

@media (max-width: 540px) {
    .we-reached-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .reached-number {
        font-size: 2.4rem;
    }

    .reached-icon-wrap {
        width: 80px;
        height: 70px;
    }

    .impact-label-section {
        padding: 3rem 0;
    }
}

@media (max-width: 360px) {
    .we-reached-grid {
        grid-template-columns: 1fr;
    }
}



/* ============================================================
   MISSION & VISION
   ============================================================ */
.mission-section {
    background: var(--white);
}

.mission-vision {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 0;
    align-items: center;
    margin-top: 2rem;
}

.mission-card {
    background: linear-gradient(135deg, rgba(30, 95, 31, 0.04), rgba(46, 139, 47, 0.06));
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    border: 1px solid rgba(30, 95, 31, 0.15);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    opacity: 0;
}

.mission-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary), var(--primary-light));
    border-radius: 4px 0 0 4px;
}

.mission-card.accent::before {
    background: linear-gradient(180deg, var(--accent), var(--accent-light));
}

.reveal-left.revealed {
    opacity: 1;
    animation: slideInLeft 0.7s ease forwards;
}

.reveal-right.revealed {
    opacity: 1;
    animation: slideInRight 0.7s ease forwards;
}

.mission-card-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: #fff;
    margin-bottom: 1.5rem;
    box-shadow: 0 6px 20px rgba(30, 95, 31, 0.3);
}

.mission-card-icon.accent {
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    box-shadow: 0 6px 20px rgba(232, 115, 42, 0.3);
}

.mission-card h3 {
    font-size: 1.4rem;
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

.mission-card p {
    color: var(--text);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.mission-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}

.mission-link:hover {
    gap: 0.7rem;
    color: var(--accent);
}

.mission-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1.5rem;
}

.mission-divider-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
    box-shadow: 0 6px 20px rgba(30, 95, 31, 0.25);
}

@media(max-width:768px) {
    .mission-vision {
        grid-template-columns: 1fr;
    }

    .mission-divider {
        padding: 1rem 0;
    }

    .mission-divider-icon {
        transform: rotate(90deg);
    }
}

/* ============================================================
   SERVICES GRID
   ============================================================ */
.services-section {
    background: var(--light-bg);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.service-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
}

.service-card.revealed {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--card-color, var(--primary)), transparent);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

.service-card:hover::after {
    transform: scaleX(1);
}

.service-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-8px);
    border-color: rgba(30, 95, 31, 0.2);
}

.service-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.service-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--card-color, var(--primary)), color-mix(in srgb, var(--card-color, var(--primary)) 70%, white));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #fff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.service-number {
    font-size: 3rem;
    font-weight: 900;
    color: rgba(0, 0, 0, 0.05);
    line-height: 1;
}

.service-card h3 {
    font-size: 1.15rem;
    color: var(--primary-dark);
    margin-bottom: 0.75rem;
}

.service-card p {
    color: var(--text-light);
    font-size: 0.92rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.88rem;
    transition: var(--transition);
}

.service-link:hover {
    gap: 0.7rem;
    color: var(--accent);
}

/* ============================================================
   DONATION CTA
   ============================================================ */
.donation-section {
    position: relative;
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--primary-dark) 0%, #2e6b2f 60%, #1a4d1b 100%);
    overflow: hidden;
}

.donation-bg-overlay {
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.donation-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.donation-text h2 {
    font-size: 2.2rem;
    color: #fff;
    margin-bottom: 1rem;
    font-weight: 800;
}

.donation-text p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.donation-benefits {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.donation-benefits li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.92rem;
    font-weight: 500;
}

.donation-benefits i {
    color: var(--gold);
    font-size: 1rem;
}

.donation-widget {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    padding: 2rem;
}

.donation-widget h3 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.donation-widget h3 i {
    color: var(--gold);
}

.donation-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.donation-amount {
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 700;
    font-size: 0.92rem;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.donation-amount:hover,
.donation-amount.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.btn-donate-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.9rem;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 6px 20px rgba(232, 115, 42, 0.4);
    text-decoration: none;
}

.btn-donate-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(232, 115, 42, 0.55);
    color: #fff;
}

.donation-note {
    text-align: center;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.78rem;
    margin-top: 0.75rem;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

@media(max-width:768px) {
    .donation-inner {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials-section {
    background: var(--white);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.testimonial {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: var(--transition);
    position: relative;
    opacity: 0;
    transform: translateY(30px);
}

.testimonial.revealed {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.3s ease;
}

.testimonial:hover {
    box-shadow: var(--shadow);
    transform: translateY(-5px);
}

.testimonial-stars {
    color: var(--gold);
    font-size: 0.85rem;
    margin-bottom: 1rem;
    display: flex;
    gap: 3px;
}

.testimonial-text {
    font-size: 0.97rem;
    color: var(--text);
    line-height: 1.8;
    font-style: italic;
    margin-bottom: 1.5rem;
    position: relative;
}

.testimonial-text::before {
    content: '\201C';
    position: absolute;
    top: -20px;
    left: -5px;
    font-size: 4rem;
    color: var(--primary);
    opacity: 0.12;
    font-style: normal;
    line-height: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-avatar-placeholder {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.testimonial-name {
    font-weight: 700;
    color: var(--primary-dark);
    font-size: 0.95rem;
}

.testimonial-role {
    color: var(--text-light);
    font-size: 0.8rem;
}

/* ============================================================
   TEAM
   ============================================================ */
.team-section {
    background: var(--light-bg);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.75rem;
}

.team-member {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: var(--transition);
    opacity: 0;
    transform: translateY(30px);
}

.team-member.revealed {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.3s ease;
}

.team-member:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-8px);
}

.team-avatar {
    position: relative;
    height: 220px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.team-avatar-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.6);
}

.team-avatar-placeholder i {
    font-size: 4rem;
}

.team-avatar-placeholder span {
    font-size: 2rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 3px;
}

.team-overlay {
    position: absolute;
    inset: 0;
    background: rgba(20, 61, 20, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.team-member:hover .team-overlay {
    opacity: 1;
}

.team-info {
    padding: 1.5rem;
}

.team-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 0.3rem;
}

.team-role {
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.team-bio {
    font-size: 0.88rem;
    color: var(--text-light);
    line-height: 1.6;
}

.team-social {
    display: flex;
    gap: 0.75rem;
}

.team-social a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.9rem;
    transition: var(--transition);
}

.team-social a:hover {
    background: var(--accent);
    border-color: var(--accent);
}

/* ============================================================
   PARTNERS
   ============================================================ */
.partners-section {
    padding: 4rem 0;
    background: var(--white);
}

.trust-badges {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    padding: 1.5rem 2rem;
    background: var(--light-bg);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: var(--transition);
    min-width: 130px;
    opacity: 0;
    transform: translateY(20px);
}

.badge.revealed {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.badge:hover {
    box-shadow: var(--shadow);
    transform: translateY(-4px);
    border-color: rgba(30, 95, 31, 0.3);
}

.badge-icon {
    font-size: 2rem;
    color: var(--primary);
}

.badge-text {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text);
    text-align: center;
}

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
    position: relative;
    padding: 6rem 0;
    text-align: center;
    background: linear-gradient(135deg, #143d14 0%, var(--primary) 50%, #2e7d32 100%);
    overflow: hidden;
}

.cta-section-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 80% at 50% 120%, rgba(212, 160, 23, 0.12), transparent);
    pointer-events: none;
}

.cta-section-inner {
    position: relative;
    z-index: 2;
}

.cta-icon-wrap {
    width: 72px;
    height: 72px;
    background: rgba(255, 255, 255, 0.12);
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--gold);
    margin: 0 auto 1.5rem;
}

.cta-section h2 {
    color: #fff;
    font-size: 2.3rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.8);
    max-width: 580px;
    margin: 0 auto 2.5rem;
    line-height: 1.75;
}

.cta-btns {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-cta-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 2rem;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    color: #fff;
    font-weight: 700;
    border-radius: 10px;
    font-size: 0.95rem;
    box-shadow: 0 6px 20px rgba(232, 115, 42, 0.4);
    transition: var(--transition);
}

.btn-cta-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(232, 115, 42, 0.55);
    color: #fff;
}

.btn-cta-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 2rem;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-weight: 700;
    border-radius: 10px;
    font-size: 0.95rem;
    border: 2px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(6px);
    transition: var(--transition);
}

.btn-cta-outline:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    transform: translateY(-3px);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background: #1a3a1b;
    color: rgba(255, 255, 255, 0.8);
    position: relative;
}

.footer-wave {
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    line-height: 0;
    transform: rotate(180deg);
}

.footer-wave svg {
    width: 100%;
    height: 60px;
}

.footer-main {
    padding: 5rem 0 2rem;
    position: relative;
    z-index: 2;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 3rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.25rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 1rem;
}

.footer-leaf-icon {
    color: #4caf50;
    font-size: 1.4rem;
}

.footer-brand-desc {
    font-size: 0.88rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 1.5rem;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
}

.footer-social a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    transform: translateY(-3px);
}

.footer-widget-title {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.footer-widget-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 32px;
    height: 2px;
    background: var(--accent);
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.footer-links li a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.footer-links li a i {
    font-size: 0.7rem;
    color: var(--accent);
}

.footer-links li a:hover {
    color: #fff;
    padding-left: 4px;
}

.footer-contact-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.footer-contact-icon {
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 0.8rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.footer-contact-list span:last-child {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.85rem;
    line-height: 1.6;
}

.footer-contact-list a {
    color: rgba(255, 255, 255, 0.65);
    transition: var(--transition);
}

.footer-contact-list a:hover {
    color: var(--accent);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.25rem 0;
    position: relative;
    z-index: 2;
}

.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.footer-bottom p {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-bottom a:hover {
    color: var(--accent);
}

.footer-bottom strong {
    color: rgba(255, 255, 255, 0.8);
}

@media(max-width:900px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media(max-width:580px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .footer-bottom-inner {
        flex-direction: column;
        text-align: center;
    }
}

/* ============================================================
   BACK TO TOP BUTTON
   ============================================================ */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 500;
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    box-shadow: 0 6px 20px rgba(30, 95, 31, 0.35);
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(30, 95, 31, 0.5);
}

/* ============================================================
   SKIP LINK
   ============================================================ */
.skip-link {
    position: absolute;
    top: -100px;
    left: 1rem;
    background: var(--primary);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 0 0 8px 8px;
    z-index: 10000;
    font-weight: 700;
    transition: top 0.2s;
}

.skip-link:focus {
    top: 0;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-25px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(25px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ============================================================
   UTILITY
   ============================================================ */
.text-center {
    text-align: center;
}

.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;
}

/* ============================================================
   INNER PAGE STYLES (Who We Are, Contact, etc.)
   ============================================================ */
.page-hero {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    padding: 4rem 0 3rem;
    text-align: center;
    color: #fff;
}

.page-hero h1 {
    color: #fff;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.page-hero p {
    color: rgba(255, 255, 255, 0.75);
    max-width: 520px;
    margin: 0 auto;
}

.page-content {
    padding: 4rem 0;
}

.page-content .container {
    max-width: 900px;
}

/* Contact form */
.contact-form-wrap {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--text);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--text);
    transition: var(--transition);
    background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(30, 95, 31, 0.12);
}

.btn-submit {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 2rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    font-weight: 700;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 6px 20px rgba(30, 95, 31, 0.3);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(30, 95, 31, 0.4);
}

@media(max-width:580px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* Gallery page */
.gallery-masonry {
    columns: 3;
    column-gap: 1.25rem;
}

.gallery-item {
    break-inside: avoid;
    margin-bottom: 1.25rem;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
}

.gallery-item img {
    width: 100%;
    display: block;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(20, 61, 20, 0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
    color: #fff;
    font-size: 1.5rem;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

@media(max-width:768px) {
    .gallery-masonry {
        columns: 2;
    }
}

@media(max-width:460px) {
    .gallery-masonry {
        columns: 1;
    }
}

/* ============================================================
   FIELD ACTIVITIES SECTION
   ============================================================ */
.field-activities-section {
    font-family: 'Mukta', sans-serif;
}

.field-activities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3.5rem;
}

.activity-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    opacity: 0;
    transform: translateY(30px);
}

.activity-card.revealed {
    opacity: 1;
    transform: translateY(0);
}

.activity-card:nth-child(2) {
    transition-delay: 0.15s;
}

.activity-card:nth-child(3) {
    transition-delay: 0.3s;
}

.activity-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.activity-img {
    height: 220px;
    position: relative;
    overflow: hidden;
}

.activity-img a {
    display: block;
    width: 100%;
    height: 100%;
}

.activity-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.activity-card:hover .activity-img img {
    transform: scale(1.08);
}

.activity-date {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary, #1e5f1f);
    color: #fff;
    padding: 8px 12px;
    border-radius: 4px;
    text-align: center;
    min-width: 60px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.activity-date .d-day {
    display: block;
    font-size: 1.4rem;
    font-weight: 800;
    line-height: 1;
}

.activity-date .d-month {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 600;
    margin-top: 4px;
    letter-spacing: 1px;
}

.activity-body {
    padding: 1.8rem;
}

.activity-cats {
    margin-bottom: 0.8rem;
}

.activity-cats a {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--accent, #e8732a);
    text-decoration: none;
    letter-spacing: 0.5px;
}

.activity-title {
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.4;
    margin-bottom: 1rem;
}

.activity-title a {
    color: #222;
    text-decoration: none;
    transition: color 0.3s;
}

.activity-title a:hover {
    color: var(--primary, #1e5f1f);
}

.activity-excerpt {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.activity-read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary, #1e5f1f);
    text-decoration: none;
    transition: gap 0.3s, color 0.3s;
}

.activity-read-more:hover {
    gap: 12px;
    color: #123c12;
}

.view-more-wrap .btn-view-all {
    display: inline-block;
    padding: 0.9rem 2.5rem;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary, #1e5f1f);
    background: transparent;
    border: 2px solid var(--primary, #1e5f1f);
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.view-more-wrap .btn-view-all:hover {
    background: var(--primary, #1e5f1f);
    color: #fff;
}

@media(max-width:992px) {
    .field-activities-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media(max-width:768px) {
    .section {
        padding: 3.5rem 0;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .hero {
        min-height: 80vh;
        padding: 6rem 0 4rem;
    }

    .hero-title {
        font-size: 2.4rem;
    }

    .hero-trust {
        gap: 1rem;
    }


    .team-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media(max-width:540px) {
    .container {
        padding: 0 1rem;
    }

    .field-activities-grid {
        grid-template-columns: 1fr;
    }

    .donation-options {
        grid-template-columns: 1fr 1fr;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }

    .cta-section h2 {
        font-size: 1.8rem;
    }

    .section-title {
        font-size: 1.6rem;
    }
}

/* ============================================================
   PARTNERS MARQUEE SLIDER
   ============================================================ */
.partner-slider-wrap {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    padding: 2.5rem 0;
    margin-top: 1rem;
    width: 100%;
}

.partner-slider-wrap::before,
.partner-slider-wrap::after {
    content: '';
    position: absolute;
    top: 0;
    width: 10rem;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.partner-slider-wrap::before {
    left: 0;
    background: linear-gradient(to right, #f8faf8 0%, rgba(248, 250, 248, 0) 100%);
}

.partner-slider-wrap::after {
    right: 0;
    background: linear-gradient(to left, #f8faf8 0%, rgba(248, 250, 248, 0) 100%);
}

.partner-marquee {
    display: inline-block;
    animation: marquee 50s linear infinite;
}

.partner-marquee:hover {
    animation-play-state: paused;
}

.partner-slide {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 220px;
    height: 120px;
    margin: 0 1.5rem;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
    padding: 1.5rem;
    vertical-align: middle;
}

.partner-slide:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(30, 95, 31, 0.15);
    border-color: rgba(30, 95, 31, 0.2);
}

.partner-slide img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.partner-slide:hover img {
    transform: scale(1.08);
}

@keyframes marquee {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(-50%, 0);
    }
}

@media(max-width: 768px) {

    .partner-slider-wrap::before,
    .partner-slider-wrap::after {
        width: 4rem;
    }

    .partner-slide {
        width: 160px;
        height: 90px;
        margin: 0 1rem;
        padding: 1rem;
    }
}

/* ============================================================
   INNER PAGES (PAGE, SINGLE, ARCHIVE, SEARCH, 404)
   ============================================================ */
.inner-page-hero {
    position: relative;
    padding: 8.5rem 0 5.5rem;
    background: linear-gradient(155deg, var(--primary-dark) 0%, #174b18 40%, #1e5f1f 100%);
    overflow: hidden;
    color: #ffffff;
}

.inner-page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 60% at 50% 120%, rgba(212, 160, 23, 0.15) 0%, transparent 60%),
        radial-gradient(ellipse 40% 50% at 20% -10%, rgba(255, 255, 255, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

/* Force white text to override global h1 styles */
h1.page-title,
.page-title {
    position: relative;
    z-index: 2;
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 800;
    color: #ffffff;
    line-height: 1.3;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.archive-description {
    position: relative;
    z-index: 2;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 600px;
    margin: 1rem auto 0;
}

/* Single Post & Archive – Mukta Font */
body.single-post,
body.archive,
body.blog {
    font-family: 'Mukta', sans-serif;
}

/* Page & Single Containers */
.page-content-wrapper,
.single-content-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    padding: 3.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

.page-content-wrapper p,
.single-content-wrapper p,
.single-content-wrapper ul,
.post-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #4a4a4a;
    margin-bottom: 1.5rem;
}

/* Single Specifics */
.single-cats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
}

.single-cats a {
    display: inline-block;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    padding: 0.4rem 1.1rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    backdrop-filter: blur(4px);
    transition: all 0.3s;
    letter-spacing: 0.5px;
}

.single-cats a:hover {
    background: #ffffff;
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.single-meta {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    margin-top: 1rem;
}

.single-meta span i {
    color: var(--gold);
    margin-right: 0.4rem;
}

.single-featured-img {
    margin: -3.5rem -3.5rem 2.5rem -3.5rem;
    border-radius: 12px 12px 0 0;
    overflow: hidden;
}

.single-featured-img img {
    width: 100%;
    height: auto;
    display: block;
}

/* ============================================================
   POST CONTENT – TABLE STYLES
   ============================================================ */
.post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0 2rem;
    font-size: 1rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.post-content table thead {
    background: var(--primary);
    color: #ffffff;
}

.post-content table thead th {
    padding: 0.9rem 1.1rem;
    font-weight: 700;
    font-size: 0.95rem;
    text-align: left;
    letter-spacing: 0.3px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    white-space: nowrap;
    color: #ffffff !important;
}

.post-content table thead th * {
    color: #ffffff !important;
}

.post-content table tbody tr {
    background: #ffffff;
    transition: background 0.2s ease;
}

.post-content table tbody tr:nth-child(even) {
    background: #f4f7f4;
}

.post-content table tbody tr:hover {
    background: #e8f0e8;
}

.post-content table tbody td {
    padding: 0.8rem 1.1rem;
    color: var(--text);
    border: 1px solid var(--border);
    font-size: 0.97rem;
    line-height: 1.6;
    vertical-align: top;
}

.post-content table tfoot td,
.post-content table tfoot th {
    padding: 0.8rem 1.1rem;
    font-weight: 700;
    background: var(--light-bg);
    border: 1px solid var(--border);
    color: var(--primary-dark);
}

/* Fallback: if no thead, style first row differently */
.post-content table:not(:has(thead)) tr:first-child td {
    background: var(--primary);
    color: #ffffff !important;
    font-weight: 700;
    border-color: rgba(255, 255, 255, 0.15);
}

.post-content table:not(:has(thead)) tr:first-child td * {
    color: #ffffff !important;
}

/* ============================================================
   POST CONTENT – ALL EDITOR ELEMENTS
   (Bold, Italic, Lists, Blockquote, Align, HR, Code, etc.)
   ============================================================ */

/* --- Headings inside post content --- */
.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--primary-dark);
    margin: 2rem 0 0.9rem;
}

.post-content h1 {
    font-size: 2rem;
}

.post-content h2 {
    font-size: 1.65rem;
    border-bottom: 2px solid var(--border);
    padding-bottom: 0.4rem;
}

.post-content h3 {
    font-size: 1.35rem;
}

.post-content h4 {
    font-size: 1.15rem;
}

.post-content h5 {
    font-size: 1rem;
}

.post-content h6 {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* --- Bold & Italic --- */
.post-content strong,
.post-content b {
    font-weight: 700;
    color: var(--dark);
}

.post-content em,
.post-content i {
    font-style: italic;
}

/* --- Strikethrough & Underline --- */
.post-content del,
.post-content s {
    text-decoration: line-through;
    color: var(--text-light);
}

.post-content u {
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* --- Inline code & preformatted --- */
.post-content code {
    background: #f0f4f0;
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 0.15em 0.45em;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9em;
    color: var(--primary-dark);
}

.post-content pre {
    background: #1e2d1e;
    color: #c9e5c9;
    border-radius: 8px;
    padding: 1.4rem 1.6rem;
    overflow-x: auto;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.92rem;
    line-height: 1.7;
    margin: 1.5rem 0 2rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.13);
    border-left: 4px solid var(--primary-light);
}

.post-content pre code {
    background: none;
    border: none;
    padding: 0;
    color: inherit;
    font-size: inherit;
}

/* --- Unordered list (Bullet list) --- */
.post-content ul {
    list-style: disc;
    padding-left: 1.8rem;
    margin: 0.75rem 0 1.5rem;
}

.post-content ul li {
    margin-bottom: 0.45rem;
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--text);
    padding-left: 0.3rem;
}

.post-content ul li::marker {
    color: var(--primary);
}

/* --- Ordered list (Numbered list) --- */
.post-content ol {
    list-style: decimal;
    padding-left: 1.8rem;
    margin: 0.75rem 0 1.5rem;
}

.post-content ol li {
    margin-bottom: 0.45rem;
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--text);
    padding-left: 0.3rem;
}

.post-content ol li::marker {
    color: var(--primary);
    font-weight: 700;
}

/* --- Nested lists --- */
.post-content ul ul,
.post-content ol ol,
.post-content ul ol,
.post-content ol ul {
    margin: 0.35rem 0 0.35rem 0.5rem;
    list-style: circle;
}

.post-content ol ol,
.post-content ul ol {
    list-style: lower-alpha;
}

/* --- Blockquote --- */
.post-content blockquote {
    position: relative;
    margin: 2rem 0;
    padding: 1.4rem 1.6rem 1.4rem 2rem;
    border-left: 5px solid var(--primary);
    background: linear-gradient(135deg, rgba(30, 95, 31, 0.05), rgba(30, 95, 31, 0.02));
    border-radius: 0 10px 10px 0;
    font-style: italic;
    font-size: 1.1rem;
    color: var(--primary-dark);
    line-height: 1.8;
    box-shadow: 0 2px 12px rgba(30, 95, 31, 0.08);
}

.post-content blockquote::before {
    content: '\201C';
    position: absolute;
    top: -0.2rem;
    left: 0.9rem;
    font-size: 3.5rem;
    color: var(--primary);
    opacity: 0.25;
    font-family: Georgia, serif;
    line-height: 1;
}

.post-content blockquote p:last-child {
    margin-bottom: 0;
}

.post-content blockquote cite {
    display: block;
    margin-top: 0.75rem;
    font-size: 0.88rem;
    font-style: normal;
    font-weight: 700;
    color: var(--text-light);
}

/* --- Horizontal Rule --- */
.post-content hr {
    border: none;
    border-top: 2px solid var(--border);
    margin: 2.5rem 0;
    position: relative;
}

.post-content hr::after {
    content: '✦';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    padding: 0 0.6rem;
    color: var(--primary);
    font-size: 0.85rem;
}

/* --- Text Alignment (Editor classes) --- */
.post-content .alignleft,
.post-content [style*="text-align: left"],
.post-content p[style*="text-align:left"] {
    text-align: left;
}

.post-content .aligncenter,
.post-content [style*="text-align: center"],
.post-content p[style*="text-align:center"] {
    text-align: center;
}

.post-content .alignright,
.post-content [style*="text-align: right"],
.post-content p[style*="text-align:right"] {
    text-align: right;
}

.post-content .alignjustify,
.post-content [style*="text-align: justify"],
.post-content p[style*="text-align:justify"] {
    text-align: justify;
}

/* --- Image alignment (WordPress classes) --- */
.post-content img.alignleft {
    float: left;
    margin: 0.5rem 1.5rem 1rem 0;
    border-radius: 6px;
}

.post-content img.alignright {
    float: right;
    margin: 0.5rem 0 1rem 1.5rem;
    border-radius: 6px;
}

.post-content img.aligncenter {
    display: block;
    margin: 1rem auto;
    border-radius: 6px;
}

.post-content .wp-caption {
    max-width: 100%;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    padding: 0;
    background: var(--light-bg);
}

.post-content .wp-caption img {
    display: block;
    width: 100%;
    margin: 0;
}

.post-content .wp-caption-text {
    font-size: 0.85rem;
    color: var(--text-light);
    text-align: center;
    padding: 0.5rem 0.75rem;
    font-style: italic;
    margin: 0;
}

/* --- Text indent (Decrease/Increase indent buttons) --- */
.post-content .wp-block-indent,
.post-content [style*="padding-left"] {
    padding-left: 2rem;
}

/* --- Links inside post content --- */
.post-content a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.post-content a:hover {
    color: var(--accent);
    text-decoration-color: var(--accent);
}

/* --- Highlighted / marked text --- */
.post-content mark {
    background: rgba(212, 160, 23, 0.28);
    color: var(--primary-dark);
    padding: 0.05em 0.25em;
    border-radius: 3px;
}

/* --- Superscript / Subscript --- */
.post-content sup {
    vertical-align: super;
    font-size: 0.72em;
}

.post-content sub {
    vertical-align: sub;
    font-size: 0.72em;
}

/* --- Definition list --- */
.post-content dl {
    margin: 1rem 0 1.5rem;
}

.post-content dt {
    font-weight: 700;
    color: var(--dark);
    margin-top: 0.75rem;
}

.post-content dd {
    padding-left: 1.5rem;
    color: var(--text);
    margin-bottom: 0.4rem;
}

/* --- Address block --- */
.post-content address {
    font-style: italic;
    border-left: 4px solid var(--border);
    padding: 0.75rem 1rem;
    margin: 1.5rem 0;
    color: var(--text-light);
}

/* --- Clearfix after floated images --- */
.post-content::after {
    content: '';
    display: table;
    clear: both;
}

.post-tags {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.post-tags a {
    display: inline-block;
    background: var(--light-bg);
    color: var(--dark);
    padding: 0.4rem 0.9rem;
    border-radius: 4px;
    font-size: 0.85rem;
    text-decoration: none;
    margin: 0 0.3rem 0.3rem 0;
    transition: all 0.3s;
}

.post-tags a:hover {
    background: var(--primary);
    color: #fff;
}

.tag-label {
    font-weight: 700;
    margin-right: 0.5rem;
    color: var(--text);
}

/* Share Buttons */
.post-share {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px dashed rgba(0, 0, 0, 0.1);
}

.share-label {
    font-weight: 700;
    color: var(--dark);
    margin-right: 0.5rem;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    color: #fff;
    font-size: 1rem;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.share-btn:hover {
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.share-btn.facebook {
    background: #1877f2;
}

.share-btn.twitter {
    background: #1da1f2;
}

.share-btn.linkedin {
    background: #0a66c2;
}

.share-btn.whatsapp {
    background: #25d366;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
}

.pagination .nav-links {
    display: flex;
    gap: 0.5rem;
}

.pagination .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #fff;
    color: var(--dark);
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 12px rgba(30, 95, 31, 0.25);
}

@media(max-width: 768px) {

    .page-content-wrapper,
    .single-content-wrapper {
        padding: 2rem 1.5rem;
    }

    .single-featured-img {
        margin: -2rem -1.5rem 2rem -1.5rem;
    }

    .inner-page-hero {
        padding: 6rem 0 3.5rem;
    }
}

/* ============================================================
   FEEDBACK FLOATER BUTTON
   ============================================================ */
.feedback-floater {
    position: fixed;
    bottom: 70px;
    right: 30px;
    background: var(--accent);
    color: #fff !important;
    border-radius: 50px;
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(232, 115, 42, 0.3);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    z-index: 1000;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.back-to-top {
    bottom: 125px !important;
    /* Raised up to sit above the feedback floater */
}

.feedback-floater:hover {
    background: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(30, 95, 31, 0.3);
    color: #fff;
}

.feedback-floater i {
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .feedback-floater {
        bottom: 60px;
        right: 20px;
        left: auto;
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }

    .back-to-top {
        bottom: 105px !important;
    }
}