@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@500;600;700;800&family=Inter:wght@400;500;600&display=swap');

:root {
    --maroon: #7a1f2b;
    --maroon-dark: #591620;
    --maroon-light: #a3384a;
    --gold: #d4a017;
    --gold-light: #f2d580;
    --bg: #faf8f6;
    --text: #221417;
    --muted: #6b6068;
    --card-shadow: 0 4px 20px rgba(122, 31, 43, 0.08);
    --card-shadow-hover: 0 12px 32px rgba(122, 31, 43, 0.16);
}
* { box-sizing: border-box; }
body { margin: 0; font-family: 'Inter', 'Segoe UI', Arial, sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; }
h1, h2, h3, h4 { font-family: 'Poppins', 'Segoe UI', Arial, sans-serif; }
a { color: var(--maroon); }
img { max-width: 100%; display: block; }

/* ---------- Header ---------- */
.site-header {
    background: var(--maroon);
    color: #fff;
    padding: 16px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 12px rgba(0,0,0,0.12);
}
.site-header .brand { font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 19px; letter-spacing: 0.3px; }
.site-header nav a { color: #f4e2e5; text-decoration: none; margin-left: 18px; font-size: 13.5px; font-weight: 500; transition: color 0.15s; }
.site-header nav a:hover { color: var(--gold-light); }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    color: #fff;
    padding: 100px 40px 90px;
    text-align: center;
    background: linear-gradient(135deg, var(--maroon) 0%, var(--maroon-dark) 100%);
    background-size: cover;
    background-position: center;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(89,22,32,0.88), rgba(122,31,43,0.75));
}
.hero-content { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; }
.hero h1 { font-size: 42px; font-weight: 800; margin-bottom: 14px; letter-spacing: -0.5px; }
.hero p { font-size: 17px; opacity: 0.95; max-width: 620px; margin: 0 auto 28px; }
.hero-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn-gold { background: var(--gold); color: #3a2a05; font-weight: 700; }
.btn-gold:hover { background: var(--gold-light); }
.btn-outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.7); }
.btn-outline:hover { background: rgba(255,255,255,0.12); }

/* ---------- Stats ---------- */
.stat-row {
    display: flex; gap: 32px; justify-content: center; flex-wrap: wrap;
    padding: 40px 40px; background: #fff; margin-top: -1px;
}
.stat-row .stat { text-align: center; min-width: 120px; }
.stat-row .stat .num { font-family: 'Poppins', sans-serif; font-size: 32px; font-weight: 800; color: var(--maroon); }
.stat-row .stat .label { font-size: 13px; color: var(--muted); margin-top: 2px; }

/* ---------- Sections ---------- */
.section { padding: 60px 40px; max-width: 1100px; margin: 0 auto; }
.section-alt { background: #fff; }
.section h2 { font-size: 28px; font-weight: 700; margin-bottom: 8px; color: var(--maroon); }
.section .section-lead { color: var(--muted); font-size: 15px; margin-bottom: 28px; max-width: 600px; }
.section-header { text-align: center; margin-bottom: 36px; }
.section-header h2 { margin-bottom: 8px; }
.section-header .section-lead { margin: 0 auto; }

/* ---------- Programme cards ---------- */
.programme-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 22px; }
.programme-card {
    background: #fff; border-radius: 14px; overflow: hidden; text-decoration: none; color: inherit;
    box-shadow: var(--card-shadow); transition: transform 0.2s, box-shadow 0.2s; display: flex; flex-direction: column;
}
.programme-card:hover { transform: translateY(-4px); box-shadow: var(--card-shadow-hover); }
.programme-card .img-wrap { height: 150px; background: linear-gradient(135deg, var(--maroon-light), var(--gold)); position: relative; overflow: hidden; }
.programme-card .img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.programme-card .img-wrap .icon-fallback { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 40px; color: rgba(255,255,255,0.85); }
.programme-card .card-body { padding: 18px 20px; flex: 1; }
.programme-card h3 { margin: 0 0 6px; font-size: 16px; color: var(--maroon); }
.programme-card p { font-size: 13px; color: var(--muted); margin: 0; }

/* ---------- Testimonials ---------- */
.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }
.testimonial-card { background: #fff; border-radius: 14px; padding: 24px; box-shadow: var(--card-shadow); }
.testimonial-card .quote { font-size: 14.5px; color: var(--text); font-style: italic; margin-bottom: 16px; }
.testimonial-card .person { display: flex; align-items: center; gap: 12px; }
.testimonial-card .avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: linear-gradient(135deg, var(--maroon-light), var(--gold)); flex-shrink: 0; }
.testimonial-card .avatar-fallback { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--maroon-light), var(--gold)); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; flex-shrink: 0; }
.testimonial-card .person-name { font-weight: 600; font-size: 13.5px; }
.testimonial-card .person-role { font-size: 12px; color: var(--muted); }

/* ---------- Leadership / team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 22px; }
.team-card { text-align: center; }
.team-card .photo { width: 120px; height: 120px; border-radius: 50%; margin: 0 auto 12px; object-fit: cover; box-shadow: var(--card-shadow); }
.team-card .photo-fallback { width: 120px; height: 120px; border-radius: 50%; margin: 0 auto 12px; background: linear-gradient(135deg, var(--maroon-light), var(--gold)); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 32px; font-weight: 700; box-shadow: var(--card-shadow); }
.team-card h4 { margin: 0 0 2px; font-size: 15px; }
.team-card .role { font-size: 12.5px; color: var(--muted); margin-bottom: 6px; }
.team-card .bio { font-size: 12.5px; color: var(--text); }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.gallery-item { border-radius: 10px; overflow: hidden; box-shadow: var(--card-shadow); aspect-ratio: 4/3; position: relative; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item .caption { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(transparent, rgba(0,0,0,0.65)); color: #fff; font-size: 12px; padding: 20px 10px 8px; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(135deg, var(--maroon), var(--maroon-dark)); color: #fff; padding: 50px 40px; text-align: center; }
.cta-band h2 { color: #fff; margin-bottom: 10px; }
.cta-band p { opacity: 0.9; margin-bottom: 22px; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-block; background: var(--maroon); color: #fff; border: none;
    padding: 12px 26px; border-radius: 8px; font-size: 14px; font-weight: 600;
    cursor: pointer; text-decoration: none; transition: background 0.15s, transform 0.1s;
}
.btn:hover { background: var(--maroon-dark); }

/* ---------- Forms ---------- */
form.public-form label { display: block; font-weight: 600; font-size: 13px; margin: 12px 0 4px; }
form.public-form input, form.public-form select, form.public-form textarea {
    width: 100%; padding: 10px 12px; border: 1px solid #e0d5d8; border-radius: 8px; font-size: 14px; font-family: inherit;
}
.success-msg { background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534; padding: 12px 16px; border-radius: 8px; font-size: 14px; margin-bottom: 16px; }
.error-box { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; padding: 12px 16px; border-radius: 8px; font-size: 14px; margin-bottom: 16px; }

/* ---------- Footer ---------- */
.site-footer { background: #1a1013; color: #d9c9cc; padding: 40px 40px 30px; text-align: center; font-size: 13px; }
.site-footer p { margin: 4px 0; }
.site-footer a { color: #f2d580; }

@media (max-width: 640px) {
    .hero h1 { font-size: 30px; }
    .site-header { padding: 14px 20px; }
    .section { padding: 40px 20px; }
}
