/* =====================================================
   Habla Horizon — style.css
   Clean cream content pages, dark nav (AussieDeutsch style)
   Spanish colours: Red #C60B1E, Gold #F1BE48
   ===================================================== */

:root {
  --red:      #C60B1E;
  --red-dark: #a8091a;
  --gold:     #F1BE48;
  --gold-lt:  #fdd878;
  --dark:     #1A0A0E;
  --charcoal: #2B1A1F;
  --nav-mid:  #3a2228;
  --cream:    #F5F0E8;
  --cream-dk: #EDE7D9;
  --cream-bd: #D9D0C0;
  --body-bg:  #FAFAF7;
  --text:     #1c1c1c;
  --text-mid: #4a4a4a;
  --text-lt:  #7a7a7a;
  --white:    #ffffff;
  --nav-h:    62px;
}

/* ── RESET ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--body-bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
}

a { color: var(--red); text-decoration: none; }
a:hover { color: var(--red-dark); text-decoration: underline; }

img { max-width: 100%; display: block; }

h1,h2,h3,h4,h5 {
  font-family: 'Playfair Display', serif;
  color: var(--text);
  line-height: 1.2;
}
h1 { font-size: clamp(30px, 4.5vw, 52px); font-weight: 900; }
h2 { font-size: clamp(22px, 3vw, 34px); font-weight: 800; margin: 2rem 0 1rem; }
h3 { font-size: clamp(18px, 2.5vw, 24px); font-weight: 700; margin: 1.5rem 0 .75rem; }
h4 { font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 700; }

p  { margin-bottom: 1.1rem; color: var(--text-mid); }
ul, ol { margin: .75rem 0 1rem 1.5rem; }
li { margin-bottom: 6px; color: var(--text-mid); }
strong { color: var(--text); }

table { border-collapse: collapse; width: 100%; margin: 1.5rem 0; font-size: 15px; }
th, td { padding: 11px 16px; border: 1px solid var(--cream-bd); text-align: left; }
th { background: var(--cream-dk); font-weight: 700; font-size: 13px; letter-spacing: .04em; color: var(--text); }
tr:nth-child(even) td { background: var(--cream); }

.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* ── TOP BAR ────────────────────────────────────── */
.topbar {
  background: var(--red);
  text-align: center;
  padding: 7px 16px;
  font-size: 13px; font-weight: 600; letter-spacing: .04em;
  color: var(--white);
}
.topbar a { color: var(--white); text-decoration: underline; }
.topbar a:hover { color: var(--gold); text-decoration: none; }
.topbar-hl { color: var(--gold); margin: 0 3px; font-weight: 800; }

/* ── NAV ────────────────────────────────────────── */
.main-nav {
  background: var(--dark);
  border-bottom: 3px solid var(--gold);
  position: sticky; top: 0; z-index: 500;
  box-shadow: 0 2px 16px rgba(0,0,0,.35);
}
.nav-inner {
  max-width: 1160px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center;
  height: var(--nav-h);
}

/* Logo */
.logo {
  display: flex; align-items: center; gap: 11px;
  text-decoration: none;
  padding-right: 20px;
  border-right: 1px solid var(--nav-mid);
  margin-right: 6px; flex-shrink: 0;
}
.logo:hover { text-decoration: none; }
.logo-icon {
  width: 36px; height: 36px; background: var(--red); border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Bebas Neue', sans-serif; font-size: 18px;
  color: var(--gold); letter-spacing: 1px; flex-shrink: 0;
}
.logo-name {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 17px; font-weight: 700; color: var(--white); line-height: 1.2;
}
.logo-sub {
  display: block; font-size: 9px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--gold);
}

/* Nav links */
.nav-links {
  display: flex; list-style: none;
  height: var(--nav-h); align-items: stretch; flex: 1;
}
.nav-links > li { position: relative; display: flex; align-items: stretch; }
.nav-links > li > a {
  display: flex; align-items: center; gap: 4px;
  padding: 0 13px;
  font-size: 13px; font-weight: 600;
  color: #e8dde0; text-decoration: none; white-space: nowrap;
  transition: color .15s;
}
.nav-links > li > a:hover,
.nav-links > li.has-dd:hover > a { color: var(--gold); text-decoration: none; }
.nav-links > li.active > a { color: var(--gold); }
.nav-links > li.active::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 3px; background: var(--gold);
}
.arrow { font-size: 9px; color: #7a5c63; transition: transform .15s; }
.nav-links > li.has-dd:hover .arrow { transform: rotate(180deg); color: var(--gold); }

/* Dropdown */
.dropdown {
  position: absolute; top: 100%; left: 0;
  background: var(--charcoal); border-top: 3px solid var(--gold);
  min-width: 200px;
  opacity: 0; pointer-events: none;
  transform: translateY(-5px);
  transition: opacity .15s, transform .15s;
  box-shadow: 0 8px 28px rgba(0,0,0,.45); z-index: 600;
}
.nav-links > li.has-dd:hover .dropdown { opacity: 1; pointer-events: all; transform: translateY(0); }
.dropdown a {
  display: block; padding: 11px 18px;
  font-size: 13.5px; color: #d4b8bc; font-weight: 500;
  text-decoration: none; border-bottom: 1px solid var(--nav-mid);
  transition: background .12s, color .12s, padding-left .12s;
}
.dropdown a:last-child { border-bottom: none; }
.dropdown a:hover { background: var(--red); color: var(--white); padding-left: 24px; text-decoration: none; }
.dd-label {
  padding: 9px 18px 5px; font-size: 10px; font-weight: 800;
  letter-spacing: .16em; text-transform: uppercase; color: var(--gold);
  border-bottom: 1px solid var(--nav-mid); cursor: default;
}

/* Nav right */
.nav-right {
  display: flex; align-items: center; gap: 6px; margin-left: auto; flex-shrink: 0;
}
.nav-search-btn {
  background: none; border: none; color: #7a5c63;
  font-size: 16px; cursor: pointer; padding: 6px; transition: color .15s;
}
.nav-search-btn:hover { color: var(--gold); }
.nav-flashcard-link {
  font-size: 13px; font-weight: 600; color: #e8dde0;
  padding: 7px 12px; border: 1px solid var(--nav-mid);
  border-radius: 3px; transition: all .15s; text-decoration: none;
}
.nav-flashcard-link:hover { border-color: var(--gold); color: var(--gold); text-decoration: none; }

/* Search bar slide */
.nav-search-bar {
  background: var(--charcoal); border-top: 1px solid var(--nav-mid);
  padding: 14px 24px; display: none;
}
.search-form { display: flex; max-width: 580px; margin: 0 auto; }
.search-form input {
  flex: 1; padding: 11px 14px;
  background: var(--dark); border: 1px solid var(--nav-mid); border-right: none;
  color: var(--white); font-size: 14px; font-family: 'Inter', sans-serif;
  outline: none; border-radius: 3px 0 0 3px;
}
.search-form input:focus { border-color: var(--gold); }
.search-form input::placeholder { color: #7a5c63; }
.search-form button {
  background: var(--red); color: var(--white); border: none;
  padding: 0 20px; font-size: 14px; font-weight: 700; cursor: pointer;
  border-radius: 0 3px 3px 0; transition: background .15s;
}
.search-form button:hover { background: var(--red-dark); }

/* Hamburger */
.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 6px; flex-direction: column; gap: 5px; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--white); transition: all .2s; }
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* ── BREADCRUMB ─────────────────────────────────── */
.breadcrumb-bar {
  background: var(--cream); border-bottom: 1px solid var(--cream-bd);
  padding: 10px 0;
}
.breadcrumb { font-size: 13px; color: var(--text-lt); }
.breadcrumb a { color: var(--red); text-decoration: none; font-weight: 500; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb .sep { margin: 0 8px; color: var(--cream-bd); }

/* ── PAGE HERO (cream/light) ────────────────────── */
.page-hero {
  background: var(--cream); border-bottom: 3px solid var(--red);
  padding: 56px 0 48px; text-align: center;
}
.page-hero h1 { margin-bottom: 16px; }
.page-hero p { font-size: 17px; color: var(--text-mid); max-width: 620px; margin: 0 auto; }

/* ── CONTENT LAYOUT: sidebar + main ───────────────*/
.content-wrap {
  background: var(--body-bg);
  padding: 56px 0 80px;
}
.content-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 48px;
  align-items: start;
}

/* Sidebar */
.sidebar { position: sticky; top: calc(var(--nav-h) + 20px); }
.sidebar-nav {
  border: 1px solid var(--cream-bd);
  border-top: 3px solid var(--red);
  background: var(--white);
  overflow: hidden;
}
.sidebar-nav-label {
  padding: 12px 18px 10px;
  font-size: 10px; font-weight: 800;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--text-lt); background: var(--cream);
  border-bottom: 1px solid var(--cream-bd);
}
.sidebar-nav a {
  display: block; padding: 12px 18px;
  font-size: 14px; font-weight: 500; color: var(--text);
  text-decoration: none; border-bottom: 1px solid var(--cream-bd);
  transition: background .12s, color .12s, padding-left .12s;
}
.sidebar-nav a:last-child { border-bottom: none; }
.sidebar-nav a:hover { background: var(--cream); color: var(--red); padding-left: 24px; }
.sidebar-nav a.active { background: var(--cream-dk); color: var(--red); font-weight: 700; border-left: 3px solid var(--red); }

.sidebar-box {
  border: 1px solid var(--cream-bd); background: var(--white);
  margin-top: 24px; overflow: hidden;
}
.sidebar-box-label {
  padding: 11px 18px 9px;
  font-size: 10px; font-weight: 800;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--text-lt); background: var(--cream);
  border-bottom: 1px solid var(--cream-bd);
}
.sidebar-box a {
  display: block; padding: 11px 18px;
  font-size: 13.5px; color: var(--text-mid);
  text-decoration: none; border-bottom: 1px solid var(--cream-bd);
  transition: color .12s, background .12s;
}
.sidebar-box a:last-child { border-bottom: none; }
.sidebar-box a:hover { color: var(--red); background: var(--cream); }

/* Main content */
.main-content h1 { margin-bottom: 1rem; }
.main-content h2 { color: var(--text); margin-top: 2.5rem; margin-bottom: .85rem; }
.main-content h3 { color: var(--text); margin-top: 2rem; margin-bottom: .65rem; }
.main-content p  { font-size: 16px; line-height: 1.8; }
.main-content ul { margin: .75rem 0 1.2rem 1.4rem; }
.main-content li { margin-bottom: 8px; font-size: 15.5px; }

/* ── LEVEL BADGE ────────────────────────────────── */
.level-pill {
  display: inline-block; font-size: 11px; font-weight: 800;
  letter-spacing: .1em; text-transform: uppercase;
  padding: 3px 10px; border-radius: 3px; color: var(--white);
}
.level-a1 { background: #27ae60; }
.level-a2 { background: #2ecc71; color: #1a1a1a; }
.level-b1 { background: #e67e22; }
.level-b2 { background: #d35400; }
.level-c1 { background: var(--red); }
.level-c2 { background: #6c0e0e; }
.level-all { background: #555; }

.cat-tag {
  display: inline-block; font-size: 11px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  padding: 3px 10px; background: var(--red); color: var(--white); border-radius: 2px;
}

/* ── HERO (homepage) ────────────────────────────── */
.home-hero {
  position: relative; min-height: 86vh;
  display: flex; align-items: center; overflow: hidden;
  background: var(--dark);
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 65% 80% at 70% 50%, rgba(198,11,30,.18) 0%, transparent 70%),
    radial-gradient(ellipse 40% 55% at 5% 85%, rgba(241,190,72,.07) 0%, transparent 55%);
  pointer-events: none;
}
.hero-stripe {
  position: absolute; left:0; top:0; bottom:0; width:5px;
  background: linear-gradient(to bottom, var(--red) 25%, var(--gold) 25% 75%, var(--red) 75%);
}
.hero-inner {
  position: relative; max-width: 1160px; margin: 0 auto; padding: 80px 24px 80px 48px;
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; width: 100%;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(198,11,30,.18); border: 1px solid rgba(198,11,30,.45);
  padding: 6px 14px; border-radius: 2px;
  font-size: 10px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 18px;
}
.hero-inner h1 { color: var(--white); margin-bottom: 16px; }
.hero-inner h1 em { font-style: normal; color: var(--gold); }
.hero-sub { font-size: 17px; color: #c4a0a8; line-height: 1.7; margin-bottom: 30px; max-width: 480px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 30px; }
.btn-primary {
  background: var(--gold); color: var(--dark);
  padding: 14px 28px; font-size: 14px; font-weight: 700;
  border: none; cursor: pointer; text-decoration: none; display: inline-block;
  border-radius: 3px; transition: background .18s;
}
.btn-primary:hover { background: var(--gold-lt); color: var(--dark); text-decoration: none; }
.btn-outline-light {
  background: transparent; color: var(--white);
  padding: 14px 28px; font-size: 14px; font-weight: 700;
  border: 2px solid rgba(255,255,255,.22);
  cursor: pointer; text-decoration: none; display: inline-block;
  border-radius: 3px; transition: all .18s;
}
.btn-outline-light:hover { border-color: var(--gold); color: var(--gold); text-decoration: none; }

.hero-search { display: flex; border-radius: 3px; overflow: hidden; max-width: 440px; }
.hero-search input {
  flex: 1; padding: 13px 14px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); border-right: none;
  color: var(--white); font-size: 14px; font-family: 'Inter',sans-serif; outline: none;
}
.hero-search input::placeholder { color: #7a5c63; }
.hero-search input:focus { border-color: var(--gold); }
.hero-search button {
  background: var(--red); color: var(--white); border: none;
  padding: 0 20px; font-size: 14px; font-weight: 700; cursor: pointer; transition: background .15s;
}
.hero-search button:hover { background: var(--red-dark); }

.hero-stats { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 28px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.1); }
.stat-num { font-family: 'Bebas Neue', sans-serif; font-size: 32px; color: var(--gold); line-height: 1; }
.stat-lbl { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #7a5c63; margin-top: 3px; }

/* Hero level cards */
.hero-cards { display: flex; flex-direction: column; gap: 10px; }
.lc {
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1);
  border-left: 4px solid var(--red);
  padding: 13px 18px; display: flex; align-items: center; gap: 14px;
  text-decoration: none; transition: border-left-color .18s, transform .18s;
}
.lc:hover { border-left-color: var(--gold); transform: translateX(3px); text-decoration: none; }
.lc.pop { border-left-color: var(--gold); background: rgba(241,190,72,.06); }
.lc-badge { font-family: 'Bebas Neue',sans-serif; font-size: 19px; color: var(--gold); min-width: 34px; }
.lc-title { font-size: 13px; font-weight: 700; color: var(--white); }
.lc-desc  { font-size: 11px; color: #7a5c63; margin-top: 1px; }
.lc-arrow { color: #7a5c63; font-size: 14px; margin-left: auto; }

/* ── STATS BAR ──────────────────────────────────── */
.stats-bar { background: var(--gold); padding: 20px 24px; }
.stats-bar-inner { max-width: 1160px; margin: 0 auto; display: flex; justify-content: space-around; align-items: center; flex-wrap: wrap; gap: 12px; }
.sbar-stat { text-align: center; }
.sbar-num  { font-family: 'Bebas Neue',sans-serif; font-size: 30px; color: var(--dark); line-height: 1; }
.sbar-lbl  { font-size: 10px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; color: rgba(26,10,14,.55); margin-top: 2px; }
.sbar-div  { width: 1px; height: 34px; background: rgba(26,10,14,.18); }

/* ── SECTION (homepage) ─────────────────────────── */
.hp-section { padding: 72px 0; }
.hp-section-alt { background: var(--cream); }
.section-hd { margin-bottom: 40px; }
.eyebrow {
  font-size: 11px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase;
  color: var(--red); display: block; margin-bottom: 8px;
}
.section-hd h2 { color: var(--text); }
.section-hd h2 em { font-style: normal; color: var(--red); }
.section-hd p { color: var(--text-mid); margin-top: 8px; max-width: 520px; }

/* Topic grid */
.topic-grid {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 1px; background: var(--cream-bd);
  border: 1px solid var(--cream-bd);
}
.topic-card {
  background: var(--white); padding: 26px 22px;
  text-decoration: none; display: flex; flex-direction: column; gap: 7px;
  transition: background .15s;
}
.topic-card:hover { background: var(--cream); text-decoration: none; }
.topic-icon { font-size: 24px; }
.topic-name { font-size: 15px; font-weight: 700; color: var(--text); font-family: 'Inter',sans-serif; }
.topic-count { font-size: 12px; color: var(--text-lt); }
.topic-arrow { color: var(--red); font-size: 14px; margin-top: auto; opacity: 0; transform: translateX(-3px); transition: all .15s; }
.topic-card:hover .topic-arrow { opacity: 1; transform: translateX(0); }

/* Featured articles block */
.feat-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 1px; background: var(--cream-bd); border: 1px solid var(--cream-bd); }
.feat-main {
  background: var(--white); padding: 32px;
  text-decoration: none; display: block; transition: background .15s;
}
.feat-main:hover { background: var(--cream); text-decoration: none; }
.feat-title { font-family: 'Playfair Display',serif; font-size: 22px; font-weight: 700; color: var(--text); line-height: 1.3; margin: 10px 0; }
.feat-excerpt { font-size: 14px; color: var(--text-mid); line-height: 1.65; }
.feat-side { display: flex; flex-direction: column; gap: 1px; background: var(--cream-bd); }
.feat-mini {
  background: var(--white); padding: 20px 22px;
  text-decoration: none; display: flex; flex-direction: column; gap: 7px; flex: 1;
  transition: background .15s;
}
.feat-mini:hover { background: var(--cream); text-decoration: none; }
.feat-mini-title { font-size: 14px; font-weight: 600; color: var(--text); line-height: 1.35; }

/* Cards grid */
.cards-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: var(--cream-bd); border: 1px solid var(--cream-bd); }
.article-card {
  background: var(--white); padding: 22px;
  text-decoration: none; display: flex; flex-direction: column; gap: 8px;
  border-top: 3px solid transparent; transition: background .15s, border-top-color .15s;
}
.article-card:hover { background: var(--cream); border-top-color: var(--red); text-decoration: none; }
.card-title { font-family: 'Playfair Display',serif; font-size: 17px; font-weight: 700; color: var(--text); line-height: 1.3; }
.card-excerpt { font-size: 13px; color: var(--text-mid); line-height: 1.6; flex: 1; }
.card-meta { font-size: 11px; color: var(--text-lt); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 4px; }

/* Why grid */
.why-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; background: var(--cream-bd); border: 1px solid var(--cream-bd); margin-top: 40px; }
.why-card { background: var(--white); padding: 28px 22px; border-top: 3px solid transparent; transition: border-top-color .15s; }
.why-card:hover { border-top-color: var(--red); }
.why-num { font-family: 'Bebas Neue',sans-serif; font-size: 42px; color: rgba(198,11,30,.15); line-height: 1; margin-bottom: 10px; }
.why-title { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 7px; font-family: 'Inter',sans-serif; }
.why-desc { font-size: 13px; color: var(--text-mid); line-height: 1.65; }

/* Blog listing page */
.blog-header { background: var(--cream); border-bottom: 3px solid var(--red); padding: 44px 0 36px; }
.blog-header h1 { margin-bottom: 10px; }
.blog-header p { color: var(--text-mid); }

/* Category filter pills */
.cat-filters { display: flex; gap: 8px; flex-wrap: wrap; margin: 28px 0; }
.cat-filter {
  padding: 7px 16px; font-size: 13px; font-weight: 600;
  border: 1px solid var(--cream-bd); border-radius: 3px;
  background: var(--white); color: var(--text-mid);
  text-decoration: none; transition: all .15s;
}
.cat-filter:hover, .cat-filter.active { background: var(--red); border-color: var(--red); color: var(--white); text-decoration: none; }

/* Flashcard */
.fc-set-list { border: 1px solid var(--cream-bd); overflow: hidden; }
.fc-set-item {
  display: block; padding: 14px 18px;
  border-bottom: 1px solid var(--cream-bd);
  font-size: 14px; font-weight: 500; color: var(--text);
  text-decoration: none; transition: all .15s;
}
.fc-set-item:last-child { border-bottom: none; }
.fc-set-item:hover, .fc-set-item.active { background: var(--red); color: var(--white); padding-left: 22px; text-decoration: none; }
.flashcard-box {
  background: var(--white); border: 1px solid var(--cream-bd); border-top: 3px solid var(--gold);
  border-radius: 4px; padding: 48px 32px; text-align: center;
  min-height: 230px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  cursor: pointer; margin-bottom: 20px; transition: border-color .2s;
}
.flashcard-box:hover { border-color: var(--red); }
.fc-es { font-family: 'Playfair Display',serif; font-size: 34px; color: var(--text); margin-bottom: 6px; }
.fc-en { font-size: 22px; color: var(--red); display: none; margin-top: 12px; }
.fc-ex { font-size: 13px; color: var(--text-lt); font-style: italic; display: none; margin-top: 10px; }
.fc-hint { font-size: 12px; color: var(--text-lt); margin-top: 12px; }
.flashcard-box.revealed .fc-en, .flashcard-box.revealed .fc-ex { display: block; }
.flashcard-box.revealed .fc-hint { display: none; }
.fc-btns { display: flex; gap: 10px; justify-content: center; }
.fc-btn { padding: 11px 24px; font-size: 14px; font-weight: 700; border: none; border-radius: 3px; cursor: pointer; transition: opacity .15s; }
.fc-reveal { background: var(--gold); color: var(--dark); }
.fc-next   { background: var(--red);  color: var(--white); display: none; }
.fc-btn:hover { opacity: .88; }

/* Contact */
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 5px; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 11px 13px;
  background: var(--white); border: 1px solid var(--cream-bd);
  color: var(--text); font-family: 'Inter',sans-serif; font-size: 14px;
  outline: none; border-radius: 3px; transition: border-color .15s;
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--red); }
.form-group textarea { resize: vertical; min-height: 130px; }
.alert { padding: 13px 18px; border-radius: 3px; margin-bottom: 18px; font-size: 14px; font-weight: 600; }
.alert-success { background: #f0faf4; border: 1px solid #27ae60; color: #1e7e44; }
.alert-error   { background: #fff5f5; border: 1px solid var(--red); color: var(--red-dark); }

/* Pagination */
.pagination { display: flex; gap: 6px; justify-content: center; padding: 36px 0 0; }
.pagination a, .pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  background: var(--white); border: 1px solid var(--cream-bd);
  font-size: 14px; font-weight: 600; color: var(--text);
  text-decoration: none; border-radius: 3px; transition: all .15s;
}
.pagination a:hover { border-color: var(--red); color: var(--red); background: var(--cream); text-decoration: none; }
.pagination .cur { background: var(--red); border-color: var(--red); color: var(--white); }

/* ── ADMIN ──────────────────────────────────────── */
body.admin-bg { background: #111; color: #ddd; }
.admin-wrap { display: grid; grid-template-columns: 210px 1fr; min-height: 100vh; }
.admin-side { background: #1a1a1a; border-right: 1px solid #2a2a2a; padding: 24px 0; }
.admin-side h2 { font-family: 'Inter'; font-size: 13px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; color: var(--gold); padding: 0 18px 14px; border-bottom: 1px solid #2a2a2a; margin-bottom: 10px; }
.admin-side a { display: block; padding: 10px 18px; font-size: 13.5px; color: #aaa; text-decoration: none; transition: all .15s; }
.admin-side a:hover, .admin-side a.cur { background: var(--red); color: var(--white); padding-left: 22px; }
.admin-main { padding: 32px; }
.admin-main h1 { font-family: 'Inter'; font-size: 22px; font-weight: 800; color: #fff; margin-bottom: 22px; }
.admin-stats-row { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; margin-bottom: 28px; }
.ast { background: #1a1a1a; border: 1px solid #2a2a2a; border-top: 3px solid var(--gold); padding: 18px; border-radius: 3px; }
.ast .n { font-family: 'Bebas Neue'; font-size: 38px; color: var(--gold); line-height: 1; }
.ast .l { font-size: 11px; color: #777; text-transform: uppercase; letter-spacing: .1em; margin-top: 3px; }
.adm-tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.adm-tbl th { background: #1e1e1e; color: var(--gold); padding: 9px 13px; text-align: left; font-size: 10px; text-transform: uppercase; letter-spacing: .1em; border-bottom: 2px solid var(--gold); }
.adm-tbl td { padding: 11px 13px; border-bottom: 1px solid #1e1e1e; vertical-align: middle; }
.adm-tbl tr:hover td { background: #191919; }
.adm-tbl a { color: var(--gold); }
.btn-xs { padding: 4px 10px; font-size: 12px; font-weight: 700; border-radius: 2px; border: none; cursor: pointer; text-decoration: none; display: inline-block; }
.bx-edit { background: var(--gold); color: var(--dark); }
.bx-del  { background: var(--red);  color: var(--white); margin-left: 4px; }

/* ── FOOTER ─────────────────────────────────────── */
.site-footer { background: var(--dark); border-top: 3px solid var(--red); padding: 52px 24px 24px; }
.footer-inner { max-width: 1160px; margin: 0 auto; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 36px; }
.footer-logo { display: flex; align-items: center; gap: 11px; margin-bottom: 12px; }
.footer-logo .logo-name { font-family: 'Playfair Display',serif; font-size: 18px; font-weight: 700; color: var(--white); }
.footer-desc { font-size: 13px; color: #7a5c63; line-height: 1.7; max-width: 270px; }
.footer-flag { display: flex; align-items: center; gap: 7px; margin-top: 14px; font-size: 12px; color: #7a5c63; }
.flag-bar { width: 26px; height: 14px; border-radius: 2px; overflow: hidden; display: flex; flex-direction: column; }
.fb-r { flex: 1; background: var(--red); }
.fb-g { flex: 2; background: var(--gold); }
.footer-col h4 { font-size: 10px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; font-family: 'Inter',sans-serif; }
.footer-col a { display: block; font-size: 13px; color: #7a5c63; text-decoration: none; margin-bottom: 8px; transition: color .15s; }
.footer-col a:hover { color: var(--white); }
.footer-bot { display: flex; justify-content: space-between; align-items: center; padding-top: 22px; border-top: 1px solid var(--nav-mid); font-size: 12px; color: #7a5c63; }

/* ── RESPONSIVE ─────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .why-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 900px) {
  .content-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-cards { display: none; }
  .home-hero { min-height: auto; }
  .hero-inner { padding: 56px 24px; }
  .feat-grid { grid-template-columns: 1fr; }
  .cards-grid, .topic-grid { grid-template-columns: repeat(2,1fr); }
  .nav-links { display: none; flex-direction: column; position: absolute; top: var(--nav-h); left: 0; right: 0; background: var(--dark); border-top: 1px solid var(--nav-mid); z-index: 400; }
  .nav-links.open { display: flex; }
  .nav-links > li { display: block; height: auto; }
  .nav-links > li > a { padding: 13px 20px; border-bottom: 1px solid var(--nav-mid); }
  .dropdown { position: static; opacity: 1; transform: none; pointer-events: all; box-shadow: none; border-top: none; background: #0e0407; display: none; }
  .dropdown.open { display: block; }
  .hamburger { display: flex; }
}
@media (max-width: 640px) {
  .cards-grid, .topic-grid, .why-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .sbar-div { display: none; }
  .admin-stats-row { grid-template-columns: repeat(2,1fr); }
  .admin-wrap { grid-template-columns: 1fr; }
}
