/* Tech for Good Hub — Custom Styles */
/* Framework: Bulma CSS (via CDN) */
/* Color palette: Deep teal primary, warm coral accent, inspired by original site */

:root {
  --primary: #1a6b72;
  --primary-dark: #0e4a50;
  --primary-light: #2a8a93;
  --accent: #e05a52;
  --accent-light: #f07060;
  --bg: #f8fbfc;
  --bg-alt: #eaf4f5;
  --text: #1c2b30;
  --text-light: #4a6670;
  --text-muted: #8aacb5;
  --white: #ffffff;
  --border: #d0e8ec;
  --shadow: 0 4px 20px rgba(26, 107, 114, 0.10);
  --shadow-hover: 0 8px 30px rgba(26, 107, 114, 0.18);
}

/* Base */
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', 'Inter', sans-serif;
  color: var(--text);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.7;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); transition: color 0.2s; }
a:hover { color: var(--accent); }

/* Typography */
h1, h2, h3, h4 {
  font-family: 'DM Serif Display', Georgia, serif;
  line-height: 1.25;
  color: var(--text);
}
h1 { font-size: 2.6rem; margin-bottom: 1.2rem; }
h2 { font-size: 1.9rem; margin-top: 2.5rem; margin-bottom: 1rem; color: var(--primary-dark); }
h3 { font-size: 1.35rem; margin-top: 1.8rem; margin-bottom: 0.7rem; }

@media (max-width: 768px) {
  h1 { font-size: 1.9rem; }
  h2 { font-size: 1.5rem; }
}

/* Navigation */
.site-nav {
  background: var(--primary-dark);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.18);
}
.site-nav .navbar {
  background: transparent;
  min-height: 4rem;
}
.site-nav .navbar-brand .navbar-item {
  color: var(--white);
  font-family: 'DM Serif Display', serif;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
  padding: 0.6rem 1rem;
}
.site-nav .navbar-brand .site-tagline {
  color: rgba(255,255,255,0.65);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.78rem;
  display: block;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: -2px;
}
.site-nav .navbar-item {
  color: rgba(255,255,255,0.88);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
}
.site-nav .navbar-item:hover {
  background: rgba(255,255,255,0.12);
  color: var(--white);
}
.site-nav .navbar-item.has-dropdown:hover .navbar-dropdown {
  display: block;
}
.site-nav .navbar-dropdown {
  background: var(--primary-dark);
  border-top: 2px solid var(--accent);
  border-radius: 0 0 8px 8px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  padding: 0.5rem 0;
}
.site-nav .navbar-dropdown .navbar-item {
  padding: 0.5rem 1.2rem;
  font-size: 0.85rem;
}
.site-nav .navbar-burger span {
  background: var(--white);
  height: 2px;
}
.site-nav .navbar-menu.is-active {
  background: var(--primary-dark);
  padding: 0.5rem;
}

/* Hero */
.hero-section {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, var(--primary-light) 100%);
  color: var(--white);
  padding: 5rem 1.5rem 4rem;
  position: relative;
  overflow: hidden;
}
.hero-section::before {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 60%;
  background: rgba(255,255,255,0.03);
  clip-path: polygon(20% 0%, 100% 0%, 100% 100%, 0% 100%);
}
.hero-image-wrap {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0,0,0,0.35);
}
.hero-image-wrap img {
  width: 100%;
  height: 340px;
  object-fit: cover;
}
.hero-badge {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.3rem 0.9rem;
  border-radius: 100px;
  margin-bottom: 1.2rem;
}
.hero-section h1 {
  color: var(--white);
  font-size: 2.8rem;
  line-height: 1.15;
  margin-bottom: 1.2rem;
}
.hero-section .hero-lead {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.85);
  max-width: 520px;
  line-height: 1.7;
  margin-bottom: 2rem;
}
.hero-cta {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  padding: 0.8rem 1.8rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 14px rgba(224,90,82,0.40);
}
.hero-cta:hover {
  background: var(--accent-light);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(224,90,82,0.50);
}
.hero-cta-secondary {
  display: inline-block;
  color: rgba(255,255,255,0.85);
  border: 1.5px solid rgba(255,255,255,0.4);
  padding: 0.8rem 1.8rem;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  margin-left: 1rem;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.hero-cta-secondary:hover {
  border-color: rgba(255,255,255,0.8);
  background: rgba(255,255,255,0.1);
  color: var(--white);
}

@media (max-width: 768px) {
  .hero-section { padding: 3rem 1.2rem; }
  .hero-section h1 { font-size: 1.9rem; }
  .hero-cta-secondary { margin-left: 0; margin-top: 0.8rem; }
}

/* Stats bar */
.stats-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 0;
  box-shadow: var(--shadow);
}
.stat-item {
  text-align: center;
  padding: 0.5rem 1rem;
}
.stat-number {
  font-family: 'DM Serif Display', serif;
  font-size: 2rem;
  color: var(--accent);
  line-height: 1;
  display: block;
}
.stat-label {
  font-size: 0.8rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 0.3rem;
}

/* Section layout */
.section-standard {
  padding: 4rem 1.5rem;
}
.section-alt {
  background: var(--bg-alt);
  padding: 4rem 1.5rem;
}
.section-dark {
  background: var(--primary-dark);
  color: var(--white);
  padding: 4rem 1.5rem;
}
.section-title {
  font-family: 'DM Serif Display', serif;
  font-size: 2rem;
  color: var(--primary-dark);
  margin-bottom: 0.6rem;
}
.section-title.is-light { color: var(--white); }
.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-light);
  max-width: 600px;
  margin-bottom: 2.5rem;
  line-height: 1.6;
}
.section-subtitle.is-light { color: rgba(255,255,255,0.75); }

/* Program cards */
.program-card {
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: box-shadow 0.25s, transform 0.25s;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.program-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}
.program-card-image {
  height: 200px;
  overflow: hidden;
}
.program-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.program-card:hover .program-card-image img {
  transform: scale(1.04);
}
.program-card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.program-card-country {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.program-card h3 {
  font-size: 1.1rem;
  margin-top: 0;
  margin-bottom: 0.8rem;
  color: var(--text);
  line-height: 1.3;
}
.program-card p {
  color: var(--text-light);
  font-size: 0.9rem;
  line-height: 1.6;
  flex: 1;
  margin-bottom: 1.2rem;
}
.program-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: gap 0.2s;
}
.program-card-link:hover { gap: 0.7rem; color: var(--accent); }

/* Topic pill tags */
.topic-tag {
  display: inline-block;
  background: var(--bg-alt);
  color: var(--primary);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 0.3rem 0.9rem;
  font-size: 0.8rem;
  font-weight: 500;
  margin: 0.25rem 0.2rem;
  transition: background 0.2s, color 0.2s;
  text-decoration: none;
}
.topic-tag:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

/* Article / page content */
.content-article {
  max-width: 820px;
  margin: 0 auto;
}
.content-article h1 {
  font-size: 2.4rem;
  color: var(--primary-dark);
  margin-bottom: 1.5rem;
}
.content-article h2 {
  color: var(--primary);
  border-left: 4px solid var(--accent);
  padding-left: 1rem;
  margin-top: 3rem;
}
.content-article h3 {
  color: var(--primary-dark);
}
.content-article p {
  margin-bottom: 1.3rem;
  font-size: 1.05rem;
}
.content-article ul, .content-article ol {
  margin-left: 1.5rem;
  margin-bottom: 1.3rem;
}
.content-article li {
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
}
.content-article a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Page hero (smaller, for inner pages) */
.page-hero {
  background: linear-gradient(160deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: var(--white);
  padding: 3rem 1.5rem 2.5rem;
}
.page-hero-inner { max-width: 820px; margin: 0 auto; }
.page-hero h1 {
  color: var(--white);
  font-size: 2.2rem;
  margin-bottom: 0.8rem;
}
.page-hero .page-hero-lead {
  color: rgba(255,255,255,0.8);
  font-size: 1.05rem;
  max-width: 600px;
  line-height: 1.6;
}
.page-hero .breadcrumb {
  margin-bottom: 1.2rem;
  font-size: 0.85rem;
}
.page-hero .breadcrumb a { color: rgba(255,255,255,0.65); }
.page-hero .breadcrumb a:hover { color: rgba(255,255,255,0.95); }
.page-hero .breadcrumb span { color: rgba(255,255,255,0.45); }

/* Feature image */
.feature-image {
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 2.5rem;
  box-shadow: var(--shadow);
}
.feature-image img {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
}

/* Impact metrics block */
.impact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.5rem;
  margin: 2.5rem 0;
}
.impact-item {
  background: var(--bg-alt);
  border-radius: 12px;
  padding: 1.5rem 1rem;
  text-align: center;
  border: 1px solid var(--border);
}
.impact-number {
  font-family: 'DM Serif Display', serif;
  font-size: 2.2rem;
  color: var(--accent);
  display: block;
  line-height: 1;
}
.impact-label {
  font-size: 0.82rem;
  color: var(--text-light);
  margin-top: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* CTA section */
.cta-section {
  background: var(--accent);
  color: var(--white);
  padding: 4rem 1.5rem;
  text-align: center;
}
.cta-section h2 {
  color: var(--white);
  font-size: 2rem;
  margin-bottom: 1rem;
  margin-top: 0;
}
.cta-section p {
  color: rgba(255,255,255,0.88);
  font-size: 1.05rem;
  max-width: 500px;
  margin: 0 auto 2rem;
}
.cta-btn-white {
  display: inline-block;
  background: var(--white);
  color: var(--accent);
  padding: 0.9rem 2.2rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}
.cta-btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0,0,0,0.22);
  color: var(--accent);
}

/* Footer */
.site-footer {
  background: #0c2e35;
  color: rgba(255,255,255,0.7);
  padding: 3.5rem 1.5rem 2rem;
}
.footer-brand {
  font-family: 'DM Serif Display', serif;
  font-size: 1.35rem;
  color: var(--white);
  margin-bottom: 0.5rem;
}
.footer-tagline {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 1.5rem;
}
.footer-heading {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 1rem;
}
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a {
  color: rgba(255,255,255,0.65);
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--white); }
.footer-divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.1);
  margin: 2.5rem 0 1.5rem;
}
.footer-bottom {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Contact form */
.contact-form {
  background: var(--white);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: var(--shadow);
  max-width: 600px;
}
.form-field { margin-bottom: 1.2rem; }
.form-field label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.4rem;
}
.form-field input, .form-field textarea, .form-field select {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 0.7rem 1rem;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--bg);
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: inherit;
  box-sizing: border-box;
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,107,114,0.12);
  outline: none;
}
.form-field textarea { min-height: 120px; resize: vertical; }
.form-submit {
  background: var(--primary);
  color: var(--white);
  border: none;
  padding: 0.8rem 2rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  font-family: inherit;
}
.form-submit:hover { background: var(--primary-dark); transform: translateY(-1px); }

/* 404 */
.error-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1.5rem;
}
.error-code {
  font-family: 'DM Serif Display', serif;
  font-size: 7rem;
  color: var(--border);
  line-height: 1;
  margin-bottom: 1rem;
}
.error-page h2 { color: var(--primary-dark); }

/* Responsive columns */
.columns.is-flex-wrap { flex-wrap: wrap; }
@media (max-width: 768px) {
  .columns { display: block; }
  .column { width: 100% !important; padding: 0.75rem; }
}

/* Utilities */
.has-text-accent { color: var(--accent) !important; }
.has-text-primary { color: var(--primary) !important; }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.text-center { text-align: center; }
