/* =========================================================
   REIP Platform — Custom CSS
   Stack: Bootstrap 5 + Font Awesome 6
   ========================================================= */

/* ---------------------------------------------------------
   1. CSS Variables (Brand Colors)
   --------------------------------------------------------- */
:root {
    --navy:       #0a1628;
    --navy-mid:   #112240;
    --navy-soft:  #1e3050;
    --gold:       #c9a84c;
    --gold-dark:  #a8862f;
    --gold-light: #e8c96a;
    --emerald:    #2ecc71;
    --emerald-dark: #27ae60;
    --light-gray: #f8f9fa;
    --mid-gray:   #e9ecef;
    --text-muted-custom: #6b849d;
    --white:      #ffffff;
}

/* ---------------------------------------------------------
   2. Base & Typography
   --------------------------------------------------------- */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', 'Inter', 'Helvetica Neue', Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.7;
    color: #2c3e50;
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
}

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

a {
    text-decoration: none;
    transition: color 0.2s ease, opacity 0.2s ease;
}

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

/* ---------------------------------------------------------
   3. Color Utility Classes
   --------------------------------------------------------- */
.text-gold      { color: var(--gold) !important; }
.text-navy      { color: var(--navy) !important; }
.text-emerald   { color: var(--emerald) !important; }

.bg-navy        { background-color: var(--navy) !important; }
.bg-navy-mid    { background-color: var(--navy-mid) !important; }
.bg-gold        { background-color: var(--gold) !important; }
.bg-emerald     { background-color: var(--emerald) !important; }

/* ---------------------------------------------------------
   4. Button: Gold (Primary CTA)
   --------------------------------------------------------- */
.btn-gold {
    background-color: var(--gold);
    color: var(--navy);
    border: 2px solid var(--gold);
    font-weight: 700;
    letter-spacing: 0.02em;
    transition: background-color 0.25s ease, color 0.25s ease, transform 0.15s ease, box-shadow 0.25s ease;
}

.btn-gold:hover,
.btn-gold:focus {
    background-color: var(--gold-dark);
    border-color: var(--gold-dark);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(201, 168, 76, 0.35);
}

.btn-gold:active {
    transform: translateY(0);
    box-shadow: none;
}

/* ---------------------------------------------------------
   5. Navbar
   --------------------------------------------------------- */
.nav-link-gold {
    color: rgba(255,255,255,0.85) !important;
    font-weight: 500;
    font-size: 0.93rem;
    position: relative;
    padding-bottom: 4px !important;
    transition: color 0.2s ease;
}

.nav-link-gold::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width 0.25s ease;
}

.nav-link-gold:hover,
.nav-link-gold.active {
    color: var(--gold) !important;
}

.nav-link-gold:hover::after,
.nav-link-gold.active::after {
    width: 70%;
}

/* ---------------------------------------------------------
   6. Footer
   --------------------------------------------------------- */
.footer-heading {
    letter-spacing: 0.06em;
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--gold) !important;
    margin-bottom: 1rem !important;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.footer-links a {
    color: #8fa3b8;
    font-size: 0.9rem;
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.footer-links a:hover {
    color: var(--gold);
    padding-left: 4px;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    font-size: 0.88rem;
    color: #8fa3b8;
}

.footer-legal-link {
    color: #6b849d;
    font-size: 0.82rem;
    transition: color 0.2s ease;
}

.footer-legal-link:hover {
    color: var(--gold);
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--navy-soft);
    color: #8fa3b8;
    font-size: 0.85rem;
    transition: background 0.25s ease, color 0.25s ease, transform 0.2s ease;
}

.social-icon:hover {
    background: var(--gold);
    color: var(--navy);
    transform: translateY(-2px);
}

/* ---------------------------------------------------------
   7. Hero Section
   --------------------------------------------------------- */
.hero-section {
    position: relative;
    overflow: hidden;
    padding: 110px 0 120px;
    background-color: var(--navy);
}

/* Full-bleed dark overlay */
.hero-bg-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        160deg,
        rgba(10,22,40,0.82) 0%,
        rgba(10,22,40,0.68) 50%,
        rgba(10,22,40,0.55) 100%
    );
}

/* Bottom fade into stats bar */
.hero-bottom-fade {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    z-index: 2;
    background: linear-gradient(to bottom, transparent 0%, rgba(10,22,40,0.45) 100%);
    pointer-events: none;
}

/* Row min-height */
.min-vh-hero {
    min-height: unset;
    padding: 0;
}

/* ---- Badge ---- */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(201,168,76,0.12);
    border: 1px solid rgba(201,168,76,0.28);
    color: var(--gold);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 50px;
}
.hero-badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 0 3px rgba(201,168,76,0.25);
    animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
    0%, 100% { box-shadow: 0 0 0 3px rgba(201,168,76,0.25); }
    50%       { box-shadow: 0 0 0 6px rgba(201,168,76,0.10); }
}

/* ---- Headline ---- */
.hero-headline {
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    font-weight: 900;
    color: #fff;
    line-height: 1.15;
    margin-bottom: 20px;
    text-shadow: 0 2px 20px rgba(10,22,40,0.4);
}
.hero-headline-gold {
    color: var(--gold);
}

/* ---- Subtext ---- */
.hero-subtext {
    color: rgba(255,255,255,0.65);
    font-size: 1.05rem;
    line-height: 1.75;
    max-width: 500px;
    margin-bottom: 28px;
}

/* ---- Outline button variant ---- */
.btn-hero-outline {
    background: transparent;
    border: 2px solid rgba(255,255,255,0.35);
    color: #fff;
    transition: all 0.2s;
}
.btn-hero-outline:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.6);
    color: #fff;
}

/* ---- Trust row ---- */
.hero-trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}
.hero-trust-item {
    display: flex;
    align-items: center;
    gap: 7px;
    color: rgba(255,255,255,0.6);
    font-size: 0.85rem;
}
.hero-trust-item i { color: var(--emerald); }

/* ---- Subtext center fix ---- */
.hero-subtext {
    text-align: center;
}


/* ---------------------------------------------------------
   8. Page Hero — Inner Pages (image background)
   --------------------------------------------------------- */
.page-hero {
    position: relative;
    padding: 88px 0 78px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.page-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.page-hero > .container {
    position: relative;
    z-index: 200;
}

/* Overlay colour variants */
.ov-navy        { background: linear-gradient(135deg, rgba(10,22,40,0.92) 0%, rgba(10,22,40,0.68) 100%); }
.ov-navy-left   { background: linear-gradient(100deg,  rgba(10,22,40,0.96) 0%, rgba(10,22,40,0.52) 100%); }
.ov-navy-bottom { background: linear-gradient(to top,  rgba(10,22,40,0.95) 0%, rgba(10,22,40,0.55) 100%); }
.ov-gold        { background: linear-gradient(135deg, rgba(10,22,40,0.94) 0%, rgba(80,52,10,0.62)  100%); }
.ov-emerald     { background: linear-gradient(135deg, rgba(10,22,40,0.92) 0%, rgba(10,48,36,0.68)  100%); }
.ov-royal       { background: linear-gradient(135deg, rgba(8,18,40,0.94)  0%, rgba(20,40,80,0.65)  100%); }

/* Stat pills */
.page-hero-stats {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 26px;
}

.page-hero-stat {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(255,255,255,0.10);
    border: 1px solid rgba(255,255,255,0.18);
    backdrop-filter: blur(6px);
    border-radius: 50px;
    padding: 7px 16px;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
}
.page-hero-stat i { color: var(--gold); }

/* Breadcrumb */
.page-hero-breadcrumb {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.45);
    margin-bottom: 14px;
}
.page-hero-breadcrumb a { color: rgba(255,255,255,0.45); text-decoration: none; transition: color 0.2s; }
.page-hero-breadcrumb a:hover { color: var(--gold); }
.page-hero-breadcrumb .ph-sep { color: rgba(255,255,255,0.25); }
.page-hero-breadcrumb .ph-current { color: var(--gold); font-weight: 600; }

/* Feature pill row */
.page-hero-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 22px;
}
.page-hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(201,168,76,0.15);
    border: 1px solid rgba(201,168,76,0.30);
    color: var(--gold);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 50px;
}

/* Responsive */
@media (max-width: 991.98px) {
    .page-hero { padding: 68px 0 60px; text-align: center; }
    .page-hero-stats, .page-hero-pills { justify-content: center; }
    .page-hero-breadcrumb { justify-content: center; }
}
@media (max-width: 575.98px) {
    .page-hero { padding: 50px 0 44px; }
}

/* ---------------------------------------------------------
   9. Stats Bar
   --------------------------------------------------------- */
.stats-bar {
    background: var(--white);
    box-shadow: 0 4px 24px rgba(10, 22, 40, 0.09);
}

.stat-item {
    border-right: 1px solid var(--mid-gray);
    transition: background 0.2s ease;
}

.stat-item:last-child {
    border-right: none;
}

.stat-icon {
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 1.3rem;
    background: rgba(201, 168, 76, 0.12);
    color: var(--gold);
}

/* ---------------------------------------------------------
   9. Section Titles
   --------------------------------------------------------- */
.section-label {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold);
}

.section-title {
    font-size: clamp(1.6rem, 3vw, 2.3rem);
    font-weight: 800;
    color: var(--navy);
    line-height: 1.25;
}

.section-subtitle {
    color: #5e758a;
    font-size: 1.05rem;
    max-width: 600px;
}

/* ---------------------------------------------------------
   10. Project Cards
   --------------------------------------------------------- */
.project-card {
    border: 1px solid var(--mid-gray);
    border-radius: 14px;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    background: var(--white);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 48px rgba(10, 22, 40, 0.13);
}

.project-card .card-img-wrapper {
    position: relative;
    overflow: hidden;
    height: 210px;
}

.project-card .card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.project-card:hover .card-img-wrapper img {
    transform: scale(1.04);
}

.badge-verified {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--emerald);
    color: var(--white);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    letter-spacing: 0.04em;
}

.badge-roi {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--gold);
    color: var(--navy);
    font-size: 0.78rem;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 20px;
}

.progress-reip {
    height: 7px;
    border-radius: 10px;
    background: var(--mid-gray);
    overflow: hidden;
}

.progress-reip .progress-bar {
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    border-radius: 10px;
}

/* ---------------------------------------------------------
   11. How It Works Steps
   --------------------------------------------------------- */
.step-card {
    background: var(--white);
    border: 1px solid var(--mid-gray);
    border-radius: 16px;
    padding: 2rem 1.75rem;
    text-align: center;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.step-card:hover {
    box-shadow: 0 12px 36px rgba(10, 22, 40, 0.10);
    transform: translateY(-4px);
}

.step-icon {
    width: 56px;
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.3rem;
    margin-bottom: 1.25rem;
    background: linear-gradient(135deg, var(--navy-soft), var(--navy-mid));
    color: var(--gold);
    box-shadow: 0 4px 14px rgba(10, 22, 40, 0.16);
}

/* ---------------------------------------------------------
   12. Trust Badges
   --------------------------------------------------------- */
.trust-badge {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    background: var(--white);
    border: 1px solid var(--mid-gray);
    border-radius: 50px;
    padding: 0.6rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--navy);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.trust-badge:hover {
    border-color: var(--gold);
    box-shadow: 0 4px 16px rgba(201, 168, 76, 0.15);
}

.trust-badge i {
    color: var(--gold);
    font-size: 1.05rem;
}

/* ---------------------------------------------------------
   13. Testimonials
   --------------------------------------------------------- */
.testimonial-card {
    background: var(--white);
    border: 1px solid var(--mid-gray);
    border-radius: 14px;
    padding: 1.75rem;
    transition: box-shadow 0.25s ease;
}

.testimonial-card:hover {
    box-shadow: 0 10px 30px rgba(10, 22, 40, 0.09);
}

.testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--gold);
}

.star-rating i {
    color: var(--gold);
    font-size: 0.85rem;
}

/* ---------------------------------------------------------
   14. CTA Banner
   --------------------------------------------------------- */
.cta-banner {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 450px;
    height: 450px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201,168,76,0.1) 0%, transparent 65%);
    pointer-events: none;
}

/* ---------------------------------------------------------
   15. General Utilities
   --------------------------------------------------------- */
.divider-gold {
    width: 50px;
    height: 3px;
    background: var(--gold);
    border-radius: 2px;
}

.rounded-xl { border-radius: 14px !important; }
.rounded-2xl { border-radius: 20px !important; }

.shadow-soft { box-shadow: 0 4px 20px rgba(10, 22, 40, 0.07) !important; }
.shadow-medium { box-shadow: 0 8px 32px rgba(10, 22, 40, 0.12) !important; }

/* ---------------------------------------------------------
   16. Responsive Adjustments
   --------------------------------------------------------- */

/* Project Filter Sidebar Scrollbar */
#filterBody::-webkit-scrollbar {
    width: 4px;
}
#filterBody::-webkit-scrollbar-track {
    background: transparent;
}
#filterBody::-webkit-scrollbar-thumb {
    background: var(--mid-gray);
    border-radius: 2px;
}

/* Project Show Hero */
.project-hero-banner {
    height: 420px;
}

@media (max-width: 767.98px) {
    .project-hero-banner {
        height: 280px !important;
    }
}

@media (max-width: 575.98px) {
    .project-hero-banner {
        height: 220px !important;
    }
}

/* Tablet landscape & below (< 992px) */
@media (max-width: 991.98px) {
    .hero-section {
        padding: 80px 0 90px;
        text-align: center;
    }

    .min-vh-hero { min-height: unset; }

    .hero-badge { margin-left: auto; margin-right: auto; }

    .hero-subtext {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-trust-row { justify-content: center; }

    .hero-section .d-flex.flex-wrap {
        justify-content: center;
    }

    .stat-item {
        border-right: none;
        border-bottom: 1px solid var(--mid-gray);
    }

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


    .trust-badge {
        font-size: 0.82rem;
        padding: 0.5rem 1rem;
    }
}

/* Tablet portrait (768px - 991px) */
@media (max-width: 767.98px) {
    .section-subtitle {
        font-size: 0.97rem;
    }

    .stat-icon {
        width: 44px;
        height: 44px;
        font-size: 1.1rem;
    }

    .step-icon-old {
        width: 60px;
        height: 60px;
        font-size: 1.35rem;
    }

    .testimonial-card {
        padding: 1.25rem;
    }

    .cta-banner .btn-lg {
        padding: 0.6rem 1.5rem;
        font-size: 0.95rem;
    }
}

/* Mobile (< 576px) */
@media (max-width: 575.98px) {
    .hero-section {
        padding: 70px 0 80px;
    }

    .hero-headline { font-size: 1.9rem; }
    .hero-subtext  { font-size: 0.95rem; }

    .section-title {
        font-size: 1.45rem;
    }

    .section-label {
        font-size: 0.72rem;
    }

    .trust-badge {
        font-size: 0.78rem;
        padding: 0.4rem 0.85rem;
        gap: 0.45rem;
    }

    .step-icon-old {
        width: 54px;
        height: 54px;
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }

    .project-card .card-img-wrapper {
        height: 185px;
    }

    .social-icon {
        width: 40px;
        height: 40px;
        font-size: 0.95rem;
    }

    .btn-gold.btn-lg,
    .btn-outline-light.btn-lg {
        width: 100%;
        justify-content: center;
    }

    .cta-banner .d-flex.flex-wrap {
        flex-direction: column;
        align-items: stretch;
    }

    .cta-banner .d-flex.flex-wrap .btn {
        width: 100%;
        justify-content: center;
    }
}

/* =========================================================
   MOBILE RESPONSIVE — Extended Rules
   ========================================================= */

/* ── Tablet (≤991px) ── */
@media (max-width: 991.98px) {
    /* Hero CTA buttons: stack vertically */
    .hero-section .d-flex.flex-wrap.gap-3 {
        flex-direction: column;
        align-items: stretch;
    }
    .hero-section .d-flex.flex-wrap.gap-3 .btn {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    /* Hero subtext: remove fixed max-width */
    .hero-subtext { max-width: 100% !important; }

    /* Page hero: reduce padding */
    .page-hero { padding: 60px 0 52px !important; }

    /* Section spacing: reduce inline-padded sections */
    .section-pad-lg { padding-top: 3.5rem !important; padding-bottom: 3.5rem !important; }
}

/* ── Mobile (≤767px) ── */
@media (max-width: 767.98px) {

    /* Page hero */
    .page-hero { padding: 50px 0 42px !important; }
    .page-hero h1.display-5 { font-size: 1.75rem !important; }
    .page-hero p { font-size: 0.93rem !important; }

    /* Hero section */
    .hero-section { padding: 68px 0 72px !important; }

    /* Project hero banner */
    .project-hero-banner { height: 260px !important; }

    /* Social icons — bigger tap targets */
    .social-icon { width: 42px !important; height: 42px !important; font-size: 0.9rem !important; }

    /* Navbar buttons */
    .navbar .btn-sm { min-height: 36px !important; }

    /* About stat numbers */
    .stat-number { font-size: 1.8rem !important; }

    /* Step cards */
    .step-card { padding: 1.5rem 1.25rem !important; }

    /* Feature cards */
    .feature-card { padding: 1.25rem !important; }

    /* Project filter row */
    .project-filter-row .col-6 { width: 50% !important; }

    /* Calculator hero */
    .calc-hero-title { font-size: 2rem !important; }
    .calc-hss-val { font-size: 1rem !important; }
    .calc-hss-sep { margin: 0 0.75rem !important; }

    /* Calculator section padding */
    .calc-section { padding: 2.5rem 0 3rem !important; }
    .calc-why-section { padding: 2.5rem 0 !important; }

    /* Testimonials */
    .testimonial-card { padding: 1.25rem !important; }

    /* Trust grid — clean icon+text list on mobile */
    .trust-grid .col-6 { padding: 0 6px; }
    .trust-badge {
        background: #fff !important;
        border: 1px solid #edf0f5 !important;
        border-radius: 10px !important;
        box-shadow: none !important;
        padding: 0.6rem 0.7rem !important;
        font-size: 0.78rem !important;
        gap: 0.45rem !important;
        justify-content: flex-start;
        align-items: flex-start !important;
        color: var(--navy) !important;
        font-weight: 600 !important;
        min-height: 44px;
        height: 100%;
        line-height: 1.35 !important;
    }
    .trust-badge i {
        font-size: 0.85rem !important;
        flex-shrink: 0;
        color: var(--gold) !important;
        margin-top: 2px;
    }

    /* Footer links — bigger tap target */
    .footer-links a { min-height: 30px; display: inline-flex; align-items: center; }
    .footer-contact li { line-height: 1.5; }

    /* Blog cards */
    .blog-card { margin-bottom: 0; }

    /* Accordion button font */
    .accordion-button { font-size: 0.93rem !important; padding: 1rem !important; }

    /* Section title */
    .section-title { font-size: 1.5rem !important; }

    /* Section gap reduction */
    .row.g-5 { --bs-gutter-y: 2rem !important; --bs-gutter-x: 1rem !important; }
    .row.g-4 { --bs-gutter-y: 1.25rem !important; }

    /* Divider gold */
    .divider-gold { margin-left: auto !important; margin-right: auto !important; }
}

/* ── Small Mobile (≤575px) ── */
@media (max-width: 575.98px) {

    /* Hero */
    .hero-section { padding: 60px 0 65px !important; }
    .hero-headline { font-size: 1.75rem !important; }
    .hero-badge { font-size: 0.7rem !important; padding: 5px 12px !important; }
    .hero-trust-row { gap: 10px !important; }
    .hero-trust-item { font-size: 0.78rem !important; }

    /* Page hero */
    .page-hero { padding: 40px 0 32px !important; }
    .page-hero h1 { font-size: 1.55rem !important; line-height: 1.25 !important; }

    /* Section title */
    .section-title { font-size: 1.35rem !important; }
    .section-subtitle { font-size: 0.88rem !important; }
    .section-label { font-size: 0.7rem !important; }

    /* About stat numbers */
    .stat-number { font-size: 1.6rem !important; }

    /* Cards inner padding */
    .rounded-xl.p-4,
    .project-card .p-3 { padding: 1rem !important; }

    /* Step icon */
    .step-icon { width: 54px !important; height: 54px !important; font-size: 1.2rem !important; }

    /* CTA banner */
    .cta-banner h2 { font-size: 1.35rem !important; }
    .cta-banner p  { font-size: 0.88rem !important; }

    /* Calculator hero stats strip */
    .calc-hero-stats-strip {
        flex-wrap: wrap;
        gap: 12px 0;
        justify-content: flex-start;
    }
    .calc-hss-sep { display: none !important; }
    .calc-hss-item { min-width: 45%; }

    /* Calculator tab switcher */
    .calc-sw-btn span { font-size: 0.75rem !important; }
    .calc-sw-btn { padding: 0.5rem 0.75rem !important; }

    /* Calculator input card */
    .calc-input-card { padding: 1rem !important; }
    .calc-result-top { padding: 1.25rem !important; }
    .calc-result-bottom { padding: 1.25rem !important; }

    /* FAQ */
    .accordion-button { font-size: 0.88rem !important; }

    /* Navbar collapse — center links */
    .navbar-collapse .nav-link-gold { padding: 0.5rem 1rem !important; }

    /* Footer columns */
    .footer-links a { font-size: 0.88rem !important; }
    .footer-legal-link { font-size: 0.78rem !important; }

    /* Form buttons in auth */
    .afbg-btn-submit { font-size: 0.82rem !important; }

    /* Social icons */
    .social-icon { width: 40px !important; height: 40px !important; }

    /* Trust items in hero */
    .afbg-trust-list { gap: 10px !important; }

    /* For investors/developers feature rows */
    .row.g-4 .col-md-6 { margin-bottom: 0; }
}

/* ── Investment Sidebar Card ── */
.invest-card {
    position: sticky;
    top: 75px;
    z-index: 10;
    max-height: calc(100vh - 85px);
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.invest-card::-webkit-scrollbar { display: none; }

@media (max-width: 991.98px) {
    .invest-card {
        position: static;
        max-height: none;
        overflow-y: visible;
    }
}

/* ── Construction Timeline Scroll ── */
.timeline-scroll-wrap {
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}
.timeline-scroll-wrap::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

/* ── Payment Plan List (Project Show) ── */
.payment-plan-list {
    border: 1px solid var(--mid-gray);
    border-radius: 10px;
    overflow: hidden;
}

.payment-plan-header {
    display: flex;
    align-items: center;
    background: var(--navy);
    padding: 0.6rem 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255,255,255,0.75);
}

.payment-plan-row {
    display: flex;
    align-items: center;
    padding: 0.7rem 1rem;
    border-bottom: 1px solid var(--mid-gray);
    font-size: 0.88rem;
    gap: 0.5rem;
}
.payment-plan-row:last-child { border-bottom: none; }
.ppr-highlight { background: rgba(201,168,76,0.06); }

.ppl-col-name { flex: 1.8; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ppl-col-date { flex: 1.2; min-width: 0; display: flex; align-items: center; }
.ppl-col-amt  { flex: 1.2; min-width: 0; }
.ppl-col-pct  { flex: 0.7; min-width: 0; text-align: right; }

.ppl-date-mobile {
    font-size: 0.76rem;
    color: #8fa3b8;
    font-weight: 400;
    margin-top: 1px;
}

/* ── Project Show Page ── */
.project-content-section { padding: 3rem 0 5rem; }

/* Mobile sticky invest CTA bar */
.project-mobile-cta {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 1050;
    background: #fff;
    border-top: 2px solid var(--mid-gray);
    padding: 0.65rem 1rem;
    gap: 0.65rem;
    box-shadow: 0 -4px 20px rgba(10,22,40,0.12);
}

/* Project trust badges — always compact pills, override mobile trust-badge block */
.project-trust-badge {
    font-size: 0.78rem !important;
    padding: 0.28rem 0.65rem !important;
    white-space: nowrap !important;
    height: auto !important;
    min-height: unset !important;
    align-items: center !important;
    line-height: 1.4 !important;
    background: var(--white) !important;
    border: 1px solid var(--mid-gray) !important;
    border-radius: 50px !important;
    box-shadow: none !important;
    gap: 0.35rem !important;
}
.project-trust-badge i {
    font-size: 0.78rem !important;
    margin-top: 0 !important;
    color: var(--gold) !important;
}

@media (max-width: 991.98px) {
    .project-content-section { padding: 2rem 0 5.5rem; }
    .project-trust-row { gap: 6px !important; }
}
@media (max-width: 767.98px) {
    .project-content-section { padding: 1.75rem 0 5rem; }
    .project-trust-badge { font-size: 0.73rem !important; padding: 0.22rem 0.55rem !important; }
}
@media (max-width: 575.98px) {
    .project-content-section { padding: 1.25rem 0 4.5rem; }
    .project-trust-badge { font-size: 0.7rem !important; padding: 0.2rem 0.5rem !important; }
    .project-trust-row { gap: 5px !important; }
    .project-mobile-cta { padding: 0.55rem 0.75rem; gap: 0.5rem; }
    .project-mobile-cta .btn { font-size: 0.85rem; }
}

/* ── Projects Hero Search Bar ── */
.projects-hero-title { font-size: clamp(1.6rem, 6vw, 3rem); }

.projects-search-bar {
    border-radius: 14px;
    overflow: hidden;
    font-size: 1rem;
}
.projects-search-bar .form-control { font-size: 1rem; }
.projects-search-btn { padding-left: 1.5rem; padding-right: 1.5rem; font-size: 1rem; }

@media (max-width: 767.98px) {
    .projects-search-wrap { padding: 0 4px; }
    .projects-search-bar { border-radius: 12px; }
    .projects-search-bar .form-control { font-size: 0.9rem; }
    .projects-search-btn { padding-left: 1rem; padding-right: 1rem; font-size: 0.88rem; white-space: nowrap; }
    .projects-search-bar .input-group-text { padding-left: 0.75rem; padding-right: 0.5rem; }
}

@media (max-width: 575.98px) {
    .projects-hero-title { font-size: 1.6rem !important; }
    .projects-search-bar .form-control { font-size: 0.85rem; padding-left: 0.25rem; }
    .projects-search-btn { padding-left: 0.85rem; padding-right: 0.85rem; font-size: 0.82rem; }
    .projects-search-bar .input-group-text { padding-left: 0.65rem; padding-right: 0.35rem; }
}

