/* ===================================================
   DutchEnglish.com — Dutch Flag Theme
   Colors: #AE1C28 (red), #FFFFFF (white), #21468B (blue)
   =================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fredoka+One&family=Nunito:wght@400;600;700;800;900&display=swap');

:root {
  --red:        #AE1C28;
  --red-dark:   #8a1520;
  --red-light:  #fbeaeb;
  --blue:       #21468B;
  --blue-dark:  #17336a;
  --blue-light: #e8edf8;
  --white:      #ffffff;
  --text:       #1a1a2e;
  --muted:      #546e7a;
  --bg:         #f8f9fb;
  --border:     #e2e6ea;
  --shadow:     0 4px 20px rgba(0,0,0,0.08);
  --radius:     14px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Nunito', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.8;
  font-size: 16px;
}
a { color: var(--blue); }
img { max-width: 100%; height: auto; }

/* ── DUTCH FLAG STRIPE BAR ── */
.flag-stripe {
  display: flex;
  height: 6px;
  width: 100%;
}
.flag-stripe .s1 { flex: 1; background: var(--red); }
.flag-stripe .s2 { flex: 1; background: var(--white); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.flag-stripe .s3 { flex: 1; background: var(--blue); }

/* ── HEADER ── */
header {
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(33,70,139,0.12);
  border-bottom: 3px solid var(--red);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.logo {
  font-family: 'Fredoka One', cursive;
  font-size: 1.55em;
  color: var(--red);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo span { color: var(--blue); }
nav { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
nav a {
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 0.88em;
  padding: 7px 13px;
  border-radius: 999px;
  transition: all 0.2s;
}
nav a:hover, nav a.active { background: var(--red-light); color: var(--red); }
.nav-test {
  background: var(--red) !important;
  color: var(--white) !important;
  font-weight: 800 !important;
}
.nav-test:hover { background: var(--red-dark) !important; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--text); border-radius: 2px; }

/* ── HERO (index) ── */
.hero {
  background: linear-gradient(135deg, #fff8f8 0%, #f0f3ff 100%);
  padding: 80px 24px 60px;
  text-align: center;
  border-bottom: 4px solid var(--border);
}
.hero h1 {
  font-family: 'Fredoka One', cursive;
  font-size: clamp(2em, 5vw, 3.2em);
  color: var(--red);
  line-height: 1.15;
  margin-bottom: 16px;
}
.hero p {
  font-size: 1.12em;
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto 28px;
  font-weight: 600;
}
.hero-flags { font-size: 2em; letter-spacing: 6px; margin-bottom: 24px; }

/* ── BUTTONS ── */
.btn {
  display: inline-block;
  padding: 13px 30px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.95em;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}
.btn-primary { background: var(--red); color: var(--white); }
.btn-primary:hover { background: var(--red-dark); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(174,28,40,0.3); }
.btn-secondary { background: var(--blue); color: var(--white); margin-left: 10px; }
.btn-secondary:hover { background: var(--blue-dark); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--red); border: 2px solid var(--red); }
.btn-outline:hover { background: var(--red); color: var(--white); }

/* ── LAYOUT ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
section { padding: 56px 0; }

/* ── SECTION HEADINGS ── */
.section-title {
  font-family: 'Fredoka One', cursive;
  font-size: clamp(1.5em, 3vw, 2em);
  color: var(--blue);
  text-align: center;
  margin-bottom: 8px;
}
.section-sub {
  text-align: center;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 36px;
  font-size: 1em;
}

/* ── CATEGORY TABS ── */
.category-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 36px;
}
.cat-tab {
  padding: 8px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.88em;
  cursor: pointer;
  border: 2px solid var(--border);
  background: var(--white);
  color: var(--muted);
  transition: all 0.2s;
}
.cat-tab:hover, .cat-tab.active { background: var(--blue); color: var(--white); border-color: var(--blue); }

/* ── ARTICLES GRID ── */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 22px;
}
.article-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  border-top: 4px solid transparent;
}
.article-card:hover { transform: translateY(-6px); box-shadow: 0 12px 32px rgba(0,0,0,0.12); }
.article-card.vocab { border-top-color: var(--red); }
.article-card.grammar { border-top-color: var(--blue); }
.article-card.culture { border-top-color: #2e7d32; }
.article-card.dialogue { border-top-color: #e65100; }
.card-icon {
  width: 100%;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5em;
}
.card-icon.vocab { background: var(--red-light); }
.card-icon.grammar { background: var(--blue-light); }
.card-icon.culture { background: #e8f5e9; }
.card-icon.dialogue { background: #fff3e0; }
.card-body { padding: 18px; flex: 1; display: flex; flex-direction: column; }
.card-tag {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 999px;
  font-size: 0.72em;
  font-weight: 800;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.tag-vocab { background: var(--red-light); color: var(--red); }
.tag-grammar { background: var(--blue-light); color: var(--blue); }
.tag-culture { background: #e8f5e9; color: #2e7d32; }
.tag-dialogue { background: #fff3e0; color: #e65100; }
.card-body h3 {
  font-family: 'Fredoka One', cursive;
  font-size: 1.05em;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.3;
}
.card-body p { font-size: 0.87em; color: var(--muted); flex: 1; margin: 0; }
.card-footer {
  padding: 10px 18px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8em;
  color: var(--muted);
  font-weight: 700;
}
.card-footer .arrow { color: var(--red); font-weight: 900; }

/* ── STATS BAR ── */
.stats-bar { background: var(--blue); color: var(--white); padding: 28px 24px; }
.stats-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 20px;
}
.stat-item { text-align: center; }
.stat-num { font-family: 'Fredoka One', cursive; font-size: 2em; display: block; }
.stat-label { font-size: 0.84em; opacity: 0.85; font-weight: 600; }

/* ── ARTICLE PAGE ── */
.breadcrumb {
  padding: 12px 24px;
  max-width: 1200px;
  margin: 0 auto;
  font-size: 0.84em;
  color: var(--muted);
  font-weight: 600;
}
.breadcrumb a { color: var(--red); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { margin: 0 6px; }

.article-hero {
  background: linear-gradient(135deg, #fff8f8 0%, #edf0ff 100%);
  padding: 56px 24px 36px;
  text-align: center;
  border-bottom: 3px solid var(--border);
}
.article-hero .emoji-big { font-size: 3.8em; margin-bottom: 14px; display: block; }
.article-hero h1 {
  font-family: 'Fredoka One', cursive;
  font-size: clamp(1.7em, 4vw, 2.6em);
  color: var(--red);
  margin-bottom: 10px;
  line-height: 1.2;
}
.article-hero .subtitle { font-size: 1.1em; color: var(--blue); font-weight: 700; margin-bottom: 14px; }
.article-meta { color: var(--muted); font-size: 0.87em; font-weight: 600; }

.article-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 36px 24px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 36px;
  align-items: start;
}

/* ── ARTICLE CONTENT ── */
.article-content h2 {
  font-family: 'Fredoka One', cursive;
  font-size: 1.45em;
  color: var(--blue);
  margin: 32px 0 14px;
  padding-bottom: 8px;
  border-bottom: 3px solid var(--blue-light);
}
.article-content h3 {
  font-size: 1.12em;
  color: var(--red);
  font-weight: 800;
  margin: 22px 0 10px;
}
.article-content p { margin: 12px 0; color: #2a2a3e; line-height: 1.85; }
.article-content ul, .article-content ol { padding-left: 22px; margin: 12px 0; }
.article-content li { margin: 7px 0; line-height: 1.75; }

/* ── VOCAB TABLE ── */
.vocab-table {
  width: 100%;
  border-collapse: collapse;
  margin: 22px 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.vocab-table th {
  background: var(--red);
  color: var(--white);
  padding: 12px 16px;
  text-align: left;
  font-weight: 800;
  font-size: 0.88em;
}
.vocab-table td { padding: 10px 16px; border-bottom: 1px solid var(--border); font-size: 0.91em; }
.vocab-table tr:nth-child(even) { background: #fafbfc; }
.vocab-table tr:hover { background: var(--red-light); }
.vocab-table .dutch { font-weight: 800; color: var(--blue); }
.vocab-table .english { color: var(--muted); }
.vocab-table .emoji { font-size: 1.25em; }
.vocab-table .example { font-style: italic; font-size: 0.85em; color: #888; }

/* ── TIP / INFO BOXES ── */
.tip-box {
  background: var(--red-light);
  border-left: 5px solid var(--red);
  border-radius: 12px;
  padding: 16px 20px;
  margin: 22px 0;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.tip-icon { font-size: 1.7em; flex-shrink: 0; }
.tip-content strong { display: block; color: var(--red); margin-bottom: 6px; font-weight: 800; }
.tip-content p { margin: 0; font-size: 0.92em; }

.info-box {
  background: var(--blue-light);
  border-left: 5px solid var(--blue);
  border-radius: 12px;
  padding: 16px 20px;
  margin: 22px 0;
}
.info-box strong { color: var(--blue); display: block; margin-bottom: 6px; font-weight: 800; }

.grammar-box {
  background: #f3f4ff;
  border: 2px solid var(--blue);
  border-radius: 12px;
  padding: 18px 22px;
  margin: 22px 0;
}
.grammar-box h4 { color: var(--blue); font-size: 1.02em; margin-bottom: 10px; font-weight: 800; }

.example-sentence {
  background: var(--white);
  border-left: 4px solid var(--red);
  padding: 11px 17px;
  margin: 10px 0;
  border-radius: 0 10px 10px 0;
  font-size: 0.92em;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.example-sentence .dutch-s { font-weight: 800; color: var(--blue); display: block; }
.example-sentence .english-s { color: var(--muted); font-style: italic; display: block; }

/* ── ADSENSE ── */
.ad-container {
  text-align: center;
  margin: 28px auto;
  max-width: 100%;
  overflow: hidden;
  background: #fafafa;
  border: 1px dashed var(--border);
  border-radius: 10px;
  padding: 8px;
}

/* ── TEST CTA ── */
.test-cta {
  background: linear-gradient(135deg, var(--red-light), var(--blue-light));
  border: 3px solid var(--red);
  border-radius: 18px;
  padding: 36px;
  text-align: center;
  margin: 36px 0;
}
.test-cta h3 {
  font-family: 'Fredoka One', cursive;
  font-size: 1.5em;
  color: var(--red);
  margin-bottom: 10px;
}
.test-cta p { color: var(--muted); font-weight: 600; margin-bottom: 18px; }

/* ── SIDEBAR ── */
.sidebar { position: sticky; top: 88px; }
.sidebar-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--red);
}
.sidebar-card h4 {
  font-family: 'Fredoka One', cursive;
  color: var(--blue);
  margin-bottom: 14px;
  font-size: 1.02em;
}
.sidebar-card .btn { width: 100%; text-align: center; display: block; margin-bottom: 8px; }

.related-list { list-style: none; padding: 0; }
.related-list li { margin: 6px 0; }
.related-list a {
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 0.87em;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  transition: background 0.2s;
}
.related-list a:hover { background: var(--red-light); color: var(--red); }

/* ── SOCIAL BANNER ── */
.social-banner {
  background: linear-gradient(135deg, var(--blue), var(--red));
  color: var(--white);
  padding: 50px 24px;
  text-align: center;
}
.social-banner h2 { font-family: 'Fredoka One', cursive; font-size: 1.8em; margin-bottom: 10px; }
.social-banner p { opacity: 0.9; margin-bottom: 26px; font-size: 1.03em; }
.social-links { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 22px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.87em;
  text-decoration: none;
  transition: transform 0.2s;
  border: 2px solid rgba(255,255,255,0.5);
  color: var(--white);
  background: rgba(255,255,255,0.15);
}
.social-btn:hover { transform: scale(1.05); background: rgba(255,255,255,0.25); }

/* ── FOOTER ── */
footer {
  background: #12203d;
  color: #ccc;
  padding: 50px 24px 24px;
}
.footer-grid {
  max-width: 1200px;
  margin: 0 auto 36px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 36px;
}
.footer-brand .logo { color: var(--white); margin-bottom: 12px; display: inline-block; }
.footer-brand p { font-size: 0.87em; line-height: 1.7; color: #aaa; }
footer h4 { color: var(--white); font-weight: 800; margin-bottom: 14px; font-size: 0.93em; }
footer ul { list-style: none; padding: 0; }
footer li { margin: 7px 0; }
footer a { color: #aaa; text-decoration: none; font-size: 0.87em; transition: color 0.2s; }
footer a:hover { color: var(--red); }
.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 20px;
  border-top: 1px solid #2a3a5c;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.81em;
  color: #666;
  flex-wrap: wrap;
  gap: 10px;
}

/* ── INDEX PAGE ── */
.level-badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 32px;
}
.level-badge {
  padding: 6px 18px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.85em;
  border: 2px solid transparent;
}
.level-a1 { background: var(--red-light); color: var(--red); border-color: var(--red); }
.level-a2 { background: var(--blue-light); color: var(--blue); border-color: var(--blue); }
.level-b1 { background: #e8f5e9; color: #2e7d32; border-color: #2e7d32; }
.level-b2 { background: #fff3e0; color: #e65100; border-color: #e65100; }

/* ── PAGINATION ── */
.pagination { display: flex; gap: 8px; justify-content: center; margin: 36px 0; flex-wrap: wrap; }
.pagination a, .pagination span {
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.88em;
  text-decoration: none;
  transition: all 0.2s;
}
.pagination a { color: var(--blue); border: 2px solid var(--blue-light); }
.pagination a:hover { background: var(--blue); color: var(--white); }
.pagination .active { background: var(--red); color: var(--white); border: 2px solid var(--red); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .article-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  nav { display: none; }
  nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 68px;
    left: 0; right: 0;
    background: var(--white);
    padding: 14px;
    border-bottom: 2px solid var(--red-light);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    z-index: 99;
  }
  .hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr; }
  .articles-grid { grid-template-columns: 1fr; }
  .btn-secondary { margin-left: 0; margin-top: 10px; }
  .hero { padding: 50px 16px 36px; }
}
