/* ===================================================
   seo-topics.css  –  Shared styles for SEO topic pages
   ACMSL Wind Energy Training
   =================================================== */
:root {
  --primary: #1a7fc4;
  --primary-dark: #1262a0;
  --primary-light: #e3f4ff;
  --accent: #00a878;
  --accent-soft: #e7fbf4;
  --dark: #123047;
  --muted: #516272;
  --bg: #f5f7fb;
  --card-bg: #ffffff;
  --border: rgba(18,48,71,0.1);
  --shadow: 0 10px 25px rgba(0,0,0,0.08);
  --radius: 12px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--dark);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ---- HEADER ---- */
header {
  background: linear-gradient(135deg, var(--primary), #0099cc);
  color: #fff;
  box-shadow: 0 4px 18px rgba(0,0,0,0.18);
}
.header-wrap {
  max-width: 1140px;
  margin: 0 auto;
  padding: 1.2rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 0.9rem; text-decoration: none; color: #fff; }
.brand img { height: 44px; width: auto; }
.brand-copy h1 { font-size: 1.15rem; font-weight: 700; line-height: 1.15; }
.brand-copy p  { font-size: 0.85rem; opacity: 0.85; margin-top: 0.1rem; }
.header-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; align-items: center; }
.lang-switcher {
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
  background: rgba(255,255,255,0.12);
  border-radius: 6px;
  padding: 0.2rem 0.4rem;
}
.lang-switcher a {
  color: #fff;
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.15rem 0.35rem;
  border-radius: 4px;
  opacity: 0.7;
  transition: opacity 0.15s, background 0.15s;
}
.lang-switcher a:hover {
  opacity: 1;
  background: rgba(255,255,255,0.2);
  text-decoration: none;
}
.btn-app {
  display: inline-block;
  padding: 0.55rem 1.1rem;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.2s;
}
.btn-app:hover { background: #00956a; }
.btn-outline {
  display: inline-block;
  padding: 0.55rem 1.1rem;
  border: 1.5px solid rgba(255,255,255,0.5);
  color: #fff;
  text-decoration: none;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.2s;
}
.btn-outline:hover { background: rgba(255,255,255,0.15); }

/* ---- MAIN ---- */
main { flex: 1; }
.container { max-width: 960px; margin: 0 auto; padding: 2rem 1.5rem 4rem; }

/* ---- BREADCRUMB ---- */
.breadcrumb {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 1.4rem;
}
.breadcrumb a { color: var(--primary); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { margin: 0 0.35rem; }

/* ---- PAGE TITLE ---- */
.page-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--dark);
  line-height: 1.2;
  margin-bottom: 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 3px solid var(--primary);
  display: inline-block;
}
.lead {
  font-size: 1.1rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 2rem;
  max-width: 720px;
}

/* ---- TOPIC SECTION CARD ---- */
.topic-section {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.8rem 2rem;
  margin-bottom: 1.5rem;
}
.topic-section h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
  padding-bottom: 0.3rem;
  border-bottom: 2px solid var(--primary-light);
}
.topic-section h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark);
  margin: 1.2rem 0 0.4rem;
}
.topic-section p {
  font-size: 0.97rem;
  line-height: 1.65;
  color: #2d4057;
  margin-bottom: 0.75rem;
}
.topic-section ul {
  margin: 0.5rem 0 0.75rem 1.3rem;
  font-size: 0.97rem;
  line-height: 1.7;
  color: #2d4057;
}
.topic-section ul li { margin-bottom: 0.25rem; }
.topic-section a { color: var(--primary); }
.topic-section a.btn-primary,
.topic-section a.btn-accent,
.topic-section a.btn-secondary { color: var(--dark); }
.topic-section a.btn-primary:hover,
.topic-section a.btn-accent:hover { color: #fff; }
.topic-section a:hover { text-decoration: underline; }

/* ---- SUBTOPICS (numbered list) ---- */
.subtopic-list { list-style: none; padding: 0; margin: 0.75rem 0; }
.subtopic-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
}
.subtopic-list li:last-child { border-bottom: none; }
.subtopic-num {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.subtopic-text { flex: 1; }
.subtopic-text strong { display: block; font-size: 0.97rem; margin-bottom: 0.2rem; }
.subtopic-text span { font-size: 0.88rem; color: var(--muted); line-height: 1.5; }

/* ---- BUTTONS ---- */
.btn-row { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1rem; }
.btn-primary {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  background: var(--primary);
  color: var(--dark);
  text-decoration: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  transition: background 0.2s;
}
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-accent {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  background: var(--accent);
  color: var(--dark);
  text-decoration: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  transition: background 0.2s;
}
.btn-accent:hover { background: #00956a; color: #fff; }
.btn-secondary {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  background: transparent;
  border: 1.5px solid var(--primary);
  color: var(--primary);
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.2s, color 0.2s;
}
.btn-secondary:hover { background: var(--primary-light); }

/* ---- CTA BOX ---- */
.cta-box {
  background: linear-gradient(135deg, var(--primary), #0099cc);
  color: #fff;
  border-radius: var(--radius);
  padding: 2rem 2.2rem;
  text-align: center;
  margin-top: 2.5rem;
}
.cta-box h2 { font-size: 1.35rem; margin-bottom: 0.5rem; }
.cta-box p  { font-size: 0.97rem; opacity: 0.9; margin-bottom: 1.2rem; }
.cta-box .btn-cta {
  display: inline-block;
  padding: 0.75rem 2rem;
  background: #fff;
  color: var(--primary);
  text-decoration: none;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  transition: transform 0.2s;
}
.cta-box .btn-cta:hover { transform: scale(1.04); }

/* ---- TOPIC NAV (siblings) ---- */
.topic-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}
.topic-nav a {
  display: inline-block;
  padding: 0.4rem 0.9rem;
  background: var(--card-bg);
  border: 1.5px solid var(--border);
  border-radius: 999px;
  color: var(--primary);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: background 0.2s;
}
.topic-nav a:hover { background: var(--primary-light); }
.topic-nav a.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ---- FOOTER ---- */
footer {
  background: var(--dark);
  color: rgba(255,255,255,0.7);
  text-align: center;
  padding: 1.2rem;
  font-size: 0.85rem;
}
footer a { color: rgba(255,255,255,0.85); text-decoration: none; }
footer a:hover { text-decoration: underline; }

/* ---- RESPONSIVE ---- */
@media (max-width: 640px) {
  .page-title { font-size: 1.55rem; }
  .topic-section { padding: 1.3rem 1.2rem; }
  .cta-box { padding: 1.5rem 1.2rem; }
}
