/**
 * NGO Procurement Modern Child Theme Stylesheet
 * 
 * Fully responsive, modern, clean styling matching the NGO Procurement UI
 */

/* ==========================================================================
   1. Base & CSS Variables
   ========================================================================== */
:root {
    --ngo-primary: #005F40;
    --ngo-primary-hover: #004730;
    --ngo-secondary: #00875A;
    --ngo-accent: #F59E0B;
    --ngo-danger: #DC2626;
    --ngo-footer-bg: #08281D;
    --ngo-bg-light: #F8FAFC;
    --ngo-border: #E2E8F0;
    --ngo-text-dark: #0F172A;
    --ngo-text-muted: #64748B;
    --ngo-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --ngo-radius-sm: 6px;
    --ngo-radius-md: 10px;
    --ngo-radius-lg: 16px;
    --ngo-shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
    --ngo-shadow-md: 0 4px 14px rgba(0,0,0,0.06);
    --ngo-shadow-lg: 0 10px 30px rgba(0,0,0,0.08);
}

/* ==========================================================================
   Global Reset & Astra Full-Width Override (Zero Mobile Shift)
   ========================================================================== */
html,
body {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    position: relative;
    box-sizing: border-box;
}

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

/* Clear Astra Parent Theme Boxed / Separate Container Constraints */
.ast-separate-container .site-content,
.ast-separate-container #primary,
.ast-plain-container .site-content,
.ast-plain-container #primary,
.site-content,
#primary,
#primary.ngo-homepage-wrapper {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.ast-separate-container .ast-article-post,
.ast-separate-container .ast-article-single {
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
}

body.ngo-custom-body,
.ngo-site-wrapper {
    font-family: var(--ngo-font);
    color: var(--ngo-text-dark);
    background-color: var(--ngo-bg-light);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
}

/* Ensure all homepage sections span 100% full width */
.ngo-site-wrapper,
.ngo-homepage-wrapper,
.ngo-top-bar,
.ngo-main-header,
.ngo-hero-section,
.ngo-stats-banner,
.ngo-pills-filter-section,
.ngo-main-opportunities-section,
.ngo-how-it-works-section,
.ngo-membership-plans-section,
.ngo-newsletter-section,
.ngo-main-footer {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden;
}

.ngo-container {
    width: 100%;
    max-width: 1240px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
}

/* ==========================================================================
   2. Top Announcement Bar
   ========================================================================== */
.ngo-top-bar {
    background-color: #062217;
    color: #cbd5e1;
    font-size: 13px;
    padding: 7px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.ngo-top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}
.ngo-top-announcement {
    color: #e2e8f0;
    font-weight: 500;
}
.ngo-top-bar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}
.ngo-top-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 16px;
}
.ngo-top-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s;
}
.ngo-top-links a:hover {
    color: #ffffff;
}
.ngo-top-social {
    display: flex;
    gap: 10px;
    align-items: center;
    border-left: 1px solid rgba(255,255,255,0.15);
    padding-left: 15px;
}
.ngo-top-social a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 15px;
    display: flex;
    align-items: center;
    transition: color 0.2s;
}
.ngo-top-social a:hover {
    color: #ffffff;
}

/* ==========================================================================
   3. Main Header & Navigation
   ========================================================================== */
.ngo-main-header {
    background: #ffffff;
    border-bottom: 1px solid var(--ngo-border);
    position: sticky;
    top: 0;
    z-index: 999;
}
.ngo-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 14px;
    padding-bottom: 14px;
}
.ngo-brand-text {
    font-size: 24px;
    text-decoration: none;
    color: var(--ngo-text-dark);
    display: flex;
    align-items: center;
    gap: 6px;
}
.ngo-brand-bold {
    font-weight: 800;
    color: var(--ngo-primary);
    letter-spacing: -0.5px;
}
.ngo-brand-light {
    font-weight: 600;
    color: #334155;
    letter-spacing: -0.3px;
}
.ngo-brand-img {
    max-height: 44px;
    width: auto;
    display: block;
}

/* Nav Menu */
.ngo-nav-menu-wrapper {
    display: flex;
    align-items: center;
}
.ngo-nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 24px;
    align-items: center;
}
.ngo-nav-menu > li {
    position: relative;
}
.ngo-nav-menu > li > a {
    color: #334155;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 0;
    transition: color 0.2s;
}
.ngo-nav-menu > li > a:hover {
    color: var(--ngo-primary);
}
.ngo-nav-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: #ffffff;
    box-shadow: var(--ngo-shadow-md);
    border: 1px solid var(--ngo-border);
    border-radius: var(--ngo-radius-sm);
    list-style: none;
    margin: 0;
    padding: 8px 0;
    display: none;
    z-index: 100;
}
.ngo-nav-menu > li:hover .sub-menu {
    display: block;
}
.ngo-nav-menu .sub-menu li a {
    display: block;
    padding: 8px 18px;
    color: #334155;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.15s, color 0.15s;
}
.ngo-nav-menu .sub-menu li a:hover {
    background: #f1f5f9;
    color: var(--ngo-primary);
}

/* Header Action Buttons */
.ngo-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}
.ngo-auth-nav {
    display: flex;
    align-items: center;
    gap: 12px;
}
.ngo-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    padding: 8px 20px;
    border-radius: var(--ngo-radius-sm);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
}
.ngo-btn-outline {
    border: 1px solid #cbd5e1;
    color: #334155;
    background: transparent;
}
.ngo-btn-outline:hover {
    border-color: var(--ngo-primary);
    color: var(--ngo-primary);
    background: #f8fafc;
}
.ngo-btn-solid {
    background: var(--ngo-primary);
    color: #ffffff;
    border: 1px solid var(--ngo-primary);
}
.ngo-btn-solid:hover {
    background: var(--ngo-primary-hover);
    color: #ffffff;
}
.ngo-btn-account {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--ngo-primary);
    font-weight: 600;
    text-decoration: none;
    font-size: 14px;
    padding: 6px 12px;
    background: #e6f4ea;
    border-radius: var(--ngo-radius-sm);
}
.ngo-btn-logout {
    color: var(--ngo-text-muted);
    font-size: 13px;
    text-decoration: none;
}
.ngo-btn-logout:hover {
    color: var(--ngo-danger);
}
.ngo-mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: #334155;
    cursor: pointer;
}

/* ==========================================================================
   4. Homepage Hero Section
   ========================================================================== */
.ngo-hero-section {
    background: linear-gradient(180deg, #ffffff 0%, #f4f8f5 100%);
    padding: 50px 0 60px;
    overflow: hidden;
}
.ngo-hero-container,
.ngo-hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    grid-template-areas:
        "intro visual"
        "search search";
    gap: 28px 48px;
    align-items: center;
}
.ngo-hero-intro-col {
    grid-area: intro;
}
.ngo-hero-visual-col {
    grid-area: visual;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}
.ngo-hero-search-col {
    grid-area: search;
    width: 100%;
}
.ngo-hero-heading {
    font-size: 44px;
    line-height: 1.15;
    font-weight: 800;
    color: #0d281e;
    letter-spacing: -1px;
    margin: 0 0 16px;
}
.ngo-hero-lead {
    font-size: 16px;
    color: #475569;
    line-height: 1.6;
    margin: 0 0 28px;
    max-width: 95%;
}

/* Search Card */
.ngo-search-card {
    background: #ffffff;
    border: 1px solid var(--ngo-border);
    border-radius: var(--ngo-radius-lg);
    box-shadow: var(--ngo-shadow-md);
    padding: 22px 24px;
    margin-bottom: 24px;
}
.ngo-search-tabs {
    display: flex;
    gap: 20px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 12px;
    margin-bottom: 18px;
}
.ngo-tab-btn {
    background: none;
    border: none;
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 0;
    position: relative;
}
.ngo-tab-btn.active {
    color: var(--ngo-primary);
}
.ngo-tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -13px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--ngo-primary);
}
.ngo-search-inputs-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1fr 1fr auto;
    gap: 12px;
    align-items: flex-end;
}
.ngo-search-field label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 5px;
}
.ngo-input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}
.ngo-input-with-icon .dashicons {
    position: absolute;
    left: 10px;
    color: #94a3b8;
    font-size: 16px;
}
.ngo-input-with-icon input {
    padding-left: 32px !important;
}
.ngo-search-field input,
.ngo-search-field select {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #cbd5e1;
    border-radius: var(--ngo-radius-sm);
    font-size: 13px;
    background: #ffffff;
    color: #1e293b;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.2s;
}
.ngo-search-field input:focus,
.ngo-search-field select:focus {
    border-color: var(--ngo-primary);
}
.ngo-btn-search-submit {
    background: var(--ngo-primary);
    color: #ffffff;
    border: none;
    border-radius: var(--ngo-radius-sm);
    font-size: 14px;
    font-weight: 600;
    padding: 10px 18px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    transition: background 0.2s;
}
.ngo-btn-search-submit:hover {
    background: var(--ngo-primary-hover);
}
.ngo-search-footer {
    margin-top: 10px;
    text-align: right;
}
.ngo-more-search-link {
    font-size: 12px;
    color: #64748b;
    text-decoration: none;
}
.ngo-more-search-link:hover {
    color: var(--ngo-primary);
}

/* Quick CTAs */
.ngo-hero-quick-ctas {
    display: flex;
    gap: 14px;
    align-items: center;
}
.ngo-btn-hero {
    padding: 11px 24px;
    font-size: 15px;
    border-radius: var(--ngo-radius-sm);
}

/* Hero Right Visual: Professional Curved Frame Shape & Badges */
.ngo-hero-right {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ngo-hero-stage {
    position: relative;
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Curved Signature Frame Shape (Image fitted and curved smoothly inside) */
.ngo-hero-curved-frame {
    position: relative;
    width: 100%;
    max-width: 420px;
    height: 350px;
    border-radius: 40px 160px 40px 40px; /* The original signature curve */
    overflow: hidden !important; /* Clips the portrait smoothly along the curved contour */
    background: radial-gradient(circle at center, #d1fae5 0%, #a7f3d0 55%, #86efac 100%);
    box-shadow: 0 16px 36px -8px rgba(0, 95, 64, 0.22), 0 0 0 1px rgba(255, 255, 255, 0.8) inset;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    transform: translateZ(0); /* Hardware-accelerated anti-aliased curves */
}

/* Subtle top glow overlay */
.ngo-hero-frame-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: radial-gradient(circle at 50% 20%, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0) 70%);
    pointer-events: none;
    z-index: 2;
}

/* Hero image curved and blended into the frame */
.ngo-hero-curved-img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: cover !important;
    object-position: center top !important;
    border-radius: inherit !important;
    display: block !important;
    position: relative;
    z-index: 1;
    margin: 0 !important;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.ngo-hero-curved-frame:hover .ngo-hero-curved-img {
    transform: scale(1.03);
}

/* Bottom blend gradient so image smoothly merges into the base */
.ngo-hero-frame-gradient-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 90px;
    background: linear-gradient(to top, rgba(0, 95, 64, 0.35) 0%, transparent 100%);
    pointer-events: none;
    z-index: 3;
    border-radius: 0 0 40px 40px;
}

/* Floating Glass Badges */
.ngo-floating-badge {
    position: absolute;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.95);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12), 0 2px 6px rgba(0, 0, 0, 0.04);
    border-radius: 12px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 5;
    max-width: 250px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ngo-floating-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.16);
}

.ngo-floating-badge-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #ecfdf5;
    color: var(--ngo-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ngo-floating-badge-icon .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
    line-height: 20px;
}

.ngo-floating-badge-top {
    top: 25px;
    right: -20px;
}

.ngo-floating-badge-top .ngo-floating-badge-icon {
    background: #fef3c7;
    color: var(--ngo-accent);
}

.ngo-floating-badge-bottom {
    bottom: 25px;
    left: -25px;
}

.ngo-quote-text strong,
.ngo-floating-badge strong {
    display: block;
    font-size: 13px;
    color: #0f172a;
    font-weight: 700;
    line-height: 1.3;
}

.ngo-quote-text span,
.ngo-floating-badge span {
    font-size: 11px;
    color: #64748b;
    font-weight: 500;
    line-height: 1.3;
}
.ngo-floating-stats span {
    font-size: 11px;
    color: #64748b;
}

/* ==========================================================================
   4b. Advertise and Connect with Suppliers Banner (Buyer Outreach)
   ========================================================================== */
.ngo-advertise-section {
    padding: 16px 0 28px 0;
    position: relative;
    z-index: 5;
    background: transparent;
}
.ngo-advertise-card {
    background: linear-gradient(135deg, #004730 0%, #005F40 55%, #028054 100%);
    border-radius: 16px;
    padding: 32px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    box-shadow: 0 12px 32px -4px rgba(0, 95, 64, 0.28), 0 4px 12px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
}
.ngo-advertise-card::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, transparent 70%);
    pointer-events: none;
}
.ngo-advertise-card::after {
    content: '';
    position: absolute;
    bottom: -60px;
    left: 20%;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 184, 0, 0.1) 0%, transparent 70%);
    pointer-events: none;
}
.ngo-advertise-content {
    position: relative;
    z-index: 2;
    flex: 1;
}
.ngo-advertise-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.24);
    color: #ffd466;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    margin-bottom: 12px;
}
.ngo-advertise-badge .dashicons {
    font-size: 15px;
    width: 15px;
    height: 15px;
    line-height: 15px;
}
.ngo-advertise-title {
    color: #ffffff !important;
    font-size: 26px;
    font-weight: 800;
    line-height: 1.25;
    margin: 0 0 10px 0;
    letter-spacing: -0.3px;
}
.ngo-advertise-desc {
    color: rgba(255, 255, 255, 0.92) !important;
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
    max-width: 760px;
}
.ngo-advertise-action {
    position: relative;
    z-index: 2;
    flex-shrink: 0;
}
.ngo-btn-advertise {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #FFB800;
    color: #0f172a !important;
    font-size: 15px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 14px 28px;
    border-radius: 10px;
    text-decoration: none !important;
    white-space: nowrap;
    box-shadow: 0 6px 18px rgba(255, 184, 0, 0.35);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.ngo-btn-advertise:hover {
    background: #ffc425;
    color: #000000 !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(255, 184, 0, 0.45);
}
.ngo-btn-advertise .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
    line-height: 18px;
}

/* ==========================================================================
   5. Stats Counters Banner
   ========================================================================== */
.ngo-stats-banner {
    padding: 24px 0;
    background: #ffffff;
    border-top: 1px solid var(--ngo-border);
    border-bottom: 1px solid var(--ngo-border);
}
.ngo-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.ngo-stat-card {
    background: #ffffff;
    border: 1px solid var(--ngo-border);
    border-radius: var(--ngo-radius-md);
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--ngo-shadow-sm);
    transition: transform 0.2s, box-shadow 0.2s;
}
.ngo-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--ngo-shadow-md);
}
.ngo-stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #e6f4ea;
    color: var(--ngo-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}
.ngo-stat-number {
    display: block;
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.1;
}
.ngo-stat-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
}
.ngo-stat-sub {
    display: block;
    font-size: 11px;
    color: #64748b;
}
.ngo-stat-positive {
    color: var(--ngo-secondary);
    font-weight: 600;
}

/* ==========================================================================
   6. Category Filter Pills
   ========================================================================== */
.ngo-pills-filter-section {
    padding: 20px 0;
    background: var(--ngo-bg-light);
}
.ngo-pills-scroll-wrapper {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-width: thin;
}
.ngo-pills-scroll-wrapper::-webkit-scrollbar {
    height: 4px;
}
.ngo-pills-scroll-wrapper::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
.ngo-filter-pill {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 30px;
    padding: 7px 18px;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s;
}
.ngo-filter-pill:hover {
    border-color: var(--ngo-primary);
    color: var(--ngo-primary);
}
.ngo-filter-pill.active {
    background: var(--ngo-primary);
    color: #ffffff;
    border-color: var(--ngo-primary);
}

/* ==========================================================================
   7. Main Tenders & Sidebar 2-Column Section
   ========================================================================== */
.ngo-main-opportunities-section {
    padding: 40px 0 60px;
    background: var(--ngo-bg-light);
}
.ngo-main-opp-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 32px;
}
.ngo-opp-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.ngo-opp-heading {
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
}
.ngo-view-all-opp-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--ngo-primary);
    text-decoration: none;
}
.ngo-view-all-opp-link:hover {
    text-decoration: underline;
}

/* Tender Card */
.ngo-tender-card {
    background: #ffffff;
    border: 1px solid var(--ngo-border);
    border-radius: var(--ngo-radius-md);
    padding: 16px 20px;
    margin-bottom: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    box-shadow: var(--ngo-shadow-sm);
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.ngo-tender-card:hover {
    border-color: #cbd5e1;
    box-shadow: var(--ngo-shadow-md);
    transform: translateY(-1px);
}
.ngo-tender-card-main {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    flex: 1;
}
.ngo-tender-logo-wrapper {
    width: 48px;
    height: 48px;
    border-radius: var(--ngo-radius-sm);
    border: 1px solid #f1f5f9;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}
.ngo-tender-org-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.ngo-tender-logo-fallback {
    font-size: 16px;
    font-weight: 800;
    color: var(--ngo-primary);
}
.ngo-tender-info {
    flex: 1;
}
.ngo-tender-title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 6px;
}
.ngo-tender-title a {
    color: #0f172a;
    text-decoration: none;
    transition: color 0.2s;
}
.ngo-tender-title a:hover {
    color: var(--ngo-primary);
}
.ngo-tender-meta-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 13px;
    color: #64748b;
}
.ngo-meta-org {
    font-weight: 600;
    color: #334155;
}
.ngo-verified-icon {
    color: #0284c7;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
}
.ngo-meta-loc {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}
.ngo-meta-loc .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
}
.ngo-meta-sep {
    color: #cbd5e1;
}
.ngo-tender-pill {
    font-size: 11px;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 20px;
    display: inline-block;
}
.ngo-badge-default { background: #f1f5f9; color: #475569; }
.ngo-badge-amber   { background: #fef3c7; color: #b45309; }
.ngo-badge-blue    { background: #e0f2fe; color: #0369a1; }
.ngo-badge-purple  { background: #f3e8ff; color: #7e22ce; }
.ngo-badge-rose    { background: #ffe4e6; color: #e11d48; }

/* Dates & Actions */
.ngo-tender-card-actions {
    display: flex;
    align-items: center;
    gap: 24px;
}
.ngo-tender-dates {
    display: flex;
    gap: 16px;
    font-size: 12px;
}
.ngo-date-label {
    display: block;
    color: #94a3b8;
    margin-bottom: 2px;
}
.ngo-date-val {
    display: block;
    font-weight: 600;
    color: #334155;
}
.ngo-deadline-highlight {
    color: var(--ngo-danger);
    font-weight: 700;
}
.ngo-tender-btns {
    display: flex;
    align-items: center;
    gap: 10px;
}
.ngo-btn-view-details {
    background: transparent;
    border: 1px solid #cbd5e1;
    color: #334155;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: var(--ngo-radius-sm);
    text-decoration: none;
    transition: all 0.2s;
}
.ngo-btn-view-details:hover {
    border-color: var(--ngo-primary);
    color: var(--ngo-primary);
    background: #f8fafc;
}
.ngo-bookmark-btn {
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 18px;
    padding: 4px;
    display: flex;
    align-items: center;
    transition: color 0.2s;
}
.ngo-bookmark-btn:hover,
.ngo-bookmark-btn.saved {
    color: var(--ngo-primary);
}

/* ==========================================================================
   8. Sidebar Components
   ========================================================================== */
.ngo-sidebar-card {
    background: #ffffff;
    border: 1px solid var(--ngo-border);
    border-radius: var(--ngo-radius-md);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--ngo-shadow-sm);
}
.ngo-sidebar-card-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}
.ngo-sidebar-card-title {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}
.ngo-side-link-sm {
    font-size: 12px;
    color: var(--ngo-primary);
    font-weight: 600;
    text-decoration: none;
}
.ngo-pop-cats-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.ngo-pop-cats-list li {
    border-bottom: 1px solid #f1f5f9;
}
.ngo-pop-cats-list li:last-child {
    border-bottom: none;
}
.ngo-pop-cats-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 0;
    color: #334155;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}
.ngo-pop-cats-list a:hover {
    color: var(--ngo-primary);
}
.ngo-cat-count {
    color: #94a3b8;
    font-size: 12px;
}

/* Why Subscribe Card */
.ngo-why-subscribe-card {
    background: linear-gradient(180deg, #f0fdf4 0%, #ffffff 100%);
    border-color: #bbf7d0;
}
.ngo-card-top-icon-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}
.ngo-crown-icon {
    color: #15803d;
    font-size: 22px;
}
.ngo-why-sub-title {
    font-size: 16px;
    font-weight: 700;
    color: #14532d;
    margin: 0;
}
.ngo-why-sub-list {
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
}
.ngo-why-sub-list li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    color: #1e293b;
    margin-bottom: 8px;
}
.ngo-why-sub-list li .dashicons {
    color: #15803d;
    font-size: 16px;
    flex-shrink: 0;
    margin-top: 2px;
}
.ngo-btn-view-plans-green {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    background: var(--ngo-primary);
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 18px;
    border-radius: var(--ngo-radius-sm);
    text-decoration: none;
    transition: background 0.2s;
}
.ngo-btn-view-plans-green:hover {
    background: var(--ngo-primary-hover);
    color: #ffffff;
}

/* Featured Agencies */
.ngo-agencies-badges-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.ngo-agency-badge {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    color: #1e293b;
}

/* ==========================================================================
   9. "How It Works" Section
   ========================================================================== */
.ngo-how-it-works-section {
    padding: 60px 0;
    background: #ffffff;
    border-top: 1px solid var(--ngo-border);
}
.ngo-hiw-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 40px;
    gap: 16px;
}
.ngo-hiw-titles {
    text-align: center;
    max-width: 680px;
    margin: 0 auto;
}
.ngo-hiw-title {
    font-size: 28px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 8px;
    text-align: center;
}
.ngo-hiw-subtitle {
    font-size: 15px;
    color: #64748b;
    margin: 0 auto;
    text-align: center;
    line-height: 1.6;
}
.ngo-hiw-toggle {
    display: inline-flex;
    background: #f1f5f9;
    padding: 4px;
    border-radius: 30px;
    margin: 6px auto 0;
}
.ngo-hiw-toggle-btn {
    border: none;
    background: transparent;
    padding: 8px 20px;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.2s;
}
.ngo-hiw-toggle-btn.active {
    background: var(--ngo-primary);
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(0, 95, 64, 0.2);
}
.ngo-hiw-steps-grid {
    display: none !important;
}
.ngo-hiw-steps-grid.active {
    display: flex !important;
    justify-content: center !important;
    align-items: stretch !important;
    flex-wrap: wrap !important;
    gap: 24px !important;
    width: 100% !important;
    margin: 0 auto !important;
}
.ngo-step-card {
    flex: 1 1 240px !important;
    max-width: 275px !important;
    min-width: 230px !important;
    background: #f8fafc;
    border: 1px solid var(--ngo-border);
    border-radius: var(--ngo-radius-md);
    padding: 28px 22px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
    transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s;
}
.ngo-step-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--ngo-shadow-md);
    background: #ffffff;
}
.ngo-step-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #e6f4ea;
    color: var(--ngo-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin: 0 auto 16px auto;
}
.ngo-step-title {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 10px;
    text-align: center;
}
.ngo-step-desc {
    font-size: 13px;
    color: #64748b;
    line-height: 1.55;
    margin: 0;
    text-align: center;
}

/* ==========================================================================
   10. Membership Plans Section
   ========================================================================== */
.ngo-membership-plans-section {
    padding: 60px 0;
    background: var(--ngo-bg-light);
}
.ngo-plans-banner-card {
    background: linear-gradient(135deg, #e6f4ea 0%, #f0fdf4 100%);
    border: 1px solid #bbf7d0;
    border-radius: var(--ngo-radius-lg);
    padding: 40px;
}
.ngo-plans-intro {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 35px;
}
.ngo-plans-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    color: #b45309;
    background: #fef3c7;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 12px;
}
.ngo-plans-heading {
    font-size: 28px;
    font-weight: 800;
    color: #0d281e;
    margin: 0 0 10px;
}
.ngo-plans-sub {
    font-size: 15px;
    color: #475569;
    margin: 0;
}
.ngo-plans-tiers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}
.ngo-tier-card {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: var(--ngo-radius-md);
    padding: 28px 24px;
    text-align: center;
    position: relative;
    box-shadow: var(--ngo-shadow-sm);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.ngo-tier-pro {
    background: linear-gradient(180deg, #ffffff 0%, #f0fdf4 100%);
    border: 2px solid var(--ngo-primary);
    box-shadow: var(--ngo-shadow-md);
    transform: scale(1.03);
}
.ngo-pro-pill {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--ngo-secondary);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: 20px;
}
.ngo-tier-name {
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 6px;
}
.ngo-tier-desc {
    font-size: 13px;
    color: #64748b;
    margin: 0 0 20px;
}
.ngo-btn-tier {
    display: block;
    width: 100%;
    padding: 10px 0;
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--ngo-radius-sm);
    text-decoration: none;
    box-sizing: border-box;
    transition: all 0.2s;
}
.ngo-btn-tier-outline {
    border: 1px solid #cbd5e1;
    color: #334155;
}
.ngo-btn-tier-outline:hover {
    border-color: var(--ngo-primary);
    color: var(--ngo-primary);
}
.ngo-btn-tier-solid {
    background: var(--ngo-primary);
    color: #ffffff;
    border: 1px solid var(--ngo-primary);
}
.ngo-btn-tier-solid:hover {
    background: var(--ngo-primary-hover);
    color: #ffffff;
}

/* ==========================================================================
   11. Newsletter Bar
   ========================================================================== */
.ngo-newsletter-section {
    padding: 30px 0 50px;
    background: var(--ngo-bg-light);
}
.ngo-newsletter-bar {
    background: #e6f4ea;
    border: 1px solid #bbf7d0;
    border-radius: var(--ngo-radius-md);
    padding: 24px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}
.ngo-news-left {
    display: flex;
    align-items: center;
    gap: 16px;
}
.ngo-news-icon {
    font-size: 32px;
    color: var(--ngo-primary);
}
.ngo-news-title {
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 4px;
}
.ngo-news-sub {
    font-size: 13px;
    color: #475569;
    margin: 0;
}
.ngo-news-input-wrap {
    display: flex;
    gap: 8px;
}
.ngo-news-input-wrap input {
    min-width: 280px;
    padding: 10px 14px;
    border: 1px solid #cbd5e1;
    border-radius: var(--ngo-radius-sm);
    font-size: 13px;
    outline: none;
}
.ngo-btn-news-submit {
    background: var(--ngo-primary);
    color: #ffffff;
    border: none;
    border-radius: var(--ngo-radius-sm);
    font-weight: 600;
    font-size: 14px;
    padding: 10px 20px;
    cursor: pointer;
    transition: background 0.2s;
}
.ngo-btn-news-submit:hover {
    background: var(--ngo-primary-hover);
}

/* ==========================================================================
   12. Single Tender Details Page (Matching Image 1)
   ========================================================================== */
.ngo-tender-single-page {
    padding: 25px 0 60px;
    background: var(--ngo-bg-light);
}
/* Breadcrumbs */
.ngo-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #64748b;
    margin-bottom: 20px;
}
.ngo-breadcrumbs a {
    color: #64748b;
    text-decoration: none;
}
.ngo-breadcrumbs a:hover {
    color: var(--ngo-primary);
}
.ngo-bc-sep {
    color: #cbd5e1;
}
.ngo-bc-current {
    color: #334155;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 400px;
}

/* Tender Hero Header Box */
.ngo-tender-header-box {
    background: #ffffff;
    border: 1px solid var(--ngo-border);
    border-radius: var(--ngo-radius-lg);
    box-shadow: var(--ngo-shadow-sm);
    padding: 30px;
    margin-bottom: 30px;
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 30px;
    align-items: center;
}
.ngo-header-category-pill {
    display: inline-block;
    background: #fef3c7;
    color: #b45309;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 12px;
}
.ngo-single-tender-title {
    font-size: 26px;
    line-height: 1.25;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 12px;
}
.ngo-issuer-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #475569;
    margin-bottom: 20px;
}
.ngo-issuer-name {
    font-weight: 700;
    color: #1e293b;
}
.ngo-verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #e0f2fe;
    color: #0369a1;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 12px;
}

/* Meta Strip */
.ngo-header-meta-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    border-top: 1px solid #f1f5f9;
    padding-top: 18px;
}
.ngo-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
}
.ngo-meta-item .dashicons {
    color: #94a3b8;
    font-size: 18px;
}
.ngo-meta-lbl {
    display: block;
    font-size: 11px;
    color: #94a3b8;
    line-height: 1;
}
.ngo-meta-val {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
}
.ngo-deadline-red {
    color: var(--ngo-danger);
    font-weight: 700;
}
.ngo-header-actions-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}
.ngo-meta-action-btn {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: var(--ngo-radius-sm);
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    color: #475569;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    transition: all 0.2s;
}
.ngo-meta-action-btn:hover {
    border-color: var(--ngo-primary);
    color: var(--ngo-primary);
}
.ngo-btn-download-notice {
    background: var(--ngo-primary);
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    padding: 7px 16px;
    border-radius: var(--ngo-radius-sm);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s;
}
.ngo-btn-download-notice:hover {
    background: var(--ngo-primary-hover);
    color: #ffffff;
}

/* Right Side Banner in Single Tender */
.ngo-side-banner-card {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-radius: var(--ngo-radius-md);
    padding: 20px;
    text-align: center;
    border: 1px solid #bbf7d0;
}
.ngo-side-banner-img img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 10px;
}
.ngo-side-banner-graphic {
    font-size: 48px;
    color: var(--ngo-primary);
    margin-bottom: 10px;
}
.ngo-side-banner-caption {
    font-size: 13px;
    font-weight: 700;
    color: #14532d;
    line-height: 1.4;
}

/* Two-column layout grid */
.ngo-tender-layout-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 32px;
}

/* Tender Sections */
.ngo-tender-section {
    background: #ffffff;
    border: 1px solid var(--ngo-border);
    border-radius: var(--ngo-radius-md);
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--ngo-shadow-sm);
}
.ngo-section-heading {
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
}
.ngo-section-heading .dashicons {
    color: var(--ngo-primary);
    font-size: 20px;
}
.ngo-section-body {
    font-size: 14px;
    color: #334155;
    line-height: 1.7;
}

/* 4 Specs Grid */
.ngo-tender-specs-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 24px;
}
.ngo-spec-card {
    background: #ffffff;
    border: 1px solid var(--ngo-border);
    border-radius: var(--ngo-radius-md);
    padding: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--ngo-shadow-sm);
}
.ngo-spec-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: #e6f4ea;
    color: var(--ngo-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}
.ngo-spec-label {
    display: block;
    font-size: 11px;
    color: #94a3b8;
    line-height: 1.2;
}
.ngo-spec-val {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
}

/* ==========================================================================
   13. MemberPress Paywall Box & Blurred Preview
   ========================================================================== */
.ngo-paywall-container {
    margin-bottom: 30px;
}
.ngo-paywall-card {
    background: linear-gradient(180deg, #ecfdf5 0%, #f0fdf4 100%);
    border: 2px solid #a7f3d0;
    border-radius: var(--ngo-radius-lg);
    padding: 30px;
    box-shadow: var(--ngo-shadow-md);
}
.ngo-paywall-header {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 20px;
}
.ngo-paywall-lock-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #10b981;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}
.ngo-paywall-title {
    font-size: 20px;
    font-weight: 800;
    color: #064e3b;
    margin: 0 0 6px;
}
.ngo-paywall-desc {
    font-size: 14px;
    color: #047857;
    line-height: 1.5;
    margin: 0;
}
.ngo-paywall-actions {
    display: flex;
    gap: 14px;
    margin-bottom: 20px;
}
.ngo-btn-subscribe {
    background: var(--ngo-primary);
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    padding: 12px 28px;
    border-radius: var(--ngo-radius-sm);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(0, 95, 64, 0.25);
    transition: background 0.2s;
}
.ngo-btn-subscribe:hover {
    background: var(--ngo-primary-hover);
    color: #ffffff;
}
.ngo-btn-subscribe .dashicons {
    color: #facc15;
}
.ngo-btn-login {
    background: #ffffff;
    border: 1px solid #a7f3d0;
    color: #065f46;
    font-size: 14px;
    font-weight: 700;
    padding: 12px 24px;
    border-radius: var(--ngo-radius-sm);
    text-decoration: none;
    transition: background 0.2s;
}
.ngo-btn-login:hover {
    background: #f0fdf4;
}
.ngo-paywall-perks {
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-top: 1px solid #d1fae5;
    padding-top: 16px;
}
.ngo-perk-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #065f46;
}
.ngo-perk-item .dashicons {
    color: #059669;
    font-size: 16px;
}

/* Blurred Preview Box */
.ngo-blurred-preview-wrapper {
    position: relative;
    background: #ffffff;
    border: 1px solid var(--ngo-border);
    border-radius: var(--ngo-radius-md);
    padding: 24px;
    margin-top: 20px;
    overflow: hidden;
}
.ngo-blurred-lines-sample {
    filter: blur(5px);
    user-select: none;
    pointer-events: none;
    color: #64748b;
}
.ngo-blur-title-mock {
    font-size: 16px;
    font-weight: 700;
    color: #334155;
    margin: 10px 0 6px;
}
.ngo-blurred-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.4);
}
.ngo-blurred-pill {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 30px;
    padding: 10px 20px;
    box-shadow: var(--ngo-shadow-md);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
}
.ngo-blurred-pill .dashicons {
    color: #64748b;
    font-size: 16px;
}

/* Subscribed Member Unlocked Banner */
.ngo-member-unlocked-banner {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: var(--ngo-radius-md);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    font-size: 14px;
    color: #14532d;
}
.ngo-member-unlocked-banner .dashicons {
    color: #16a34a;
    font-size: 22px;
}
.ngo-btn-download-sm {
    margin-left: auto;
    background: var(--ngo-primary);
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 4px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Previous / Next Tender */
.ngo-tender-prev-next {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}
.ngo-pn-col {
    background: #ffffff;
    border: 1px solid var(--ngo-border);
    border-radius: var(--ngo-radius-md);
    padding: 16px;
}
.ngo-pn-label {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    margin-bottom: 4px;
}
.ngo-pn-next .ngo-pn-label {
    justify-content: flex-end;
}
.ngo-pn-title {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    text-decoration: none;
}
.ngo-pn-title:hover {
    color: var(--ngo-primary);
}
.ngo-pn-org {
    display: block;
    font-size: 12px;
    color: #64748b;
    margin-top: 2px;
}
.ngo-pn-next {
    text-align: right;
}

/* Related Tenders */
.ngo-related-tenders-section {
    margin-bottom: 30px;
}
.ngo-related-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}
.ngo-related-title {
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}
.ngo-view-all-link {
    font-size: 13px;
    font-weight: 600;
    color: var(--ngo-primary);
    text-decoration: none;
}
.ngo-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.ngo-related-card {
    background: #ffffff;
    border: 1px solid var(--ngo-border);
    border-radius: var(--ngo-radius-md);
    padding: 14px;
    box-shadow: var(--ngo-shadow-sm);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.ngo-related-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}
.ngo-related-badge {
    background: #fef3c7;
    color: #b45309;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 12px;
}
.ngo-btn-mini {
    padding: 2px;
    font-size: 16px;
}
.ngo-related-tender-title {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 8px;
}
.ngo-related-tender-title a {
    color: #0f172a;
    text-decoration: none;
}
.ngo-related-tender-title a:hover {
    color: var(--ngo-primary);
}
.ngo-related-org-loc {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 8px;
}
.ngo-related-deadline {
    font-size: 12px;
    font-weight: 700;
    color: var(--ngo-danger);
}

/* Disclaimer Warning Box */
.ngo-disclaimer-alert-box {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: var(--ngo-radius-md);
    padding: 14px 18px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 13px;
    color: #92400e;
}
.ngo-disclaimer-alert-box .dashicons {
    color: #d97706;
    font-size: 20px;
    flex-shrink: 0;
    margin-top: 1px;
}
.ngo-disclaimer-alert-box p {
    margin: 0;
    line-height: 1.5;
}

/* Single Tender Sidebar Cards */
.ngo-summary-list dt {
    font-size: 12px;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 2px;
}
.ngo-summary-list dt .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
}
.ngo-summary-list dd {
    margin: 0 0 14px;
    font-size: 13px;
    color: #0f172a;
}
.ngo-verified-pill {
    display: inline-block;
    background: #e0f2fe;
    color: #0369a1;
    font-size: 10px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 10px;
    margin-left: 6px;
}
.ngo-sum-deadline strong {
    color: var(--ngo-danger);
}
.ngo-days-countdown {
    color: var(--ngo-danger);
    font-size: 12px;
    margin-left: 4px;
}
.ngo-source-link {
    color: #0284c7;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 2px;
}
.ngo-source-link .dashicons {
    font-size: 12px;
    width: 12px;
    height: 12px;
}
.ngo-btn-download-full {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: var(--ngo-primary);
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    padding: 10px 0;
    width: 100%;
    border-radius: var(--ngo-radius-sm);
    text-decoration: none;
    transition: background 0.2s;
}
.ngo-btn-download-full:hover {
    background: var(--ngo-primary-hover);
    color: #ffffff;
}

/* Alerts Card */
.ngo-alerts-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}
.ngo-alerts-header .dashicons {
    color: var(--ngo-primary);
    font-size: 20px;
}
.ngo-alerts-header h4 {
    margin: 0;
    font-size: 15px;
    color: #0f172a;
}
.ngo-alerts-card p {
    font-size: 13px;
    color: #64748b;
    margin: 0 0 12px;
}
.ngo-alerts-input-group {
    display: flex;
    gap: 6px;
    margin-bottom: 8px;
}
.ngo-alerts-input-group input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #cbd5e1;
    border-radius: var(--ngo-radius-sm);
    font-size: 12px;
    outline: none;
}
.ngo-alerts-input-group button {
    background: var(--ngo-primary);
    color: #ffffff;
    border: none;
    padding: 8px 14px;
    border-radius: var(--ngo-radius-sm);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}
.ngo-privacy-note {
    font-size: 11px;
    color: #94a3b8;
}

/* Need Help Card */
.ngo-help-card {
    text-align: center;
}
.ngo-help-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #e0f2fe;
    color: #0284c7;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin: 0 auto 10px;
}
.ngo-help-card h4 {
    margin: 0 0 4px;
    font-size: 15px;
}
.ngo-help-card p {
    font-size: 12px;
    color: #64748b;
    margin: 0 0 14px;
}
.ngo-btn-contact-support {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--ngo-primary);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid #cbd5e1;
    padding: 6px 16px;
    border-radius: var(--ngo-radius-sm);
}
.ngo-btn-contact-support:hover {
    border-color: var(--ngo-primary);
}

/* Share Card */
.ngo-share-card-title {
    margin: 0 0 4px;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.ngo-share-sub {
    font-size: 12px;
    color: #64748b;
    margin: 0 0 12px;
}
.ngo-share-icons-row {
    display: flex;
    gap: 8px;
}
.ngo-share-item {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #475569;
    text-decoration: none;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.2s;
}
.ngo-share-item:hover {
    border-color: var(--ngo-primary);
    color: var(--ngo-primary);
}

/* ==========================================================================
   14. Modern Deep Forest Footer
   ========================================================================== */
.ngo-main-footer {
    background-color: var(--ngo-footer-bg);
    color: #94a3b8;
    padding: 60px 0 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.ngo-footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr 1.5fr;
    gap: 30px;
    margin-bottom: 40px;
}
.ngo-footer-brand-col .ngo-brand-bold {
    color: #4ade80;
}
.ngo-footer-brand-col .ngo-brand-light {
    color: #ffffff;
}
.ngo-footer-logo {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 12px;
}
.ngo-footer-desc {
    font-size: 13px;
    color: #94a3b8;
    line-height: 1.6;
    margin: 0 0 20px;
}
.ngo-footer-social {
    display: flex;
    gap: 12px;
}
.ngo-footer-social a {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cbd5e1;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}
.ngo-footer-social a:hover {
    background: var(--ngo-primary);
    color: #ffffff;
}
.ngo-footer-heading {
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 16px;
}
.ngo-footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
}
.ngo-footer-links li {
    margin-bottom: 9px;
}
.ngo-footer-links a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s;
}
.ngo-footer-links a:hover {
    color: #ffffff;
}
.ngo-footer-disclaimer-text {
    font-size: 12px;
    line-height: 1.6;
    color: #94a3b8;
    margin: 0;
}
.ngo-footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 12px;
    color: #64748b;
}
.ngo-author-credit {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: #94a3b8;
}
.ngo-author-credit .ngo-code-icon {
    font-size: 16px;
    width: 16px;
    height: 16px;
    line-height: 16px;
    vertical-align: -2px;
    color: var(--ngo-accent, #FFB800);
}
.ngo-author-credit .ngo-by-text {
    color: #94a3b8;
}
.ngo-author-credit .ngo-author-link {
    color: var(--ngo-accent, #FFB800) !important;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
}
.ngo-author-credit .ngo-author-link:hover {
    color: #ffffff !important;
    text-decoration: underline !important;
}

/* ==========================================================================
   15. Empty State & Pagination
   ========================================================================== */
.ngo-empty-state {
    text-align: center;
    padding: 50px 20px;
    background: #ffffff;
    border: 1px dashed var(--ngo-border);
    border-radius: var(--ngo-radius-md);
}
.ngo-empty-state .dashicons {
    font-size: 40px;
    width: 40px;
    height: 40px;
    color: #94a3b8;
    margin-bottom: 12px;
}
.ngo-empty-state h4 {
    margin: 0 0 6px;
    font-size: 18px;
    color: #0f172a;
}
.ngo-empty-state p {
    font-size: 14px;
    color: #64748b;
    margin: 0 0 18px;
}
.ngo-pagination {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 8px;
}
.ngo-pagination .page-numbers {
    padding: 6px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    background: #ffffff;
}
.ngo-pagination .page-numbers.current {
    background: var(--ngo-primary);
    color: #ffffff;
    border-color: var(--ngo-primary);
}

/* ==========================================================================
   16. Responsive Breakpoints & Mobile Full-Width
   ========================================================================== */
@media (max-width: 1080px) {
    .ngo-hero-container,
    .ngo-hero-grid {
        grid-template-columns: 1fr;
        grid-template-areas: none;
        display: flex;
        flex-direction: column;
        gap: 28px;
    }
    .ngo-hero-right,
    .ngo-hero-visual-col {
        display: flex !important;
        justify-content: center;
        order: 2;
    }
    .ngo-search-inputs-grid {
        grid-template-columns: 1fr 1fr;
    }
    .ngo-main-opp-grid,
    .ngo-tender-layout-grid {
        grid-template-columns: 1fr;
    }
    .ngo-footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    /* Global Container on Mobile */
    .ngo-container {
        padding-left: 16px !important;
        padding-right: 16px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Top Announcement Bar */
    .ngo-top-bar {
        display: none; /* Hide top bar on mobile to give full screen focus */
    }

    /* Mobile Header & Navigation: Right-aligned Mobile Dropdown */
    .ngo-header-inner {
        position: relative;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 12px 16px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .ngo-brand-text {
        font-size: 20px;
    }
    .ngo-header-actions {
        display: flex;
        align-items: center;
        gap: 10px;
        position: relative;
    }

    /* Mobile Menu Dropdown positioned neatly on the RIGHT SIDE */
    .ngo-nav-menu-wrapper {
        display: none;
        position: absolute;
        top: calc(100% + 8px);
        right: 16px;
        left: auto;
        width: 260px;
        max-width: calc(100vw - 32px);
        background: #ffffff;
        border-radius: 14px;
        box-shadow: 0 16px 36px -4px rgba(15, 23, 42, 0.2), 0 0 0 1px rgba(0, 0, 0, 0.06);
        border: 1px solid var(--ngo-border);
        padding: 10px 0;
        z-index: 1002;
    }
    .ngo-nav-menu {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        width: 100%;
        margin: 0;
        padding: 0;
        list-style: none;
    }
    .ngo-nav-menu > li {
        width: 100%;
        border-bottom: 1px solid #f1f5f9;
    }
    .ngo-nav-menu > li:last-child {
        border-bottom: none;
    }
    .ngo-nav-menu > li > a {
        display: flex;
        justify-content: flex-end; /* Right side alignment */
        align-items: center;
        width: 100%;
        padding: 11px 18px;
        font-size: 14px;
        font-weight: 600;
        color: #1e293b;
        text-align: right;
        transition: background 0.15s, color 0.15s;
    }
    .ngo-nav-menu > li > a:hover {
        background: #f8fafc;
        color: var(--ngo-primary);
    }
    .ngo-nav-menu .sub-menu {
        position: static;
        box-shadow: none;
        border: none;
        padding: 0 18px 8px 18px;
        display: block;
        min-width: 0;
        background: #f8fafc;
        border-radius: 6px;
        margin: 0 12px 8px;
    }
    .ngo-nav-menu .sub-menu li a {
        display: block;
        padding: 6px 0;
        font-size: 13px;
        color: #475569;
        text-align: right;
    }
    .ngo-mobile-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 38px;
        height: 38px;
        border-radius: 8px;
        background: #f8fafc;
        border: 1px solid #e2e8f0;
        color: #0f172a;
        cursor: pointer;
    }

    /* Hero Section on Mobile (Displays Curved Frame & Responsive Content) */
    .ngo-hero-section {
        padding: 24px 0 36px !important;
        width: 100% !important;
        overflow-x: hidden !important;
    }
    .ngo-hero-container,
    .ngo-hero-grid {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        gap: 18px !important;
    }
    .ngo-hero-left,
    .ngo-hero-intro-col {
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        order: 1 !important;
    }
    .ngo-hero-heading {
        font-size: 25px !important;
        line-height: 1.25 !important;
        margin-bottom: 10px !important;
        text-align: center !important;
    }
    .ngo-hero-lead {
        font-size: 14px !important;
        line-height: 1.5 !important;
        margin-bottom: 16px !important;
        text-align: center !important;
        color: #475569 !important;
    }

    /* Hero Right Visual: SHOWN ON MOBILE with scaled curved arch frame */
    .ngo-hero-right,
    .ngo-hero-visual-col {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        width: 100% !important;
        margin: 8px 0 20px !important;
        order: 2 !important; /* Positioned between heading/lead and search card */
    }
    .ngo-hero-search-col {
        width: 100% !important;
        order: 3 !important;
    }
    .ngo-hero-stage {
        width: 100% !important;
        max-width: 310px !important;
        position: relative !important;
        margin: 0 auto !important;
    }
    .ngo-hero-curved-frame {
        width: 100% !important;
        max-width: 270px !important;
        height: 240px !important; /* Scaled down neatly for mobile, never oversized */
        border-radius: 26px 110px 26px 26px !important; /* Scaled signature curve */
        box-shadow: 0 12px 28px -8px rgba(0, 95, 64, 0.22) !important;
        overflow: hidden !important;
    }
    .ngo-hero-curved-img {
        width: 100% !important;
        height: 100% !important;
        max-width: 100% !important;
        max-height: 100% !important;
        object-fit: cover !important;
        object-position: center 20% !important;
        border-radius: inherit !important;
        display: block !important;
        margin: 0 !important;
    }
    .ngo-hero-frame-gradient-overlay {
        height: 50px !important;
        border-radius: 0 0 26px 26px !important;
    }

    /* Floating Badges on Mobile: Clear vertical separation so they never collide */
    .ngo-floating-badge {
        display: flex !important;
        padding: 6px 10px !important;
        gap: 8px !important;
        border-radius: 10px !important;
        box-shadow: 0 8px 18px rgba(15, 23, 42, 0.14) !important;
        max-width: 220px !important;
        white-space: normal !important;
    }
    .ngo-floating-badge-icon {
        width: 26px !important;
        height: 26px !important;
        border-radius: 6px !important;
    }
    .ngo-floating-badge-icon .dashicons {
        font-size: 15px !important;
        width: 15px !important;
        height: 15px !important;
        line-height: 15px !important;
    }
    .ngo-floating-badge-top {
        top: -10px !important;
        right: 0 !important;
        bottom: auto !important;
        left: auto !important;
    }
    .ngo-floating-badge-bottom {
        bottom: -12px !important;
        left: 0 !important;
        top: auto !important;
        right: auto !important;
    }
    .ngo-floating-badge strong {
        font-size: 11px !important;
        line-height: 1.2 !important;
    }
    .ngo-floating-badge span {
        font-size: 10px !important;
        line-height: 1.2 !important;
    }

    /* Search Card on Mobile */
    .ngo-search-card {
        padding: 16px 14px !important;
        width: 100% !important;
        box-sizing: border-box !important;
        border-radius: var(--ngo-radius-md) !important;
        order: 3;
    }
    .ngo-search-tabs {
        flex-wrap: wrap !important;
        gap: 8px !important;
        margin-bottom: 14px !important;
    }
    .ngo-tab-btn {
        font-size: 13px !important;
        padding: 6px 10px !important;
    }
    .ngo-search-inputs-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
        width: 100% !important;
    }
    .ngo-search-field,
    .ngo-search-submit-field {
        width: 100% !important;
    }
    .ngo-search-field input,
    .ngo-search-field select {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    .ngo-btn-search-submit {
        width: 100% !important;
        justify-content: center !important;
    }
    .ngo-hero-quick-ctas {
        flex-direction: column !important;
        width: 100% !important;
        gap: 10px !important;
        order: 4;
        margin-top: 14px !important;
    }
    .ngo-hero-quick-ctas .ngo-btn {
        width: 100% !important;
        text-align: center !important;
        justify-content: center !important;
    }

    /* Advertise & Connect with Suppliers Section */
    .ngo-advertise-section {
        padding: 12px 0 20px 0 !important;
        width: 100% !important;
    }
    .ngo-advertise-card {
        flex-direction: column !important;
        align-items: flex-start !important;
        padding: 24px 20px !important;
        gap: 20px !important;
        border-radius: 14px !important;
    }
    .ngo-advertise-title {
        font-size: 21px !important;
        line-height: 1.3 !important;
    }
    .ngo-advertise-desc {
        font-size: 14px !important;
        line-height: 1.55 !important;
    }
    .ngo-advertise-action {
        width: 100% !important;
    }
    .ngo-btn-advertise {
        width: 100% !important;
        justify-content: center !important;
        text-align: center !important;
        box-sizing: border-box !important;
    }

    /* Stats Counters Banner */
    .ngo-stats-banner {
        padding: 20px 0 !important;
        width: 100% !important;
    }
    .ngo-stats-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
        width: 100% !important;
    }
    .ngo-stat-card {
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Category Filter Pills */
    .ngo-pills-filter-section {
        padding: 15px 0 !important;
        width: 100% !important;
        overflow-x: hidden !important;
    }
    .ngo-pills-scroll-wrapper {
        width: 100% !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        padding-bottom: 8px !important;
    }

    /* Main Tenders & Sidebar */
    .ngo-main-opportunities-section {
        padding: 24px 0 40px !important;
        width: 100% !important;
        overflow-x: hidden !important;
    }
    .ngo-main-opp-grid {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
        width: 100% !important;
    }
    .ngo-opp-list-col,
    .ngo-opp-sidebar-col {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }
    .ngo-opp-list-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 8px !important;
    }
    .ngo-tender-card {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 14px !important;
        padding: 16px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .ngo-tender-card-left {
        width: 100% !important;
    }
    .ngo-tender-card-actions {
        width: 100% !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        border-top: 1px solid #f1f5f9;
        padding-top: 12px;
    }
    .ngo-tender-badge-row {
        flex-wrap: wrap !important;
        gap: 6px !important;
    }
    .ngo-tender-meta-row {
        flex-wrap: wrap !important;
        gap: 10px !important;
    }

    /* How It Works Section */
    .ngo-how-it-works-section {
        padding: 35px 0 !important;
        width: 100% !important;
    }
    .ngo-hiw-header {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 14px !important;
    }
    .ngo-hiw-titles {
        text-align: center !important;
    }
    .ngo-hiw-toggle {
        width: auto !important;
        justify-content: center !important;
        margin: 0 auto !important;
    }
    .ngo-hiw-steps-grid {
        display: none !important;
    }
    .ngo-hiw-steps-grid.active {
        display: flex !important;
        flex-direction: column !important;
        gap: 16px !important;
        width: 100% !important;
    }
    .ngo-step-card {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Membership Plans Section */
    .ngo-membership-plans-section {
        padding: 30px 0 !important;
        width: 100% !important;
    }
    .ngo-plans-banner-card {
        padding: 24px 16px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .ngo-plans-tiers-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
        width: 100% !important;
    }
    .ngo-tier-card {
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Newsletter Bar */
    .ngo-newsletter-section {
        padding: 20px 0 40px !important;
        width: 100% !important;
        overflow-x: hidden !important;
    }
    .ngo-newsletter-bar {
        padding: 20px 16px !important;
        flex-direction: column !important;
        align-items: stretch !important;
        width: 100% !important;
        box-sizing: border-box !important;
        gap: 16px !important;
    }
    .ngo-news-left {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 10px !important;
        width: 100% !important;
    }
    .ngo-news-form {
        width: 100% !important;
    }
    .ngo-news-input-wrap {
        flex-direction: column !important;
        width: 100% !important;
        gap: 10px !important;
    }
    .ngo-news-input-wrap input {
        min-width: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    .ngo-btn-news-submit {
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Footer */
    .ngo-main-footer {
        width: 100% !important;
        padding-top: 40px !important;
        overflow-x: hidden !important;
    }
    .ngo-footer-grid {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
        width: 100% !important;
    }
    .ngo-footer-col {
        width: 100% !important;
    }
    .ngo-footer-bottom {
        flex-direction: column !important;
        gap: 12px !important;
        text-align: center !important;
        padding: 20px 0 !important;
    }

    /* Single Tender Details & Paywall */
    .ngo-tender-header-box {
        grid-template-columns: 1fr !important;
        padding: 20px 16px !important;
    }
    .ngo-tender-specs-grid,
    .ngo-related-grid {
        grid-template-columns: 1fr !important;
    }
    .ngo-tender-paywall-box {
        padding: 30px 16px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .ngo-paywall-actions {
        flex-direction: column !important;
        width: 100% !important;
        gap: 10px !important;
    }
    .ngo-paywall-actions .ngo-btn-paywall-sub,
    .ngo-paywall-actions .ngo-btn-paywall-login {
        width: 100% !important;
        text-align: center !important;
    }
}

/* ==========================================================================
   17. MemberPress UI Modernization & Parent Astra Integration
   ========================================================================== */

/* Container for Standard Astra Pages & MemberPress Pages */
.ast-container,
.site-content > .ast-container,
.site-content > .container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

/* Modern MemberPress Forms Wrapper */
.mepr-form,
.mepr-signup-form,
.mepr-login-form,
#mepr-account-form {
    background: #ffffff;
    border: 1px solid var(--ngo-border);
    border-radius: var(--ngo-radius-lg);
    box-shadow: var(--ngo-shadow-md);
    padding: 35px 40px;
    max-width: 580px;
    margin: 40px auto;
}

.mepr-signup-form {
    max-width: 680px;
}

/* MemberPress Headings */
.mepr-login-form h2,
.mepr-signup-form h2,
.mepr-account-table-title {
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 24px;
    text-align: center;
}

/* MemberPress Input Fields */
.mp-form-row {
    margin-bottom: 20px;
}
.mp-form-row label,
.mepr-form label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 6px;
}
.mp-form-row input[type="text"],
.mp-form-row input[type="email"],
.mp-form-row input[type="password"],
.mp-form-row select,
.mepr-form input[type="text"],
.mepr-form input[type="email"],
.mepr-form input[type="password"] {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #cbd5e1;
    border-radius: var(--ngo-radius-sm);
    font-size: 14px;
    color: #0f172a;
    background: #f8fafc;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.2s, background 0.2s;
}
.mp-form-row input:focus,
.mepr-form input:focus {
    border-color: var(--ngo-primary);
    background: #ffffff;
}

/* MemberPress Submit Buttons */
.mepr-submit,
.mepr-form input[type="submit"],
.mepr-signup-form input[type="submit"],
.mepr-login-form input[type="submit"],
.mepr-account-save-button {
    width: 100%;
    background: var(--ngo-primary) !important;
    color: #ffffff !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    padding: 12px 24px !important;
    border: none !important;
    border-radius: var(--ngo-radius-sm) !important;
    cursor: pointer !important;
    transition: background 0.2s !important;
    margin-top: 15px !important;
}
.mepr-submit:hover,
.mepr-form input[type="submit"]:hover,
.mepr-signup-form input[type="submit"]:hover,
.mepr-login-form input[type="submit"]:hover {
    background: var(--ngo-primary-hover) !important;
}

/* MemberPress Account Page Tabs Navigation */
.mepr-account-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 30px;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 10px;
}
.mepr-account-nav a {
    color: #475569;
    font-size: 14px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: var(--ngo-radius-sm);
    text-decoration: none;
    transition: all 0.2s;
}
.mepr-account-nav a:hover {
    color: var(--ngo-primary);
    background: #f1f5f9;
}
.mepr-account-nav .mepr-active-nav-tab {
    color: #ffffff !important;
    background: var(--ngo-primary) !important;
}

/* MemberPress Subscription & Payment Tables */
.mepr-account-table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    border: 1px solid var(--ngo-border);
    border-radius: var(--ngo-radius-md);
    overflow: hidden;
    margin-bottom: 30px;
}
.mepr-account-table th {
    background: #f8fafc;
    color: #334155;
    font-size: 13px;
    font-weight: 700;
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--ngo-border);
}
.mepr-account-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 13px;
    color: #1e293b;
}

/* MemberPress Error & Success Notices */
.mepr-error-message,
.mepr-error {
    background: #fef2f2 !important;
    border: 1px solid #fecaca !important;
    color: #991b1b !important;
    padding: 12px 16px !important;
    border-radius: var(--ngo-radius-sm) !important;
    margin-bottom: 20px !important;
    font-size: 13px !important;
}
.mepr-success-message {
    background: #f0fdf4 !important;
    border: 1px solid #bbf7d0 !important;
    color: #166534 !important;
    padding: 12px 16px !important;
    border-radius: var(--ngo-radius-sm) !important;
    margin-bottom: 20px !important;
    font-size: 13px !important;
}

/* Password reset / extra links */
.mp-form-row-password-link a,
.mepr-forgot-password a {
    color: var(--ngo-primary);
    font-size: 13px;
    text-decoration: none;
}
.mp-form-row-password-link a:hover,
.mepr-forgot-password a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   18. MemberPress Native Group Pricing Tables & Form Styling
   ========================================================================== */
.mepr-price-boxes,
.mepr-price-menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 28px;
    margin: 40px auto;
    max-width: 1100px;
}
.mepr-price-box {
    flex: 1 1 300px;
    max-width: 350px;
    background: #ffffff;
    border: 1px solid var(--ngo-border);
    border-radius: var(--ngo-radius-lg);
    box-shadow: var(--ngo-shadow-sm);
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}
.mepr-price-box:hover {
    transform: translateY(-4px);
    box-shadow: var(--ngo-shadow-lg);
}
.mepr-price-box.mepr-most-popular,
.mepr-price-box.highlighted {
    border: 2px solid var(--ngo-primary);
    position: relative;
    box-shadow: 0 12px 28px rgba(0, 95, 64, 0.14);
}
.mepr-price-box-title {
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 12px;
}
.mepr-price-box-price {
    font-size: 32px;
    font-weight: 800;
    color: var(--ngo-primary);
    margin-bottom: 18px;
}
.mepr-price-box-features {
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
    text-align: left;
    font-size: 14px;
    color: #475569;
    flex-grow: 1;
}
.mepr-price-box-features li {
    padding: 8px 0;
    border-bottom: 1px solid #f1f5f9;
}
.mepr-price-box-button a,
.mepr-price-box-button .mepr-btn {
    display: inline-block;
    width: 100%;
    padding: 12px 20px;
    background: var(--ngo-primary) !important;
    color: #ffffff !important;
    border-radius: var(--ngo-radius-sm);
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s;
    box-sizing: border-box;
}
.mepr-price-box-button a:hover {
    background: var(--ngo-primary-hover) !important;
}

/* Post Submission Form Styling (If rendered by MemberPress or Add-ons) */
.mepr-post-form,
.mepr-post-submission,
.post-submission-form {
    background: #ffffff;
    border: 1px solid var(--ngo-border);
    border-radius: var(--ngo-radius-lg);
    box-shadow: var(--ngo-shadow-md);
    padding: 35px 40px;
    max-width: 780px;
    margin: 30px auto;
}
