/* Fallback CSS for landing page (no Tailwind directives) */

:root {
    /* RISE UDB branding palette */
    --primary: #006d2f;    /* green */
    --accent: #b0c345;     /* lime */
    --brand-blue: #30569d; /* blue */
    --brand-gray: #808080; /* gray */
    --dark: #0f172a;
    --muted: #808080;
    --bg: #f7fafc;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; color: #0f172a; background: var(--bg); scroll-behavior: smooth; background-image:
        radial-gradient(1000px 500px at -10% 10%, rgba(48,86,157,0.06), transparent 60%),
        radial-gradient(900px 420px at 110% 25%, rgba(0,109,47,0.05), transparent 60%),
        radial-gradient(800px 380px at 50% 120%, rgba(176,195,69,0.06), transparent 60%),
        linear-gradient(180deg, #ffffff 0%, #f7fafc 100%);
    background-attachment: fixed, fixed, fixed, scroll; }
a { color: inherit; text-decoration: none; }
header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 50; backdrop-filter: saturate(120%) blur(8px);
    background: #ffffff; border-bottom: 1px solid rgba(0,0,0,0.06);
}
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.nav { display: flex; align-items: center; justify-content: space-between; height: 88px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: 0.4px; }
.brand img.logo { height: 72px; width: auto; display: block; background: #ffffff; border-radius: 12px; padding: 6px 10px; box-shadow: 0 4px 14px rgba(0,0,0,0.06); border: 1px solid rgba(0,0,0,0.06); }
.brand .dot { width: 10px; height: 10px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--accent)); box-shadow: 0 0 16px rgba(0,212,255,0.6); }
.menu { display: flex; gap: 18px; font-weight: 500; color: #0f172a; }
.menu a { padding: 8px 10px; border-radius: 8px; transition: .2s ease; color: #0f172a; }
.menu a:hover, .menu a:focus { color: var(--accent); background: rgba(0,0,0,0.06); }
.menu a.active { color: var(--accent); font-weight: 700; }
.contact-btn { padding: 10px 14px; border-radius: 999px; border: 1px solid rgba(48,86,157,0.5); color: var(--brand-blue); transition: .2s ease; display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.6); }
.contact-btn:hover { background: rgba(48,86,157,0.08); border-color: rgba(48,86,157,0.85); }
.hero {
    position: relative; overflow: hidden; margin-top: var(--header-h, 88px); padding: 120px 0 80px; text-align: center;
    /* Fixed design size for hero: 2048 × 817 on large screens */
    height: 817px;
    max-height: none;
    max-width: 2048px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(2,6,23,0.35), rgba(2,6,23,0.15) 30%, rgba(2,6,23,0.35)),
                radial-gradient(900px 400px at 80% 10%, rgba(176,195,69,0.15), transparent 60%),
                url('/images/hero.jpg');
    /* Keep overlays covering; make the hero image fill and anchor to the top */
    background-size: cover, cover, cover;
    background-position: center, center, top center;
    background-repeat: no-repeat;
    background-color: #0b1020; /* fallback color around contained image */
}
.title { font-size: clamp(28px, 6vw, 56px); line-height: 1.1; margin: 0 0 16px; font-weight: 800; }
.subtitle { font-size: clamp(16px, 2.5vw, 22px); color: #cbd5e1; margin-bottom: 28px; }
.date { display: inline-block; padding: 10px 14px; border: 1px solid rgba(0,0,0,0.08); border-radius: 999px; color: #0f172a; backdrop-filter: blur(6px); background: rgba(255,255,255,0.85); }
.cta { margin-top: 28px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn { padding: 12px 18px; border-radius: 12px; border: 1px solid rgba(148,163,184,0.25); cursor: pointer; font-weight: 600; }
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--accent)); color: #0b1020; border: none; box-shadow: 0 10px 24px rgba(0,109,47,0.25), 0 4px 12px rgba(176,195,69,0.18); }
.btn-ghost { background: #ffffff; color: #0f172a; border: 1px solid rgba(0,0,0,0.08); }
/* Nav Register button solid brand blue */
.menu .btn-primary { background: #30569d; color: #ffffff; border: none; box-shadow: 0 10px 20px rgba(48,86,157,0.28); }
/* Register form submit button matches nav blue */
#register .btn-primary { background: #30569d; color: #ffffff; border: none; box-shadow: 0 10px 20px rgba(48,86,157,0.28); }
#register .btn-primary:hover, #register .btn-primary:focus { filter: brightness(1.05); box-shadow: 0 12px 22px rgba(48,86,157,0.34); }
section { position: relative; padding: 72px 0; border-top: 1px solid rgba(0,0,0,0.05); }
/* Alternating section backgrounds for visual rhythm */
section:nth-of-type(odd) { background: linear-gradient(180deg, rgba(48,86,157,0.04), rgba(48,86,157,0.02)); }
section:nth-of-type(even) { background: linear-gradient(180deg, rgba(176,195,69,0.04), rgba(176,195,69,0.02)); }
/* Program section custom background */
/* Smooth green background without harsh gray band; add subtle radial accents for depth */
#program {
    background:
        radial-gradient(900px 380px at 82% 18%, rgba(176,195,69,0.18), transparent 60%),
        radial-gradient(700px 300px at 12% 88%, rgba(48,86,157,0.12), transparent 60%),
        linear-gradient(180deg, rgba(36,103,50,0.96) 0%, rgba(36,103,50,0.92) 100%);
}
#program .section-title { color: #ffffff; }
#program .lead { color: #e5e7eb; }
/* Contact section solid brand-green background */
#contact {
    background:
        radial-gradient(800px 340px at 82% 8%, rgba(176,195,69,0.18), transparent 60%),
        linear-gradient(180deg, rgba(0,109,47,0.96) 0%, rgba(0,109,47,0.92) 100%);
    color: #ffffff;
}
#contact h2, #contact .section-title { color: #ffffff; }
#contact .lead { color: #e6f4ea; }
#contact a { color: #ffffff !important; text-decoration: underline; }
#contact .container { text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 260px; gap: 8px; }
/* Registration section textured background using brand colors */
#register {
    background:
        radial-gradient(800px 320px at 85% 22%, rgba(0,109,47,0.10), transparent 60%),
        radial-gradient(700px 300px at 12% 86%, rgba(48,86,157,0.08), transparent 62%),
        repeating-linear-gradient(135deg, rgba(176,195,69,0.06) 0 8px, rgba(176,195,69,0.03) 8px 16px),
        linear-gradient(180deg, rgba(255,255,255,0.96), rgba(247,250,252,0.98));
    background-attachment: fixed, fixed, scroll, scroll;
}
/* Keep form readable on textured background */
#register .card, #register form { background: #ffffff; }
/* Add inner padding so fields/buttons aren’t flush with the edges */
#register form { padding: 20px 22px; border-radius: 14px; box-shadow: 0 4px 14px rgba(0,0,0,0.04); }
@media (max-width: 480px) {
    #register form { padding: 18px; }
}
#register .lead { text-align: center; margin: 0 auto 12px; }
/* African print section separator */
section::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 40px; background-image: url('/images/design.png'); background-repeat: repeat-x; background-position: center; background-size: 260px auto; opacity: 0.95; }
h2 { font-size: 28px; margin: 0 0 10px; }
p.lead { color: var(--muted); max-width: 800px; }
.grid { display: grid; gap: 18px; grid-template-columns: repeat(12, 1fr); }
.card { grid-column: span 12; background: #ffffff; border: 1px solid rgba(0,0,0,0.06); border-radius: 14px; padding: 18px; box-shadow: 0 4px 12px rgba(0,0,0,0.04); }
/* Mission cards styling */
.mission-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.mission-desc { color: var(--muted); margin: 0; line-height: 1.6; }
.mission-graphic { width: 56px; height: 56px; border-radius: 12px; box-shadow: 0 4px 10px rgba(0,0,0,0.06); }
.mission-graphic svg { width: 100%; height: 100%; display: block; }
.mission-title { margin: 0; }
@media (min-width: 800px) {
    .card { grid-column: span 6; }
}
.badge { display: inline-block; padding: 4px 10px; border-radius: 999px; background: rgba(48,86,157,0.06); color: var(--brand-blue); font-size: 12px; border: 1px solid rgba(48,86,157,0.2); }
form { display: grid; gap: 14px; max-width: 720px; margin: 0 auto; }
label { font-weight: 600; color: #0f172a; }
input, select, textarea {
    width: 100%; padding: 12px 12px; border-radius: 10px; border: 1px solid rgba(0,0,0,0.10); background: #ffffff; color: #0f172a;
}
input::placeholder, textarea::placeholder { color: #94a3b8; }
.footer { text-align: center; padding: 28px 0 60px; color: var(--brand-gray); }
.success { background: rgba(16,185,129,0.12); border: 1px solid rgba(16,185,129,0.35); color: #065f46; padding: 12px 14px; border-radius: 10px; }
.error { background: rgba(239,68,68,0.12); border: 1px solid rgba(239,68,68,0.35); color: #7f1d1d; padding: 12px 14px; border-radius: 10px; }
/* About section title styling */
.section-title { text-align: center; font-size: 32px; line-height: 1.15; color: var(--brand-blue); margin: 0 0 12px; letter-spacing: 0.2px; }
.section-title::after { content: ""; display: block; width: 140px; height: 4px; margin: 10px auto 0; border-radius: 999px; background: linear-gradient(90deg, var(--brand-blue), var(--accent)); box-shadow: 0 6px 14px rgba(48,86,157,0.25); }
/* Decorative African print strip above headings */
.section-title::before { content: ""; display: block; width: 320px; height: 32px; margin: 0 auto 10px; background-image: url('/images/design.png'); background-repeat: repeat-x; background-position: center; background-size: 260px auto; border-radius: 999px; }
/* Center and enhance the About paragraph */
#about .lead {
    text-align: center;
    margin: 0 auto;
    max-width: 900px;
    font-size: clamp(16px, 1.3vw, 20px);
    line-height: 1.85;
    padding: 18px 22px;
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 6px 16px rgba(0,0,0,0.05);
    border-left: 6px solid var(--brand-blue);
}
/* Countdown styles */
.countdown { margin: 18px auto 0; display: inline-flex; gap: 14px; padding: 14px 18px; border-radius: 999px; backdrop-filter: blur(6px); background: rgba(255,255,255,0.85); border: 1px solid rgba(0,0,0,0.08); color: #0f172a; }
.countdown .unit { display: inline-flex; align-items: baseline; gap: 8px; font-weight: 700; }
.countdown .value { font-size: 28px; }
.countdown .label { font-size: 13px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.6px; }
.countdown .sep { opacity: 0.5; }
/* Program tabs */
#program .tabs { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin: 16px 0 20px; }
#program .tab { position: relative; padding: 12px 18px; border-radius: 999px; background: #ffffff; border: 1px solid rgba(0,0,0,0.08); color: #0f172a; font-weight: 700; cursor: pointer; box-shadow: 0 4px 10px rgba(0,0,0,0.04); transition: box-shadow .2s ease, transform .2s ease; }
#program .tab .pill { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); font-size: 12px; background: var(--brand-blue); color: #ffffff; border: none; padding: 2px 8px; border-radius: 999px; white-space: nowrap; box-shadow: 0 4px 10px rgba(48,86,157,0.25); }
#program .tab:hover { box-shadow: 0 8px 18px rgba(0,0,0,0.08); transform: translateY(-1px); }
#program .tab:focus-visible { outline: 3px solid rgba(48,86,157,0.35); outline-offset: 2px; }
#program .tab.active { background: linear-gradient(135deg, var(--brand-blue), var(--accent)); color: #ffffff; border-color: transparent; box-shadow: 0 14px 28px rgba(48,86,157,0.25); }
#program .panels { margin-top: 6px; }
#program .panel { display: none; }
#program .panel.active { display: block; }
#program .session { background: #ffffff; border: 1px solid rgba(0,0,0,0.06); border-radius: 16px; padding: 16px 18px; margin-bottom: 14px; box-shadow: 0 4px 12px rgba(0,0,0,0.04); display: flex; align-items: flex-start; gap: 12px; transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease; }
#program .session strong { display: block; margin-bottom: 6px; }
#program .session ul { margin: 6px 0 0 20px; padding-left: 0; }
#program .session li { margin: 4px 0; }
#program .session:hover { box-shadow: 0 10px 22px rgba(0,0,0,0.08); transform: translateY(-2px); border-color: rgba(0,0,0,0.10); }
#program .session:focus-within { outline: 3px solid rgba(48,86,157,0.25); outline-offset: 2px; }
#program .time { font-weight: 800; color: var(--brand-blue); margin-right: 4px; min-width: 86px; text-align: center; padding: 6px 10px; border-radius: 999px; background: rgba(48,86,157,0.06); border: 1px solid rgba(48,86,157,0.2); }
#program .track { display: inline-block; margin-left: 6px; padding: 2px 8px; font-size: 12px; border-radius: 999px; background: rgba(176,195,69,0.15); color: #3b5f00; border: 1px solid rgba(176,195,69,0.35); }

/* Mission checkbox layout (fallback CSS) */
.mission-options { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 6px; }
@media (min-width: 700px) { .mission-options { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.mission-option { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid rgba(0,0,0,0.08); border-radius: 10px; background: #ffffff; }
.mission-option input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--brand-blue); }


/* Mobile navigation and responsive tweaks (fallback CSS) */
.menu-toggle { display: none; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid rgba(0,0,0,0.12); border-radius: 10px; background: #ffffff; color: #0f172a; cursor: pointer; }
.menu-toggle:focus-visible { outline: 3px solid rgba(48,86,157,0.35); outline-offset: 2px; }
.menu-icon { position: relative; width: 20px; height: 14px; display: inline-block; }
.menu-icon span { position: absolute; left: 0; right: 0; height: 2px; background: #0f172a; border-radius: 2px; transition: transform .2s ease, opacity .2s ease, top .2s ease; }
.menu-icon span:nth-child(1){ top: 0; }
.menu-icon span:nth-child(2){ top: 6px; }
.menu-icon span:nth-child(3){ top: 12px; }
.menu-toggle[aria-expanded="true"] .menu-icon span:nth-child(1){ top: 6px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-icon span:nth-child(2){ opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-icon span:nth-child(3){ top: 6px; transform: rotate(-45deg); }

@media (max-width: 900px) {
  :root { --header-h: 72px; }
  .nav { height: var(--header-h); }
  .brand img.logo { height: 56px; padding: 4px 8px; }
  .menu-toggle { display: inline-flex; }
  header .menu {
    position: absolute;
    top: var(--header-h, 88px);
    left: 0;
    right: 0;
    background: #ffffff;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 10px 24px rgba(0,0,0,0.06);
    padding: 12px 20px 18px;
    display: none;
    flex-direction: column;
    gap: 6px;
    z-index: 999;
  }
  header .menu a { padding: 12px 10px; }
  header .menu .btn-primary { display: inline-block; text-align: center; margin-top: 4px; }
  header .menu.open { display: flex; }
  .hero { padding: 80px 0 56px; height: auto; min-height: calc(70vh - var(--header-h, 72px)); }
  section { padding: 56px 0; }
  .section-title { font-size: 26px; }
  section::before { height: 28px; background-size: 200px auto; }
}

@media (max-width: 480px) {
  :root { --header-h: 64px; }
  .nav { height: var(--header-h); }
  .brand img.logo { height: 48px; }
  .hero { padding: 64px 0 44px; min-height: calc(64vh - var(--header-h, 64px)); }
}


/* Quotes section: tiled quote cards */
.quotes { margin: 16px 0 32px; }
.quotes .section-subtitle { font-size: 22px; font-weight: 800; color: #0f172a; }
.quotes-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.quote-card { display: flex; flex-direction: column; gap: 10px; }
.quote-text { order: 1; background: #ffffff; border: 1px solid rgba(0,0,0,0.06); padding: 14px 16px; border-radius: 14px; box-shadow: 0 6px 16px rgba(0,0,0,0.04); }
.quote-header, .quote-footer { order: 2; display: flex; align-items: center; gap: 12px; }
.quote-meta { display: flex; flex-direction: column; gap: 2px; }
.quote-author { font-weight: 700; color: #0f172a; }
.quote-hash { font-size: 12px; color: #64748b; }
.quote-avatar { width: 44px; height: 44px; border-radius: 50%; background-image: url('/images/avatar-default.svg'); background-size: cover; background-position: center; box-shadow: 0 6px 18px rgba(0,0,0,0.08); display: inline-block; font-size: 0; line-height: 0; border: 1px solid rgba(0,0,0,0.06); }
img.quote-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; box-shadow: 0 6px 18px rgba(0,0,0,0.08); border: 1px solid rgba(0,0,0,0.06); display: block; }
@media (max-width: 900px) { .quotes-grid { grid-template-columns: 1fr; } }
