:root {
    --blue: #009fe3;
    --green: #8cc63f;
    --lime: #7ac943;
    --orange: #f7931e;
    --aqua: #8ccce3;
    --cream: #fffbea;
    --dark: #333;
    --bg-grey: #f8f9fa;
    --border-grey: #cccccc;
    --font-head: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* --- Base Layout --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--bg-grey);
    font-family: var(--font-body);
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- Header --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #fff;
    border-bottom: 3px solid var(--blue);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.navbar {
    background: transparent !important;
    font-family: var(--font-head);
    padding: 0;
}

.header-container {
    max-width: 100%;
    padding: 0.75rem 2rem;
}

.navbar-brand {
    font-weight: 600;
    color: var(--blue) !important;
    font-size: 1.3rem;
}

.navbar-brand img {
    height: 45px;
}

@media (max-width: 991px) {
    .header-container {
        padding: 0.75rem 1rem;
    }
}



.nav-link {
    color: var(--dark) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background: var(--blue);
    color: #fff !important;
}

.nav-link.active {
    background: var(--green);
    color: #fff !important;
}

.dropdown-menu {
    border: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
}

.dropdown-item {
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background: var(--blue);
    color: #fff;
}

/* ===================================
   HERO BANNER
   =================================== */
.hero-banner {
    position: relative;
    background: linear-gradient(135deg, var(--blue) 0%, var(--green) 100%);
    padding: 120px 0 80px;
    margin-top: 70px;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120"><path d="M0,60 C300,90 900,30 1200,60 L1200,0 L0,0 Z" fill="rgba(255,255,255,0.05)"/></svg>');
    background-size: cover;
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-title {
    font-family: var(--font-head);
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    opacity: 0.95;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.hero-buttons .btn-hero {
    flex: 1;
    text-align: center;
}

.btn-hero {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 1.1rem;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-hero-primary {
    background: var(--orange);
    color: #fff;
}

.btn-hero-primary:hover {
    background: #e68919;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(247, 147, 30, 0.4);
}

.btn-hero-secondary {
    background: transparent;
    color: #fff;
    border-color: #fff;
}

.btn-hero-secondary:hover {
    background: #fff;
    color: var(--blue);
}

.hero-donate-cta {
    display: block;
    width: 100%;
    text-decoration: none;
    text-align: center;
    transform: skewX(-8deg);
    background: linear-gradient(135deg, #ff6b35 0%, #ff4500 100%);
    padding: 1.1rem 2.5rem;
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(255, 69, 0, 0.45);
    transition: all 0.3s ease;
}

.hero-donate-cta-inner {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transform: skewX(8deg);
    color: #fff;
    font-family: var(--font-head);
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.hero-donate-cta:hover {
    transform: skewX(-8deg) translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 69, 0, 0.55);
    background: linear-gradient(135deg, #ff4500 0%, #e03e00 100%);
    color: #fff;
}

.hero-donate-cta:hover .hero-donate-cta-inner .fa-chevron-right {
    transform: translateX(4px);
    transition: transform 0.3s ease;
}

.hero-donate-cta-inner .fa-chevron-right {
    transition: transform 0.3s ease;
}

.hero-image {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.2));
    animation: heartbeat-intro 3s ease-in-out 0.5s forwards, breathe 4s ease-in-out 3.5s infinite;
}

@keyframes heartbeat-intro {
    /* Beat 1: lub-dub */
    0%   { transform: scale(1); }
    6%   { transform: scale(1.06); }
    12%  { transform: scale(1); }
    18%  { transform: scale(1.06); }
    24%  { transform: scale(1); }
    /* pause */
    50%  { transform: scale(1); }
    /* Beat 2: lub-dub */
    56%  { transform: scale(1.06); }
    62%  { transform: scale(1); }
    68%  { transform: scale(1.06); }
    74%  { transform: scale(1); }
    100% { transform: scale(1); }
}

@keyframes breathe {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.03); }
}

@media (max-width: 991px) {
    .hero-banner {
        padding: 24px;
    }

    .hero-title {
        font-size: 2.5rem;
        text-align: center;
    }

    .hero-subtitle {
        font-size: 1.25rem;
        text-align: center;
    }

    /* Hide Community Support Bank badge on mobile */
    .hero-badge {
        display: none;
    }
}

/* ===================================
   DEFINITION SECTION
   =================================== */
.definition-section {
    padding: 80px 0;
    background: #fff;
}

.definition-card {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    padding: 3rem;
    background: linear-gradient(135deg, var(--cream) 0%, #fff 100%);
    border-radius: 20px;
    border-left: 6px solid var(--blue);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.definition-left {
    border-right: 2px solid var(--aqua);
    padding-right: 2rem;
}

.word {
    font-family: var(--font-head);
    font-size: 3rem;
    font-weight: 700;
    color: var(--blue);
    margin-bottom: 0.5rem;
}

.phonetic {
    font-size: 1.25rem;
    color: var(--green);
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.origin {
    font-size: 1rem;
    color: #888;
    font-style: italic;
}

.part-of-speech {
    font-style: italic;
    color: var(--orange);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.meanings {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.meaning-item {
    display: flex;
    gap: 1rem;
}

.meaning-item .number {
    flex-shrink: 0;
    width: 35px;
    height: 35px;
    background: var(--blue);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-family: var(--font-head);
}

.meaning-item strong {
    color: var(--dark);
    font-size: 1.2rem;
    display: block;
    margin-bottom: 0.25rem;
}

.meaning-item p {
    color: #666;
    margin: 0;
}

/* Need Help or Support - card (homepage) and banner (referral Start). Layout via Bootstrap; only brand + hover here. */
.need-help-card {
    min-height: 100%;
    background: linear-gradient(135deg, var(--blue) 0%, #007bb5 100%);
    border-radius: 20px;
    border-left: 6px solid var(--green);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    font-family: var(--font-head);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    overflow: hidden;
}

.need-help-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.06) 0%, transparent 40%);
    pointer-events: none;
}

.need-help-card:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 14px 48px rgba(0, 159, 227, 0.25);
}

.need-help-arrow {
    transition: transform 0.2s ease;
}

.need-help-card:hover .need-help-arrow {
    transform: translateX(4px);
}

.need-help-banner {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--blue) 0%, #007bb5 100%);
    border-left: 6px solid var(--green);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    font-family: var(--font-head);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.need-help-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 10% 50%, rgba(255, 255, 255, 0.08) 0%, transparent 45%),
                radial-gradient(circle at 90% 50%, rgba(255, 255, 255, 0.06) 0%, transparent 40%);
    pointer-events: none;
}

.need-help-banner:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 159, 227, 0.22);
}

.need-help-banner > * {
    position: relative;
    z-index: 1;
}

.need-help-banner-arrow {
    transition: transform 0.2s ease;
}

.need-help-banner:hover .need-help-banner-arrow {
    transform: translateX(4px);
}

@media (max-width: 768px) {
    .need-help-card {
        padding: 2rem 1rem !important;
        min-height: 140px;
    }

    .definition-card {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        /* Reduced gap */
        padding: 1.5rem 1.5rem;
        /* Reduced padding (top/bottom, left/right) */
    }

    .definition-left {
        border-right: none;
        border-bottom: 2px solid var(--aqua);
        padding-right: 0;
        padding-bottom: 1rem;
        /* Increased bottom padding above line */
        margin-bottom: 0.25rem;
        /* Further reduced margin below line */

        /* Grid layout for header */
        display: grid;
        grid-template-columns: 1fr 1fr;
        /* 50/50 Split */
        align-items: center;
        column-gap: 1rem;
        row-gap: 0;
    }

    /* Word in first column, spanning two rows if needed or just centered */
    .word {
        font-size: 2rem;
        margin-top: 0;
        margin-bottom: 0;
        grid-row: 1 / 3;
        /* Span two rows to sit next to phonetic and origin */
        line-height: 1;
    }

    /* Phonetic and Origin in second column */
    .phonetic,
    .origin {
        grid-column: 2;
        margin: 0;
        line-height: 1.2;
    }

    .phonetic {
        align-self: end;
    }

    .origin {
        align-self: start;
    }
}

/* ===================================
   STATS BANNER
   =================================== */
.stats-banner {
    background: linear-gradient(135deg, var(--green) 0%, var(--lime) 100%);
    padding: 60px 0;
}

.stat-item {
    padding: 1.5rem;
}

.stat-item i {
    color: rgba(255, 255, 255, 0.9);
}

.stat-item h3 {
    font-family: var(--font-head);
    font-size: 2.5rem;
    font-weight: 700;
    margin: 1rem 0 0.5rem;
}

.stat-item p {
    font-size: 1.1rem;
    margin: 0;
    opacity: 0.95;
}

/* Force stats items to be in a row (3 columns) on mobile */
@media (max-width: 767px) {
    .stats-banner .row {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
    }

    .stats-banner .col-md-4 {
        width: 33.333%;
        /* Force 1/3 width */
        padding: 0 5px;
        /* Reduce padding slightly */
    }

    .stat-item {
        padding: 0.5rem;
        /* Reduce internal padding */
    }

    .stat-item i {
        font-size: 2rem !important;
        /* Smaller icon */
        margin-bottom: 0.5rem !important;
    }

    .stat-item h3 {
        font-size: 1.5rem !important;
        /* Smaller number */
    }

    .stat-item p {
        font-size: 0.8rem !important;
        /* Smaller text */
    }
}

/* ===================================
   SERVICES SECTION
   =================================== */
.services-section {
    padding: 80px 0;
    background: var(--bg-grey);
}

.section-header {
    margin-bottom: 3rem;
}

.section-header h2 {
    font-family: var(--font-head);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.service-card {
    background: #fff;
    border-radius: 20px;
    padding: 2.5rem;
    /*    height: 100%;*/
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.service-card-no-hover {
    transition: box-shadow 0.3s ease;
}

.service-card-no-hover:hover {
    transform: none;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.service-food {
    border-left-color: var(--orange);
}

.service-food .service-icon {
    background: linear-gradient(135deg, var(--orange) 0%, #ff9f3d 100%);
}

.service-hygiene {
    border-left-color: var(--green);
}

.service-hygiene .service-icon {
    background: linear-gradient(135deg, var(--green) 0%, var(--lime) 100%);
}

.service-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.service-icon i {
    font-size: 2.5rem;
    color: #fff;
}

.service-content h3 {
    font-family: var(--font-head);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 1rem;
}

.service-content p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.service-list {
    list-style: none;
    padding: 0;
}

.service-list li {
    padding: 0.5rem 0;
    padding-left: 2rem;
    position: relative;
    position: relative;
    color: #555;
}

.service-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--green);
    font-weight: 700;
    font-size: 1.2rem;
}


/* ===================================
   CTA SECTION
   =================================== */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--blue) 0%, var(--aqua) 100%);
}

.cta-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.cta-card-inline {
    transition: all 0.3s ease;
    cursor: pointer;
}

.cta-card-inline:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
}

.cta-title {
    font-family: var(--font-head);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--blue);
    margin-bottom: 1rem;
}

.cta-text {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 1rem;
    line-height: 1.7;
}

.cta-note {
    font-size: 1rem;
    color: #666;
    font-style: italic;
}

.btn-cta {
    display: inline-block;
    background: var(--orange);
    color: #fff;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
}

.btn-cta:hover {
    background: #e68919;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(247, 147, 30, 0.4);
    color: #fff;
}

.btn-cta-blue {
    display: inline-block;
    background: var(--blue);
    color: #fff;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
}

.btn-cta-blue:hover {
    background: #007bb5;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 159, 227, 0.4);
    color: #fff;
}

.btn-cta-outline {
    display: inline-block;
    background: transparent;
    color: var(--orange);
    border: 2px solid var(--orange);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-cta-outline:hover {
    background: var(--orange);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(247, 147, 30, 0.4);
}

.contact-info {
    font-size: 0.95rem;
    color: #555;
}

.contact-info i {
    color: var(--blue);
}

/* ===================================
   DONATE SECTION
   =================================== */
.donate-section {
    padding: 80px 0;
    background: #fff;
}

.donate-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.donate-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.donate-header {
    padding: 2rem;
    text-align: center;
    color: #fff;
}

.donate-food .donate-header {
    background: linear-gradient(135deg, var(--blue) 0%, var(--aqua) 100%);
}

.donate-hygiene .donate-header {
    background: linear-gradient(135deg, var(--green) 0%, var(--lime) 100%);
}

.donate-money .donate-header {
    background: linear-gradient(135deg, var(--orange) 0%, #ff9f3d 100%);
}

.donate-stripe .donate-header {
    background: linear-gradient(135deg, var(--blue) 0%, var(--aqua) 100%);
}

.donate-header i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.donate-header h3 {
    font-family: var(--font-head);
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0;
}

.donate-body {
    padding: 2rem;
    flex-grow: 1;
}

.donate-body p {
    color: #666;
    margin-bottom: 1.5rem;
}

.donate-card-cta-wrap {
    padding: 1.25rem 1.5rem;
    margin-top: auto;
    text-align: center;
}

.donate-card-cta-wrap .hero-donate-cta {
    font-size: 0.95rem;
    padding: 0.75rem 1.5rem;
}

.donate-card-cta-wrap .hero-donate-cta-inner {
    font-size: 0.95rem;
}

.cta-card .donate-card-cta-wrap {
    padding: 0;
    margin-top: 1.5rem;
}

.cta-card .donate-card-cta-wrap .hero-donate-cta {
    display: block;
    width: 100%;
}

.donate-list {
    list-style: none;
    padding: 0;
}

.donate-list li {
    padding: 0.5rem 0;
    padding-left: 2rem;
    position: relative;
    color: #555;
}

.donate-list li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--green);
    font-size: 1.5rem;
    line-height: 1;
}

.bank-details {
    background: var(--cream);
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid var(--orange);
}

.bank-details p {
    margin: 0.5rem 0;
    color: var(--dark);
}

/* ===================================
   ABOUT SECTION
   =================================== */
.about-section {
    padding: 80px 0;
    background: var(--cream);
}

.about-card {
    background: #fff;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.about-card h2 {
    font-family: var(--font-head);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--blue);
}

.about-card .lead {
    font-size: 1.25rem;
    color: #555;
}

.about-point i {
    color: var(--green);
}

.about-point h4 {
    font-family: var(--font-head);
    font-weight: 600;
    color: var(--dark);
    margin: 1rem 0;
}

.about-point p {
    color: #666;
    font-size: 0.95rem;
}

/* ===================================
   FOOTER
   =================================== */
footer {
    font-family: var(--font-body);
    text-align: center;
    background: var(--dark);
    color: #fff;
    width: 100%;
}

.footer-inner {
    width: 100%;
    padding: 0;
}

.footer-top {
    padding: 2.5rem 2rem;
}

.footer-top h6 {
    font-family: var(--font-head);
    font-weight: 600;
    color: var(--aqua);
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.footer-top p {
    color: rgba(255, 255, 255, 0.9);
}

.footer-top a {
    color: var(--aqua);
}

.footer-top a:hover {
    color: var(--blue);
}

.footer-social-row {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-social-icon {
    width: 16px;
    height: 16px;
    stroke-width: 2;
    vertical-align: middle;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 2rem;
}

.footer-bottom p {
    margin: 0;
    opacity: 0.7;
    font-size: 0.9rem;
}

@media (max-width: 991px) {

    .footer-top,
    .footer-bottom {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* ===================================
   RESPONSIVE ADJUSTMENTS
   =================================== */
@media (max-width: 991px) {
    .section-header h2 {
        font-size: 2rem;
    }

    .services-section,
    .donate-section,
    .about-section,
    .cta-section {
        padding: 60px 0;
    }
}

@media (max-width: 767px) {
    html {
        font-size: 75%;
        /* Reduce base font size by 25% */
    }

    .definition-section,
    .services-section,
    .donate-section,
    .about-section,
    .cta-section,
    .updates-section,
    .stats-banner,
    .definition-section,
    .services-section,
    .donate-section,
    .about-section,
    .cta-section,
    .updates-section,
    .stats-banner,
    .hero-carousel-section {
        padding: 32px 0;
    }

    /* Reduced gap between Definition and Updates sections */
    .definition-section {
        padding-bottom: 0.5rem;
        /* Tight bottom padding */
    }

    .updates-section {
        padding-top: 2.5rem !important;
        /* Adjusted padding for separation */
        margin-top: 0 !important;
    }

    /* Reduce gap in section headers */
    .section-header {
        margin-bottom: 1.5rem;
    }

    .section-header h2 {
        margin-bottom: 0.25rem;
    }

    .section-header p {
        margin-bottom: 0;
    }

    .hero-buttons {
        flex-direction: row;
        /* Keep side by side */
        gap: 0.5rem;
    }

    .btn-hero {
        width: calc(50% - 0.25rem);
        /* 50% minus half the gap */
        text-align: center;
        padding: 1rem 0.5rem;
        /* Reduce side padding to fit */
        font-size: 1rem;
    }

    .cta-card {
        padding: 2rem;
    }

    .cta-title {
        font-size: 2rem;
    }
}

/* Small screen navbar fix */
@media (max-width: 575.98px) {
    .navbar-brand {
        font-size: 1rem !important;
    }

    .navbar-brand img {
        height: 40px;
    }
}

#siteHeader {
    width: 100%;
    background-color: #fff;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

#siteHeader .navbar {
    /* max-width: 1200px; */
    margin: 0 auto;
    padding: 1rem 1.5rem;
}

/* Full-width footer styling */
footer {
    width: 100%;
    background-color: #1f2937;
    color: #fff;
    margin-top: auto;
}

footer .footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

/* Main content container */
#content {
    min-height: calc(100vh - 200px);
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ===================================
   POLICY PAGES - INLINE ICONS
   =================================== */

.service-icon-inline {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.service-icon-inline i {
    font-size: 1.75rem;
    color: #fff;
}

/* Icon gradient colours per section type */
.service-icon-inline.icon-blue {
    background: linear-gradient(135deg, var(--blue) 0%, var(--aqua) 100%);
}

.service-icon-inline.icon-green {
    background: linear-gradient(135deg, var(--green) 0%, var(--lime) 100%);
}

.service-icon-inline.icon-orange {
    background: linear-gradient(135deg, var(--orange) 0%, #ff9f3d 100%);
}

/* ===================================
   HERO CAROUSEL
   =================================== */
.hero-carousel-section {
    margin-top: 70px;
}

.hero-slide {
    position: relative;
    min-height: 500px;
    background: linear-gradient(135deg, var(--blue) 0%, var(--green) 100%);
}

.hero-slide-main {
    padding: 120px 0 80px;
}

.hero-slide-facebook {
    padding: 100px 0 80px;
}

.hero-slide .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120"><path d="M0,60 C300,90 900,30 1200,60 L1200,0 L0,0 Z" fill="rgba(255,255,255,0.05)"/></svg>');
    background-size: cover;
    opacity: 0.3;
    z-index: 1;
}

.hero-slide .hero-content {
    position: relative;
    z-index: 3;
}

/* Facebook post background image */
.fb-post-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.25;
    z-index: 0;
}

.fb-post-message {
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.fb-post-date {
    font-size: 1rem;
    opacity: 0.85;
    margin-bottom: 2rem;
}

.btn-hero-facebook {
    background: #1877f2;
    color: #fff;
    border: 2px solid #1877f2;
}

.btn-hero-facebook:hover {
    background: #166fe5;
    border-color: #166fe5;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(24, 119, 242, 0.4);
    color: #fff;
}

/* Carousel Controls Styling */
#heroCarousel .carousel-control-prev,
#heroCarousel .carousel-control-next {
    width: 60px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

#heroCarousel .carousel-control-prev:hover,
#heroCarousel .carousel-control-next:hover {
    opacity: 1;
}

#heroCarousel .carousel-control-prev-icon,
#heroCarousel .carousel-control-next-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(0, 0, 0, 0.4);
    border-radius: 50%;
    background-size: 50%;
}

#heroCarousel .carousel-indicators {
    margin-bottom: 20px;
}

#heroCarousel .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 5px;
    background-color: rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

#heroCarousel .carousel-indicators button.active {
    background-color: #fff;
    transform: scale(1.2);
}

/* Smooth slide transition */
#heroCarousel .carousel-item {
    transition: transform 0.8s ease-in-out;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .hero-slide {
        min-height: 450px;
    }

    .hero-slide-main {
        padding: 100px 0 60px;
    }

    .hero-slide-facebook {
        padding: 80px 0 60px;
    }

    .fb-post-message {
        font-size: 1.25rem;
    }
}

@media (max-width: 767px) {
    .hero-slide {
        min-height: auto;
    }

    .hero-slide-main {
        padding: 24px;
    }

    .fb-post-message {
        font-size: 1.1rem;
    }

    #heroCarousel .carousel-control-prev,
    #heroCarousel .carousel-control-next {
        width: 40px;
    }

    #heroCarousel .carousel-control-prev-icon,
    #heroCarousel .carousel-control-next-icon {
        width: 30px;
        height: 30px;
    }
}

/* ===================================
   COMMUNITY UPDATES (MAGAZINE LAYOUT)
   =================================== */
.updates-section {
    padding: 80px 0;
    background: #fff;
}

.magazine-layout {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
    background: #fff;
    padding: 2rem;
    border-radius: 24px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    /* Premium shadow */
    border: 1px solid rgba(0, 0, 0, 0.02);
}

/* --- Featured Post --- */
.featured-post-wrapper {
    height: 100%;
    min-height: 450px;
}

.featured-post {
    position: relative;
    height: 550px;
    /* Enforce stable fixed size */
    width: 100%;
    background: #000;
    /* Fallback */
    overflow: hidden;
    color: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
}

.featured-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #0d0d0d;
    /* Solid dark background */
    z-index: 0;
}

.featured-img-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 20px 140px 20px;
    /* Padding bottom to clear text area */
}

.featured-main-img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
    border-radius: 4px;
}

.featured-post:hover .featured-bg {
    transform: scale(1.05);
    /* Gentle zoom on background only */
}

/* Ensure foreground doesn't zoom */
.featured-post:hover .featured-main-img {
    transform: none;
}

.featured-content {
    position: relative;
    z-index: 2;
    padding: 2.5rem;
    padding-top: 4rem;
    /* Ensure gradient covers enough */
    margin-top: auto;
    /* Push to bottom */
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.9) 30%, rgba(0, 0, 0, 1) 100%);
}

.featured-badge {
    background: var(--orange);
    color: white;
    padding: 6px 14px;
    border-radius: 6px;
    align-self: flex-start;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(247, 147, 30, 0.4);
}

.featured-title {
    font-family: var(--font-head);
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.75rem;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.featured-meta {
    font-size: 0.95rem;
    opacity: 0.9;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
}

.read-more-btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    color: white;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
    align-self: flex-start;
}

.read-more-btn:hover {
    background: #fff;
    color: var(--blue);
    transform: translateY(-2px);
}

/* --- Responsive Split Layout for Portrait Images --- */
@media (min-width: 992px) {
    .featured-post.layout-portrait {
        flex-direction: row;
        /* align-items: stretch; (Default) - Ensures full height columns */
    }

    .featured-post.layout-portrait .featured-img-container {
        position: relative;
        width: 65%;
        /* Maximize width to allow wider portraits/squares to grow */
        padding: 15px;
        /* Trebled padding (5px * 3) */
        background: #000;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .featured-post.layout-portrait .featured-main-img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        object-position: left center;
        /* Align image content to the left */
        border-radius: 8px;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    }

    .featured-post.layout-portrait .featured-content {
        position: relative;
        width: 35%;
        /* Narrower text column */
        height: 100%;
        padding: 1.5rem;
        /* Compact padding */
        background: transparent;
        justify-content: center;
        align-items: flex-start;
        text-align: left;
    }

    .featured-post.layout-portrait .featured-title {
        font-size: 1.35rem;
        /* Slightly smaller text for narrower col */
    }
}

.cycle-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    border: none;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.cycle-btn:hover {
    background: #fff;
    color: var(--blue);
    transform: rotate(180deg);
}

/* --- Side List --- */
.side-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    justify-content: center;
}

.side-item {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    border-radius: 16px;
    background: #f9f9fa;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.side-item:hover {
    background: #fff;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
    transform: translateX(5px);
    border-color: rgba(0, 0, 0, 0.05);
}

.side-img-wrapper {
    width: 110px;
    height: 110px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
}

.side-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.side-img-placeholder {
    width: 100%;
    height: 100%;
    background: #eef1f4;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 1.5rem;
}

.side-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.side-date {
    color: var(--blue);
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 0.4rem;
    text-transform: uppercase;
}

.side-text {
    font-size: 1rem;
    line-height: 1.5;
    color: var(--dark);
    margin-bottom: 0.5rem;
    font-weight: 500;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.side-link {
    font-size: 0.9rem;
    color: #888;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.side-link:hover {
    color: var(--orange);
}

@media (max-width: 991px) {
    .magazine-layout {
        grid-template-columns: 1fr;
        padding: 1.5rem;
        gap: 2rem;
    }

    .featured-post-wrapper {
        min-height: 350px;
    }

    .featured-post {
        height: 400px;
        /* Reduced from 550px */
    }

    .side-list {
        display: grid;
        grid-template-columns: 1fr 1fr;
        /* 2 columns side by side */
        gap: 1rem;
    }

    .side-item {
        padding: 1rem;
        flex-direction: column;
        /* Stack image and text vertically inside item */
        gap: 0.75rem;
    }

    .side-img-wrapper {
        width: 100%;
        /* Full width image container */
        height: 120px;
        /* Fixed height for consistency */
    }

    .side-content {
        justify-content: flex-start;
    }
}

/* Adjust donate cards for 50/50 mobile layout styling */
@media (max-width: 767px) {
    .donate-header {
        padding: 1.25rem 0.5rem;
    }
    .donate-header i {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }
    .donate-header h3 {
        font-size: 1.15rem;
    }
    .donate-body {
        padding: 1rem 0.75rem;
    }
    .donate-body p {
        font-size: 0.85rem;
        margin-bottom: 1rem;
        line-height: 1.4;
    }
    .donate-list li {
        font-size: 0.8rem;
        padding: 0.35rem 0 0.35rem 1.25rem;
        line-height: 1.3;
    }
    .donate-list li:before {
        font-size: 1.2rem;
        top: 0.3rem;
    }
}