/* ============================================================
   Plekudario – AI Foundations Learning Grid
   Main Stylesheet
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Sora:wght@400;600;700&display=swap');

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --white:      #FFFFFF;
  --blue:       #3B82F6;
  --blue-dark:  #2563EB;
  --blue-light: #EFF6FF;
  --gray-bg:    #F1F5F9;
  --slate:      #475569;
  --slate-dark: #1E293B;
  --slate-light:#94A3B8;
  --border:     #E2E8F0;
  --red-warn:   #DC2626;
  --font-sans:  'Inter', sans-serif;
  --font-head:  'Sora', sans-serif;
  --radius:     10px;
  --shadow-sm:  0 1px 3px rgba(0,0,0,.06);
  --shadow-md:  0 4px 16px rgba(59,130,246,.10);
  --shadow-lg:  0 8px 32px rgba(59,130,246,.14);
  --transition: .22s ease;
}

html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-sans);
  background: var(--white);
  color: var(--slate-dark);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--blue); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--blue-dark); }
ul { list-style: none; }
h1,h2,h3,h4,h5 { font-family: var(--font-head); line-height: 1.22; color: var(--slate-dark); }

/* ---------- Warning Banner ---------- */

/* ---------- Top Bar ---------- */
.topbar {
  background: var(--slate-dark);
  color: var(--slate-light);
  font-size: .78rem;
  padding: .45rem 0;
}
.topbar-inner {
  max-width: 1240px;
  margin: auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.topbar a { color: var(--slate-light); }
.topbar a:hover { color: #fff; }

/* ---------- Header ---------- */
.site-header {
  background: var(--white);
  border-bottom: 1.5px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 900;
  box-shadow: var(--shadow-sm);
}
.header-inner {
  max-width: 1240px;
  margin: auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  height: 66px;
}
.logo {
  font-family: var(--font-head);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--slate-dark);
  display: flex;
  align-items: center;
  gap: .5rem;
  white-space: nowrap;
}
.logo span { color: var(--blue); }
.logo-icon {
  width: 34px; height: 34px;
  background: var(--blue);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: .9rem; font-weight: 800;
}

.main-nav { flex: 1; }
.main-nav ul {
  display: flex;
  align-items: center;
  gap: .25rem;
  flex-wrap: wrap;
}
.main-nav a {
  font-size: .9rem;
  font-weight: 500;
  color: var(--slate);
  padding: .4rem .75rem;
  border-radius: 6px;
  transition: background var(--transition), color var(--transition);
  display: block;
}
.main-nav a:hover, .main-nav a.active {
  background: var(--blue-light);
  color: var(--blue);
}

.header-cta {
  display: flex; align-items: center; gap: .75rem; margin-left: auto;
}
.btn {
  display: inline-flex; align-items: center; gap: .4rem;
  font-family: var(--font-sans); font-size: .88rem; font-weight: 600;
  padding: .55rem 1.2rem;
  border-radius: 8px;
  border: none; cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
}
.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 2px 8px rgba(59,130,246,.3);
}
.btn-primary:hover {
  background: var(--blue-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(59,130,246,.4);
}
.btn-outline {
  background: transparent;
  color: var(--blue);
  border: 1.5px solid var(--blue);
}
.btn-outline:hover {
  background: var(--blue-light);
  color: var(--blue-dark);
}
.btn-ghost {
  background: var(--gray-bg);
  color: var(--slate);
}
.btn-ghost:hover { background: var(--border); color: var(--slate-dark); }
.btn-lg { font-size: 1rem; padding: .75rem 1.75rem; border-radius: 10px; }
.btn-sm { font-size: .82rem; padding: .38rem .9rem; border-radius: 6px; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none; border: none; cursor: pointer; padding: .4rem; margin-left: auto;
}
.hamburger span {
  width: 24px; height: 2px;
  background: var(--slate-dark);
  border-radius: 2px;
  display: block;
  transition: transform var(--transition), opacity var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  background: var(--gray-bg);
  padding: 5rem 1.5rem 4rem;
  text-align: center;
}
.hero-inner { max-width: 820px; margin: auto; }
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  color: var(--slate-dark);
  margin-bottom: 1.25rem;
  line-height: 1.15;
}
.hero h1 em { font-style: normal; color: var(--blue); }
.hero p {
  font-size: 1.12rem;
  color: var(--slate);
  max-width: 640px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}
.hero-actions { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }
.hero-image {
  max-width: 1080px;
  margin: 3rem auto 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.hero-image img {
  width: 100%; height: 420px;
  object-fit: cover;
}

/* ---------- Section ---------- */
.section { padding: 5rem 1.5rem; }
.section-alt { background: var(--gray-bg); }
.section-inner { max-width: 1240px; margin: auto; }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-header h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.35rem);
  font-weight: 700;
  margin-bottom: .65rem;
}
.section-header p { color: var(--slate); font-size: 1.05rem; max-width: 580px; margin: auto; }
.section-label {
  display: inline-block;
  background: var(--blue-light);
  color: var(--blue);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .3rem .75rem;
  border-radius: 20px;
  margin-bottom: .75rem;
}

/* ---------- Grid Cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.25rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 1.75rem; }

/* ---------- Course Card ---------- */
.course-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
  display: flex; flex-direction: column;
}
.course-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}
.course-card-img { width: 100%; height: 180px; object-fit: cover; }
.course-card-body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.course-card-meta {
  display: flex; gap: .6rem; flex-wrap: wrap;
  margin-bottom: .75rem;
}
.tag {
  display: inline-flex; align-items: center;
  font-size: .72rem; font-weight: 600;
  padding: .22rem .65rem; border-radius: 20px;
  background: var(--blue-light); color: var(--blue);
  letter-spacing: .02em;
}
.tag-gray { background: var(--gray-bg); color: var(--slate); }
.tag-green { background: #ECFDF5; color: #059669; }
.tag-orange { background: #FFF7ED; color: #EA580C; }
.course-card-title {
  font-size: 1rem; font-weight: 700;
  margin-bottom: .5rem; color: var(--slate-dark);
}
.course-card-desc { font-size: .88rem; color: var(--slate); line-height: 1.6; flex: 1; }
.course-card-footer {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 1rem; padding-top: .85rem;
  border-top: 1px solid var(--border);
  font-size: .82rem; color: var(--slate-light);
}
.course-card-footer strong { color: var(--slate-dark); }

/* ---------- Stats Bar ---------- */
.stats-bar {
  background: var(--slate-dark);
  color: #fff;
  padding: 2.5rem 1.5rem;
}
.stats-inner {
  max-width: 1240px; margin: auto;
  display: flex; gap: 1rem; flex-wrap: wrap;
  justify-content: space-around; align-items: center;
}
.stat-item { text-align: center; flex: 1; min-width: 120px; }
.stat-number {
  font-family: var(--font-head);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--blue);
  display: block;
}
.stat-label { font-size: .88rem; color: var(--slate-light); margin-top: .25rem; }

/* ---------- Feature Card ---------- */
.feature-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: box-shadow var(--transition);
}
.feature-card:hover { box-shadow: var(--shadow-md); }
.feature-icon {
  width: 48px; height: 48px;
  background: var(--blue-light);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}
.feature-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: .5rem; }
.feature-card p { font-size: .88rem; color: var(--slate); line-height: 1.6; }

/* ---------- Blog Card ---------- */
.blog-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}
.blog-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.blog-card-img { width: 100%; height: 195px; object-fit: cover; }
.blog-card-body { padding: 1.35rem; }
.blog-card-cat {
  font-size: .73rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .07em;
  color: var(--blue); margin-bottom: .5rem;
}
.blog-card-title { font-size: 1rem; font-weight: 700; margin-bottom: .5rem; }
.blog-card-excerpt { font-size: .88rem; color: var(--slate); line-height: 1.6; margin-bottom: .85rem; }
.blog-card-meta { font-size: .78rem; color: var(--slate-light); display: flex; gap: .75rem; flex-wrap: wrap; }

/* ---------- Testimonial ---------- */
.testimonial-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
}
.testimonial-stars { color: #F59E0B; font-size: 1.1rem; margin-bottom: .75rem; }
.testimonial-text { font-size: .94rem; color: var(--slate-dark); line-height: 1.7; margin-bottom: 1.1rem; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: .85rem; }
.testimonial-avatar {
  width: 44px; height: 44px;
  background: var(--blue-light);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: var(--blue); font-size: .9rem;
}
.testimonial-name { font-weight: 700; font-size: .9rem; }
.testimonial-role { font-size: .78rem; color: var(--slate-light); }

/* ---------- Steps ---------- */
.steps { display: flex; gap: 0; position: relative; flex-wrap: wrap; }
.step {
  flex: 1; min-width: 200px;
  text-align: center; padding: 0 1.5rem;
  position: relative;
}
.step:not(:last-child)::after {
  content: '';
  position: absolute; right: 0; top: 28px;
  width: 100%; height: 2px;
  background: var(--border);
  z-index: 0;
}
.step-num {
  width: 56px; height: 56px;
  background: var(--blue);
  color: #fff;
  border-radius: 50%;
  font-family: var(--font-head);
  font-size: 1.2rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem;
  position: relative; z-index: 1;
}
.step h3 { font-size: .95rem; font-weight: 700; margin-bottom: .4rem; }
.step p { font-size: .84rem; color: var(--slate); }

/* ---------- Accordion / FAQ ---------- */
.faq-item {
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: .75rem;
}
.faq-question {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem 1.35rem;
  cursor: pointer;
  font-weight: 600; font-size: .95rem;
  background: var(--white);
  user-select: none;
  transition: background var(--transition);
}
.faq-question:hover { background: var(--blue-light); }
.faq-question .faq-icon {
  width: 24px; height: 24px;
  background: var(--blue-light);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--blue); font-size: .9rem; font-weight: 700;
  flex-shrink: 0;
  transition: transform var(--transition), background var(--transition);
}
.faq-item.open .faq-icon { transform: rotate(45deg); background: var(--blue); color: #fff; }
.faq-answer {
  max-height: 0; overflow: hidden;
  transition: max-height .3s ease, padding .3s ease;
  font-size: .9rem; color: var(--slate); line-height: 1.7;
  padding: 0 1.35rem;
  background: var(--white);
}
.faq-item.open .faq-answer {
  max-height: 600px;
  padding: .85rem 1.35rem 1.35rem;
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  background: var(--gray-bg);
  padding: .75rem 1.5rem;
  font-size: .82rem;
  border-bottom: 1px solid var(--border);
}
.breadcrumb-inner {
  max-width: 1240px; margin: auto;
  display: flex; align-items: center; gap: .45rem; flex-wrap: wrap;
}
.breadcrumb a { color: var(--slate); }
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb-sep { color: var(--slate-light); }
.breadcrumb-current { color: var(--slate-dark); font-weight: 500; }

/* ---------- Page Hero (inner) ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--slate-dark) 0%, #1e40af 100%);
  color: #fff; padding: 4rem 1.5rem;
  text-align: center;
}
.page-hero h1 {
  color: #fff;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 1rem;
}
.page-hero p { color: rgba(255,255,255,.78); font-size: 1.05rem; max-width: 600px; margin: auto; }

/* ---------- Two-column Layout ---------- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; }
.two-col img {
  width: 100%; height: 380px; object-fit: cover;
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
}
.two-col-content h2 { font-size: clamp(1.4rem, 3vw, 2rem); margin-bottom: 1rem; }
.two-col-content p { color: var(--slate); font-size: .96rem; line-height: 1.75; margin-bottom: 1.25rem; }

/* ---------- Form ---------- */
.form-group { margin-bottom: 1.25rem; }
.form-label { display: block; font-size: .9rem; font-weight: 600; margin-bottom: .45rem; color: var(--slate-dark); }
.form-control {
  width: 100%;
  font-family: var(--font-sans);
  font-size: .95rem;
  padding: .7rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  color: var(--slate-dark);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-control:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(59,130,246,.15);
}
textarea.form-control { resize: vertical; min-height: 130px; }
.form-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23475569' d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; }
.form-success {
  display: none;
  background: #ECFDF5;
  border: 1.5px solid #6EE7B7;
  border-radius: 8px;
  padding: 1.1rem 1.35rem;
  color: #065F46;
  font-weight: 600;
  font-size: .95rem;
  margin-top: 1rem;
  align-items: center;
  gap: .65rem;
}
.form-success.visible { display: flex; }
.form-error {
  display: none;
  background: #FEF2F2;
  border: 1.5px solid #FCA5A5;
  border-radius: 8px;
  padding: 1.1rem 1.35rem;
  color: #991B1B;
  font-weight: 600;
  font-size: .95rem;
  margin-top: 1rem;
}
.form-error.visible { display: block; }

/* ---------- Certificate Preview ---------- */
.cert-preview {
  background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
  border: 2px solid var(--blue);
  border-radius: var(--radius);
  padding: 3rem 2rem;
  text-align: center;
}
.cert-preview h3 { font-size: 1.5rem; font-weight: 800; color: var(--blue-dark); margin-bottom: .5rem; }
.cert-preview p { color: var(--slate); font-size: .95rem; }

/* ---------- Lesson Page ---------- */
.lesson-layout { display: grid; grid-template-columns: 280px 1fr; gap: 2rem; max-width: 1240px; margin: auto; padding: 2rem 1.5rem; }
.lesson-sidebar {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem;
  height: fit-content;
  position: sticky; top: 80px;
}
.lesson-sidebar h3 { font-size: .95rem; font-weight: 700; margin-bottom: 1rem; }
.lesson-menu li { border-bottom: 1px solid var(--border); }
.lesson-menu li:last-child { border-bottom: none; }
.lesson-menu a {
  display: flex; align-items: center; gap: .65rem;
  padding: .65rem 0;
  font-size: .88rem; color: var(--slate);
  transition: color var(--transition);
}
.lesson-menu a:hover, .lesson-menu a.active { color: var(--blue); }
.lesson-menu .lesson-status {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid var(--border);
  flex-shrink: 0;
}
.lesson-menu .lesson-status.done { background: var(--blue); border-color: var(--blue); }
.lesson-menu .lesson-status.active { border-color: var(--blue); }
.lesson-content { min-width: 0; }
.lesson-content h2 { font-size: 1.5rem; margin-bottom: 1rem; }
.lesson-content p { color: var(--slate); line-height: 1.75; margin-bottom: 1.1rem; font-size: .97rem; }
.lesson-content h3 { font-size: 1.1rem; margin: 1.5rem 0 .65rem; }
.lesson-video {
  width: 100%; height: 380px;
  background: var(--slate-dark);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.5);
  font-size: 1rem;
  margin-bottom: 1.5rem;
  overflow: hidden;
}
.lesson-video img { width: 100%; height: 100%; object-fit: cover; }
.lesson-nav { display: flex; justify-content: space-between; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.progress-bar {
  height: 6px; background: var(--border); border-radius: 3px; margin-bottom: 1.5rem; overflow: hidden;
}
.progress-fill { height: 100%; background: var(--blue); border-radius: 3px; transition: width .4s ease; }

/* ---------- Article Page ---------- */
.article-layout { display: grid; grid-template-columns: 1fr 340px; gap: 2.5rem; max-width: 1240px; margin: auto; padding: 2.5rem 1.5rem; }
.article-body h1 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); margin-bottom: 1rem; }
.article-body .article-meta { font-size: .82rem; color: var(--slate-light); margin-bottom: 1.75rem; display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }
.article-body img.article-img { width: 100%; height: 380px; object-fit: cover; border-radius: var(--radius); margin-bottom: 2rem; box-shadow: var(--shadow-md); }
.article-body h2 { font-size: 1.4rem; margin: 2rem 0 .75rem; }
.article-body h3 { font-size: 1.1rem; margin: 1.5rem 0 .6rem; }
.article-body p { color: var(--slate); line-height: 1.8; margin-bottom: 1.1rem; font-size: .97rem; }
.article-body ul, .article-body ol { padding-left: 1.5rem; margin-bottom: 1.1rem; color: var(--slate); font-size: .97rem; line-height: 1.8; }
.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }
.article-body blockquote {
  border-left: 4px solid var(--blue);
  padding: .85rem 1.35rem;
  background: var(--blue-light);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.5rem 0;
  font-style: italic; color: var(--slate);
}
.sidebar-widget {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem;
  margin-bottom: 1.5rem;
}
.sidebar-widget h3 { font-size: .97rem; font-weight: 700; margin-bottom: 1rem; border-bottom: 1px solid var(--border); padding-bottom: .65rem; }

/* ---------- Policy Pages ---------- */
.policy-layout { max-width: 860px; margin: auto; padding: 3rem 1.5rem; }
.policy-layout h1 { font-size: 2rem; margin-bottom: .5rem; }
.policy-layout .policy-meta { font-size: .85rem; color: var(--slate-light); margin-bottom: 2.5rem; }
.policy-layout h2 { font-size: 1.2rem; margin: 2rem 0 .65rem; color: var(--slate-dark); }
.policy-layout p, .policy-layout li { font-size: .95rem; color: var(--slate); line-height: 1.8; margin-bottom: .85rem; }
.policy-layout ul { padding-left: 1.5rem; list-style: disc; }
.policy-layout ol { padding-left: 1.5rem; list-style: decimal; }
.policy-layout table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: .9rem; }
.policy-layout table th { background: var(--gray-bg); padding: .65rem .9rem; text-align: left; font-weight: 700; border: 1px solid var(--border); }
.policy-layout table td { padding: .65rem .9rem; border: 1px solid var(--border); color: var(--slate); }

/* ---------- Contact Page ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 3rem; }
.contact-info h2 { font-size: 1.5rem; margin-bottom: 1.1rem; }
.contact-info p { color: var(--slate); font-size: .97rem; line-height: 1.75; margin-bottom: 1.5rem; }
.contact-item { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1.25rem; }
.contact-item-icon {
  width: 44px; height: 44px; flex-shrink: 0;
  background: var(--blue-light); border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
}
.contact-item-text strong { display: block; font-size: .88rem; font-weight: 700; margin-bottom: .15rem; }
.contact-item-text span { font-size: .88rem; color: var(--slate); }
.map-placeholder {
  background: var(--gray-bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  height: 260px;
  display: flex; align-items: center; justify-content: center;
  color: var(--slate-light); font-size: .9rem;
  margin-top: 1.5rem;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--slate-dark);
  color: rgba(255,255,255,.72);
  padding: 4rem 1.5rem 1.75rem;
  margin-top: auto;
}
.footer-inner {
  max-width: 1240px; margin: auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem;
  margin-bottom: 3rem;
}
.footer-brand p { font-size: .88rem; line-height: 1.7; margin: 1rem 0; }
.footer-brand .logo { color: #fff; font-size: 1.35rem; }
.footer-col h4 { color: #fff; font-size: .9rem; font-weight: 700; margin-bottom: 1rem; }
.footer-col ul li { margin-bottom: .55rem; }
.footer-col ul a { font-size: .86rem; color: rgba(255,255,255,.62); transition: color var(--transition); }
.footer-col ul a:hover { color: var(--blue); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 1.5rem;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .75rem;
}
.footer-bottom p { font-size: .8rem; }
.footer-links { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.footer-links a { font-size: .8rem; color: rgba(255,255,255,.55); }
.footer-links a:hover { color: var(--blue); }
.footer-operator {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 1.25rem 0 0;
  margin-top: 1.25rem;
  font-size: .78rem;
  color: rgba(255,255,255,.4);
  text-align: center;
  line-height: 1.7;
}

/* ---------- Cookie Bar ---------- */
.cookie-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999;
  background: var(--slate-dark);
  color: rgba(255,255,255,.88);
  padding: 1.1rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; flex-wrap: wrap;
  box-shadow: 0 -4px 24px rgba(0,0,0,.25);
  border-top: 2px solid var(--blue);
  transform: translateY(0);
  transition: transform .35s ease;
}
.cookie-bar.hidden { transform: translateY(120%); }
.cookie-bar p { font-size: .85rem; line-height: 1.5; max-width: 700px; }
.cookie-bar a { color: var(--blue); }
.cookie-actions { display: flex; gap: .75rem; flex-shrink: 0; }

/* ---------- Notification ---------- */
.notification {
  position: fixed; top: 90px; right: 1.5rem; z-index: 9998;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.35rem;
  box-shadow: var(--shadow-lg);
  max-width: 340px;
  display: flex; align-items: flex-start; gap: .75rem;
  transform: translateX(120%);
  transition: transform .35s ease;
}
.notification.show { transform: translateX(0); }
.notification-icon { font-size: 1.25rem; flex-shrink: 0; }
.notification-text strong { display: block; font-size: .9rem; font-weight: 700; margin-bottom: .2rem; }
.notification-text p { font-size: .82rem; color: var(--slate); }

/* ---------- Progress Ring (certification) ---------- */
.progress-ring { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.ring-item { text-align: center; }
.ring-item svg { transform: rotate(-90deg); }
.ring-item .ring-label { font-size: .82rem; color: var(--slate); margin-top: .35rem; }
.ring-item .ring-val { font-size: 1.1rem; font-weight: 700; color: var(--slate-dark); }

/* ---------- Badge ---------- */
.badge {
  display: inline-flex; align-items: center; gap: .3rem;
  font-size: .75rem; font-weight: 700;
  padding: .2rem .6rem; border-radius: 4px;
}
.badge-blue { background: var(--blue-light); color: var(--blue); }
.badge-green { background: #ECFDF5; color: #059669; }
.badge-orange { background: #FFF7ED; color: #EA580C; }

/* ---------- Divider ---------- */
.divider { height: 1px; background: var(--border); margin: 0; }
hr.styled { border: none; border-top: 1px dashed var(--border); margin: 2rem 0; }

/* ---------- Highlight Box ---------- */
.highlight-box {
  background: var(--blue-light);
  border-left: 4px solid var(--blue);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.1rem 1.35rem;
  margin: 1.5rem 0;
  font-size: .95rem; color: var(--slate-dark);
}

/* ---------- Table Styles ---------- */
.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
  background: var(--gray-bg);
  padding: .75rem 1rem;
  text-align: left;
  font-size: .88rem; font-weight: 700;
  border-bottom: 2px solid var(--border);
}
.data-table td {
  padding: .75rem 1rem;
  font-size: .9rem;
  border-bottom: 1px solid var(--border);
  color: var(--slate);
}
.data-table tr:hover td { background: var(--gray-bg); }

/* ---------- Modal ---------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,.55); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; padding: 1rem;
  opacity: 0; pointer-events: none;
  transition: opacity .3s ease;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal-box {
  background: var(--white);
  border-radius: var(--radius);
  max-width: 520px; width: 100%;
  padding: 2.25rem;
  position: relative;
  transform: translateY(20px); transition: transform .3s ease;
}
.modal-overlay.open .modal-box { transform: translateY(0); }
.modal-close {
  position: absolute; top: 1rem; right: 1rem;
  background: var(--gray-bg); border: none; cursor: pointer;
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; color: var(--slate);
  transition: background var(--transition);
}
.modal-close:hover { background: var(--border); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .lesson-layout { grid-template-columns: 1fr; }
  .lesson-sidebar { position: static; }
  .article-layout { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .hamburger { display: flex; }
  .main-nav {
    display: none; position: absolute;
    top: 66px; left: 0; right: 0;
    background: var(--white);
    border-bottom: 1.5px solid var(--border);
    padding: 1rem 1.5rem;
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav a { padding: .65rem .5rem; border-radius: 6px; }
  .header-cta .btn-outline { display: none; }
  .site-header { position: relative; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .grid-2 { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .two-col img { height: 250px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .steps { flex-direction: column; }
  .step:not(:last-child)::after { display: none; }
  .hero { padding: 3rem 1.25rem 2.5rem; }
  .hero-image img { height: 220px; }
  .section { padding: 3.25rem 1.25rem; }
}
@media (max-width: 480px) {
  .grid-4 { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .stats-inner { gap: 1.5rem; }
  .stat-number { font-size: 1.9rem; }
}
