/* ============================================================
   Swargiya Shravan Memorial Educational Trust
   Signature International Public School
   Custom stylesheet
   ============================================================ */

:root {
    --brand-primary: #0a4595;
    --brand-primary-dark: #06306b;
    --brand-secondary: #f9a826;
    --brand-secondary-dark: #d98b0a;
    --brand-accent: #1abc9c;
    --brand-light: #f5f9ff;
    --brand-dark: #0b1d3a;
    --brand-gray: #6c7a93;
    --brand-white: #ffffff;
    --brand-shadow: 0 12px 40px rgba(10, 69, 149, 0.12);
    --brand-shadow-lg: 0 25px 60px rgba(10, 69, 149, 0.18);
    --transition-fast: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Poppins', system-ui, -apple-system, sans-serif;
    color: #2b3344;
    line-height: 1.7;
    overflow-x: hidden;
    background: #fff;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
}

/* Prevent layout shift on long words / URLs / emails on small screens */
p, li, h1, h2, h3, h4, h5, h6, a, .form-control, .form-select {
    overflow-wrap: break-word;
    word-wrap: break-word;
}
img, iframe, video { max-width: 100%; height: auto; }
iframe { display: block; }

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    color: var(--brand-dark);
    letter-spacing: -0.5px;
}

a { color: var(--brand-primary); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--brand-secondary); }

.text-brand { color: var(--brand-primary) !important; }
.text-brand-secondary { color: var(--brand-secondary) !important; }
.bg-brand { background-color: var(--brand-primary) !important; }
.bg-brand-light { background-color: var(--brand-light) !important; }

/* ============================================================
   Page Loader
   ============================================================ */
.page-loader {
    position: fixed; inset: 0;
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-dark));
    z-index: 9999;
    display: flex; align-items: center; justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}
.page-loader.hidden { opacity: 0; visibility: hidden; }
.loader-spinner {
    width: 80px; height: 80px;
    border: 4px solid rgba(255,255,255,0.2);
    border-top-color: var(--brand-secondary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   Top Info Bar
   ============================================================ */
.top-bar {
    background: var(--brand-primary-dark);
    color: rgba(255,255,255,0.9);
    font-size: 0.875rem;
    padding: 0.5rem 0;
}
.top-bar a { color: rgba(255,255,255,0.9); }
.top-bar a:hover { color: var(--brand-secondary); }
.top-bar i { margin-right: 0.4rem; color: var(--brand-secondary); }
.top-bar .social-icons a {
    width: 30px; height: 30px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%; margin-left: 0.4rem;
    transition: var(--transition-fast);
}
.top-bar .social-icons a:hover {
    background: var(--brand-secondary);
    transform: translateY(-2px);
}

/* ============================================================
   Navbar
   ============================================================ */
.navbar {
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(12px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.05);
    transition: var(--transition);
    padding: 0.7rem 0;
}
.navbar.scrolled {
    padding: 0.4rem 0;
    box-shadow: 0 4px 25px rgba(0,0,0,0.08);
}
.navbar-brand { display: flex; align-items: center; gap: 0.7rem; }
.navbar-brand img { height: 55px; width: auto; transition: var(--transition); }
.navbar.scrolled .navbar-brand img { height: 48px; }
.brand-text {
    line-height: 1.1;
}
.brand-text .brand-title {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: var(--brand-primary);
    font-size: 1rem;
    display: block;
}
.brand-text .brand-subtitle {
    font-size: 0.72rem;
    color: var(--brand-gray);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: block;
    margin-top: 2px;
}
.navbar .nav-link {
    color: var(--brand-dark) !important;
    font-weight: 500;
    margin: 0 0.35rem;
    position: relative;
    padding: 0.5rem 0.9rem !important;
    transition: var(--transition-fast);
}
.navbar .nav-link::after {
    content: ''; position: absolute;
    left: 50%; bottom: 0; width: 0; height: 3px;
    background: var(--brand-secondary);
    border-radius: 3px;
    transition: var(--transition);
    transform: translateX(-50%);
}
.navbar .nav-link:hover, .navbar .nav-link.active { color: var(--brand-primary) !important; }
.navbar .nav-link:hover::after, .navbar .nav-link.active::after { width: 60%; }

.dropdown-menu {
    border: none;
    box-shadow: var(--brand-shadow);
    border-radius: 12px;
    padding: 0.6rem;
    margin-top: 0.4rem;
}
.dropdown-item {
    border-radius: 8px;
    padding: 0.6rem 1rem;
    transition: var(--transition-fast);
    font-weight: 500;
}
.dropdown-item:hover {
    background: var(--brand-light);
    color: var(--brand-primary);
    transform: translateX(4px);
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
    border-radius: 50px;
    padding: 0.7rem 1.8rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: none;
}
.btn-primary, .btn-brand {
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-dark));
    color: #fff;
    box-shadow: 0 6px 20px rgba(10, 69, 149, 0.3);
}
.btn-primary:hover, .btn-brand:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(10, 69, 149, 0.4);
    color: #fff;
}
.btn-secondary, .btn-donate {
    background: linear-gradient(135deg, var(--brand-secondary), var(--brand-secondary-dark));
    color: #fff;
    box-shadow: 0 6px 20px rgba(249, 168, 38, 0.35);
}
.btn-secondary:hover, .btn-donate:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(249, 168, 38, 0.5);
    color: #fff;
}
.btn-outline-brand {
    background: transparent;
    border: 2px solid var(--brand-primary);
    color: var(--brand-primary);
}
.btn-outline-brand:hover {
    background: var(--brand-primary);
    color: #fff;
    transform: translateY(-3px);
}

.btn-pulse {
    animation: pulse-btn 2s infinite;
}
@keyframes pulse-btn {
    0% { box-shadow: 0 0 0 0 rgba(249, 168, 38, 0.55); }
    70% { box-shadow: 0 0 0 18px rgba(249, 168, 38, 0); }
    100% { box-shadow: 0 0 0 0 rgba(249, 168, 38, 0); }
}

/* Shine effect */
.btn::before {
    content: '';
    position: absolute;
    top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
    transition: 0.6s;
}
.btn:hover::before { left: 100%; }

/* ============================================================
   Hero
   ============================================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex; align-items: center;
    background: linear-gradient(135deg, #0a4595 0%, #06306b 60%, #041f4a 100%);
    overflow: hidden;
    color: #fff;
    padding: 120px 0 80px;
}
.hero::before {
    content: '';
    position: absolute; inset: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(249,168,38,0.15) 0, transparent 35%),
        radial-gradient(circle at 80% 70%, rgba(26,188,156,0.15) 0, transparent 35%);
    animation: heroGlow 8s ease-in-out infinite alternate;
}
@keyframes heroGlow {
    0% { opacity: 0.6; }
    100% { opacity: 1; }
}

.hero-shapes span {
    position: absolute;
    display: block;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    animation: floatShape 20s linear infinite;
}
.hero-shapes span:nth-child(1) { width: 80px; height: 80px; top: 20%; left: 10%; animation-duration: 25s; }
.hero-shapes span:nth-child(2) { width: 30px; height: 30px; top: 60%; left: 80%; animation-duration: 18s; }
.hero-shapes span:nth-child(3) { width: 120px; height: 120px; top: 80%; left: 15%; animation-duration: 30s; background: rgba(249,168,38,0.08); }
.hero-shapes span:nth-child(4) { width: 50px; height: 50px; top: 30%; left: 70%; animation-duration: 22s; }
.hero-shapes span:nth-child(5) { width: 200px; height: 200px; top: -40px; left: 50%; animation-duration: 35s; background: rgba(26,188,156,0.06); }
.hero-shapes span:nth-child(6) { width: 60px; height: 60px; top: 70%; left: 50%; animation-duration: 20s; }
@keyframes floatShape {
    0%   { transform: translate(0,0) rotate(0deg); }
    50%  { transform: translate(40px,-60px) rotate(180deg); }
    100% { transform: translate(0,0) rotate(360deg); }
}

.hero-content { position: relative; z-index: 2; }
.hero-tagline {
    display: inline-flex; align-items: center; gap: 0.5rem;
    background: rgba(249,168,38,0.18);
    border: 1px solid rgba(249,168,38,0.35);
    color: #ffd58a;
    padding: 0.45rem 1.1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    animation: fadeInDown 0.8s ease both;
}
.hero-tagline i { color: var(--brand-secondary); }
.hero h1 {
    color: #fff;
    font-size: clamp(2.2rem, 5vw, 4rem);
    line-height: 1.15;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.9s ease 0.2s both;
}
.hero h1 .text-highlight {
    background: linear-gradient(135deg, var(--brand-secondary), #ffd58a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero p.lead {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.85);
    max-width: 580px;
    margin-bottom: 2.2rem;
    animation: fadeInUp 0.9s ease 0.35s both;
}
.hero-cta { animation: fadeInUp 0.9s ease 0.5s both; }
.hero-cta .btn { margin-right: 0.6rem; margin-bottom: 0.6rem; }

.hero-stats {
    margin-top: 3rem;
    display: flex; flex-wrap: wrap; gap: 2rem;
    animation: fadeInUp 0.9s ease 0.7s both;
}
.hero-stat .stat-num {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem; font-weight: 700;
    color: var(--brand-secondary);
    line-height: 1;
}
.hero-stat .stat-label {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.75);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: 0.35rem;
}

.hero-image {
    position: relative;
    animation: fadeInRight 1s ease 0.4s both;
}
.hero-image::before {
    content: '';
    position: absolute;
    inset: -30px;
    background: radial-gradient(circle, rgba(249,168,38,0.18), transparent 70%);
    border-radius: 50%;
    z-index: 0;
    animation: pulse-glow 4s ease-in-out infinite;
}
@keyframes pulse-glow {
    0%, 100% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(1.08); opacity: 1; }
}
.hero-image img {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 460px;
    margin: 0 auto;
    display: block;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.4));
    animation: floatImage 6s ease-in-out infinite;
}
@keyframes floatImage {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-18px); }
}

.scroll-indicator {
    position: absolute;
    bottom: 30px; left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.7);
    font-size: 0.85rem;
    text-align: center;
    z-index: 3;
}
.scroll-indicator i {
    display: block;
    margin-top: 0.4rem;
    animation: bounce 2s infinite;
}
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-12px); }
    60% { transform: translateY(-6px); }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-25px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(35px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(45px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-45px); }
    to { opacity: 1; transform: translateX(0); }
}

/* ============================================================
   Section helpers
   ============================================================ */
section { padding: 100px 0; position: relative; }
.section-eyebrow {
    display: inline-block;
    color: var(--brand-secondary);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    position: relative; padding: 0 28px;
}
.section-eyebrow::before, .section-eyebrow::after {
    content: ''; position: absolute; top: 50%;
    width: 20px; height: 2px; background: var(--brand-secondary);
}
.section-eyebrow::before { left: 0; }
.section-eyebrow::after { right: 0; }
.section-title {
    font-size: clamp(1.9rem, 3.5vw, 2.7rem);
    margin-bottom: 1rem;
}
.section-divider {
    width: 70px; height: 4px;
    background: linear-gradient(90deg, var(--brand-primary), var(--brand-secondary));
    border-radius: 4px;
    margin: 1rem auto 1.5rem;
}
.section-divider.start { margin-left: 0; }

/* ============================================================
   Page header (inner pages)
   ============================================================ */
.page-header {
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-dark));
    color: #fff;
    padding: 180px 0 100px;
    position: relative;
    overflow: hidden;
    text-align: center;
}
.page-header::before {
    content: '';
    position: absolute; inset: 0;
    background-image:
        radial-gradient(circle at 30% 40%, rgba(249,168,38,0.18), transparent 40%),
        radial-gradient(circle at 70% 60%, rgba(26,188,156,0.18), transparent 40%);
}
.page-header h1 {
    color: #fff;
    font-size: clamp(2rem, 4vw, 3.2rem);
    position: relative; z-index: 2;
}
.page-header .breadcrumb-pill {
    display: inline-flex;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(8px);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    margin-top: 1rem;
    position: relative; z-index: 2;
    color: rgba(255,255,255,0.9);
    font-size: 0.9rem;
}
.page-header .breadcrumb-pill a { color: var(--brand-secondary); }
.page-header .breadcrumb-pill .sep { margin: 0 0.6rem; opacity: 0.6; }

/* ============================================================
   Stats / counters
   ============================================================ */
.stats-section {
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-dark));
    color: #fff;
    padding: 70px 0;
    position: relative;
    overflow: hidden;
}
.stats-section::before {
    content: ''; position: absolute; inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0h60v60H0z' fill='none'/%3E%3Cpath d='M30 30m-1 0a1 1 0 1 1 2 0a1 1 0 1 1-2 0' fill='%23ffffff' fill-opacity='0.1'/%3E%3C/svg%3E");
    opacity: 0.4;
}
.stat-card {
    text-align: center; position: relative; z-index: 2;
    padding: 1rem;
}
.stat-card .stat-icon {
    width: 70px; height: 70px;
    background: rgba(255,255,255,0.12);
    border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.8rem;
    color: var(--brand-secondary);
    margin-bottom: 1rem;
    transition: var(--transition);
}
.stat-card:hover .stat-icon {
    background: var(--brand-secondary);
    color: #fff;
    transform: rotate(360deg) scale(1.1);
}
.stat-card .counter {
    font-family: 'Playfair Display', serif;
    font-size: 3rem; font-weight: 700;
    color: var(--brand-secondary);
    line-height: 1;
}
.stat-card .stat-label {
    color: rgba(255,255,255,0.85);
    font-size: 0.95rem;
    margin-top: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* ============================================================
   About / mission cards
   ============================================================ */
.about-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--brand-shadow-lg);
}
.about-image img { width: 100%; display: block; transition: var(--transition-slow); }
.about-image:hover img { transform: scale(1.05); }

.about-badge {
    position: absolute;
    bottom: -25px; right: -25px;
    background: linear-gradient(135deg, var(--brand-secondary), var(--brand-secondary-dark));
    color: #fff; padding: 1.2rem 1.6rem;
    border-radius: 16px; box-shadow: 0 10px 30px rgba(249,168,38,0.4);
    text-align: center;
}
.about-badge .num {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem; font-weight: 700; line-height: 1;
}
.about-badge .lbl {
    font-size: 0.78rem; text-transform: uppercase; letter-spacing: 1.5px; margin-top: 0.3rem;
}

.mvv-card {
    background: #fff;
    padding: 2.2rem 1.8rem;
    border-radius: 20px;
    box-shadow: var(--brand-shadow);
    height: 100%;
    transition: var(--transition);
    border-top: 4px solid transparent;
    position: relative;
    overflow: hidden;
}
.mvv-card::before {
    content: '';
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(135deg, var(--brand-light), transparent);
    opacity: 0; transition: var(--transition);
}
.mvv-card:hover {
    transform: translateY(-12px);
    border-top-color: var(--brand-secondary);
    box-shadow: var(--brand-shadow-lg);
}
.mvv-card:hover::before { opacity: 1; }
.mvv-card .icon-wrap {
    width: 70px; height: 70px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-dark));
    color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.7rem;
    margin-bottom: 1.4rem;
    transition: var(--transition);
    position: relative; z-index: 1;
}
.mvv-card:hover .icon-wrap {
    background: linear-gradient(135deg, var(--brand-secondary), var(--brand-secondary-dark));
    transform: rotateY(360deg);
}
.mvv-card h4 { position: relative; z-index: 1; margin-bottom: 0.8rem; }
.mvv-card p { position: relative; z-index: 1; color: var(--brand-gray); margin-bottom: 0; }

/* ============================================================
   Programs / cause cards
   ============================================================ */
.cause-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--brand-shadow);
    transition: var(--transition);
    height: 100%;
    display: flex; flex-direction: column;
}
.cause-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--brand-shadow-lg);
}
.cause-image {
    height: 220px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}
.cause-image::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(10, 29, 58, 0.6) 100%);
    transition: var(--transition);
}
.cause-card:hover .cause-image::after { background: linear-gradient(180deg, rgba(10,69,149,0.4) 0%, rgba(10, 29, 58, 0.7) 100%); }
.cause-tag {
    position: absolute; top: 18px; left: 18px;
    background: var(--brand-secondary);
    color: #fff;
    padding: 0.35rem 0.9rem;
    border-radius: 50px;
    font-size: 0.75rem; font-weight: 600;
    letter-spacing: 1px; text-transform: uppercase;
    z-index: 2;
}
.cause-body {
    padding: 1.8rem;
    display: flex; flex-direction: column; flex: 1;
}
.cause-body h4 { font-size: 1.25rem; margin-bottom: 0.7rem; }
.cause-body p { color: var(--brand-gray); flex: 1; }
.cause-progress {
    height: 8px; background: #eef2f8;
    border-radius: 50px; overflow: hidden;
    margin: 1rem 0 0.8rem;
}
.cause-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--brand-primary), var(--brand-secondary));
    border-radius: 50px;
    transition: width 1.5s ease;
}
.cause-meta {
    display: flex; justify-content: space-between;
    font-size: 0.85rem; color: var(--brand-gray);
}
.cause-meta strong { color: var(--brand-primary); font-weight: 700; }

/* ============================================================
   Donate
   ============================================================ */
.donate-cta {
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-dark));
    color: #fff;
    padding: 80px 0;
    border-radius: 24px;
    position: relative; overflow: hidden;
}
.donate-cta::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(circle at 80% 20%, rgba(249,168,38,0.25), transparent 50%);
}
.donate-cta::after {
    content: ''; position: absolute;
    width: 250px; height: 250px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    bottom: -125px; left: -125px;
}

.donation-amounts {
    display: flex; flex-wrap: wrap; gap: 0.7rem;
    margin: 1.2rem 0;
}
.donation-amount {
    flex: 1 1 120px;
    text-align: center;
    padding: 1.1rem 0.6rem;
    border: 2px solid #e1e8f3;
    border-radius: 14px;
    cursor: pointer;
    background: #fff;
    transition: var(--transition);
    font-weight: 600;
    color: var(--brand-primary);
    position: relative;
    user-select: none;
}
.donation-amount:hover {
    border-color: var(--brand-secondary);
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(249,168,38,0.18);
}
.donation-amount.active {
    background: linear-gradient(135deg, var(--brand-secondary), var(--brand-secondary-dark));
    border-color: transparent;
    color: #fff;
    box-shadow: 0 8px 22px rgba(249,168,38,0.4);
}
.donation-amount .amt {
    display: block;
    font-size: 1.4rem;
    font-family: 'Playfair Display', serif;
    line-height: 1.2;
}
.donation-amount .desc {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.25rem;
    opacity: 0.85;
}

.donation-form .form-control,
.donation-form .form-select,
.contact-form .form-control,
.contact-form .form-select {
    border: 2px solid #e1e8f3;
    border-radius: 12px;
    padding: 0.8rem 1.1rem;
    transition: var(--transition-fast);
    font-size: 0.95rem;
    background: #fff;
}
.donation-form .form-control:focus,
.donation-form .form-select:focus,
.contact-form .form-control:focus,
.contact-form .form-select:focus {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 4px rgba(10, 69, 149, 0.12);
}
.form-label { font-weight: 600; color: var(--brand-dark); margin-bottom: 0.4rem; font-size: 0.9rem; }

.donate-card {
    background: #fff;
    padding: 2.5rem;
    border-radius: 24px;
    box-shadow: var(--brand-shadow-lg);
}

.bank-detail {
    background: var(--brand-light);
    border-left: 4px solid var(--brand-secondary);
    padding: 1.4rem 1.6rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    transition: var(--transition);
}
.bank-detail:hover { transform: translateX(5px); box-shadow: var(--brand-shadow); }
.bank-detail .label {
    font-size: 0.78rem; text-transform: uppercase; letter-spacing: 1.5px;
    color: var(--brand-gray); margin-bottom: 0.25rem;
}
.bank-detail .value {
    font-weight: 600; color: var(--brand-dark); font-size: 1.05rem;
    word-break: break-all;
}

/* ============================================================
   Trustees / team
   ============================================================ */
.team-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--brand-shadow);
    transition: var(--transition);
    text-align: center;
    position: relative;
}
.team-card:hover { transform: translateY(-10px); box-shadow: var(--brand-shadow-lg); }
.team-image {
    height: 280px;
    background: linear-gradient(135deg, var(--brand-light), #e8f0fc);
    display: flex; align-items: flex-end; justify-content: center;
    position: relative; overflow: hidden;
}
.team-avatar {
    width: 200px; height: 200px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-dark));
    color: #fff;
    font-family: 'Playfair Display', serif;
    font-size: 4.5rem; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 30px;
    box-shadow: 0 14px 35px rgba(10,69,149,0.25);
    transition: var(--transition);
}
.team-card:hover .team-avatar {
    transform: scale(1.05);
    background: linear-gradient(135deg, var(--brand-secondary), var(--brand-secondary-dark));
}
.team-body { padding: 1.8rem 1.5rem; }
.team-body h4 { margin-bottom: 0.3rem; font-size: 1.3rem; }
.team-role {
    color: var(--brand-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.78rem;
    margin-bottom: 0.8rem;
}
.team-bio { color: var(--brand-gray); font-size: 0.92rem; }
.team-social a {
    width: 36px; height: 36px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--brand-light); color: var(--brand-primary);
    border-radius: 50%; margin: 0 0.2rem;
    transition: var(--transition-fast);
}
.team-social a:hover {
    background: var(--brand-primary); color: #fff;
    transform: translateY(-3px);
}

/* ============================================================
   School / facilities
   ============================================================ */
.facility-card {
    background: #fff;
    padding: 2rem 1.6rem;
    border-radius: 18px;
    box-shadow: var(--brand-shadow);
    transition: var(--transition);
    height: 100%;
    text-align: center;
    border-bottom: 4px solid transparent;
}
.facility-card:hover {
    transform: translateY(-8px);
    border-bottom-color: var(--brand-secondary);
    box-shadow: var(--brand-shadow-lg);
}
.facility-card .ico {
    width: 80px; height: 80px;
    margin: 0 auto 1.2rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-light), #e1ebfa);
    color: var(--brand-primary);
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem;
    transition: var(--transition);
}
.facility-card:hover .ico {
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-dark));
    color: #fff;
    transform: rotateY(360deg);
}
.facility-card h5 { margin-bottom: 0.7rem; font-size: 1.15rem; }
.facility-card p { color: var(--brand-gray); font-size: 0.9rem; margin-bottom: 0; }

.curriculum-item {
    display: flex; gap: 1rem; align-items: flex-start;
    padding: 1.4rem; background: #fff;
    border-radius: 14px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.04);
    transition: var(--transition);
    margin-bottom: 1rem;
}
.curriculum-item:hover {
    background: var(--brand-light);
    transform: translateX(8px);
}
.curriculum-item .num {
    width: 50px; height: 50px;
    flex: 0 0 50px;
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-dark));
    color: #fff;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.3rem;
}
.curriculum-item h6 { margin-bottom: 0.3rem; font-size: 1.05rem; }
.curriculum-item p { color: var(--brand-gray); font-size: 0.88rem; margin-bottom: 0; }

/* ============================================================
   Gallery
   ============================================================ */
.gallery-item {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4/3;
}
.gallery-item .gallery-img {
    width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.7s ease;
}
.gallery-item:hover .gallery-img { transform: scale(1.12); }
.gallery-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 30%, rgba(6, 48, 107, 0.85));
    color: #fff;
    display: flex; align-items: flex-end;
    padding: 1.4rem;
    opacity: 0;
    transition: var(--transition);
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay h5 { color: #fff; margin-bottom: 0.3rem; }
.gallery-overlay span {
    font-size: 0.85rem;
    color: var(--brand-secondary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* ============================================================
   Testimonials
   ============================================================ */
.testimonial-card {
    background: #fff;
    padding: 2.2rem;
    border-radius: 20px;
    box-shadow: var(--brand-shadow);
    margin: 1rem;
    position: relative;
    transition: var(--transition);
}
.testimonial-card:hover { transform: translateY(-6px); box-shadow: var(--brand-shadow-lg); }
.testimonial-card::before {
    content: '\201C';
    position: absolute;
    top: 10px; left: 22px;
    font-family: 'Playfair Display', serif;
    font-size: 5rem;
    color: var(--brand-secondary);
    line-height: 1;
    opacity: 0.3;
}
.testimonial-card p {
    font-style: italic;
    color: #4a5772;
    margin-bottom: 1.4rem;
    position: relative; z-index: 1;
}
.testimonial-author {
    display: flex; align-items: center; gap: 0.9rem;
}
.testimonial-author .avatar {
    width: 55px; height: 55px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-dark));
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.4rem;
}
.testimonial-author .name { font-weight: 700; color: var(--brand-dark); margin-bottom: 0; }
.testimonial-author .role { font-size: 0.85rem; color: var(--brand-gray); }

/* ============================================================
   Contact
   ============================================================ */
.contact-card {
    background: #fff;
    padding: 2rem 1.6rem;
    border-radius: 18px;
    text-align: center;
    box-shadow: var(--brand-shadow);
    height: 100%;
    transition: var(--transition);
}
.contact-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--brand-shadow-lg);
}
.contact-card .ico {
    width: 75px; height: 75px;
    margin: 0 auto 1.2rem;
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-dark));
    color: #fff;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.7rem;
    transition: var(--transition);
}
.contact-card:hover .ico {
    background: linear-gradient(135deg, var(--brand-secondary), var(--brand-secondary-dark));
    transform: rotate(360deg);
}
.contact-card h5 { margin-bottom: 0.5rem; }
.contact-card a, .contact-card p { color: var(--brand-gray); font-size: 0.95rem; }

.map-frame {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--brand-shadow-lg);
    border: 0;
    width: 100%; height: 450px;
}

/* ============================================================
   Newsletter / CTA
   ============================================================ */
.cta-banner {
    background: linear-gradient(135deg, var(--brand-secondary), var(--brand-secondary-dark));
    border-radius: 24px;
    padding: 4rem 3rem;
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cta-banner::before {
    content: ''; position: absolute;
    width: 300px; height: 300px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
    top: -100px; right: -100px;
}
.cta-banner::after {
    content: ''; position: absolute;
    width: 200px; height: 200px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
    bottom: -60px; left: -40px;
}
.cta-banner h2 { color: #fff; position: relative; z-index: 2; }
.cta-banner p, .cta-banner .btn { position: relative; z-index: 2; }

/* ============================================================
   Footer
   ============================================================ */
.footer {
    background: #06192e;
    color: rgba(255,255,255,0.75);
    padding: 80px 0 0;
    position: relative;
    overflow: hidden;
}
.footer::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(circle at 20% 0%, rgba(10,69,149,0.4), transparent 40%);
}
.footer h5 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.7rem;
}
.footer h5::after {
    content: '';
    position: absolute;
    left: 0; bottom: 0;
    width: 40px; height: 3px;
    background: var(--brand-secondary);
    border-radius: 3px;
}
.footer-brand {
    display: flex; align-items: center; gap: 0.7rem; margin-bottom: 1.2rem;
}
.footer-brand img { height: 60px; width: auto; }
.footer-brand .ttl {
    color: #fff;
    font-family: 'Playfair Display', serif;
    font-size: 1.05rem;
    line-height: 1.2;
}
.footer p, .footer a { color: rgba(255,255,255,0.7); }
.footer a:hover { color: var(--brand-secondary); }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer ul li {
    margin-bottom: 0.65rem;
    transition: var(--transition-fast);
}
.footer ul li:hover { transform: translateX(5px); }
.footer ul li i { color: var(--brand-secondary); margin-right: 0.5rem; font-size: 0.75rem; }

.footer-social a {
    width: 38px; height: 38px;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.08);
    color: #fff;
    border-radius: 50%;
    margin-right: 0.4rem;
    transition: var(--transition-fast);
}
.footer-social a:hover {
    background: var(--brand-secondary);
    color: #fff;
    transform: translateY(-3px);
}

.newsletter-form {
    display: flex; gap: 0.5rem;
    margin-top: 1rem;
}
.newsletter-form input {
    flex: 1;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    color: #fff;
    border-radius: 50px;
    padding: 0.7rem 1.2rem;
    font-size: 0.9rem;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.5); }
.newsletter-form input:focus { outline: none; border-color: var(--brand-secondary); }
.newsletter-form button {
    background: var(--brand-secondary);
    border: none;
    color: #fff;
    border-radius: 50%;
    width: 44px; height: 44px;
    transition: var(--transition-fast);
}
.newsletter-form button:hover { background: var(--brand-secondary-dark); transform: rotate(-15deg); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 1.5rem 0;
    margin-top: 50px;
    font-size: 0.875rem;
    text-align: center;
    color: rgba(255,255,255,0.5);
}

/* ============================================================
   Back to top
   ============================================================ */
.back-to-top {
    position: fixed; bottom: 30px; right: 30px;
    width: 48px; height: 48px;
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-dark));
    color: #fff; border: none;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    box-shadow: var(--brand-shadow);
    opacity: 0; visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    z-index: 999;
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover {
    background: linear-gradient(135deg, var(--brand-secondary), var(--brand-secondary-dark));
    transform: translateY(-5px);
}

/* ============================================================
   Floating donate button
   ============================================================ */
.float-donate {
    position: fixed; bottom: 30px; left: 30px;
    z-index: 998;
    box-shadow: 0 10px 30px rgba(249,168,38,0.5);
    animation: pulse-btn 2.5s infinite;
}

/* ============================================================
   Responsive — comprehensive tablet & mobile overrides
   Breakpoints (mobile-first additive):
     - 1199px and down — small laptops / large tablets
     - 991px and down  — tablets (Bootstrap lg → md)
     - 767px and down  — large phones / small tablets (Bootstrap md → sm)
     - 575px and down  — phones (Bootstrap sm → xs)
     - 380px and down  — very small phones
   ============================================================ */

/* Touch targets — apply globally so taps never miss */
@media (hover: none) and (pointer: coarse) {
    .btn, .nav-link, .dropdown-item, .form-control, .form-select,
    .donation-amount, .filter-btn, .navbar-toggler,
    .footer-social a, .top-bar .social-icons a, .team-social a,
    .accordion-button, .back-to-top, .float-donate {
        min-height: 44px;
    }
    /* prevent iOS double-tap zoom on form fields */
    .form-control, .form-select { font-size: 16px; }
}

/* ---- 1199px and down ---------------------------------- */
@media (max-width: 1199.98px) {
    section { padding: 90px 0; }
    .hero h1 { font-size: clamp(2rem, 4.2vw, 3.5rem); }
    .section-title { font-size: clamp(1.8rem, 3.2vw, 2.5rem); }
    .hero-stat .stat-num { font-size: 2rem; }
}

/* ---- 991px and down (tablets) ------------------------- */
@media (max-width: 991.98px) {
    section { padding: 70px 0; }
    .page-header { padding: 140px 0 60px; }
    .hero { padding: 100px 0 50px; min-height: auto; }
    .hero-content { text-align: center; }
    .hero-tagline { margin-left: auto; margin-right: auto; }
    .hero p.lead { margin-left: auto; margin-right: auto; }
    .hero-cta { display: flex; flex-wrap: wrap; justify-content: center; }
    .hero-cta .btn { flex: 0 1 auto; }
    .hero-stats { justify-content: center; gap: 1.5rem; margin-top: 2.5rem; }
    .hero-stat { text-align: center; }
    .hero-stat .stat-num { font-size: 1.9rem; }
    .hero-image { margin-top: 3rem; max-width: 320px; margin-left: auto; margin-right: auto; }
    .hero-image img { max-width: 320px; }
    .scroll-indicator { display: none; }

    .navbar { padding: 0.55rem 0; }
    .navbar-collapse {
        background: #fff;
        margin-top: 0.6rem;
        padding: 1rem;
        border-radius: 14px;
        box-shadow: var(--brand-shadow);
        max-height: 70vh;
        overflow-y: auto;
    }
    .navbar .nav-link { padding: 0.7rem 0.9rem !important; }
    .navbar .nav-link::after { display: none; }
    .navbar .nav-item { border-bottom: 1px solid #f0f3f9; }
    .navbar .nav-item:last-child { border-bottom: 0; }
    .brand-text .brand-title { font-size: 0.9rem; }
    .brand-text .brand-subtitle { font-size: 0.62rem; }

    .float-donate {
        bottom: 80px; left: 16px;
        padding: 0.55rem 1.1rem;
        font-size: 0.85rem;
    }
    .back-to-top { bottom: 16px; right: 16px; width: 44px; height: 44px; }

    .donate-card { padding: 1.8rem; }
    .about-badge {
        right: 16px; bottom: -16px;
        padding: 1rem 1.2rem;
    }
    .about-badge .num { font-size: 1.7rem; }
    .about-badge .lbl { font-size: 0.7rem; }

    .cta-banner { padding: 2.8rem 1.6rem; border-radius: 18px; }
    .cta-banner h2 { font-size: 1.7rem; }

    .team-image { height: 240px; }
    .team-avatar { width: 170px; height: 170px; font-size: 3.8rem; }

    .map-frame { height: 380px; }

    /* Curriculum items — keep horizontal but tighter */
    .curriculum-item { padding: 1.1rem; }
    .curriculum-item .num { width: 44px; height: 44px; flex: 0 0 44px; font-size: 1.1rem; }
}

/* ---- 767px and down (large phones / small tablets) --- */
@media (max-width: 767.98px) {
    section { padding: 55px 0; }
    .page-header { padding: 120px 0 45px; }

    .top-bar { padding: 0.4rem 0; font-size: 0.78rem; }
    .top-bar .top-info span { display: block; margin-right: 0; }
    .top-bar .top-info span.me-3 { margin-bottom: 0.2rem; }
    .top-bar .d-flex { flex-direction: column; align-items: center; gap: 0.3rem; }
    .top-bar .d-none-sm { display: none !important; }

    .navbar-brand img { height: 44px !important; }
    .brand-text .brand-title { font-size: 0.85rem; }
    .brand-text .brand-subtitle { display: none; }

    h1, .display-5 { font-size: clamp(1.6rem, 6vw, 2.2rem) !important; }
    h2, .section-title { font-size: 1.5rem !important; }
    .hero h1 { font-size: clamp(1.8rem, 7vw, 2.5rem); }
    .hero p.lead { font-size: 1rem; }

    .section-eyebrow { font-size: 0.78rem; letter-spacing: 2px; padding: 0 22px; }
    .section-eyebrow::before, .section-eyebrow::after { width: 16px; }

    .hero-stats {
        gap: 1rem;
        flex-wrap: wrap;
    }
    .hero-stat { flex: 1 1 30%; min-width: 90px; }
    .hero-stat .stat-num { font-size: 1.6rem; }
    .hero-stat .stat-label { font-size: 0.72rem; letter-spacing: 1px; }

    .stats-section { padding: 50px 0; }
    .stat-card .counter { font-size: 2.3rem; }
    .stat-card .stat-icon { width: 60px; height: 60px; font-size: 1.5rem; margin-bottom: 0.7rem; }
    .stat-card .stat-label { font-size: 0.78rem; letter-spacing: 1px; }

    .mvv-card { padding: 1.8rem 1.4rem; }
    .mvv-card .icon-wrap { width: 60px; height: 60px; font-size: 1.4rem; margin-bottom: 1rem; }

    .facility-card { padding: 1.6rem 1.1rem; }
    .facility-card .ico { width: 65px; height: 65px; font-size: 1.6rem; margin-bottom: 0.9rem; }

    .cause-image { height: 180px; }
    .cause-body { padding: 1.4rem; }

    .testimonial-card { padding: 1.6rem; margin: 0.5rem 0; }
    .testimonial-card::before { font-size: 3.5rem; top: 4px; left: 12px; }

    .contact-card { padding: 1.6rem 1.1rem; }
    .contact-card .ico { width: 60px; height: 60px; font-size: 1.4rem; margin-bottom: 0.8rem; }

    .donate-card { padding: 1.4rem 1.1rem; border-radius: 18px; }
    .donation-amounts { gap: 0.5rem; }
    .donation-amount { padding: 0.85rem 0.4rem; flex-basis: calc(50% - 0.25rem); }
    .donation-amount .amt { font-size: 1.15rem; }
    .donation-amount .desc { font-size: 0.62rem; }

    .bank-detail { padding: 1rem 1.1rem; }
    .bank-detail .value { font-size: 0.95rem; }

    .team-image { height: 220px; }
    .team-avatar { width: 150px; height: 150px; font-size: 3.3rem; margin-bottom: 22px; }
    .team-body { padding: 1.4rem 1.1rem; }
    .team-body h4 { font-size: 1.1rem; }

    .gallery-item .gallery-img { aspect-ratio: 4/3; }
    .gallery-overlay { padding: 1rem; }
    .gallery-overlay h5 { font-size: 1rem; }

    .footer { padding: 60px 0 0; }
    .footer h5 { font-size: 1rem; margin-bottom: 1rem; }
    .footer-bottom { padding: 1.2rem 0.5rem; font-size: 0.78rem; line-height: 1.5; }
    .newsletter-form input { font-size: 16px; padding: 0.6rem 1rem; }

    .map-frame { height: 320px; border-radius: 14px; }

    .float-donate {
        bottom: 70px; left: 12px;
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
    .back-to-top { bottom: 12px; right: 12px; width: 42px; height: 42px; }

    .breadcrumb-pill { font-size: 0.82rem; padding: 0.4rem 1rem; }

    /* Curriculum items — stack on small screens */
    .curriculum-item {
        flex-direction: row;
        gap: 0.8rem;
        padding: 1rem;
    }
    .curriculum-item .num { width: 40px; height: 40px; flex: 0 0 40px; font-size: 1rem; }
    .curriculum-item h6 { font-size: 0.98rem; }
    .curriculum-item p { font-size: 0.85rem; }

    /* About image badge — adjust for stacked layout */
    .about-badge { right: 12px; bottom: -14px; padding: 0.85rem 1rem; }
    .about-badge .num { font-size: 1.5rem; }
    .about-badge .lbl { font-size: 0.65rem; line-height: 1.2; }

    /* Page header height for inner pages */
    .page-header h1 { font-size: clamp(1.7rem, 5.5vw, 2.2rem) !important; }

    /* Container side padding tighter */
    .container { padding-left: 16px; padding-right: 16px; }
}

/* ---- 575px and down (phones) ------------------------- */
@media (max-width: 575.98px) {
    section { padding: 45px 0; }
    .page-header { padding: 105px 0 38px; }

    .top-bar .social-icons a {
        width: 28px; height: 28px;
        font-size: 0.85rem;
        margin-left: 0.25rem;
    }

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

    .hero { padding: 90px 0 40px; }
    .hero h1 { font-size: 1.7rem; line-height: 1.2; }
    .hero p.lead { font-size: 0.95rem; }
    .hero-tagline { font-size: 0.75rem; padding: 0.35rem 0.9rem; }
    .hero-cta .btn { width: 100%; margin-bottom: 0.5rem; margin-right: 0; }
    .hero-stat .stat-num { font-size: 1.4rem; }
    .hero-image { max-width: 240px; }
    .hero-image img { max-width: 240px; }

    .btn { padding: 0.6rem 1.4rem; font-size: 0.9rem; }
    .btn-lg { padding: 0.7rem 1.6rem; font-size: 0.95rem; }

    .donation-amount { flex-basis: calc(50% - 0.25rem); padding: 0.75rem 0.35rem; }
    .donation-amount .amt { font-size: 1.05rem; }

    .stat-card .counter { font-size: 2rem; }

    .cta-banner { padding: 2.2rem 1.1rem; }
    .cta-banner h2 { font-size: 1.5rem; }
    .cta-banner p { font-size: 0.92rem; }

    .accordion-button { font-size: 0.92rem; padding: 0.9rem 1rem; }
    .accordion-body { font-size: 0.9rem; padding: 1rem; }

    /* footer columns full width */
    .footer .row > [class*="col-"] { margin-bottom: 1.5rem; }
    .footer ul li { font-size: 0.92rem; line-height: 1.5; }

    /* Float donate — smaller on phones */
    .float-donate {
        bottom: 60px; left: 10px;
        padding: 0.45rem 0.9rem;
        font-size: 0.78rem;
    }
    .float-donate i { margin-right: 0.2rem !important; }
    .back-to-top { bottom: 10px; right: 10px; width: 40px; height: 40px; }

    .map-frame { height: 280px; }

    /* Trustees / advisors stack cleanly */
    .team-card { max-width: 380px; margin: 0 auto; }

    .map-frame { height: 260px; }
}

/* ---- 380px and down (very small phones) ------------- */
@media (max-width: 379.98px) {
    .navbar-brand img { height: 36px !important; }
    .brand-text .brand-title { font-size: 0.78rem; }
    .top-bar { font-size: 0.72rem; }
    .top-bar .top-info span:not(.me-3) { display: none; }

    .hero h1 { font-size: 1.5rem; }
    .donation-amount { flex-basis: 100%; }
    .donation-amount .amt { font-size: 1.2rem; }

    .float-donate span { display: none; }
    .float-donate i { margin: 0 !important; }
}

/* ---- Landscape phone — keep hero compact ------------ */
@media (max-height: 520px) and (orientation: landscape) {
    .hero { min-height: auto; padding: 80px 0 40px; }
    .hero-image { max-width: 200px; }
    .scroll-indicator { display: none; }
}

/* ---- Tablet portrait (between 768 and 991) ---------- */
@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-image { max-width: 360px; }
    .hero-image img { max-width: 360px; }
    .donation-amount { flex-basis: calc(33.333% - 0.5rem); }
    /* 4-up cards become 2-up */
    .stat-card .counter { font-size: 2.6rem; }
}

/* ---- Reduced motion preference ---------------------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .hero-image img, .sips-logo-card { animation: none !important; }
    .float-donate { animation: none !important; }
}

/* ---- Print friendly --------------------------------- */
@media print {
    .top-bar, .navbar, .float-donate, .back-to-top, .page-loader,
    .footer-social, .newsletter-form, .scroll-indicator { display: none !important; }
    .hero, .page-header { color: #000; background: #fff !important; }
    .hero h1, .page-header h1 { color: #000; }
    a { color: #000 !important; text-decoration: underline; }
    section { padding: 20px 0; page-break-inside: avoid; }
}

/* utility */
.shadow-soft { box-shadow: var(--brand-shadow); }
.rounded-2xl { border-radius: 22px !important; }
.text-justify { text-align: justify; }
.bg-pattern {
    background-color: var(--brand-light);
    background-image:
        radial-gradient(circle at 1px 1px, rgba(10, 69, 149, 0.08) 1px, transparent 0);
    background-size: 24px 24px;
}
