:root {
    --bg-body: #f8faff;
    --text-main: #111827;
    --text-muted: #6b7280;
    --primary-accent: #6366f1;
    --card-radius: 16px;
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px -1px rgba(0, 0, 0, 0.02);
    --card-hover-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.01);
}

/* ============================================
   GLOBAL RESET — fixes horizontal overflow
   ============================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
    max-width: 100%;
}

* {
    font-family: "Kantumruy Pro", sans-serif !important;
}

html {

    font-family: "Kantumruy Pro", sans-serif !important;

    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    font-size: 16px;
    overflow-x: hidden;
    /* horizontal only — was 'overflow: hidden' which broke touch zoom */
}

body {
    font-family: "Kantumruy Pro", sans-serif !important;
    background-color: var(--bg-body);
    color: var(--text-main);
    position: relative;
    overflow-x: hidden;
    min-height: 100vh;
    font-size: 1rem;
    width: 100%;
}

/* ============================================
   AMBIENT BLOBS — fixed so they don't overflow
   ============================================ */
.ambient-light {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: -1;
    max-width: 100vw;
    /* prevent blobs from adding horizontal scroll */
}

.blob-purple {
    position: absolute;
    left: -100px;
    width: 300px;
}

.blob-cyan {
    position: absolute;
    right: -100px;
    width: 300px;
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar-brand-pill {
    background: #fff;
    padding: 8px 16px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.brand-text-dark {
    color: #1f2937;
}

.brand-text-blue {
    color: var(--primary-accent);
}

.btn-support {
    background: var(--primary-accent);
    border: none;
    color: white;
    font-weight: 700;
    border-radius: 50px;
    padding: 10px 24px;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    text-decoration: none;
    white-space: nowrap;
    /* prevent button text wrapping on small screens */
}

.btn-support:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.4);
    background-color: #4f46e5;
    color: white;
}

/* ============================================
   HERO
   ============================================ */
.hero-title {
    font-weight: 800;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 2rem;
}

/* Search Bar */
.search-wrapper {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.search-input {
    width: 100%;
    padding: 16px 50px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    background: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    transition: all 0.2s;
    font-size: 0.95rem;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-accent);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.15);
}

.search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 1rem;
}

.search-shortcut {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: #f3f4f6;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    color: #6b7280;
    border: 1px solid #e5e7eb;
}

/* ============================================
   SECTION HEADERS
   ============================================ */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 1.5rem;
    margin-top: 3rem;
}

.section-label {
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 700;
    color: #6b7280;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #111827;
    margin: 0;
}

.nav-arrows .btn-arrow {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #e5e7eb;
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #4b5563;
    transition: all 0.2s;
    font-size: 1rem;
}

.nav-arrows .btn-arrow:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

/* ============================================
   HORIZONTAL SCROLL — contained, no overflow
   ============================================ */
.horizontal-scroll {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 1rem;
    max-width: 100%;
    /* prevent this row from pushing the page wider */
    width: 100%;
    -webkit-overflow-scrolling: touch;
}

.horizontal-scroll::-webkit-scrollbar {
    display: none;
}

.horizontal-scroll>* {
    flex: 0 0 auto;
}

/* ============================================
   TOOL CARDS
   ============================================ */
.tool-card {
    background: #fff;
    border-radius: var(--card-radius);
    padding: 24px;
    height: 100%;
    border: 1px solid transparent;
    box-shadow: var(--card-shadow);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.tool-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-hover-shadow);
}

.tool-icon-box {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    font-size: 1.25rem;
}

/* Icon Colors */
.icon-blue {
    background: #eff6ff;
    color: #3b82f6;
}

.icon-purple {
    background: #f5f3ff;
    color: #8b5cf6;
}

.icon-indigo {
    background: #eef2ff;
    color: #6366f1;
}

.icon-cyan {
    background: #ecfeff;
    color: #06b6d4;
}

.icon-orange {
    background: #fff7ed;
    color: #f97316;
}

.card-title {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 8px;
    color: #1f2937;
}

.card-desc {
    font-size: 0.85rem;
    color: #6b7280;
    line-height: 1.5;
    margin: 0;
}

/* ============================================
   SUPPORTER CARDS
   ============================================ */
.supporter-card {
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    box-shadow: var(--card-shadow);
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: transform 0.2s;
    width: 200px;
    flex: 0 0 auto;
}

.supporter-card:hover {
    transform: translateY(-2px);
}

.supporter-header {
    display: flex;
    align-items: center;
    margin-bottom: 4px;
    font-weight: 700;
    font-size: 0.95rem;
}

.supporter-icon {
    margin-right: 6px;
}

.amount {
    color: #10b981;
    font-weight: 800;
    font-size: 0.9rem;
    display: block;
}

.role {
    font-size: 0.75rem;
    color: #6b7280;
}

/* Donation CTA Card */
.donate-cta-card {
    background: linear-gradient(135deg, #eef2ff 0%, #f5f3ff 100%);
    border: 2px dashed #8b5cf6;
}

.donate-cta-card .supporter-header {
    color: #6366f1;
}

/* ============================================
   PARTNER CAROUSEL
   ============================================ */
.partner-slide-item {
    background: #fff;
    border-radius: var(--card-radius);
    padding: 30px;
    box-shadow: var(--card-shadow);
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #f3f4f6;
}

.partner-content {
    display: flex;
    align-items: center;
    width: 100%;
}

.partner-logo-large {
    width: 64px;
    height: 64px;
    background: #9ca3af;
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.5rem;
    margin-right: 20px;
    flex-shrink: 0;
}

.logo-blue {
    background: #3b82f6;
}

.logo-purple {
    background: #8b5cf6;
}

.logo-dark {
    background: #1f2937;
}

.partner-info-large h4 {
    font-weight: 800;
    margin: 0 0 4px 0;
    font-size: 1.25rem;
}

.partner-info-large p {
    font-size: 0.95rem;
    color: #6b7280;
    margin: 0;
}

.btn-become-partner {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6b7280;
    background: #f3f4f6;
    border: none;
    padding: 6px 12px;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.2s;
    margin-left: 10px;
    cursor: pointer;
    white-space: nowrap;
}

.btn-become-partner:hover {
    background: #e5e7eb;
    color: #111827;
}

/* Carousel indicators — fixed gap bug */
.carousel-indicators {
    bottom: 0;
    /* was -40px which caused a large empty gap below carousel */
    margin-bottom: 0;
}

.carousel-indicators button {
    background-color: #6b7280 !important;
    width: 8px !important;
    height: 8px !important;
    border-radius: 50%;
    margin: 0 5px !important;
}

/* ============================================
   FOOTER — removed bg-light conflict
   ============================================ */
footer {
    margin-top: 5rem;
    padding: 4rem 0 2rem;
    border-top: 1px solid #e5e7eb;
    background: #fff;
    /* defined here — remove bg-light from HTML tag */
}

.footer-logo {
    font-weight: 800;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    display: block;
}

.social-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f3f4f6;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #4b5563;
    margin-right: 8px;
    text-decoration: none;
    font-size: 0.9rem;
}

.footer-col h6 {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #4b5563;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #6b7280;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--primary-accent);
}

.copyright {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid #f3f4f6;
    font-size: 0.8rem;
    color: #9ca3af;
    display: flex;
    justify-content: space-between;
}

/* ============================================
   MODAL
   ============================================ */
.modal-content {
    border-radius: 20px;
    border: none;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.modal-header {
    border-bottom: 1px solid #f3f4f6;
    padding: 20px 24px;
}

.modal-body {
    padding: 24px;
}

.nav-pills .nav-link {
    color: var(--text-muted);
    font-weight: 600;
    border-radius: 10px;
    padding: 10px 20px;
}

.nav-pills .nav-link.active {
    background-color: var(--primary-accent);
    color: white;
}

.qr-placeholder {
    width: 200px;
    height: 200px;
    background: #f8fafc;
    border: 2px dashed #cbd5e1;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: #64748b;
    font-weight: 600;
    flex-direction: column;
}

.aba-card {
    background: linear-gradient(135deg, #005F7F 0%, #003A4F 100%);
    color: white;
    border-radius: 12px;
    padding: 20px;
    text-align: left;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.aba-logo {
    font-weight: 800;
    font-size: 1.2rem;
    margin-bottom: 10px;
    display: block;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin-bottom: 24px;
}

.feature-list li {
    padding: 8px 0;
    display: flex;
    align-items: center;
    color: #4b5563;
}

.feature-list li i {
    color: #10b981;
    margin-right: 12px;
    font-size: 1.1rem;
}

.partner-contact-btn {
    background: #111827;
    color: white;
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    font-weight: 700;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    transition: all 0.2s;
    text-decoration: none;
}

.partner-contact-btn:hover {
    background: #000;
    transform: translateY(-2px);
    color: white;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .nav-arrows {
        display: none;
    }

    .partner-content {
        flex-direction: column;
        text-align: center;
    }

    .partner-logo-large {
        margin-right: 0;
        margin-bottom: 12px;
    }
}