body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    color: #1f2937;
}

/* (removed unused commented hero background) */

.card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 0.75rem 1.25rem rgba(0, 0, 0, 0.08);
}

section {
    scroll-margin-top: 78px;
}
.footer-thank {
    margin-top: 3rem;
}

.topbar-link,
.topbar-text{
    display:flex;
    align-items:center;
    color:#555;
    text-decoration:none;
    font-weight:500;
}

.topbar-link:hover{
    color:#198754;
}

.icon-circle{
    width:44px;
    height:44px;
    border-radius:50%;
    background:#e9f7ef;
    color:#198754;
    display:flex;
    align-items:center;
    justify-content:center;
    margin-right:10px;
    transition:.3s;
}

.topbar-link:hover .icon-circle{
    background:#198754;
    color:#fff;
}

.social-icons{
    display:flex;
    gap:10px;
}

.social-icons a{
    width:36px;
    height:36px;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    background:#f5f5f5;
    color:#198754;
    text-decoration:none;
    transition:.3s;
}

.social-icons a:hover{
    background:#198754;
    color:#fff;
    transform:translateY(-2px);
}

/* Legacy `.btn-success` box-shadow removed; primary styling now handled by `.c-btn--primary` */

@media(max-width:991px){

    .social-icons{
        margin-bottom:10px;
    }

}
/* ── About page ────────────────────────────────────────────────── */
.about-hero {
    min-height: 38vh;
    background: linear-gradient(120deg, rgba(22, 163, 74, 0.92), rgba(5, 150, 105, 0.9)),
        url("https://images.unsplash.com/photo-1526976668912-1a811878dd37?auto=format&fit=crop&w=1600&q=80") center/cover no-repeat;
}

.timeline-item .timeline-year {
    min-width: 80px;
}

.timeline-item:last-child .timeline-body {
    border-bottom: none !important;
}


/* ===== Gallery styles ===== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}
.gallery-item { overflow: hidden; border-radius: 8px; }
.gallery-item img { width: 100%; height: 220px; object-fit: cover; display: block; transition: transform .35s ease; }
.gallery-item:hover img { transform: scale(1.06); }
@media (max-width: 991px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } .gallery-item img { height: 160px; } }
@media (max-width: 575px) { .gallery-grid { grid-template-columns: 1fr; } .gallery-item img { height: 220px; } }

/* ===== Lightbox modal image sizing ===== */
.gallery-modal-img { max-width: 95%; max-height: 80vh; display: block; margin: 0 auto; }
.gallery-modal .modal-dialog { max-width: 90%; }
.gallery-modal .modal-body { text-align: center; }

/* Reusable hero overlay for other hero sections (about/contact/register pages) */
.about-hero, .contact-hero { position: relative; }
.about-hero::after, .contact-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.35);
    z-index: 1;
}
.about-hero .container-fluid, .contact-hero .container-fluid { position: relative; z-index: 2; }

/* ===== Mobile / small-screen tweaks ===== */
@media (max-width: 767px) {
    /* Reduce tall hero areas so content is visible without excessive scrolling */
    .about-hero, .contact-hero { min-height: 40vh; }

    /* Make navbar items more compact */
    .navbar-brand { font-size: 1rem; }
    .navbar-nav .nav-link { padding: 0.35rem 0.5rem; font-size: 0.95rem; }

    /* Ensure hero content stacks and cards fit
    .home-slide-content { padding: 1.25rem; }
    .hero-card { padding: 0.8rem; } */

    /* Timeline compacting */
    .timeline-item .timeline-year { min-width: 56px; font-size: 0.9rem; }

    /* Forms and container-fluids use full width on small screens */
    .container-fluid, .container-fluid { padding-left: 1rem; padding-right: 1rem; }

    /* Images should be fluid */
    img { max-width: 100%; height: auto; }

    /* Footer spacing */
    footer { padding-top: 1.25rem; padding-bottom: 1.25rem; }
}

/* Slight typography scaling for very small devices */
@media (max-width: 400px) {
    body { font-size: 14px; }
    .navbar-brand { font-size: 0.95rem; }
}

/* ===== Footer styles ===== */
.site-footer {
    background: linear-gradient(180deg,#071427 0%, #071a2a 100%);
    color: #cbd5e1;
}
.site-footer a { color: #cbd5e1; text-decoration: none; }
.site-footer a:hover { color: #ffffff; text-decoration: underline; }
.site-footer .footer-columns { gap: 2rem; }
.site-footer .footer-col { flex: 1 1 200px; min-width: 160px; }
.site-footer .footer-brand { color: #fff; text-decoration: none; }
.site-footer .social-links a { color: #9ca3af; display: inline-flex; align-items: center; }
.site-footer .social-links a:hover { color: #fff; }
.site-footer hr { border-color: rgba(255,255,255,0.06); }

@media (max-width: 575px) {
    .site-footer .footer-columns { flex-direction: column; gap: 1rem; }
    .site-footer .d-flex.justify-content-between { flex-direction: column; gap: .5rem; align-items: flex-start; }
}

/* ===== Impact / Stats cards ===== */
.impact-stats { margin-top: .25rem; }
.stat-card { transition: transform 220ms ease, box-shadow 220ms ease; }
.stat-card:hover { transform: translateY(-6px); box-shadow: 0 1rem 1.5rem rgba(2,6,23,0.06); }
.stat-icon { width: 56px; height: 56px; font-size: 1.05rem; }
.stat-value { font-variant-numeric: tabular-nums; }
.stat-label { color: #6b7280; }

@media (max-width: 575px) {
    .stat-icon { width: 48px; height: 48px; }
    .stat-card { padding: 1rem; }
}

/* ===== Programs (cards) ===== */
.program-grid { margin-top: 0.5rem; }
.program-card { transition: transform 260ms ease, box-shadow 260ms ease, opacity 420ms ease; opacity: 0; transform: translateY(12px); }
.program-card.visible { opacity: 1; transform: translateY(0); }
.program-card:hover { transform: translateY(-6px); box-shadow: 0 1.2rem 1.8rem rgba(2,6,23,0.06); }
.program-icon { width: 52px; height: 52px; font-size: 1.05rem; }
.program-cta { border-radius: 999px; padding-left: 1rem; padding-right: 1rem; }
.program-card .h6 { font-weight: 600; }

@media (max-width: 575px) {
    .program-icon { width: 44px; height: 44px; }
}

/* Program media (images) */
.program-media img { width: 100%; height: 140px; object-fit: cover; display: block; border-radius: 8px; }
@media (min-width: 992px) { .program-media img { height: 140px; } }
@media (max-width: 575px) { .program-media img { height: 120px; } }

/* Category badge styles */
.program-badge { display: inline-block; font-weight: 600; letter-spacing: .2px; }
.program-badge.cat-education { background: linear-gradient(90deg,#16a34a,#059669); }
.program-badge.cat-health    { background: linear-gradient(90deg,#0ea5a4,#0284c7); }
.program-badge.cat-women     { background: linear-gradient(90deg,#7c3aed,#6d28d9); }
.program-badge.cat-livelihood{ background: linear-gradient(90deg,#f97316,#fb923c); }
.program-badge.cat-program   { background: #6b7280; }

/* ===== Navbar visibility improvements ===== */
.navbar, .bg-contact { background-color: #16a34a !important; }
.navbar .nav-link {
    color: rgba(255,255,255,0.95) !important;
    font-size: large;
    text-transform: uppercase;
    font-weight: 600;
    padding: 0.45rem 0.75rem;
    transition: background-color .15s ease, color .15s ease, transform .08s ease;
}
.navbar .nav-link:hover,
.navbar .nav-link:focus {
    color: #ffffff !important;
    background-color: rgba(255,255,255,0.06);
    border-radius: 6px;
    transform: translateY(-1px);
}
.navbar .nav-link.active, .navbar .nav-link[aria-current="page"] {
    background-color: rgba(255,255,255,0.95) !important;
    color: #fff !important;
}
.navbar-toggler { border-color: rgba(255,255,255,0.18); }
.navbar-toggler .navbar-toggler-icon { filter: invert(1) brightness(2); }

.hero-section, .about-hero, .contact-hero { position: relative; }
.hero-section::after, .about-hero::after, .contact-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.35);
    z-index: 1;
}

.hero-section .container-fluid { position: relative; z-index: 2; }

/* Ensure the row stretches to the height of its tallest column (the hero) */
.hero-section .row { align-items: stretch; }

/* Ensure the right column behaves as a column-flex container-fluid so the inner carousel can grow */
.hero-section .col-lg-4 { display: flex; flex-direction: column; }

/* ===== Full-width hero + equal-height carousel images ===== */
/* Set a reduced base height for the hero area (requested: 50vh) */
.hero-carousel { height: 72vh; min-height: 300px; }
.hero-carousel .carousel-inner, .hero-carousel .carousel-item { height: 100%; }
.hero-carousel-img { height: 100%; width: 100%; object-fit: cover; display: block; }

/* Ensure carousel-item can contain absolutely positioned overlays */
.hero-carousel .carousel-item { position: relative; }

/* Right-hand caption carousel: use absolute pixel heights (responsive below) */
.hero-carousel-right { /* allow the right carousel to grow to match left column via flex */
    flex: 1 1 auto;
    min-height: 180px; /* fallback minimum */
}
.hero-carousel-right .carousel-inner, .hero-carousel-right .carousel-item { height: 100%; }
.hero-carousel-right-img { height: 100%; width: 100%; object-fit: cover; display: block; }

/* Ensure carousel-item can contain absolutely positioned overlays */
.hero-carousel-right .carousel-item { position: relative; }

/* ===== Fade-up animation (previously in carousel-fade.css) ===== */
@keyframes jsct-fadeUp {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Target the two hero carousels used on the homepage */
.hero-carousel .carousel-item,
.hero-carousel-right .carousel-item {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity .6s ease, transform .6s ease;
    visibility: hidden;
}

.hero-carousel .carousel-item.active,
.hero-carousel-right .carousel-item.active {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
    animation: jsct-fadeUp .6s ease both;
}

/* Preserve layout height and avoid interference with Bootstrap slide transforms */
.hero-carousel .carousel-inner,
.hero-carousel-right .carousel-inner {
    position: relative;
}

.hero-carousel .carousel-item,
.hero-carousel-right .carousel-item {
    backface-visibility: hidden;
}

/* Override Bootstrap slide transform classes for these specific carousels */
.hero-carousel .carousel-item-next,
.hero-carousel .carousel-item-prev,
.hero-carousel .carousel-item-left,
.hero-carousel .carousel-item-right,
.hero-carousel-right .carousel-item-next,
.hero-carousel-right .carousel-item-prev,
.hero-carousel-right .carousel-item-left,
.hero-carousel-right .carousel-item-right {
    transform: none !important;
    left: 0 !important;
}

/* Ensure images keep their natural sizing */
.hero-carousel-img { width: 100%; height: auto; }

/* Bottom text overlay for carousels */
.carousel-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 200px;
    z-index: 3;
    pointer-events: auto;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding: 0.75rem; /* small outer padding */
}
.carousel-overlay::before {
    /* subtle gradient to improve text contrast */
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.45) 60%, rgba(0,0,0,0.6) 100%);
    z-index: 0;
    border-bottom-left-radius: 0.25rem;
    border-bottom-right-radius: 0.25rem;
}
.carousel-overlay-inner {
    position: relative;
    z-index: 4; /* above the gradient */
    width: 100%;
    max-width: 960px;
    color: #fff;
    padding: 0.75rem 1rem;
}
.carousel-overlay-inner h3 { margin: 0 0 0.25rem 0; font-weight: 600; }
.carousel-overlay-inner p { margin: 0 0 0.5rem 0; color: rgba(255,255,255,0.92); }
.carousel-overlay-inner .btn { box-shadow: 0 6px 18px rgba(2,6,23,0.12); }

@media (max-width: 767.98px) {
    .carousel-overlay-inner { padding-left: 0.75rem; padding-right: 0.75rem; }
    .carousel-overlay-inner h3 { font-size: 1rem; }
}

/* ===== Receipt / PDF styling ===== */
.printable-receipt { background: #fff; color: #0b1220; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; position: relative; padding: 18px; }
.printable-receipt .org-name { font-size: 1.25rem; font-weight: 700; color: #0b1220; }
.printable-receipt .org-address { font-size: 0.92rem; color: #4b5563; }
.printable-receipt .membership-id { font-weight:700; color:#0b1220; }
.printable-receipt table { width:100%; border-collapse: collapse; margin-top:10px; }
.printable-receipt td { padding: 8px 6px; border-bottom: 1px solid #eef2f6; vertical-align: top; }
.printable-receipt .label { width:35%; font-weight:600; color:#111827; }
.printable-receipt .muted { color:#6b7280; font-size:0.9rem; }

/* Watermark styling (used in printable HTML and modal) */
.receipt-watermark, .modal-watermark { position:absolute; left:50%; top:50%; opacity:0.06; width:320px; pointer-events:none; transform:translate(-50%, -50%) }

/* Mobile-optimized PDF receipt styling */
@media (max-width: 768px) {
    .printable-receipt { 
        padding: 12px; 
        font-size: 13px; 
    }
    .printable-receipt .org-name { 
        font-size: 1.1rem; 
        font-weight: 700; 
        margin-bottom: 4px;
    }
    .printable-receipt .org-address { 
        font-size: 0.85rem; 
        line-height: 1.4;
    }
    .printable-receipt table { 
        margin-top: 8px; 
        font-size: 13px;
    }
    .printable-receipt td { 
        padding: 5px 4px; 
    }
    .printable-receipt .label { 
        width: 40%; 
        font-weight: 600;
    }
    
    /* Improve button spacing on mobile */
    .btn-download-pdf-js, 
    .c-btn.btn-download-pdf-js {
        display: inline-block;
        min-width: 120px;
        padding: 8px 12px;
        font-size: 13px;
        touch-action: manipulation;
    }
    
    /* Receipt modal optimizations */
    #receipt-modal { 
        padding: 12px !important;
    }
    .modal-receipt { 
        max-width: 100%;
        padding: 12px !important;
        border: 1px solid #e5e7eb;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .printable-receipt { 
        padding: 10px; 
        font-size: 12px;
    }
    .printable-receipt .org-name { 
        font-size: 1rem; 
    }
    .printable-receipt .org-address { 
        font-size: 0.8rem; 
    }
    .printable-receipt table { 
        font-size: 12px;
    }
    .printable-receipt td { 
        padding: 4px 3px; 
    }
    .btn-download-pdf-js, 
    .c-btn.btn-download-pdf-js {
        font-size: 12px;
        padding: 6px 10px;
    }
}

/* ==== Thanks/Receipt page: mobile-specific responsive tweaks ==== */
@media (max-width: 767.98px) {
    /* Stack card-header contents vertically on small screens */
    .card-header.d-flex {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: .5rem;
    }

    /* Make action buttons easy to tap on phones */
    .download-official-generate, .download-official-link, #download-receipt-btn, #download-official-btn {
        display: block !important;
        width: 100% !important;
        box-sizing: border-box;
        margin-bottom: .5rem !important;
    }

    /* Ensure the printable receipt table stacks labels above values */
    .printable-receipt table, .printable-receipt tbody, .printable-receipt tr { display: block; width: 100%; }
    .printable-receipt tr { margin-bottom: .5rem; padding-bottom: .25rem; border-bottom: 1px solid #eef2f6; }
    .printable-receipt td { display: block; width: 100%; padding: 6px 0; border: none; }
    .printable-receipt td:first-child { font-weight:600; color:#111827; }
}

@media (max-width: 420px) {
    .printable-receipt { padding: 12px; }
    .org-name { font-size: 1.05rem; }
}

/* Additional tweaks for the thanks/receipt content on small screens */
@media (max-width: 767.98px) {
    /* Stack the printable header (logo + meta) */
    .printable-receipt .d-flex.justify-content-between {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: .5rem;
    }

    /* Make the logo and org text stack more compact */
    .printable-receipt .d-flex.align-items-center { align-items: flex-start; gap:8px; }
    .printable-receipt img[alt="logo"], .printable-receipt img[src*="jsct-logo"] { height:44px; max-width:100%; }

    /* Move right-side meta to left and make it readable */
    .printable-receipt .text-end { text-align: left !important; margin-top: 6px; }

    /* Ensure small status messages are visible and full-width */
    #download-msg-top, #download-msg { display: block; margin-top: .5rem; color: #444; }

    /* Keep the table responsive wrapper visible and compact */
    .table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

/* Modal receipt specific tweaks */
.modal-receipt { color:#000; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; position:relative; }
.modal-receipt table{ width:100%; border-collapse:collapse; }
.modal-receipt td{ padding:8px 6px; vertical-align:top; border-bottom:1px solid #eee; }
.modal-receipt .label{ font-weight:600; color:#222; width:35%; }

/* Branded colors for receipt buttons */
.receipt-actions .btn-success { background:#16a34a; border-color:#16a34a; }
.receipt-actions .btn-success { background:#0d6efd; border-color:#0d6efd; }


/* Responsive hero heights (desktop reduced to ~50vh) */
@media (min-width: 1200px) {
    .hero-carousel { height: 72vh; min-height: 360px; }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
    .hero-carousel { height: 72vh; min-height: 340px; }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-carousel { height: 45vh; min-height: 300px; }
}

@media (max-width: 767.98px) {
    .hero-carousel { height: 40vh; min-height: 200px; }
    .hero-section .container-fluid { padding-left: 1rem; padding-right: 1rem; }
}

/* ===== Testimonials ===== */
#testimonials { /* Visual separation from adjacent sections */
    color: #0f172a;
}
.testimonial-card {
    background: #ffffff;
    border-radius: 10px;
    padding: 1.25rem;
    box-shadow: 0 8px 20px rgba(2,6,23,0.05);
    transition: transform 220ms ease, box-shadow 220ms ease;
    position: relative;

/* ===== Glossy UI enhancements (login, cards, buttons) ===== */
.glossy-card {
    background: linear-gradient(180deg, #ffffff 0%, #f8faf8 50%, #eefcf0 100%);
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(2,6,23,0.08);
    overflow: hidden;
    position: relative;
}
.glossy-card::before{
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.55), rgba(255,255,255,0));
    pointer-events: none;
    mix-blend-mode: overlay;
}
.brand-img{
    width: 96px;
    height: auto;
    border-radius: 10px;
    padding: 6px;
    background: linear-gradient(180deg,#ffffff,#f1f5f9);
    box-shadow: 0 6px 18px rgba(2,6,23,0.06), inset 0 1px 0 rgba(255,255,255,0.6);
}
.form-control.glossy-input{
    border-radius: 8px;
    padding: .6rem .75rem;
    border: 1px solid rgba(16,185,129,0.12);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.6);
    transition: box-shadow .12s ease, border-color .12s ease;
}
.form-control.glossy-input:focus{ box-shadow: 0 6px 20px rgba(16,185,129,0.12); border-color: #10b981; outline: none; }

@media (max-width: 767.98px) {
    .brand-img{ width: 80px; }
}
}
.testimonial-card:hover { transform: translateY(-6px); box-shadow: 0 12px 30px rgba(2,6,23,0.08); }
.testimonial-card p { font-style: italic; color: #374151; margin-bottom: 0.9rem; line-height: 1.45; }
.testimonial-meta { display: flex; align-items: center; gap: 0.75rem; padding-left: 120px; }
.testimonial-avatar { width: 56px; height: 56px; border-radius: 999px; object-fit: cover; flex: 0 0 56px; }
.testimonial-name { font-weight: 700; color: #0f172a; }
.testimonial-role { font-size: .85rem; color: #6b7280; }

/* Quote mark decoration */
.testimonial-card::before {
    content: "\201C"; /* left double quotation mark */
    position: absolute;
    top: 12px;
    left: 14px;
    font-size: 2.6rem;
    color: rgba(16, 185, 129, 0.12); /* subtle green tint */
    pointer-events: none;
}

@media (max-width: 991.98px) {
    .testimonial-avatar { width: 48px; height: 48px; flex: 0 0 48px; }
}

@media (max-width: 575.98px) {
    .testimonial-card { padding: 1rem; }
    .testimonial-card::before { left: 10px; top: 10px; font-size: 2rem; }
}

/* Carousel layout tweaks */
.testimonial-carousel { overflow: visible; }
.testimonial-carousel .carousel-inner { padding: 1.25rem 0; }
.testimonial-carousel .carousel-item { transition: transform .35s ease, opacity .35s ease; opacity: 0.95; }
.testimonial-carousel .testimonial-card { max-width: 920px; margin: 0 auto; }
.testimonial-carousel .carousel-item.active .testimonial-card { transform: translateY(-6px); }

/* Swiper-specific adjustments */
.testimonials-swiper { padding: 0 0.25rem; }
.testimonials-swiper .swiper-slide { display: flex; justify-content: center; }
.testimonials-swiper .swiper-pagination { margin-top: 1rem; }
.testimonials-swiper .swiper-button-prev, .testimonials-swiper .swiper-button-next { color: #0f172a; }

/* Increase slider height and vertically center content */
.testimonials-swiper .swiper-slide { min-height: 360px; align-items: center; }
.testimonials-swiper .swiper-slide .testimonial-card { min-height: 260px; }

@media (max-width: 991.98px) {
    .testimonials-swiper .swiper-slide { min-height: 320px; }
    .testimonials-swiper .swiper-slide .testimonial-card { min-height: 220px; }
}

@media (max-width: 575.98px) {
    .testimonials-swiper .swiper-slide { min-height: 260px; }
    .testimonials-swiper .swiper-slide .testimonial-card { min-height: 180px; }
    .testimonial-card { padding-top: 48px; }
}

/* Right-column carousel layout */
.hero-carousel-right .carousel-item { display: flex; align-items: center; justify-content: center; }
.hero-carousel-right .carousel-inner { align-items: center; }

/* Note: responsive hero heights are defined earlier to avoid conflicts. */


/* Blur non-active slides to focus the active one */
.testimonials-swiper .swiper-slide {
    transition: filter .36s ease, opacity .36s ease, transform .36s ease;
    will-change: filter, transform, opacity;
    filter: blur(2px);
    opacity: 0.78;
}
.testimonials-swiper .swiper-slide.swiper-slide-active {
    filter: none;
    opacity: 1;
    transform: translateY(-4px) scale(1.015);
}

/* Keep pagination & buttons fully visible */
.testimonials-swiper .swiper-pagination, .testimonials-swiper .swiper-button-prev, .testimonials-swiper .swiper-button-next { z-index: 20; }

/* Disable blur on small screens for performance and legibility */
@media (max-width: 575.98px) {
    .testimonials-swiper .swiper-slide { filter: none; opacity: 1; transform: none; }
}

/* Make carousel controls more visible on light background */
.testimonial-carousel .carousel-control-prev-icon,
.testimonial-carousel .carousel-control-next-icon {
    background-color: rgba(15, 23, 42, 0.08);
    background-size: 1.6rem 1.6rem;
    border-radius: 50%;
    box-shadow: 0 6px 18px rgba(2,6,23,0.06);
}
.testimonial-carousel .carousel-control-prev,
.testimonial-carousel .carousel-control-next { width: 3.5rem; }

/* Slightly larger indicators with active color */
.testimonial-carousel .carousel-indicators [data-bs-target] { width: 10px; height: 10px; border-radius: 50%; }
.testimonial-carousel .carousel-indicators .active { background-color: #16a34a; }

/* Improve contrast for testimonial text on light cards */
.testimonial-card p { color: #334155; }

/* Enhanced visual variants: gradient background, colored border and avatar overlap */
/* Enhanced visual variants: gradient background, colored border and avatar overlap */
.testimonial-card {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border-left: 6px solid rgba(22,163,74,0.95);
    padding: 64px 1.5rem 1.25rem 1.75rem; /* top padding reserves space for overlapping avatar */
    position: relative;
}
.testimonial-card:hover { border-left-color: #059669; }

/* Avatar overlaps the top-left of the card for a polished look (larger) */
.testimonial-avatar {
    width: 96px;
    height: 96px;
    border-radius: 999px;
    object-fit: cover;
    position: absolute;
    top: -48px;
    left: 24px;
    box-shadow: 0 10px 28px rgba(2,6,23,0.14);
    border: 4px solid #ffffff;
}

/* Reduce avatar size on smaller screens and adjust spacing */
@media (max-width: 991.98px) {
    .testimonial-avatar { width: 80px; height: 80px; top: -40px; left: 20px; }
    .testimonial-meta { padding-left: 100px; }
    .testimonial-card { padding-top: 56px; }
}
@media (max-width: 575.98px) {
    .testimonial-avatar { width: 64px; height: 64px; top: -34px; left: 16px; }
    .testimonial-meta { padding-left: 84px; }
    .testimonial-card { padding-top: 48px; }
}

/* Optional accent: a faint green glow behind the card on hover */
.testimonial-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 10px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 220ms ease, transform 220ms ease;
}
.testimonial-card:hover::after { opacity: 1; transform: translateY(-4px); box-shadow: 0 20px 40px rgba(16,185,129,0.06); }

/* ===== Members table styles ===== */
.home-team-swiper {
    /* increase side padding so outside controls have a small gap from page container-fluid */
    padding: 0 1.25rem;
    position: relative; /* needed for absolutely positioned controls */
    overflow: visible; /* allow controls to be visible outside the slider */
    --accent: #16a34a;
    /* responsive offset for nav buttons (prevents overflow on narrow container-fluids) */
    --nav-offset: clamp(12px, 2.5vw, 28px);
.home-team-swiper .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: stretch;
    padding: 0.5rem;
}
.home-team-swiper .card {
    max-width: 320px;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 28px rgba(2,6,23,0.06);
    transition: transform .24s ease, box-shadow .24s ease;
}
.home-team-swiper .card:hover { transform: translateY(-6px); box-shadow: 0 18px 36px rgba(2,6,23,0.08); }
.home-team-swiper .card .rounded {
    width: 100%;
    height: 260px;
    overflow: hidden;
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(22,163,74,0.06), rgba(5,150,105,0.04));
}
.home-team-swiper .card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.home-team-swiper h3 { color: #064e3b; font-size: 1.05rem; margin-top: .6rem; }
.home-team-swiper p { color: #475569; margin-bottom: .35rem; }
.home-team-swiper .text-success { color: #16a34a !important; }
.home-team-swiper .swiper-pagination { margin-top: 1rem; position: relative; z-index: 5; }

/* Position navigation buttons outside the slider on large screens */
.home-team-swiper .swiper-button-prev,
.home-team-swiper .swiper-button-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #ffffff;
    color: #064e3b;
    box-shadow: 0 10px 28px rgba(2,6,23,0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 15;
    transition: transform .12s ease, background-color .12s ease, color .12s ease;
}
.home-team-swiper .swiper-button-prev { left: calc(-1 * var(--nav-offset)); }
.home-team-swiper .swiper-button-next { right: calc(-1 * var(--nav-offset)); }

/* Hover / active states */
.home-team-swiper .swiper-button-prev:hover,
.home-team-swiper .swiper-button-next:hover {
    background: var(--accent);
    color: #fff;
    transform: translateY(-50%) scale(1.04);
}

/* Focus-visible for keyboard users */
.home-team-swiper .swiper-button-prev:focus-visible,
.home-team-swiper .swiper-button-next:focus-visible {
    outline: 3px solid rgba(22,163,74,0.18);
    outline-offset: 4px;
}

/* Slightly larger internal SVG icon sizing */
.home-team-swiper .swiper-button-prev svg,
.home-team-swiper .swiper-button-next svg { width: 20px; height: 20px; }

/* graceful handling when image src is empty (hide broken img) */
.home-team-swiper img[src=""], .home-team-swiper img[src="."] { display: none; }

/* Use a subtle gradient as the default background for the image container-fluid.
   When an <img> is present it will cover this background; when the <img>
   is hidden (missing src) the gradient acts as a visible placeholder. */
.home-team-swiper .card .rounded {
    background: linear-gradient(180deg,#f1ffef,#eefbf6);
    display: block;
}

/* Card content spacing and typographic tweaks for better readability */
.home-team-swiper .card {
    padding: 0.9rem 1rem 1.1rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}
.home-team-swiper .card .rounded { border-radius: 10px; }
.home-team-swiper .card .rounded + h3,
.home-team-swiper .card .rounded + img + h3 {
    margin-top: 0.9rem;
}
.home-team-swiper h3 { font-size: 1.02rem; font-weight: 700; line-height: 1.15; text-align: center; }
.home-team-swiper p { color: #475569; text-align: center; margin-bottom: 0.25rem; }
.home-team-swiper .member-role { color: #16a34a; font-weight: 600; margin-top: 0.25rem; text-align: center; }

/* Slightly larger navigation dots for better touch interaction */
.home-team-swiper .swiper-pagination-bullet { width: 10px; height: 10px; opacity: 0.9; }


.members-table {
    width: 100%;
    border-collapse: collapse;
}
.members-table th,
.members-table td {
    padding: 0.75rem 0.9rem;
    vertical-align: middle;
    border-top: 1px solid rgba(15,23,42,0.06);
    color: #1f2937;
}
.members-table thead th {
    background: linear-gradient(90deg,#16a34a,#059669);
    color: #fff;
    border-top: none;
    font-weight: 600;
}
.members-table tbody tr:hover { background: rgba(22,163,74,0.04); }
.members-table tbody tr:nth-child(odd) { background: rgba(2,6,23,0.01); }
.members-table a { color: #0f172a; text-decoration: none; }
.members-table a:hover { color: #064e3b; text-decoration: underline; }
.members-table .badge { font-weight: 600; }

/* Responsive: stack rows only on very very small screens */
@media (max-width: 767.98px) {
    .members-table thead { display: none; }
    .members-table, .members-table tbody, .members-table tr, .members-table td { display: block; width: 100%; }
    .members-table tr { margin-bottom: 0.65rem; border: 1px solid rgba(15,23,42,0.04); border-radius: 8px; padding: 0.4rem; }
    .members-table td { padding: 0.45rem 0.65rem; border-top: none; display: flex; justify-content: space-between; align-items: center; }
    .members-table td::before { content: attr(data-label); font-weight: 600; color: #6b7280; margin-right: 0.75rem; }
}

/* Pagination controls */
.members-pagination { display:flex; gap:6px; align-items:center; }
.home-team-swiper .swiper-pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    position: relative;
    z-index: 5;
}
.home-team-swiper .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: #e9f9f0;
    border: 1px solid rgba(22,163,74,0.12);
    opacity: 1;
    transition: transform .12s ease, background-color .12s ease;
}
.home-team-swiper .swiper-pagination-bullet-active {
    background: var(--accent);
    width: 12px;
    height: 12px;
    box-shadow: 0 8px 20px rgba(22,163,74,0.14);
}
.members-pagination .btn { padding: .25rem .5rem; font-size: .85rem; }
.members-table + .members-pagination { margin-top: .75rem; }

@media (max-width: 991.98px) {
    body { padding-bottom: 76px; }
}

/* ===== Team card enhancements ===== */
.team-card figure { margin: 0; }
.team-card .object-fit-cover, .team-card img { object-fit: cover; display: block; width: 100%; height: 100%; }
.member-bio { display: -webkit-box;  -webkit-box-orient: vertical; overflow: hidden; }
.team-card .btn { border-radius: 999px; }
.team-card .social-icons a { width:36px; height:36px; display:inline-flex; align-items:center; justify-content:center; border-radius:50%; background:#f5f5f5; color:#16a34a; }
.team-card .social-icons a:hover { background:#16a34a; color:#fff; transform: translateY(-2px); }
.modal-content img { flex-shrink:0; border-radius:8px; }

}
:root {
        --register-primary: #198754;
        --register-primary-dark: #146c43;
        --register-light: #f8faf9;
        --register-border: #e5e7eb;
    }

    .register-page {
        background: #f5f7f9;
    }

    /* Hero */
    .register-hero {
        background:
            linear-gradient(135deg, rgba(15, 118, 110, .95), rgba(25, 135, 84, .92)),
            linear-gradient(135deg, #198754, #0f766e);
        min-height: 250px;
        display: flex;
        align-items: center;
    }

    .register-hero .breadcrumb {
        --bs-breadcrumb-divider-color: rgba(255,255,255,.5);
    }

    .register-hero .breadcrumb-item a {
        text-decoration: none;
    }

    /* Main card */
    .registration-wrapper {
        position: relative;
        z-index: 2;
        padding: 60px 0;
    }

    .registration-card {
        border: 0;
        border-radius: 18px;
        overflow: hidden;
        box-shadow: 0 15px 45px rgba(0, 0, 0, .10);
    }

    .registration-header {
        background: #fff;
        border-bottom: 1px solid var(--register-border);
        padding: 1.5rem 2rem;
    }

    .registration-header h2 {
        font-weight: 700;
        color: #1f2937;
    }

    /* Stepper */
    .registration-stepper {
        position: relative;
        padding: 1.5rem 1rem 1rem;
        background: #fff;
    }

    .registration-stepper::before {
        content: "";
        position: absolute;
        top: 36px;
        left: 18%;
        right: 18%;
        height: 3px;
        background: #e9ecef;
        z-index: 0;
    }

    .stepper-item {
        position: relative;
        z-index: 1;
        text-align: center;
        flex: 1;
    }

    .step-circle {
        width: 46px;
        height: 46px;
        border-radius: 50%;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-weight: 700;
        border: 4px solid #fff;
        box-shadow: 0 2px 8px rgba(0,0,0,.12);
        margin-bottom: .5rem;
    }

    .step-circle.active {
        background: var(--register-primary);
        color: #fff;
    }

    .step-circle.inactive {
        background: #e9ecef;
        color: #6c757d;
    }

    .step-label {
        font-size: .85rem;
        font-weight: 600;
    }

    .step-label.active {
        color: var(--register-primary);
    }

    .step-label.inactive {
        color: #6c757d;
    }

    /* Form */
    .form-section {
        border: 1px solid var(--register-border);
        border-radius: 14px;
        background: #fff;
        overflow: hidden;
    }

    .form-section-header {
        background: #f8faf9;
        border-bottom: 1px solid var(--register-border);
        padding: 1rem 1.25rem;
    }

    .form-section-header h5 {
        margin: 0;
        font-size: 1rem;
        font-weight: 700;
        color: #212529;
    }

    .form-section-body {
        padding: 1.5rem;
    }

    .form-label {
        font-weight: 600;
        color: #374151;
        margin-bottom: .45rem;
    }

    .form-control,
    .form-select {
        min-height: 48px;
        border-color: #dfe3e8;
        border-radius: 9px;
    }

    .form-control:focus,
    .form-select:focus {
        border-color: var(--register-primary);
        box-shadow: 0 0 0 .2rem rgba(25, 135, 84, .12);
    }

    .input-group-text {
        background: #f8faf9;
        border-color: #dfe3e8;
        font-weight: 600;
    }

    /* Payment */
    .payment-card {
        border: 1px solid #dcefe4;
        background: linear-gradient(180deg, #f8fffb, #fff);
        border-radius: 14px;
    }

    .payment-icon {
        width: 54px;
        height: 54px;
        border-radius: 12px;
        background: #dff5e8;
        color: var(--register-primary);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 1.5rem;
    }

    .minimum-fee {
        font-size: .8rem;
        color: #6c757d;
    }

    /* Alerts */
    .alert {
        border-radius: 12px;
        border: 0;
    }

    /* Buttons */
    .btn-register {
        min-height: 48px;
        border-radius: 9px;
        padding: .65rem 1.4rem;
        font-weight: 600;
    }

    .btn-success {
        background-color: var(--register-primary);
        border-color: var(--register-primary);
    }

    .btn-success:hover {
        background-color: var(--register-primary-dark);
        border-color: var(--register-primary-dark);
    }

    /* Consent */
    .consent-box {
        background: #f8faf9;
        border: 1px solid #e2e8e5;
        border-radius: 10px;
        padding: 1rem;
    }

    .consent-box .form-check-input {
        margin-top: .25rem;
    }

    /* Mobile */
    @media (max-width: 767.98px) {
        .register-hero {
            min-height: 210px;
        }

        .registration-wrapper {
            margin-top: -30px;
        }

        .registration-header {
            padding: 1.25rem;
        }

        .form-section-body {
            padding: 1rem;
        }

        .registration-stepper::before {
            left: 22%;
            right: 22%;
        }

        .step-circle {
            width: 40px;
            height: 40px;
        }

        .step-label {
            font-size: .75rem;
        }
    }