/* =============================================
   TALQEEN ACADEMY — Main Stylesheet
   Brand: Talqeen color system + Nunito + Amiri
   ============================================= */

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Nunito', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #2C2C2A;
  background: #FAFAF8;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* --- Tokens --- */
:root {
  --teal:        #1D9E75;
  --teal-dark:   #085041;
  --teal-deep:   #0F6E56;
  --teal-light:  #E1F5EE;
  --teal-mid:    #9FE1CB;
  --amber:       #FAC775;
  --coral:       #D85A30;
  --bg:          #FAFAF8;
  --surface:     #F1EFE8;
  --border:      #D3D1C7;
  --text:        #2C2C2A;
  --text-body:   #444441;
  --text-muted:  #5F5E5A;
  --text-hint:   #888780;
  --radius:      13px;
  --shadow:      0 2px 12px rgba(8,80,65,0.08);
}

/* --- Typography --- */
h1, h2, h3, h4, h5 {
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  line-height: 1.2;
  color: var(--teal-dark);
}

.arabic-text {
  font-family: 'Amiri', serif;
  direction: rtl;
  display: inline-block;
  line-height: 0.75;
  padding-top: 0.28em;
  padding-bottom: 0.05em;
}

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

.section {
  padding: 72px 0;
}

.section-soft {
  background: var(--surface);
}

/* ===========================
   NAVIGATION
   =========================== */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--teal-dark);
  box-shadow: 0 2px 16px rgba(8,80,65,0.18);
  height: 60px;
  display: flex;
  align-items: center;
}

.nav-inner {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: white;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.3px;
}

.nav-brand .brand-icon {
  width: 32px; height: 32px;
  background: var(--teal);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Amiri', serif;
  font-size: 18px;
  color: white;
  flex-shrink: 0;
}

.nav-brand .brand-sub {
  font-size: 11px;
  font-weight: 500;
  color: var(--teal-mid);
  display: block;
  line-height: 1;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  color: rgba(255,255,255,0.82);
  font-size: 14px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 8px;
  transition: color 0.18s, background 0.18s;
}

.nav-links a:hover {
  color: white;
  background: rgba(255,255,255,0.1);
}

.nav-cta {
  background: var(--amber);
  color: var(--teal-dark) !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  padding: 8px 18px !important;
  border-radius: 10px;
  white-space: nowrap;
  transition: opacity 0.18s !important;
}

.nav-cta:hover {
  opacity: 0.9;
  background: var(--amber) !important;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 22px;
  cursor: pointer;
  padding: 6px;
}

/* ===========================
   HERO
   =========================== */
.hero {
  min-height: 100vh;
  background: var(--teal-dark);
  display: flex;
  align-items: center;
  padding-top: 60px;
  position: relative;
  overflow: hidden;
}

.hero-bg-letters {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-bg-letters span {
  position: absolute;
  font-family: 'Amiri', serif;
  color: rgba(29,158,117,0.12);
  user-select: none;
  animation: floatLetter linear infinite;
}

@keyframes floatLetter {
  0%   { transform: translateY(0) rotate(0deg); opacity: 0.6; }
  50%  { opacity: 1; }
  100% { transform: translateY(-120vh) rotate(20deg); opacity: 0; }
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1160px;
  margin: 0 auto;
  padding: 80px 24px;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 64px;
  align-items: center;
}

.hero-text h1 {
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 800;
  color: white;
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero-text h1 em {
  font-style: normal;
  color: var(--amber);
}

.hero-text p {
  font-size: 18px;
  color: rgba(255,255,255,0.75);
  max-width: 520px;
  margin-bottom: 36px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 44px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.12);
}

.hero-stat-num {
  font-size: 28px;
  font-weight: 800;
  color: var(--amber);
}

.hero-stat-label {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  font-weight: 500;
}

/* Hero video card */
.hero-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 20px;
  overflow: hidden;
  backdrop-filter: blur(8px);
}

.hero-video-wrap {
  position: relative;
  padding-bottom: 56.25%;
  background: #000;
  cursor: pointer;
}

.hero-video-wrap img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.75;
}

.play-btn {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 60px; height: 42px;
  background: #ff0000;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.2s;
}

.play-btn:hover { transform: translate(-50%, -50%) scale(1.1); }

.hero-card-body {
  padding: 20px 24px;
}

.hero-card-body p {
  color: rgba(255,255,255,0.72);
  font-size: 14px;
  margin-bottom: 14px;
}

/* ===========================
   BUTTONS
   =========================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 15px;
  padding: 12px 24px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: opacity 0.18s, transform 0.18s;
  white-space: nowrap;
  text-decoration: none;
}

.btn:hover { opacity: 0.9; transform: translateY(-1px); }

.btn-primary {
  background: var(--teal);
  color: white;
}

.btn-amber {
  background: var(--amber);
  color: var(--teal-dark);
}

.btn-outline {
  background: transparent;
  color: white;
  border: 1.5px solid rgba(255,255,255,0.35);
}

.btn-outline:hover {
  border-color: rgba(255,255,255,0.65);
}

.btn-sm {
  font-size: 13px;
  padding: 8px 18px;
}

.btn-lg {
  font-size: 17px;
  padding: 15px 30px;
}

/* ===========================
   TRUST BAR
   =========================== */
.trust-bar {
  background: var(--teal);
  padding: 14px 0;
}

.trust-bar-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: white;
  font-size: 14px;
  font-weight: 600;
}

.trust-item svg, .trust-item i {
  color: var(--amber);
  font-size: 16px;
}

/* ===========================
   SECTION HEADING
   =========================== */
.section-heading {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 52px;
}

.section-heading h2 {
  font-size: clamp(26px, 3.5vw, 38px);
  margin-bottom: 12px;
}

.section-heading p {
  color: var(--text-muted);
  font-size: 17px;
}

/* ===========================
   WHY US — FEATURE GRID
   =========================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.feature-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 28px;
  transition: box-shadow 0.2s, transform 0.2s;
}

.feature-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.feature-icon {
  width: 52px; height: 52px;
  background: var(--teal-light);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 18px;
  color: var(--teal);
}

.feature-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
  color: var(--teal-dark);
}

.feature-card p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
}

/* ===========================
   QUESTION / ALTERNATING
   =========================== */
.alternating-section {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.alt-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  min-height: 380px;
  align-items: stretch;
}

.alt-row:nth-child(even) {
  direction: rtl;
}

.alt-row:nth-child(even) > * {
  direction: ltr;
}

.alt-img {
  overflow: hidden;
  position: relative;
}

.alt-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

.alt-content {
  background: var(--teal-dark);
  padding: 56px 52px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.alt-row:nth-child(even) .alt-content {
  background: var(--teal-deep);
}

.alt-row:nth-child(3) .alt-content { background: #0a5a48; }
.alt-row:nth-child(4) .alt-content { background: #0F6E56; }
.alt-row:nth-child(5) .alt-content { background: #085041; }

.alt-content h3 {
  color: var(--amber);
  font-size: 24px;
  margin-bottom: 14px;
  line-height: 1.25;
}

.alt-content p {
  color: rgba(255,255,255,0.8);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 24px;
}

.alt-content .btn {
  align-self: flex-start;
}

/* ===========================
   COURSES
   =========================== */
.courses-section {
  background: var(--surface);
}

.courses-tabs {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.tab-btn {
  background: white;
  border: 1.5px solid var(--border);
  color: var(--text-muted);
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 14px;
  padding: 9px 20px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.18s;
}

.tab-btn.active, .tab-btn:hover {
  background: var(--teal);
  border-color: var(--teal);
  color: white;
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.course-card {
  background: white;
  border-radius: 16px;
  border: 1px solid var(--border);
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
}

.course-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.course-card-img {
  height: 180px;
  overflow: hidden;
}

.course-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.course-card:hover .course-card-img img {
  transform: scale(1.04);
}

.course-card-body {
  padding: 20px 22px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.course-tag {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--teal);
  margin-bottom: 8px;
}

.course-card-body h3 {
  font-size: 17px;
  margin-bottom: 8px;
  color: var(--teal-dark);
}

.course-card-body p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 18px;
}

.course-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-hint);
}

/* ===========================
   HOW IT WORKS
   =========================== */
.steps-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  position: relative;
}

.steps-row::before {
  content: '';
  position: absolute;
  top: 28px;
  left: 14%;
  right: 14%;
  height: 2px;
  background: var(--teal-mid);
}

.step {
  text-align: center;
  position: relative;
}

.step-num {
  width: 56px; height: 56px;
  background: var(--teal);
  color: white;
  font-size: 22px;
  font-weight: 800;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  position: relative;
  z-index: 1;
}

.step h3 {
  font-size: 16px;
  margin-bottom: 8px;
}

.step p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ===========================
   TESTIMONIALS
   =========================== */
.testimonials-section {
  background: var(--teal-dark);
  padding: 72px 0;
}

.testimonials-section .section-heading h2 {
  color: white;
}

.testimonials-section .section-heading p {
  color: rgba(255,255,255,0.65);
}

.testimonials-slider-wrap {
  position: relative;
}

.testimonials-track {
  display: flex;
  gap: 24px;
  overflow: hidden;
}

.testimonial-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  padding: 28px 28px 22px;
  min-width: calc(33.33% - 16px);
  flex-shrink: 0;
}

.testimonial-stars {
  color: var(--amber);
  font-size: 14px;
  margin-bottom: 12px;
  letter-spacing: 2px;
}

.testimonial-card p {
  color: rgba(255,255,255,0.82);
  font-size: 15px;
  line-height: 1.65;
  font-style: italic;
  margin-bottom: 18px;
}

.testimonial-author strong {
  color: white;
  font-size: 15px;
  display: block;
}

.testimonial-author span {
  color: var(--teal-mid);
  font-size: 13px;
}

.slider-controls {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 28px;
}

.slider-btn {
  width: 40px; height: 40px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: white;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.18s;
}

.slider-btn:hover { background: rgba(255,255,255,0.2); }

/* ===========================
   TALQEEN APP CROSSLINK
   =========================== */
.app-crosslink {
  background: var(--teal-light);
  border-top: 1px solid var(--teal-mid);
  border-bottom: 1px solid var(--teal-mid);
  padding: 52px 0;
}

.app-crosslink-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
}

.app-crosslink h2 {
  font-size: 26px;
  color: var(--teal-dark);
  margin-bottom: 10px;
}

.app-crosslink p {
  color: var(--text-muted);
  font-size: 16px;
  max-width: 560px;
}

/* ===========================
   ARTICLES / BLOG
   =========================== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.blog-card {
  background: white;
  border-radius: 16px;
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, transform 0.2s;
}

.blog-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.blog-card-img {
  height: 200px;
  overflow: hidden;
  background: var(--surface);
}

.blog-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.blog-card:hover .blog-card-img img {
  transform: scale(1.04);
}

.blog-card-body {
  padding: 20px 22px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-cat {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 8px;
}

.blog-card-body h3 {
  font-size: 16px;
  line-height: 1.35;
  margin-bottom: 10px;
  color: var(--teal-dark);
  font-weight: 700;
}

.blog-card-body p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 16px;
}

.read-more {
  font-size: 13px;
  font-weight: 700;
  color: var(--teal);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.18s;
}

.read-more:hover { gap: 8px; }

/* ===========================
   PRICING
   =========================== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 860px;
  margin: 0 auto;
}

.price-card {
  background: white;
  border: 2px solid var(--border);
  border-radius: 18px;
  padding: 32px 28px;
  text-align: center;
  transition: box-shadow 0.2s;
}

.price-card.featured {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px var(--teal-light);
}

.price-card .price-period {
  font-size: 13px;
  color: var(--text-hint);
  margin-bottom: 6px;
}

.price-card .price-num {
  font-size: 42px;
  font-weight: 800;
  color: var(--teal-dark);
  line-height: 1;
}

.price-card .price-num small {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-muted);
}

.price-card h3 {
  font-size: 18px;
  margin-bottom: 4px;
}

.price-card .price-desc {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.price-card ul {
  text-align: left;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.price-card li {
  font-size: 14px;
  color: var(--text-body);
  display: flex;
  align-items: center;
  gap: 8px;
}

.price-card li::before {
  content: '✓';
  color: var(--teal);
  font-weight: 800;
  flex-shrink: 0;
}

/* ===========================
   ABOUT BANNER
   =========================== */
.about-banner {
  background: var(--teal-deep);
  padding: 72px 0;
}

.about-banner-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-banner h2 {
  color: white;
  font-size: clamp(26px, 3vw, 38px);
  margin-bottom: 20px;
}

.about-banner p {
  color: rgba(255,255,255,0.78);
  font-size: 16px;
  line-height: 1.75;
  margin-bottom: 14px;
}

.about-hadith {
  background: rgba(255,255,255,0.08);
  border-left: 3px solid var(--amber);
  padding: 16px 20px;
  border-radius: 0 10px 10px 0;
  margin: 20px 0;
  font-style: italic;
  color: rgba(255,255,255,0.85);
  font-size: 15px;
}

.about-img-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.about-img-grid img {
  border-radius: 14px;
  height: 200px;
  width: 100%;
  object-fit: cover;
}

.about-img-grid img:first-child {
  height: 220px;
  grid-column: 1 / -1;
}

/* ===========================
   CTA BAND
   =========================== */
.cta-band {
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
  padding: 72px 0;
  text-align: center;
}

.cta-band h2 {
  color: white;
  font-size: clamp(26px, 3.5vw, 42px);
  margin-bottom: 14px;
}

.cta-band p {
  color: rgba(255,255,255,0.78);
  font-size: 17px;
  margin-bottom: 36px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.cta-group {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===========================
   FOOTER
   =========================== */
.site-footer {
  background: var(--teal-dark);
  padding: 56px 0 24px;
}

.footer-grid {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand-text {
  color: rgba(255,255,255,0.65);
  font-size: 14px;
  line-height: 1.7;
  margin: 14px 0 20px;
  max-width: 280px;
}

.footer-col h4 {
  color: white;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  color: rgba(255,255,255,0.6);
  font-size: 14px;
  margin-bottom: 9px;
  transition: color 0.18s;
}

.footer-col a:hover {
  color: var(--teal-mid);
}

.footer-links-inline {
  max-width: 1160px;
  margin: 0 auto;
  padding: 20px 24px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-links-inline p {
  color: rgba(255,255,255,0.45);
  font-size: 13px;
}

.footer-links-inline .links {
  display: flex;
  gap: 20px;
}

.footer-links-inline a {
  color: rgba(255,255,255,0.45);
  font-size: 13px;
  transition: color 0.18s;
}

.footer-links-inline a:hover { color: var(--teal-mid); }

/* WhatsApp float */
.wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  width: 54px; height: 54px;
  background: #25D366;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  color: white;
  box-shadow: 0 4px 16px rgba(0,0,0,0.22);
  transition: transform 0.2s;
}

.wa-float:hover { transform: scale(1.08); }

/* ===========================
   ARTICLE PAGES
   =========================== */
.article-body {
  background: var(--bg);
}

.article-hero {
  background: var(--teal-dark);
  padding: 100px 24px 52px;
}

.article-hero-inner {
  max-width: 760px;
  margin: 0 auto;
}

.article-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.55);
  font-size: 13px;
  margin-bottom: 20px;
}

.article-breadcrumb a { color: rgba(255,255,255,0.55); }
.article-breadcrumb a:hover { color: white; }
.article-breadcrumb span { color: rgba(255,255,255,0.35); }

.article-hero h1 {
  color: white;
  font-size: clamp(24px, 3.5vw, 38px);
  line-height: 1.2;
  margin-bottom: 16px;
}

.article-meta {
  color: rgba(255,255,255,0.55);
  font-size: 13px;
}

.article-layout {
  max-width: 1100px;
  margin: 0 auto;
  padding: 52px 24px 80px;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 52px;
  align-items: start;
}

.article-img {
  width: 100%;
  border-radius: 14px;
  margin-bottom: 32px;
  max-height: 420px;
  object-fit: cover;
}

.article-content {
  color: var(--text-body);
  font-size: 16.5px;
  line-height: 1.8;
}

.article-content h2 {
  font-size: 22px;
  color: var(--teal-dark);
  margin: 36px 0 14px;
  font-weight: 800;
}

.article-content h3 {
  font-size: 18px;
  color: var(--teal-dark);
  margin: 28px 0 10px;
}

.article-content p {
  margin-bottom: 18px;
}

.article-content ul, .article-content ol {
  margin: 16px 0 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.article-content ul { list-style: disc; }
.article-content ol { list-style: decimal; }

.article-content a {
  color: var(--teal);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-content blockquote {
  border-left: 3px solid var(--teal);
  padding: 14px 20px;
  background: var(--teal-light);
  border-radius: 0 10px 10px 0;
  margin: 24px 0;
  color: var(--teal-dark);
  font-style: italic;
}

/* Article sidebar */
.article-sidebar {
  position: sticky;
  top: 80px;
}

.sidebar-cta {
  background: var(--teal-dark);
  border-radius: 16px;
  padding: 28px 24px;
  text-align: center;
  margin-bottom: 24px;
}

.sidebar-cta h3 {
  color: white;
  font-size: 18px;
  margin-bottom: 10px;
}

.sidebar-cta p {
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  margin-bottom: 18px;
  line-height: 1.6;
}

.sidebar-related h4 {
  font-size: 15px;
  color: var(--teal-dark);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--teal-light);
}

.sidebar-related a {
  display: block;
  font-size: 14px;
  color: var(--text-body);
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  transition: color 0.18s;
  line-height: 1.45;
}

.sidebar-related a:hover { color: var(--teal); }

/* ===========================
   BLOG LISTING PAGE
   =========================== */
.blog-listing-hero {
  background: var(--teal-dark);
  padding: 100px 24px 52px;
  text-align: center;
}

.blog-listing-hero h1 {
  color: white;
  font-size: clamp(28px, 4vw, 46px);
  margin-bottom: 12px;
}

.blog-listing-hero p {
  color: rgba(255,255,255,0.68);
  font-size: 17px;
  max-width: 540px;
  margin: 0 auto;
}

.blog-listing-main {
  max-width: 1160px;
  margin: 0 auto;
  padding: 52px 24px 80px;
}

.blog-search-wrap {
  margin-bottom: 36px;
  display: flex;
  gap: 12px;
  max-width: 480px;
}

.blog-search-wrap input {
  flex: 1;
  padding: 11px 16px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-family: 'Nunito', sans-serif;
  font-size: 15px;
  background: white;
  color: var(--text);
  outline: none;
  transition: border-color 0.18s;
}

.blog-search-wrap input:focus {
  border-color: var(--teal);
}

.blog-listing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* ===========================
   INNER PAGE HERO
   =========================== */
.page-hero {
  background: var(--teal-dark);
  padding: 110px 24px 56px;
  text-align: center;
}

.page-hero h1 {
  color: white;
  font-size: clamp(28px, 4vw, 46px);
  margin-bottom: 12px;
}

.page-hero p {
  color: rgba(255,255,255,0.68);
  font-size: 18px;
  max-width: 560px;
  margin: 0 auto 28px;
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-card { max-width: 460px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .courses-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-listing-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .about-banner-inner { grid-template-columns: 1fr; }
  .app-crosslink-inner { grid-template-columns: 1fr; gap: 24px; }
  .steps-row { grid-template-columns: repeat(2, 1fr); }
  .steps-row::before { display: none; }
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { position: static; }
  .testimonials-track .testimonial-card { min-width: calc(50% - 12px); }
}

@media (max-width: 768px) {
  .nav-links { display: none; position: fixed; top: 60px; left: 0; right: 0; bottom: 0; background: var(--teal-dark); flex-direction: column; align-items: flex-start; padding: 24px; gap: 8px; overflow-y: auto; }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 16px; padding: 12px 16px; width: 100%; }
  .menu-toggle { display: flex; align-items: center; justify-content: center; }
  .features-grid { grid-template-columns: 1fr; }
  .courses-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .blog-listing-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 360px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .alt-row { grid-template-columns: 1fr; }
  .alt-row:nth-child(even) { direction: ltr; }
  .alt-content { padding: 36px 28px; }
  .hero-stats { gap: 20px; flex-wrap: wrap; }
  .steps-row { grid-template-columns: 1fr; }
  .testimonials-track .testimonial-card { min-width: 80%; }
  .trust-bar-inner { gap: 20px; }
  .footer-links-inline { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .section { padding: 48px 0; }
  .hero { min-height: auto; padding-top: 80px; }
  .hero-inner { padding: 40px 20px; }
  .hero-actions { flex-direction: column; }
  .btn-lg { width: 100%; }
}

/* ===========================
   PAGINATION
   =========================== */
.blog-pagination {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.blog-pagination a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 9px;
  border: 1.5px solid var(--border);
  background: white;
  color: var(--text-body);
  font-size: 14px;
  font-weight: 700;
  transition: all 0.18s;
}

.blog-pagination a:hover,
.blog-pagination a.active {
  background: var(--teal);
  border-color: var(--teal);
  color: white;
}

/* ===========================
   FAQ details element
   =========================== */
details summary::-webkit-details-marker { display: none; }
details summary::before {
  content: '+';
  color: var(--teal);
  font-size: 22px;
  font-weight: 800;
  margin-right: 10px;
}
details[open] summary::before { content: '−'; }
