/* ===== KOSHY FOUNDATION THEME ===== */

:root {
  --kf-navy: #1a3a5c;
  --kf-navy-dark: #0f2440;
  --kf-navy-light: #e8eef5;
  --kf-gold: #c9a227;
  --kf-gold-dark: #9c7a18;
  --kf-gold-light: #faf4e1;
  --kf-grey: #5a6e7e;
  --kf-grey-light: #f9f8f5;
  --kf-white: #ffffff;
  --kf-border: #dde6ed;
  --kf-charcoal: #1a3a5c;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--kf-navy);
  background: var(--kf-grey-light);
  margin: 0;
}

h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', serif;
  line-height: 1.15;
}

a { color: var(--kf-navy); }
img { max-width: 100%; height: auto; }

/* ===== NAV ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--kf-white);
  border-bottom: 1px solid var(--kf-border);
  box-shadow: 0 1px 12px rgba(0,0,0,.06);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo img { height: 44px; width: auto; display: block; }
.nav-logo a { text-decoration: none; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  color: var(--kf-grey);
  padding: 8px 14px;
  border-radius: 7px;
  transition: all .2s;
}
.nav-links a:hover,
.nav-links a.current-menu-item { background: var(--kf-navy-light); color: var(--kf-navy); }
.nav-cta {
  margin-left: 12px;
  background: var(--kf-gold) !important;
  color: white !important;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 10px 22px;
  border-radius: 8px;
  transition: background .2s;
}
.nav-cta:hover { background: var(--kf-gold-dark) !important; color: white !important; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--kf-navy); margin: 4px 0; }
.nav-mobile { display: none; background: var(--kf-white); border-top: 1px solid var(--kf-border); padding: 12px 20px 16px; }
.nav-mobile a { display: block; text-decoration: none; font-size: 15px; font-weight: 500; color: var(--kf-grey); padding: 10px 12px; border-radius: 7px; transition: all .2s; }
.nav-mobile a:hover { background: var(--kf-navy-light); color: var(--kf-navy); }
.nav-mobile .nav-cta-mobile { display: block; margin-top: 8px; background: var(--kf-gold); color: white; text-align: center; text-decoration: none; font-size: 14px; font-weight: 500; padding: 12px; border-radius: 8px; }
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
}

/* ===== BUTTONS ===== */
.btn-primary {
  background: var(--kf-gold);
  color: white;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  padding: 14px 32px;
  border-radius: 8px;
  transition: all .2s;
  border: none;
  cursor: pointer;
  display: inline-block;
}
.btn-primary:hover { background: var(--kf-gold-dark); transform: translateY(-1px); color: white; }
.btn-outline {
  background: transparent;
  color: white;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  padding: 13px 32px;
  border-radius: 8px;
  border: 1.5px solid rgba(255,255,255,.45);
  transition: all .2s;
  display: inline-block;
}
.btn-outline:hover { border-color: white; background: rgba(255,255,255,.1); color: white; }

/* ===== HERO ===== */
.hero {
  position: relative;
  background-size: cover;
  background-position: center;
  min-height: 680px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,24,42,.94) 0%, rgba(26,58,92,.82) 100%);
}
.hero-content { position: relative; z-index: 2; max-width: 820px; padding: 60px 24px; }
.hero-tag {
  display: inline-block;
  background: rgba(201,162,39,.22);
  color: #e8c96a;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: 20px;
  margin-bottom: 24px;
}
.hero h1 { font-size: clamp(36px, 6vw, 64px); font-weight: 700; color: white; margin-bottom: 20px; }
.hero p { font-size: clamp(16px, 2vw, 20px); color: rgba(255,255,255,.8); max-width: 560px; margin: 0 auto 36px; line-height: 1.7; font-weight: 300; }
.hero-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ===== IMPACT STRIP ===== */
.impact-strip {
  background: var(--kf-white);
  border-bottom: 1px solid var(--kf-border);
  padding: 28px 32px;
  display: flex;
  justify-content: center;
  gap: 64px;
  flex-wrap: wrap;
}
.impact-item { text-align: center; }
.impact-num { font-family: 'Cormorant Garamond', serif; font-size: 36px; font-weight: 700; color: var(--kf-navy); }
.impact-lbl { font-size: 11px; color: #8a9caa; font-weight: 500; letter-spacing: .8px; text-transform: uppercase; margin-top: 2px; }

/* ===== SECTIONS ===== */
.section { padding: 80px 32px; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-label { font-size: 11px; font-weight: 500; letter-spacing: 2.5px; text-transform: uppercase; color: var(--kf-gold); margin-bottom: 10px; }
.section-title { font-size: clamp(28px, 4vw, 42px); font-weight: 700; color: var(--kf-navy); margin-bottom: 14px; }
.section-sub { font-size: 16px; color: var(--kf-grey); line-height: 1.75; max-width: 560px; }

/* ===== PILLAR CARDS ===== */
.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 22px; margin-top: 50px; }
.pillar-card { background: var(--kf-white); border: 1px solid var(--kf-border); border-radius: 14px; overflow: hidden; transition: all .25s; position: relative; }
.pillar-card::after { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--kf-gold); transform: scaleX(0); transition: transform .25s; transform-origin: left; }
.pillar-card:hover { transform: translateY(-4px); box-shadow: 0 14px 36px rgba(26,58,92,.13); }
.pillar-card:hover::after { transform: scaleX(1); }
.pillar-img { width: 100%; height: 200px; object-fit: cover; display: block; }
.pillar-body { padding: 24px; }
.pillar-icon { width: 42px; height: 42px; border-radius: 10px; background: var(--kf-navy-light); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.pillar-card h3 { font-size: 22px; font-weight: 600; margin-bottom: 8px; font-family: 'Cormorant Garamond', serif; }
.pillar-card p { font-size: 14px; color: var(--kf-grey); line-height: 1.65; }
.pillar-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; margin-bottom: 4px; }
.tag-blue { font-size: 11px; font-weight: 500; background: var(--kf-navy-light); color: var(--kf-navy); padding: 4px 10px; border-radius: 20px; }
.tag-gold { font-size: 11px; font-weight: 500; background: var(--kf-gold-light); color: var(--kf-gold-dark); padding: 4px 10px; border-radius: 20px; }
.pillar-link { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 500; color: var(--kf-navy); text-decoration: none; margin-top: 14px; transition: gap .2s; }
.pillar-link:hover { gap: 8px; color: var(--kf-gold); }

/* ===== MISSION BLOCK ===== */
.mission-block { background: var(--kf-navy); border-radius: 18px; padding: 56px 52px; display: flex; gap: 52px; align-items: center; flex-wrap: wrap; }
.mission-quote { flex: 1; min-width: 260px; }
.mission-quote blockquote { font-family: 'Cormorant Garamond', serif; font-size: clamp(22px, 3vw, 30px); font-weight: 400; color: white; line-height: 1.4; border-left: 3px solid var(--kf-gold); padding-left: 24px; margin: 0; }
.mission-quote cite { display: block; font-family: 'DM Sans', sans-serif; font-size: 13px; color: rgba(255,255,255,.45); margin-top: 18px; padding-left: 24px; font-style: normal; }
.mission-meta { min-width: 220px; }
.mission-meta p { font-size: 15px; color: rgba(255,255,255,.65); line-height: 1.75; }
.mission-meta strong { color: white; }

/* ===== PAGE HERO ===== */
.page-hero { background: linear-gradient(135deg, var(--kf-navy-dark) 0%, var(--kf-navy) 100%); padding: 72px 32px; text-align: center; color: white; }
.page-hero h1 { font-family: 'Cormorant Garamond', serif; font-size: clamp(32px, 5vw, 50px); font-weight: 700; margin-bottom: 12px; color: #ffffff !important; text-shadow: none; max-width: 800px; margin-left: auto; margin-right: auto; }
.page-hero p { font-size: 18px; color: rgba(255,255,255,.75); max-width: 560px; margin: 0 auto; line-height: 1.65; }

/* ===== PROGRAM SECTIONS ===== */
.program-section { padding: 80px 32px 48px; }
.program-section:nth-child(even) { background: var(--kf-white); }
.program-section:nth-child(odd) { background: var(--kf-grey-light); }
.program-inner { max-width: 1200px; margin: 0 auto; display: flex; gap: 64px; align-items: center; flex-wrap: wrap; }
.program-inner.reverse { flex-direction: row-reverse; }
.program-img-wrap { flex: 0 0 48%; max-width: 48%; }
.program-img-wrap img { width: 100%; height: 400px; object-fit: cover; border-radius: 16px; display: block; box-shadow: 0 8px 32px rgba(0,0,0,.1); }
.program-content { flex: 1; min-width: 260px; }
.program-tag { display: inline-block; font-size: 11px; font-weight: 500; letter-spacing: 1.5px; text-transform: uppercase; padding: 5px 14px; border-radius: 20px; margin-bottom: 16px; background: var(--kf-navy-light); color: var(--kf-navy); }
.program-content h2 { font-size: clamp(26px, 3.5vw, 38px); font-weight: 700; margin-bottom: 14px; font-family: 'Cormorant Garamond', serif; }
.program-content p { font-size: 16px; color: var(--kf-grey); line-height: 1.75; margin-bottom: 24px; }
.program-list { list-style: none; padding: 0; margin: 0; }
.program-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: #4a5f6e; padding: 7px 0; border-bottom: 1px solid #f0f4f7; line-height: 1.55; }
.program-list li:last-child { border-bottom: none; }
.program-list li::before { content: '→'; color: var(--kf-navy); font-weight: 600; flex-shrink: 0; margin-top: 1px; }
.sub-pillars-label { font-size: 11px; font-weight: 500; letter-spacing: 2px; text-transform: uppercase; color: var(--kf-gold); margin-top: 28px; margin-bottom: 4px; }
.sub-pillar { background: var(--kf-grey-light); border: 1px solid var(--kf-border); border-radius: 12px; padding: 22px 24px; margin-top: 16px; display: flex; gap: 16px; align-items: flex-start; }
.sub-pillar-icon { width: 38px; height: 38px; border-radius: 9px; background: var(--kf-gold-light); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.sub-pillar h4 { font-family: 'Cormorant Garamond', serif; font-size: 17px; font-weight: 600; color: var(--kf-navy); margin-bottom: 6px; }
.sub-pillar p { font-size: 14px; color: var(--kf-grey); line-height: 1.65; margin: 0; }

/* ===== GLOBAL STRIP ===== */
.global-strip { background: var(--kf-navy); padding: 72px 32px; text-align: center; }
.global-strip h2 { font-family: 'Cormorant Garamond', serif; font-size: clamp(26px, 4vw, 36px); color: white; font-weight: 700; margin-bottom: 12px; }
.global-strip p { font-size: 17px; color: rgba(255,255,255,.6); max-width: 500px; margin: 0 auto 30px; line-height: 1.7; }

/* ===== ABOUT ===== */
.about-hero-inner { max-width: 1200px; margin: 0 auto; padding: 56px 32px; display: flex; gap: 64px; align-items: center; flex-wrap: wrap; background: var(--kf-white); border-bottom: 1px solid var(--kf-border); }
.about-stats { display: flex; flex-direction: column; gap: 14px; flex: 0 0 300px; }
.stat-card { background: var(--kf-grey-light); border: 1px solid var(--kf-border); border-radius: 12px; padding: 20px 24px; }
.stat-num { font-family: 'Cormorant Garamond', serif; font-size: 38px; font-weight: 700; color: var(--kf-navy); }
.stat-lbl { font-size: 13px; color: var(--kf-grey); margin-top: 2px; }
.founder-block { display: flex; gap: 28px; align-items: flex-start; margin-bottom: 56px; }
.founder-avatar { width: 76px; height: 76px; border-radius: 50%; flex-shrink: 0; background: linear-gradient(135deg, var(--kf-navy), var(--kf-gold)); display: flex; align-items: center; justify-content: center; font-family: 'Cormorant Garamond', serif; font-size: 28px; font-weight: 700; color: white; }
.founder-name { font-family: 'Cormorant Garamond', serif; font-size: 26px; font-weight: 700; margin-bottom: 2px; color: var(--kf-navy); }
.founder-role { font-size: 11px; font-weight: 500; letter-spacing: 2px; text-transform: uppercase; color: var(--kf-gold); margin-bottom: 14px; }
.founder-bio p { font-size: 15px; color: var(--kf-grey); line-height: 1.8; }
.founder-bio p + p { margin-top: 12px; }
.values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-top: 36px; }
.value-card { background: var(--kf-white); border: 1px solid var(--kf-border); border-radius: 12px; padding: 24px 22px; transition: all .25s; }
.value-card:hover { border-color: var(--kf-navy); box-shadow: 0 4px 20px rgba(26,58,92,.08); }
.value-card h4 { font-family: 'Cormorant Garamond', serif; font-size: 17px; font-weight: 600; margin-bottom: 6px; color: var(--kf-navy); }
.value-card p { font-size: 13px; color: var(--kf-grey); line-height: 1.65; }
.daf-notice { background: var(--kf-gold-light); border: 1px solid #d4b84a; border-radius: 12px; padding: 24px 28px; display: flex; gap: 16px; align-items: flex-start; margin-top: 40px; }
.daf-notice p { font-size: 14px; color: #7a5a00; line-height: 1.7; }

/* ===== CONTACT ===== */
.contact-card { background: var(--kf-white); border: 1px solid var(--kf-border); border-radius: 16px; padding: 48px 44px; max-width: 720px; margin: 0 auto; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 13px; font-weight: 500; color: var(--kf-navy); margin-bottom: 7px; }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 11px 14px; border: 1px solid var(--kf-border); border-radius: 8px; font-family: 'DM Sans', sans-serif; font-size: 14px; color: var(--kf-navy); background: var(--kf-grey-light); outline: none; transition: border .2s; }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: var(--kf-navy); background: white; }
.form-group textarea { resize: vertical; min-height: 120px; }
.submit-btn { width: 100%; padding: 14px; background: var(--kf-navy); color: white; border: none; cursor: pointer; font-family: 'DM Sans', sans-serif; font-size: 15px; font-weight: 500; border-radius: 8px; margin-top: 6px; transition: background .2s; }
.submit-btn:hover { background: var(--kf-navy-dark); }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.form-error { background: #fef2f2; border: 1px solid #fca5a5; color: #b91c1c; border-radius: 8px; padding: 12px 16px; font-size: 14px; margin-bottom: 16px; display: none; }
.success-box { text-align: center; padding: 40px 20px; display: none; }
.success-check { width: 60px; height: 60px; background: var(--kf-gold-light); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 26px; margin: 0 auto 18px; }
.success-box h3 { font-family: 'Cormorant Garamond', serif; font-size: 24px; font-weight: 700; margin-bottom: 8px; }
.success-box p { font-size: 15px; color: var(--kf-grey); }
.captcha-box { background: var(--kf-grey-light); border: 1px solid var(--kf-border); border-radius: 10px; padding: 18px 20px; margin-bottom: 18px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.captcha-question { font-size: 15px; font-weight: 500; color: var(--kf-navy); flex: 1; min-width: 160px; }
.captcha-question span { font-family: 'Courier New', monospace; font-size: 17px; font-weight: 700; color: var(--kf-navy); background: var(--kf-navy-light); padding: 4px 12px; border-radius: 6px; display: inline-block; margin-top: 4px; }
.captcha-refresh { background: none; border: 1px solid var(--kf-border); border-radius: 7px; padding: 7px 10px; cursor: pointer; font-size: 16px; color: var(--kf-grey); transition: all .2s; }
.captcha-refresh:hover { border-color: var(--kf-navy); color: var(--kf-navy); }

/* ===== BLOG / EVENTS ===== */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 28px; margin-top: 48px; }
.post-card { background: var(--kf-white); border: 1px solid var(--kf-border); border-radius: 14px; overflow: hidden; transition: all .25s; }
.post-card:hover { transform: translateY(-4px); box-shadow: 0 14px 36px rgba(26,58,92,.1); }
.post-card-img { width: 100%; height: 200px; object-fit: cover; display: block; }
.post-card-img-placeholder { width: 100%; height: 200px; background: var(--kf-navy-light); display: flex; align-items: center; justify-content: center; }
.post-card-body { padding: 24px; }
.post-cat { font-size: 10px; font-weight: 500; letter-spacing: 2px; text-transform: uppercase; color: var(--kf-gold); margin-bottom: 8px; }
.post-card-body h2 { font-family: 'Cormorant Garamond', serif; font-size: 20px; font-weight: 600; color: var(--kf-navy); margin-bottom: 10px; line-height: 1.3; }
.post-card-body h2 a { text-decoration: none; color: var(--kf-navy); }
.post-card-body h2 a:hover { color: var(--kf-gold); }
.post-excerpt { font-size: 14px; color: var(--kf-grey); line-height: 1.65; margin-bottom: 16px; }
.post-meta { font-size: 12px; color: #9aacb8; display: flex; gap: 12px; align-items: center; }
.post-read-more { font-size: 13px; font-weight: 500; color: var(--kf-navy); text-decoration: none; }
.post-read-more:hover { color: var(--kf-gold); }

/* Single post */
.single-post { max-width: 800px; margin: 0 auto; padding: 64px 32px; }
.single-post .post-featured-img { width: 100%; border-radius: 14px; margin-bottom: 40px; display: block; }
.single-post .post-content { font-size: 16px; line-height: 1.85; color: #3a4a5a; }
.single-post .post-content p { margin-bottom: 20px; }
.single-post .post-content h2 { font-family: 'Cormorant Garamond', serif; font-size: 26px; font-weight: 700; color: var(--kf-navy); margin: 36px 0 14px; }
.single-post .post-content img { border-radius: 10px; margin: 20px 0; width: 100%; }
.back-link { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; color: var(--kf-grey); text-decoration: none; margin-bottom: 32px; }
.back-link:hover { color: var(--kf-navy); }

/* ===== FOOTER ===== */
footer { background: var(--kf-navy); padding: 56px 32px 32px; }
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; margin-bottom: 40px; }
.footer-wordmark { font-family: 'Cormorant Garamond', serif; font-size: 22px; font-weight: 700; color: white; margin-bottom: 6px; letter-spacing: .3px; }
.footer-tagline-text { font-size: 9px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--kf-gold); margin-bottom: 14px; }
.footer-desc { font-size: 14px; color: rgba(255,255,255,.55); line-height: 1.7; }
.footer-col h4 { font-size: 13px; font-weight: 500; color: white; margin-bottom: 16px; letter-spacing: .5px; }
.footer-col a { display: block; text-decoration: none; font-size: 14px; color: rgba(255,255,255,.5); margin-bottom: 10px; transition: color .2s; }
.footer-col a:hover { color: var(--kf-gold); }
.footer-social { display: flex; gap: 10px; margin-top: 4px; }
.footer-social a { width: 36px; height: 36px; background: rgba(255,255,255,.1); border-radius: 8px; display: flex; align-items: center; justify-content: center; text-decoration: none; transition: background .2s; color: white; }
.footer-social a:hover { background: var(--kf-gold); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 24px; text-align: center; font-size: 13px; color: rgba(255,255,255,.3); }
.no-donations { font-size: 12px; color: rgba(255,255,255,.4); margin-top: 16px; line-height: 1.6; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .mission-block { padding: 36px 28px; }
  .program-img-wrap { flex: 0 0 100%; max-width: 100%; }
  .program-img-wrap img { height: 260px; }
  .program-inner.reverse { flex-direction: column; }
}
@media (max-width: 600px) {
  .section { padding: 56px 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .form-row { grid-template-columns: 1fr; }
  .contact-card { padding: 28px 22px; }
  .about-hero-inner { flex-direction: column; }
  .founder-block { flex-direction: column; }
  .pillars { grid-template-columns: 1fr; }
}
