/* ═══════════════════════════════════════════════════════════════════
   CFFLearn — Global Stylesheet
   Theme: Namecheap-style  Navy + White + Orange
   Font:  Poppins (Google Fonts)
   ═══════════════════════════════════════════════════════════════════ */



/* ── Variables ─────────────────────────────────────────────────────── */
:root {
  --navy:       #1D283A;
  --navy2:      #243347;
  --navy3:      #2C3F5A;
  --navy4:      #162030;
  --orange:     #EE7000;
  --orange2:    #F58220;
  --blue:       #2076D0;
  --blue2:      #3A8ADE;
  --cyan:       #00B4D8;
  --yellow:     #F5A623;
  --white:      #FFFFFF;
  --off-white:  #F6F8FC;
  --grey-light: #E8EEF5;
  --grey:       #8496AD;
  --grey-dark:  #4A5B6D;
  --text:       #1A2332;
  --text-muted: #5A6E84;
  --green:      #27AE60;
  --red:        #E53935;
  --radius:     8px;
  --radius-lg:  14px;
  --shadow:     0 4px 24px rgba(29,40,58,0.13);
  --shadow-sm:  0 2px 12px rgba(29,40,58,0.08);
  --nav-height: 68px;
  --font:       'Poppins', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
}

/* ── Reset ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font); color: var(--text); background: var(--white); line-height: 1.65; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ── Navigation ────────────────────────────────────────────────────── */
#navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--navy);
  height: var(--nav-height);
  display: flex;
  align-items: center;
  box-shadow: 0 2px 16px rgba(0,0,0,0.3);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  width: 100%;
  gap: 4px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  flex-shrink: 0;
  margin-right: 20px;
  font-family: var(--font);
}
.nav-logo .logo-badge {
  background: var(--orange);
  color: var(--white);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.5px;
}
.nav-logo .logo-sub {
  color: rgba(255,255,255,0.45);
  font-size: 0.65rem;
  font-weight: 400;
  display: block;
  line-height: 1;
  letter-spacing: 0.3px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 0;
  flex: 1;
}
.nav-links > a,
.nav-dropdown > a {
  color: rgba(255,255,255,0.80);
  font-size: 0.84rem;
  font-weight: 500;
  padding: 7px 13px;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links > a:hover,
.nav-dropdown > a:hover { background: rgba(255,255,255,0.08); color: var(--white); }
.nav-links > a.active { color: var(--orange2); }

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown > a::after { content: '▾'; font-size: 0.65rem; opacity: 0.7; margin-left: 2px; }
.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 40px rgba(0,0,0,0.18);
  min-width: 200px;
  overflow: hidden;
  z-index: 200;
  border: 1px solid var(--grey-light);
}
.nav-dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 18px;
  font-size: 0.85rem;
  color: var(--text);
  transition: background 0.12s;
  font-weight: 500;
}
.dropdown-menu a:hover { background: var(--off-white); color: var(--blue); }
.dropdown-menu a .dd-emoji { font-size: 1rem; width: 20px; }

.nav-cta {
  background: var(--orange) !important;
  color: var(--white) !important;
  border-radius: 6px !important;
  padding: 8px 18px !important;
  font-weight: 600 !important;
  font-size: 0.84rem !important;
  transition: background 0.15s, transform 0.15s !important;
  margin-left: 10px;
}
.nav-cta:hover { background: var(--orange2) !important; transform: translateY(-1px); }

/* Mobile */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; margin-left: auto; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--white); margin: 5px 0; border-radius: 2px; transition: all 0.3s; }

@media (max-width: 960px) {
  .nav-links { display: none; flex-direction: column; align-items: stretch; position: absolute; top: var(--nav-height); left: 0; right: 0; background: var(--navy2); padding: 12px 16px 20px; gap: 4px; box-shadow: 0 8px 20px rgba(0,0,0,0.3); }
  .nav-links.open { display: flex; }
  .nav-dropdown .dropdown-menu { position: static; box-shadow: none; background: rgba(255,255,255,0.04); border-radius: 8px; border: none; }
  .nav-dropdown .dropdown-menu a { color: rgba(255,255,255,0.8); }
  .nav-dropdown .dropdown-menu a:hover { background: rgba(255,255,255,0.06); color: #fff; }
  .nav-toggle { display: block; }
}

/* ── Buttons ───────────────────────────────────────────────────────── */
.btn-primary {
  background: var(--orange);
  color: var(--white);
  padding: 12px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.93rem;
  border: 2px solid var(--orange);
  transition: all 0.2s;
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font);
}
.btn-primary:hover { background: var(--orange2); border-color: var(--orange2); transform: translateY(-2px); box-shadow: 0 4px 16px rgba(238,112,0,0.35); }

.btn-secondary {
  background: var(--blue);
  color: var(--white);
  padding: 12px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.93rem;
  border: 2px solid var(--blue);
  transition: all 0.2s;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-secondary:hover { background: var(--blue2); border-color: var(--blue2); transform: translateY(-2px); }

.btn-outline {
  background: transparent;
  color: var(--white);
  padding: 12px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.93rem;
  border: 2px solid rgba(255,255,255,0.4);
  transition: all 0.2s;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-outline:hover { border-color: rgba(255,255,255,0.85); background: rgba(255,255,255,0.08); }

/* ── Hero ───────────────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(140deg, var(--navy4) 0%, var(--navy) 45%, var(--navy3) 100%);
  color: var(--white);
  padding: 88px 28px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none'%3E%3Cg fill='%23ffffff' fill-opacity='0.025'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-inner { position: relative; max-width: 820px; margin: 0 auto; }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(238,112,0,0.18);
  border: 1px solid rgba(238,112,0,0.4);
  color: #FFBB6B;
  border-radius: 30px;
  padding: 6px 18px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.4px;
  margin-bottom: 20px;
}
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.2rem); font-weight: 800; line-height: 1.18; margin-bottom: 20px; letter-spacing: -0.5px; }
.hero h1 span { color: var(--orange2); }
.hero p { font-size: 1.08rem; opacity: 0.82; max-width: 620px; margin: 0 auto 36px; font-weight: 400; }
.hero-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ── Stats ─────────────────────────────────────────────────────────── */
.stats-strip { display: flex; justify-content: center; gap: 40px; flex-wrap: wrap; margin: 52px 0 0; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 36px; }
.stat-item { text-align: center; }
.stat-item .stat-num { font-size: 2.1rem; font-weight: 800; color: var(--orange2); line-height: 1; margin-bottom: 4px; }
.stat-item .stat-label { font-size: 0.78rem; color: rgba(255,255,255,0.55); font-weight: 500; text-transform: uppercase; letter-spacing: 0.5px; }

/* ── Section ────────────────────────────────────────────────────────── */
.section { padding: 80px 28px; }
.section-alt { background: var(--off-white); }
.section-dark { background: var(--navy); color: var(--white); }
.container { max-width: 1200px; margin: 0 auto; }

.section-label {
  display: inline-block;
  color: var(--orange);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.section-label.light { color: var(--orange2); }
.section-title { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; margin-bottom: 14px; line-height: 1.2; letter-spacing: -0.3px; }
.section-sub { color: var(--text-muted); font-size: 1rem; max-width: 580px; margin-bottom: 48px; font-weight: 400; }
.section-dark .section-sub { color: rgba(255,255,255,0.55); }

/* ── Cards ──────────────────────────────────────────────────────────── */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--grey-light);
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-icon { font-size: 2rem; margin-bottom: 14px; }
.card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.card p { font-size: 0.875rem; color: var(--text-muted); line-height: 1.65; }
.card-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-size: 0.84rem; font-weight: 600; color: var(--blue); }
.card-link:hover { color: var(--orange); }

/* Subject cards — dark */
.subject-card {
  display: flex;
  flex-direction: column;
  background: var(--navy2);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.06);
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}
.subject-card:hover { transform: translateY(-5px); box-shadow: 0 10px 36px rgba(0,0,0,0.3); border-color: rgba(238,112,0,0.3); }
.subject-card .s-icon { font-size: 2.2rem; margin-bottom: 14px; }
.subject-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 6px; }
.subject-card p { font-size: 0.84rem; color: rgba(255,255,255,0.55); line-height: 1.6; flex: 1; }
.subject-card .s-tag { margin-top: 16px; font-size: 0.72rem; font-weight: 600; color: var(--orange2); letter-spacing: 0.3px; }

/* ── Breadcrumb ─────────────────────────────────────────────────────── */
.breadcrumb {
  background: var(--navy);
  padding: 12px 28px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.breadcrumb a { color: rgba(255,255,255,0.55); transition: color 0.15s; }
.breadcrumb a:hover { color: var(--orange2); }
.breadcrumb span { color: rgba(255,255,255,0.9); font-weight: 500; }
.breadcrumb .sep { margin: 0 8px; color: rgba(255,255,255,0.25); }

/* ── Page Header ────────────────────────────────────────────────────── */
.page-header {
  background: linear-gradient(120deg, var(--navy4) 0%, var(--navy) 60%, var(--navy3) 100%);
  padding: 60px 28px 52px;
  color: var(--white);
}
.page-header .container { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.page-header-icon { font-size: 3.2rem; flex-shrink: 0; }
.page-header h1 { font-size: clamp(1.7rem, 4vw, 2.5rem); font-weight: 800; margin-bottom: 6px; letter-spacing: -0.4px; }
.page-header p { color: rgba(255,255,255,0.55); font-size: 0.97rem; }

/* ── Scripture block ────────────────────────────────────────────────── */
.scripture {
  background: linear-gradient(135deg, var(--navy2), var(--navy3));
  border-left: 4px solid var(--orange);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  padding: 26px 30px;
  margin: 32px 0;
  color: var(--white);
}
.scripture blockquote { font-size: 1.03rem; font-style: italic; line-height: 1.8; color: rgba(255,255,255,0.88); font-weight: 400; }
.scripture cite { display: block; margin-top: 12px; font-size: 0.82rem; font-weight: 700; color: var(--orange2); font-style: normal; }

/* ── Highlight box ──────────────────────────────────────────────────── */
.highlight-box {
  background: var(--off-white);
  border-radius: var(--radius-lg);
  padding: 26px 30px;
  border-left: 5px solid var(--blue);
  margin: 28px 0;
}
.highlight-box p { font-size: 0.97rem; color: var(--text); line-height: 1.8; }
.highlight-box.gold { border-left-color: var(--orange); background: #FFF8EF; }
.highlight-box.gold p { font-style: italic; color: var(--navy); }

/* ── Notice strip ───────────────────────────────────────────────────── */
.notice {
  background: #EFF5FF;
  border: 1px solid #C8DEFF;
  border-radius: var(--radius-lg);
  padding: 18px 22px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin: 24px 0;
}
.notice .notice-icon { font-size: 1.3rem; flex-shrink: 0; margin-top: 2px; }
.notice p { font-size: 0.88rem; color: var(--text); line-height: 1.7; }
.notice strong { color: var(--navy); }
.notice a { color: var(--blue); font-weight: 600; }
.notice a:hover { color: var(--orange); }

/* Dark notice variant */
.notice-dark {
  background: rgba(29,40,58,0.04);
  border-color: rgba(29,40,58,0.12);
}
.notice-dark p { color: var(--text-muted); }

/* ── Topic tiles ────────────────────────────────────────────────────── */
.topic-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; margin-top: 28px; }
.topic-tile {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  border: 1.5px solid var(--grey-light);
  display: flex;
  align-items: flex-start;
  gap: 14px;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.topic-tile:hover { border-color: var(--orange); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.topic-tile .t-icon {
  width: 46px; height: 46px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
  background: var(--off-white);
}
.topic-tile .t-body h4 { font-size: 0.92rem; font-weight: 700; margin-bottom: 4px; }
.topic-tile .t-body p { font-size: 0.79rem; color: var(--text-muted); line-height: 1.55; }
.topic-tile .t-ks {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  background: var(--navy);
  color: var(--orange2);
  border-radius: 4px;
  padding: 2px 7px;
  margin-top: 6px;
}

/* ── Bible Study card ───────────────────────────────────────────────── */
.bible-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--navy);
  border-radius: var(--radius-lg);
  padding: 22px 26px;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.08);
  transition: box-shadow 0.2s, transform 0.2s;
  margin-bottom: 16px;
}
.bible-card:hover { box-shadow: 0 8px 32px rgba(0,0,0,0.25); transform: translateY(-2px); }
.bible-card .bc-icon { font-size: 2rem; flex-shrink: 0; }
.bible-card .bc-body h3 { font-weight: 700; font-size: 0.97rem; margin-bottom: 4px; }
.bible-card .bc-body p { font-size: 0.82rem; color: rgba(255,255,255,0.55); }
.bible-card .bc-badge {
  margin-left: auto;
  background: var(--orange);
  color: var(--white);
  border-radius: 6px;
  padding: 7px 14px;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ── Donation section ───────────────────────────────────────────────── */
.donation-notice {
  background: linear-gradient(135deg, var(--navy), var(--navy3));
  border-radius: var(--radius-lg);
  padding: 44px 38px;
  color: var(--white);
  text-align: center;
  border: 1px solid rgba(255,255,255,0.07);
}
.donation-notice .dn-title { font-size: 1.5rem; font-weight: 800; margin-bottom: 14px; }
.donation-notice p { color: rgba(255,255,255,0.65); font-size: 0.95rem; line-height: 1.8; max-width: 700px; margin: 0 auto 14px; }
.donation-notice .dn-quote { font-style: italic; color: var(--orange2); font-size: 1.05rem; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; margin-top: 20px; }

/* ── Timeline ───────────────────────────────────────────────────────── */
.timeline { position: relative; padding-left: 32px; margin: 32px 0; }
.timeline::before { content:''; position:absolute; left:10px; top:4px; bottom:4px; width:2px; background: linear-gradient(to bottom, var(--orange), var(--blue)); border-radius:2px; }
.tl-item { position: relative; margin-bottom: 32px; }
.tl-item:last-child { margin-bottom: 0; }
.tl-dot { position:absolute; left:-27px; top:4px; width:14px; height:14px; border-radius:50%; background:var(--orange); border:3px solid var(--white); box-shadow:0 0 0 2px var(--orange); flex-shrink:0; }
.tl-year { font-size:0.72rem; font-weight:700; color:var(--orange); text-transform:uppercase; letter-spacing:1px; margin-bottom:4px; }
.tl-title { font-size:0.97rem; font-weight:700; color:var(--navy); margin-bottom:5px; }
.tl-body { font-size:0.875rem; color:var(--text-muted); line-height:1.7; }

/* ── Footer ─────────────────────────────────────────────────────────── */
#footer {
  background: var(--navy4);
  color: var(--white);
  padding: 60px 28px 0;
  border-top: 3px solid var(--orange);
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 36px; max-width: 1200px; margin: 0 auto 40px; }
.footer-brand .fb-logo { font-size: 1.1rem; font-weight: 800; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.footer-brand .fb-logo .logo-badge { background: var(--orange); padding: 4px 10px; border-radius: 6px; font-size: 0.9rem; }
.footer-brand p { font-size: 0.83rem; color: rgba(255,255,255,0.5); line-height: 1.75; max-width: 280px; }
.footer-col h4 { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: rgba(255,255,255,0.4); margin-bottom: 18px; }
.footer-col a { display: block; font-size: 0.85rem; color: rgba(255,255,255,0.65); margin-bottom: 10px; transition: color 0.15s; }
.footer-col a:hover { color: var(--orange2); }
.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.79rem;
  color: rgba(255,255,255,0.38);
}
.footer-bottom a { color: rgba(255,255,255,0.45); transition: color 0.15s; }
.footer-bottom a:hover { color: var(--orange2); }

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero { padding: 60px 20px 56px; }
  .section { padding: 56px 20px; }
  .stats-strip { gap: 24px; }
  .bible-card { flex-wrap: wrap; }
  .bible-card .bc-badge { margin-left: 0; }
}
@media (max-width: 540px) {
  .footer-grid { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: 1fr; }
  .hero-btns { flex-direction: column; align-items: center; }
}

/* ── Utility ─────────────────────────────────────────────────────────── */
.text-center { text-align: center; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }
.mb-0  { margin-bottom: 0 !important; }
.color-orange { color: var(--orange); }
.color-blue   { color: var(--blue); }
.divider      { height: 1px; background: var(--grey-light); margin: 36px 0; }
.divider-dark { height: 1px; background: rgba(255,255,255,0.08); margin: 36px 0; }
.badge { display: inline-block; padding: 4px 12px; border-radius: 20px; font-size: 0.72rem; font-weight: 700; }
.badge-blue   { background: rgba(32,118,208,0.12); color: var(--blue); }
.badge-navy   { background: var(--navy); color: var(--orange2); }
.badge-orange { background: rgba(238,112,0,0.12); color: var(--orange); }

/* ── Prose text ──────────────────────────────────────────────────────── */
.prose { font-size: 1rem; line-height: 1.85; color: var(--text-muted); margin-bottom: 20px; }
.prose strong { color: var(--text); font-weight: 600; }
.prose em { font-style: italic; color: var(--navy3); }
