/* ============================================================
   style.css — IELTS Battles Support Page
   Blue & white academic palette
   ============================================================ */

/* ── Tokens ─────────────────────────────────────────────────── */
:root {
    --blue-900:  #0e2a5a;   /* deep navy  – headlines */
    --blue-700:  #1a4aa8;   /* primary    – buttons, accents */
    --blue-500:  #2f6ee8;   /* mid-blue   – hovers, links */
    --blue-100:  #ddeaff;   /* tint       – card backgrounds */
    --blue-50:   #f0f6ff;   /* page bg    */
    --gold:      #f5a623;   /* accent     – highlight chips */
    --text-dark: #1a2540;
    --text-mid:  #4a5878;
    --text-soft: #7889a4;
    --white:     #ffffff;
    --radius-lg: 18px;
    --radius-md: 12px;
    --radius-sm: 8px;
    --shadow-sm: 0 2px 12px rgba(26,74,168,.08);
    --shadow-md: 0 6px 30px rgba(26,74,168,.14);
    --shadow-lg: 0 12px 50px rgba(26,74,168,.18);
    --transition: .22s cubic-bezier(.4,0,.2,1);
}

/* ── Reset / Base ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    background-color: var(--blue-50);
    color: var(--text-dark);
    font-size: 1rem;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--blue-700); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--blue-500); }

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

/* ── Typography ─────────────────────────────────────────────── */
h1, h2, h3, h4, h5 {
    font-family: 'Poppins', 'Inter', sans-serif;
    color: var(--blue-900);
    line-height: 1.25;
}

.display-title {
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 800;
    letter-spacing: -.02em;
}

.section-label {
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--blue-700);
}

/* ── Utility overrides ──────────────────────────────────────── */
.text-primary-ib  { color: var(--blue-700) !important; }
.bg-primary-ib    { background-color: var(--blue-700) !important; }
.btn-primary-ib {
    background: var(--blue-700);
    border-color: var(--blue-700);
    color: var(--white);
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}
.btn-primary-ib:hover, .btn-primary-ib:focus {
    background: var(--blue-500);
    border-color: var(--blue-500);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(47,110,232,.35);
}
.btn-outline-ib {
    border: 2px solid var(--blue-700);
    color: var(--blue-700);
    background: transparent;
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: all var(--transition);
}
.btn-outline-ib:hover {
    background: var(--blue-700);
    color: var(--white);
    transform: translateY(-2px);
}

/* ── Navbar ─────────────────────────────────────────────────── */
.ib-navbar {
    background: var(--white);
    border-bottom: 1px solid #e3eaf7;
    box-shadow: var(--shadow-sm);
    padding: .9rem 0;
    position: sticky;
    top: 0;
    z-index: 1030;
}
.ib-navbar .navbar-brand {
    font-weight: 800;
    font-size: 1.3rem;
    color: var(--blue-900);
}
.ib-navbar .navbar-brand span { color: var(--blue-700); }
.ib-navbar .nav-link {
    color: var(--text-mid);
    font-weight: 500;
    font-size: .93rem;
    padding: .45rem .85rem;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}
.ib-navbar .nav-link:hover,
.ib-navbar .nav-link.active {
    color: var(--blue-700);
    background: var(--blue-100);
}
.ib-navbar .nav-support {
    color: var(--blue-700);
    font-weight: 700;
    background: var(--blue-100);
}

/* ── Hero ───────────────────────────────────────────────────── */
.hero-section {
    background: linear-gradient(135deg, var(--blue-900) 0%, var(--blue-700) 60%, #3b83f7 100%);
    padding: 5rem 0 4.5rem;
    position: relative;
    overflow: hidden;
    color: var(--white);
}

/* Decorative background circles */
.hero-section::before,
.hero-section::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    opacity: .08;
    background: var(--white);
}
.hero-section::before { width: 480px; height: 480px; top: -180px; right: -140px; }
.hero-section::after  { width: 320px; height: 320px; bottom: -150px; left: -100px; }

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 50px;
    padding: .3rem .9rem;
    font-size: .82rem;
    font-weight: 600;
    letter-spacing: .04em;
    margin-bottom: 1.4rem;
    backdrop-filter: blur(4px);
}

.hero-title {
    font-size: clamp(2.1rem, 5vw, 3.4rem);
    font-weight: 800;
    letter-spacing: -.025em;
    color: var(--white);
    margin-bottom: 1.2rem;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: rgba(255,255,255,.82);
    max-width: 520px;
    margin-bottom: 2.2rem;
    line-height: 1.7;
}

.hero-cta-group { display: flex; gap: 1rem; flex-wrap: wrap; }

.btn-hero-primary {
    background: var(--white);
    color: var(--blue-700);
    font-weight: 700;
    padding: .85rem 2rem;
    border-radius: var(--radius-sm);
    border: none;
    font-size: 1rem;
    transition: all var(--transition);
    box-shadow: 0 4px 20px rgba(0,0,0,.18);
}
.btn-hero-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(0,0,0,.25);
    color: var(--blue-900);
}
.btn-hero-ghost {
    background: transparent;
    color: var(--white);
    font-weight: 600;
    padding: .85rem 1.8rem;
    border-radius: var(--radius-sm);
    border: 2px solid rgba(255,255,255,.5);
    font-size: 1rem;
    transition: all var(--transition);
}
.btn-hero-ghost:hover {
    background: rgba(255,255,255,.12);
    border-color: var(--white);
    color: var(--white);
    transform: translateY(-2px);
}

/* Hero illustration area */
.hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-icon-ring {
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: rgba(255,255,255,.10);
    border: 2px solid rgba(255,255,255,.2);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    animation: pulse-ring 4s ease-in-out infinite;
}
.hero-icon-ring::before {
    content: '';
    position: absolute;
    width: 220px; height: 220px;
    border-radius: 50%;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.15);
}
.hero-icon-ring i {
    font-size: 6rem;
    color: rgba(255,255,255,.9);
    position: relative;
    z-index: 1;
}

@keyframes pulse-ring {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255,255,255,.15); }
    50%       { transform: scale(1.03); box-shadow: 0 0 0 20px rgba(255,255,255,.0); }
}

/* Stat chips */
.hero-stats { display: flex; gap: 1.5rem; flex-wrap: wrap; margin-top: 2rem; }
.hero-stat {
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: var(--radius-sm);
    padding: .6rem 1.2rem;
    backdrop-filter: blur(6px);
}
.hero-stat .stat-val {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--white);
    display: block;
}
.hero-stat .stat-lbl {
    font-size: .75rem;
    color: rgba(255,255,255,.7);
    letter-spacing: .04em;
}

/* ── Section wrapper ────────────────────────────────────────── */
.page-section {
    padding: 5rem 0;
}
.page-section.alt-bg {
    background: var(--white);
}
.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem;
}
.section-header h2 {
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    font-weight: 800;
    margin-top: .5rem;
    margin-bottom: .8rem;
}
.section-header p {
    color: var(--text-mid);
    font-size: 1.02rem;
}

/* ── Why Support Cards ──────────────────────────────────────── */
.support-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2rem 1.6rem;
    border: 1.5px solid #e4ecfb;
    transition: all var(--transition);
    height: 100%;
}
.support-card:hover {
    border-color: var(--blue-500);
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}
.support-card-icon {
    width: 58px; height: 58px;
    background: var(--blue-100);
    border-radius: var(--radius-md);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 1.2rem;
    transition: background var(--transition);
}
.support-card:hover .support-card-icon { background: var(--blue-700); }
.support-card-icon i {
    font-size: 1.5rem;
    color: var(--blue-700);
    transition: color var(--transition);
}
.support-card:hover .support-card-icon i { color: var(--white); }
.support-card h4 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: .5rem;
}
.support-card p {
    font-size: .9rem;
    color: var(--text-mid);
    margin: 0;
}

/* ── Donation Amount Section ────────────────────────────────── */
.donation-section {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
    border: 1.5px solid #e4ecfb;
}

.preset-btn {
    min-width: 72px;
    border: 2px solid #ccd9f5;
    background: var(--white);
    color: var(--blue-700);
    font-weight: 700;
    font-size: 1rem;
    border-radius: var(--radius-sm);
    padding: .65rem 1.1rem;
    transition: all var(--transition);
    cursor: pointer;
}
.preset-btn:hover {
    border-color: var(--blue-700);
    background: var(--blue-100);
}
.preset-btn.active {
    background: var(--blue-700);
    border-color: var(--blue-700);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(26,74,168,.3);
    transform: translateY(-2px);
}

.amount-input-wrap {
    position: relative;
}
.amount-input-wrap .currency-symbol {
    position: absolute; left: 1rem; top: 50%; transform: translateY(-50%);
    color: var(--text-mid); font-weight: 600; font-size: 1.05rem;
    pointer-events: none;
}
.amount-input-wrap input {
    padding-left: 2.2rem;
    border-radius: var(--radius-sm);
    border: 2px solid #ccd9f5;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--blue-900);
    transition: border-color var(--transition);
    height: 50px;
}
.amount-input-wrap input:focus {
    border-color: var(--blue-700);
    box-shadow: 0 0 0 3px rgba(26,74,168,.12);
    outline: none;
}
.amount-input-wrap input.is-invalid {
    border-color: #dc3545;
}

/* ── Donor form ─────────────────────────────────────────────── */
.donor-form .form-label {
    font-weight: 600;
    font-size: .87rem;
    color: var(--text-dark);
    margin-bottom: .35rem;
}
.donor-form .form-control,
.donor-form .form-select {
    border: 2px solid #e3eaf7;
    border-radius: var(--radius-sm);
    transition: border-color var(--transition), box-shadow var(--transition);
    font-size: .95rem;
    padding: .6rem .95rem;
    color: var(--text-dark);
}
.donor-form .form-control:focus,
.donor-form .form-select:focus {
    border-color: var(--blue-700);
    box-shadow: 0 0 0 3px rgba(26,74,168,.12);
}
.donor-form textarea { resize: none; }

.optional-tag {
    font-size: .75rem;
    color: var(--text-soft);
    font-weight: 400;
    margin-left: .4rem;
}

.secure-badges {
    display: flex; gap: .8rem; flex-wrap: wrap; align-items: center;
    padding: 1rem 1.2rem;
    background: #f4f8ff;
    border-radius: var(--radius-sm);
    border: 1px solid #dce8ff;
    margin-top: 1rem;
}
.secure-badge {
    display: flex; align-items: center; gap: .4rem;
    font-size: .78rem; font-weight: 600; color: var(--text-mid);
}
.secure-badge i { color: #22a05b; font-size: .85rem; }

/* ── Impact section ─────────────────────────────────────────── */
.impact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}
.impact-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 1.8rem 1.4rem;
    border: 1.5px solid #e4ecfb;
    text-align: center;
    transition: all var(--transition);
}
.impact-card:hover {
    border-color: var(--blue-500);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}
.impact-amount {
    display: inline-block;
    background: var(--blue-700);
    color: var(--white);
    font-size: 1.3rem;
    font-weight: 800;
    padding: .4rem 1rem;
    border-radius: 50px;
    margin-bottom: 1rem;
}
.impact-card p {
    font-size: .92rem;
    color: var(--text-mid);
    margin: 0;
    line-height: 1.55;
}

/* ── Supporters section ─────────────────────────────────────── */
.supporter-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 1.2rem 1.4rem;
    border: 1.5px solid #e4ecfb;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: box-shadow var(--transition);
}
.supporter-card:hover { box-shadow: var(--shadow-sm); }
.supporter-avatar {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--blue-100);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    font-weight: 700;
    color: var(--blue-700);
    font-size: 1rem;
}
.supporter-name { font-weight: 600; font-size: .95rem; }
.supporter-amount {
    margin-left: auto;
    font-weight: 700;
    color: var(--blue-700);
    font-size: 1rem;
}
.supporter-time {
    font-size: .78rem;
    color: var(--text-soft);
}

/* ── FAQ ────────────────────────────────────────────────────── */
.faq-accordion .accordion-item {
    border: 1.5px solid #e4ecfb;
    border-radius: var(--radius-md) !important;
    margin-bottom: .75rem;
    overflow: hidden;
    box-shadow: none;
}
.faq-accordion .accordion-button {
    font-weight: 600;
    font-size: .97rem;
    color: var(--blue-900);
    background: var(--white);
    padding: 1.1rem 1.4rem;
}
.faq-accordion .accordion-button:not(.collapsed) {
    color: var(--blue-700);
    background: var(--blue-50);
    box-shadow: none;
}
.faq-accordion .accordion-button::after {
    filter: none;
}
.faq-accordion .accordion-button:not(.collapsed)::after {
    filter: none;
}
.faq-accordion .accordion-body {
    font-size: .93rem;
    color: var(--text-mid);
    line-height: 1.7;
    padding: 1rem 1.4rem 1.4rem;
    background: var(--blue-50);
}

/* ── Thank You section ──────────────────────────────────────── */
.thankyou-section {
    background: linear-gradient(135deg, var(--blue-900), var(--blue-700));
    color: var(--white);
    text-align: center;
    padding: 4.5rem 0;
    position: relative;
    overflow: hidden;
}
.thankyou-section::before {
    content: '';
    position: absolute;
    width: 350px; height: 350px;
    border-radius: 50%;
    background: rgba(255,255,255,.06);
    top: -120px; right: -100px;
}
.thankyou-section h2 { color: var(--white); font-size: 2rem; font-weight: 800; }
.thankyou-section p  { color: rgba(255,255,255,.8); font-size: 1.05rem; }

/* ── Footer ─────────────────────────────────────────────────── */
.ib-footer {
    background: var(--blue-900);
    color: rgba(255,255,255,.65);
    padding: 2.5rem 0;
    font-size: .875rem;
}
.ib-footer a { color: rgba(255,255,255,.65); transition: color var(--transition); }
.ib-footer a:hover { color: var(--white); }
.ib-footer .brand { color: var(--white); font-weight: 700; font-size: 1.1rem; }

/* ── Alert / error banner ───────────────────────────────────── */
.error-alert {
    background: #fff3f3;
    border: 1.5px solid #f5c6cb;
    border-radius: var(--radius-sm);
    color: #721c24;
    padding: .9rem 1.2rem;
    font-size: .93rem;
    display: flex; gap: .7rem; align-items: flex-start;
}

/* ── Scroll reveal animation ────────────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .55s ease, transform .55s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Pagination ─────────────────────────────────────────────── */
.pagination .page-link {
    color: var(--blue-700);
    border-color: #dce8ff;
    border-radius: var(--radius-sm) !important;
    margin: 0 2px;
}
.pagination .page-item.active .page-link {
    background: var(--blue-700);
    border-color: var(--blue-700);
}

/* ── Responsive tweaks ──────────────────────────────────────── */
@media (max-width: 768px) {
    .hero-section  { padding: 3.5rem 0 3rem; }
    .hero-icon-ring { width: 180px; height: 180px; }
    .hero-icon-ring i { font-size: 4rem; }
    .hero-icon-ring::before { width: 148px; height: 148px; }
    .page-section { padding: 3.5rem 0; }
    .donation-section { padding: 1.5rem; }
    .preset-btn { min-width: 62px; padding: .55rem .8rem; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
}