/* ==========================================================================
   Logonomy Redesign — design tokens + component styles
   Scope: header/nav, footer, homepage sections, blog list/detail, courses.
   Prefixed `lgn-` throughout to avoid collisions with the legacy Fapster
   template classes already loaded from index.css.
   ========================================================================== */

@font-face {
  font-family: SDF;
  src: url(/fonts/iranyekan-light.woff);
  font-weight: 300;
}

:root {
  --lgn-brand-a: #108ed4;
  --lgn-brand-b: #061b52;
  --lgn-navy: #061b52;
  --lgn-navy-deep: #04122e;
  --lgn-ink: #0b1220;
  --lgn-body: #33415c;
  --lgn-muted: #64748b;
  --lgn-bg: #fbfdff;
  --lgn-white: #ffffff;
  --lgn-tint: #eaf3ff;
  --lgn-tint-strong: #cfe0ff;
  --lgn-cyan-deep: #081b33;
  --lgn-cyan-mid: #0e6fa8;
  --lgn-cyan-light: #2fb8e8;
  --lgn-radius-lg: 24px;
  --lgn-radius-md: 16px;
  --lgn-radius-sm: 10px;
  --lgn-shadow-sm: 0 2px 10px rgba(6, 27, 82, 0.07);
  --lgn-shadow-md: 0 16px 40px rgba(6, 27, 82, 0.14);
  --lgn-gradient: linear-gradient(90deg, var(--lgn-brand-a) 0%, var(--lgn-brand-b) 100%);
  --lgn-gradient-shimmer: linear-gradient(90deg, var(--lgn-brand-a) 0%, var(--lgn-brand-b) 50%, var(--lgn-brand-a) 100%);
  --lgn-orange-a: #ff8a3d;
  --lgn-orange-b: #ff5722;
  --lgn-gradient-orange-shimmer: linear-gradient(90deg, var(--lgn-orange-a) 0%, var(--lgn-orange-b) 50%, var(--lgn-orange-a) 100%);
}

.lgn-section { position: relative; }
.lgn-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.lgn-kicker { display: inline-block; color: var(--lgn-brand-a); font-size: 14px; font-weight: 700; }
.lgn-tint-bg { background: linear-gradient(180deg, #eef5ff 0%, #f6faff 100%); }

.lgn-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  padding: 14px 30px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.lgn-btn--primary {
  background: var(--lgn-gradient-shimmer);
  background-size: 220% 100%;
  animation: lgn-shimmerMove 5s linear infinite;
  color: #fff;
  box-shadow: 0 12px 26px rgba(16, 142, 212, 0.3);
}
.lgn-btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(16, 142, 212, 0.38); color: #fff; }
.lgn-btn--orange {
  background: var(--lgn-gradient-orange-shimmer);
  background-size: 220% 100%;
  animation: lgn-shimmerMove 5s linear infinite;
  color: #fff;
  box-shadow: 0 12px 26px rgba(255, 87, 34, 0.35);
}
.lgn-btn--orange:hover { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(255, 87, 34, 0.42); color: #fff; }
.lgn-btn--ghost { background: transparent; border: 1px solid rgba(255, 255, 255, 0.35); color: #fff; }
.lgn-btn--ghost:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.lgn-btn--light { background: #fff; color: var(--lgn-navy); }
.lgn-btn--light:hover { color: var(--lgn-navy); transform: translateY(-2px); box-shadow: 0 10px 22px rgba(0, 0, 0, 0.15); }

/* ---------- keyframes ---------- */
@keyframes lgn-fadeInUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes lgn-pulseGlow { 0%, 100% { opacity: 0.5; transform: scale(1); } 50% { opacity: 0.85; transform: scale(1.07); } }
@keyframes lgn-shimmerMove { 0% { background-position: 0% 50%; } 100% { background-position: 200% 50%; } }
@keyframes lgn-stepFade1 { 0% { opacity: 1; transform: translateY(0); } 30% { opacity: 1; } 36% { opacity: 0; transform: translateY(-10px); } 100% { opacity: 0; } }
@keyframes lgn-stepFade2 { 0% { opacity: 0; transform: translateY(10px); } 30% { opacity: 0; } 36% { opacity: 1; transform: translateY(0); } 63% { opacity: 1; } 69% { opacity: 0; transform: translateY(-10px); } 100% { opacity: 0; } }
@keyframes lgn-stepFade3 { 0% { opacity: 0; transform: translateY(10px); } 63% { opacity: 0; } 69% { opacity: 1; transform: translateY(0); } 97% { opacity: 1; } 100% { opacity: 0; transform: translateY(-10px); } }
@keyframes lgn-dotPulse1 { 0% { opacity: 1; } 30% { opacity: 1; } 36% { opacity: 0.3; } 100% { opacity: 0.3; } }
@keyframes lgn-dotPulse2 { 0% { opacity: 0.3; } 30% { opacity: 0.3; } 36% { opacity: 1; } 63% { opacity: 1; } 69% { opacity: 0.3; } 100% { opacity: 0.3; } }
@keyframes lgn-dotPulse3 { 0% { opacity: 0.3; } 63% { opacity: 0.3; } 69% { opacity: 1; } 97% { opacity: 1; } 100% { opacity: 0.3; } }
@keyframes lgn-typeReveal { 0% { width: 0; } 8% { width: 0; } 24% { width: 8ch; } 100% { width: 8ch; } }
@keyframes lgn-blinkCursor { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes lgn-spin { to { transform: rotate(360deg); } }
@keyframes lgn-spinnerFade { 0% { opacity: 1; } 63% { opacity: 1; } 80% { opacity: 1; } 86% { opacity: 0; } 100% { opacity: 0; } }
@keyframes lgn-resultFade { 0% { opacity: 0; } 80% { opacity: 0; } 86% { opacity: 1; } 97% { opacity: 1; } 100% { opacity: 0; } }

/* ==========================================================================
   Header
   ========================================================================== */
.lgn-header {
  direction: rtl;
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  background: #fff;
  border-bottom: 1px solid #eef2f7;
  position: relative;
  z-index: 50;
}
.lgn-header__logo { display: flex; align-items: center; order: 3; }
.lgn-header__logo img { height: 32px; width: auto; }
.lgn-header__nav { display: flex; align-items: center; gap: 28px; order: 2; margin: 0 32px; }
.lgn-header__nav a { color: var(--lgn-body); font-size: 15px; font-weight: 500; transition: color 0.15s ease; }
.lgn-header__nav a:hover { color: var(--lgn-brand-a); }
.lgn-header__actions { display: flex; align-items: center; gap: 16px; order: 1; }
.lgn-header__login { color: var(--lgn-navy); font-size: 15px; font-weight: 600; }
.lgn-header__login:hover { color: var(--lgn-brand-a); }
@media (max-width: 991px) {
  .lgn-header__nav { display: none; }
  .lgn-header { padding: 0 16px; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.lgn-hero {
  position: relative;
  overflow: hidden;
  padding: 88px 5% 0;
  background: radial-gradient(1100px 620px at 78% 15%, #123a82 0%, var(--lgn-navy) 46%, var(--lgn-navy-deep) 100%);
}
.lgn-hero__blob { position: absolute; border-radius: 50%; animation: lgn-pulseGlow 7s ease-in-out infinite; pointer-events: none; }
.lgn-hero__inner { position: relative; max-width: 1200px; margin: 0 auto; display: flex; align-items: center; gap: 56px; padding-bottom: 96px; flex-wrap: wrap; }
.lgn-hero__copy { flex: 1 1 420px; }
.lgn-hero__eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.18);
  color: #bfe9ff; font-size: 13.5px; font-weight: 600; padding: 8px 16px; border-radius: 999px;
  opacity: 0; animation: lgn-fadeInUp 0.8s ease forwards;
}
.lgn-hero__title { margin: 22px 0 0; font-size: 46px; line-height: 1.32; font-weight: 800; color: #fff; max-width: 620px; opacity: 0; animation: lgn-fadeInUp 0.8s ease forwards; animation-delay: 0.14s; }
.lgn-hero__subtitle { margin: 20px 0 0; font-size: 18px; line-height: 1.9; color: #c9d6e6; max-width: 540px; opacity: 0; animation: lgn-fadeInUp 0.8s ease forwards; animation-delay: 0.26s; }
.lgn-hero__cta-row { margin-top: 34px; opacity: 0; animation: lgn-fadeInUp 0.8s ease forwards; animation-delay: 0.38s; }
.lgn-hero__trust { display: flex; align-items: center; gap: 10px; margin-top: 38px; opacity: 0; animation: lgn-fadeInUp 0.8s ease forwards; animation-delay: 0.5s; }
.lgn-hero__trust-badge { width: 34px; height: 34px; border-radius: 50%; background: var(--lgn-gradient); color: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.lgn-hero__trust span { color: #e4ecf5; font-size: 15px; }
.lgn-hero__trust strong { color: #fff; }
.lgn-hero__wave { position: relative; line-height: 0; margin-top: -1px; }

.lgn-login-box--login { background: var(--lgn-brand-a); }

/* -- hero visual: looping 3-step logo-creation demo -- */
.lgn-hero__visual { flex: 1 1 380px; display: flex; justify-content: center; opacity: 0; animation: lgn-fadeInUp 0.8s ease forwards; animation-delay: 0.3s; }
.lgn-hero__card-wrap { width: 100%; max-width: 420px; }
.lgn-hero__card { position: relative; height: 360px; }
.lgn-hero__card-glass { position: absolute; inset: 0; background: rgba(255, 255, 255, 0.06); backdrop-filter: blur(6px); border: 1px solid rgba(255, 255, 255, 0.16); border-radius: var(--lgn-radius-lg); box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35); }
.lgn-hero__card-inner { position: absolute; inset: 24px; background: #fff; border-radius: var(--lgn-radius-md); overflow: hidden; }
.lgn-hero__dotgrid { position: absolute; inset: 0; background-image: radial-gradient(rgba(16, 142, 212, 0.1) 1.6px, transparent 1.6px); background-size: 22px 22px; }
.lgn-step-panel { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 18px; text-align: center; }
.lgn-step-label { font-size: 13px; font-weight: 700; color: var(--lgn-brand-a); margin-bottom: 16px; }
.lgn-step1 { animation: lgn-stepFade1 9s ease-in-out infinite; }
.lgn-step2 { animation: lgn-stepFade2 9s ease-in-out infinite; }
.lgn-step3 { animation: lgn-stepFade3 9s ease-in-out infinite; }
.lgn-step-input { width: 250px; height: 52px; border: 2px solid var(--lgn-tint-strong); border-radius: 14px; display: flex; align-items: center; padding: 0 18px; background: #fff; }
.lgn-type-text { display: inline-block; overflow: hidden; white-space: nowrap; font-size: 18px; font-weight: 700; color: var(--lgn-ink); animation: lgn-typeReveal 9s steps(8, end) infinite; }
.lgn-blink-cursor { width: 2px; height: 20px; background: var(--lgn-brand-a); margin-right: 3px; flex-shrink: 0; animation: lgn-blinkCursor 0.9s step-end infinite; }
.lgn-style-chips { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.lgn-style-chip { font-size: 12.5px; font-weight: 600; color: var(--lgn-muted); background: var(--lgn-bg); border: 1px solid #e7edf5; padding: 9px 16px; border-radius: 999px; }
.lgn-style-chip--active { font-weight: 700; color: #fff; background: var(--lgn-gradient); border: none; box-shadow: 0 8px 18px rgba(16, 142, 212, 0.35); display: flex; align-items: center; gap: 5px; }
.lgn-spinner { position: relative; width: 96px; height: 96px; }
.lgn-spinner__ring { position: absolute; inset: 0; border-radius: 50%; border: 4px solid var(--lgn-tint-strong); border-top-color: var(--lgn-brand-a); animation: lgn-spin 1s linear infinite, lgn-spinnerFade 9s ease-in-out infinite; }
.lgn-spinner__result { position: absolute; inset: 0; opacity: 0; animation: lgn-resultFade 9s ease-in-out infinite; }
.lgn-step3-label { margin-top: 14px; font-size: 13px; font-weight: 600; color: var(--lgn-muted); opacity: 0; animation: lgn-resultFade 9s ease-in-out infinite; }
.lgn-hero__dots { position: absolute; bottom: -30px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; }
.lgn-hero__dots span { width: 7px; height: 7px; border-radius: 50%; background: #fff; }
.lgn-dot1 { animation: lgn-dotPulse1 9s ease-in-out infinite; }
.lgn-dot2 { animation: lgn-dotPulse2 9s ease-in-out infinite; }
.lgn-dot3 { animation: lgn-dotPulse3 9s ease-in-out infinite; }

@media (max-width: 767px) {
  .lgn-hero { padding: 56px 5% 0; text-align: center; }
  .lgn-hero__inner { flex-direction: column; padding-bottom: 60px; }
  .lgn-hero__title { font-size: 28px; margin: 18px auto 0; }
  .lgn-hero__subtitle { margin: 14px auto 0; font-size: 14.5px; }
  .lgn-hero__cta-row .lgn-btn { display: block; width: 100%; justify-content: center; }
  .lgn-hero__trust { justify-content: center; }
  .lgn-hero__visual { width: 100%; }
  .lgn-hero__card-wrap { width: 100%; max-width: 280px; margin: 0 auto; }
  .lgn-hero__card { height: 210px; }
  .lgn-hero__card-inner { inset: 14px; }
  .lgn-step-input { width: 170px; height: 40px; }
  .lgn-spinner { width: 62px; height: 62px; }
}

/* ==========================================================================
   AI Features section
   ========================================================================== */
.lgn-ai { padding: 96px 5%; background: #fff; }
.lgn-ai__head { text-align: center; max-width: 680px; margin: 0 auto 64px; }
.lgn-ai__head h2 { margin: 14px 0 0; font-size: 34px; font-weight: 800; color: var(--lgn-ink); }
.lgn-ai__head p { margin: 16px 0 0; font-size: 16.5px; line-height: 1.9; color: var(--lgn-muted); }
.lgn-ai__row { display: flex; align-items: center; gap: 56px; margin-bottom: 80px; flex-wrap: wrap; }
.lgn-ai__row--reverse { flex-direction: row-reverse; }
.lgn-ai__text { flex: 1 1 320px; }
.lgn-ai__label { font-size: 12.5px; font-weight: 700; color: var(--lgn-brand-a); }
.lgn-ai__text h3 { font-size: 25px; font-weight: 800; color: var(--lgn-ink); margin: 8px 0 12px; }
.lgn-ai__text p { font-size: 16px; line-height: 1.9; color: var(--lgn-body); margin: 0 0 8px; max-width: 440px; }
.lgn-ai__text p.lgn-ai__sub { color: var(--lgn-muted); font-size: 15px; margin-bottom: 20px; }
.lgn-ai__link { display: inline-flex; align-items: center; gap: 8px; color: var(--lgn-brand-a); font-weight: 700; font-size: 15.5px; }
.lgn-ai__visual { flex: 1 1 320px; background: var(--lgn-bg); border-radius: var(--lgn-radius-lg); padding: 26px; box-shadow: var(--lgn-shadow-sm); transition: transform 0.18s ease, box-shadow 0.18s ease; }
.lgn-ai__visual:hover { box-shadow: var(--lgn-shadow-md); transform: translateY(-6px); }
.lgn-ai__visual--gradient { background: linear-gradient(135deg, #f3f8ff, var(--lgn-tint)); }
.lgn-ai__visual img { width: 100%; border-radius: var(--lgn-radius-md); }
.lgn-ai__compare { display: flex; gap: 16px; }
.lgn-ai__compare-item { flex: 1; text-align: center; }
.lgn-ai__compare-item figure { background: #fff; border-radius: var(--lgn-radius-md); padding: 16px; border: 1px solid #eef2f7; margin: 0; }
.lgn-ai__compare-item--after figure { border: 1px solid var(--lgn-tint-strong); }
.lgn-ai__compare-item--transparent figure { background: repeating-conic-gradient(#eef1f5 0% 25%, #fff 0% 50%) 0 0/16px 16px; }
.lgn-ai__compare-item img { width: 100%; height: 150px; object-fit: contain; }
.lgn-ai__compare-item span { display: block; margin-top: 10px; font-size: 13px; font-weight: 600; color: var(--lgn-muted); }
.lgn-ai__compare-item--after span { color: var(--lgn-brand-a); font-weight: 700; }
.lgn-ai__chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.lgn-ai__chip { font-size: 12px; font-weight: 700; color: var(--lgn-navy); background: var(--lgn-tint-strong); padding: 6px 13px; border-radius: 999px; }
.lgn-ai__cta-band {
  margin-top: 88px; border-radius: var(--lgn-radius-lg); padding: 44px 48px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  background: var(--lgn-gradient-shimmer); background-size: 220% 100%; animation: lgn-shimmerMove 5s linear infinite;
  box-shadow: 0 18px 40px rgba(6, 27, 82, 0.22); transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.lgn-ai__cta-band:hover { transform: translateY(-2px); box-shadow: 0 22px 44px rgba(0, 0, 0, 0.28); }
.lgn-ai__cta-text { color: #fff; font-size: 20px; font-weight: 700; }

@media (max-width: 767px) {
  .lgn-ai { padding: 56px 5%; }
  .lgn-ai__row { flex-direction: column !important; margin-bottom: 48px; gap: 20px; }
  .lgn-ai__cta-band { flex-direction: column; text-align: center; padding: 30px 24px; }
}

/* ==========================================================================
   Why Logonomy
   ========================================================================== */
.lgn-why { padding: 96px 5%; }
.lgn-why__head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.lgn-why__head h2 { margin: 12px 0 0; font-size: 32px; font-weight: 800; color: var(--lgn-ink); }
.lgn-why__grid { display: flex; flex-wrap: wrap; gap: 24px; }
.lgn-benefit-card { flex: 1 1 300px; background: #fff; border-radius: var(--lgn-radius-md); padding: 30px; box-shadow: var(--lgn-shadow-sm); transition: transform 0.18s ease, box-shadow 0.18s ease; }
.lgn-benefit-card:hover { box-shadow: var(--lgn-shadow-md); transform: translateY(-5px); }
.lgn-benefit-card__icon { width: 46px; height: 46px; border-radius: 12px; background: var(--lgn-tint); display: flex; align-items: center; justify-content: center; color: var(--lgn-brand-a); margin-bottom: 16px; font-size: 20px; }
.lgn-benefit-card h4 { font-size: 17px; font-weight: 700; color: var(--lgn-ink); margin: 0 0 8px; }
.lgn-benefit-card p { font-size: 14px; line-height: 1.85; color: var(--lgn-muted); margin: 0; }
.lgn-benefit-card a { color: inherit; text-decoration: none; }

@media (max-width: 767px) { .lgn-why { padding: 56px 5%; } .lgn-why__grid { gap: 16px; } .lgn-benefit-card { flex: 1 1 100%; } }

/* ==========================================================================
   About + stat
   ========================================================================== */
.lgn-about { padding: 96px 5%; background: #fff; }
.lgn-about__inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; gap: 56px; flex-wrap: wrap; }
.lgn-about__copy { flex: 1 1 400px; }
.lgn-about__copy h2 { margin: 12px 0 16px; font-size: 30px; font-weight: 800; color: var(--lgn-ink); }
.lgn-about__copy .lgn-about__desc { font-size: 16px; line-height: 2; color: var(--lgn-body); margin-bottom: 28px; }
.lgn-about__stat { display: inline-flex; align-items: center; gap: 16px; background: var(--lgn-bg); border: 1px solid #eef2f7; border-radius: var(--lgn-radius-md); padding: 20px 26px; }
.lgn-about__stat-num { font-size: 34px; font-weight: 800; background: var(--lgn-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lgn-about__stat-label { font-size: 14px; color: var(--lgn-body); font-weight: 600; max-width: 130px; line-height: 1.6; }
.lgn-about__media { flex: 1 1 380px; }
.lgn-about__media-frame { background: linear-gradient(160deg, var(--lgn-tint), #fff); border-radius: var(--lgn-radius-lg); padding: 8px; }
.lgn-about__media-frame img { width: 100%; border-radius: calc(var(--lgn-radius-lg) - 8px); display: block; }

@media (max-width: 767px) { .lgn-about { padding: 56px 5%; text-align: center; } .lgn-about__stat { margin: 0 auto 24px; } }

/* ==========================================================================
   Courses cross-promo banner
   ========================================================================== */
.lgn-promo { padding: 0 5% 96px; }
.lgn-promo__card {
  max-width: 1200px; margin: 0 auto; border-radius: var(--lgn-radius-lg); padding: 40px 48px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  background: linear-gradient(90deg, var(--lgn-navy) 0%, #0d2a63 100%); position: relative; overflow: hidden;
  color: #fff; text-decoration: none;
}
.lgn-promo__card:hover { color: #fff; }
.lgn-promo__card span.lgn-kicker { color: #bfe9ff; }
.lgn-promo__card h3 { margin: 10px 0 0; font-size: 23px; font-weight: 800; }

@media (max-width: 767px) { .lgn-promo { padding: 0 5% 56px; } .lgn-promo__card { flex-direction: column; text-align: center; padding: 30px 26px; } }

/* ==========================================================================
   FAQ (homepage teaser)
   ========================================================================== */
.lgn-faq { padding: 0 5% 96px; background: #fff; }
.lgn-faq__inner { max-width: 1200px; margin: 0 auto; display: flex; gap: 56px; flex-wrap: wrap; }
.lgn-faq__intro { flex: 0 0 360px; }
.lgn-faq__intro h2 { margin: 12px 0 16px; font-size: 28px; font-weight: 800; color: var(--lgn-ink); }
.lgn-faq__intro p { font-size: 15.5px; line-height: 1.95; color: var(--lgn-body); margin-bottom: 20px; }
.lgn-faq__list { flex: 1 1 400px; display: flex; flex-direction: column; gap: 12px; }
.lgn-faq__item { background: var(--lgn-bg); border: 1px solid transparent; border-radius: var(--lgn-radius-md); padding: 20px 24px; cursor: pointer; transition: background 0.15s ease; }
.lgn-faq__item.active { background: #fff; border-color: var(--lgn-tint-strong); box-shadow: var(--lgn-shadow-sm); }
.lgn-faq__item-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.lgn-faq__item-head h5 { font-size: 15.5px; font-weight: 700; color: var(--lgn-ink); margin: 0; }
.lgn-faq__item-icon { color: var(--lgn-muted); flex-shrink: 0; transition: transform 0.15s ease, color 0.15s ease; }
.lgn-faq__item.active .lgn-faq__item-icon { color: var(--lgn-brand-a); transform: rotate(45deg); }
.lgn-faq__item-body { font-size: 14.5px; line-height: 1.9; color: var(--lgn-body); margin-top: 12px; }

@media (max-width: 767px) { .lgn-faq { padding: 0 5% 56px; text-align: center; } .lgn-faq__inner { flex-direction: column; } .lgn-faq__item-body { text-align: right; } }

/* ==========================================================================
   Blog cards (shared: homepage teaser + blog list page + related widgets)
   ========================================================================== */
.lgn-blog-section { padding: 0 5% 96px; background: #fff; }
.lgn-blog-section__head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 36px; flex-wrap: wrap; gap: 12px; }
.lgn-blog-section__head h2 { margin: 10px 0 0; font-size: 28px; font-weight: 800; color: var(--lgn-ink); }
.lgn-blog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; max-width: 1200px; margin: 0 auto; }
.lgn-blog-card { display: block; background: #fff; border: 1px solid #eef2f7; border-radius: var(--lgn-radius-md); overflow: hidden; box-shadow: var(--lgn-shadow-sm); transition: transform 0.18s ease, box-shadow 0.18s ease; text-decoration: none; color: inherit; height: 100%; }
.lgn-blog-card:hover { box-shadow: var(--lgn-shadow-md); transform: translateY(-5px); color: inherit; }
.lgn-blog-card__thumb { height: 170px; background: linear-gradient(135deg, var(--lgn-tint), #dfeeff); overflow: hidden; position: relative; }
.lgn-blog-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.lgn-blog-card__body { padding: 20px; }
.lgn-blog-card__tag { display: inline-block; font-size: 12px; font-weight: 700; color: var(--lgn-brand-a); background: var(--lgn-tint); padding: 5px 12px; border-radius: 999px; }
.lgn-blog-card__title { margin: 14px 0 8px; font-size: 16.5px; font-weight: 700; color: var(--lgn-ink); line-height: 1.6; }
.lgn-blog-card__excerpt { font-size: 13.5px; line-height: 1.8; color: var(--lgn-muted); margin: 0; }

@media (max-width: 991px) { .lgn-blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) { .lgn-blog-section { padding: 0 5% 56px; } .lgn-blog-grid { grid-template-columns: 1fr; } .lgn-blog-section__head { justify-content: center; text-align: center; } }

/* ==========================================================================
   Testimonials
   ========================================================================== */
.lgn-testimonial { padding: 96px 5%; background: var(--lgn-navy); position: relative; overflow: hidden; }
.lgn-testimonial__glow { position: absolute; top: -140px; right: -100px; width: 400px; height: 400px; border-radius: 50%; background: radial-gradient(circle, rgba(16, 142, 212, 0.25), rgba(16, 142, 212, 0) 70%); }
.lgn-testimonial__head { position: relative; text-align: center; max-width: 600px; margin: 0 auto 48px; }
.lgn-testimonial__head h2 { margin: 12px 0 0; font-size: 30px; font-weight: 800; color: #fff; }
.lgn-testimonial__head .lgn-kicker { color: var(--lgn-cyan-light); }
.lgn-testimonial-grid { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; max-width: 1200px; margin: 0 auto; }
.lgn-testimonial-card { background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: var(--lgn-radius-md); padding: 26px; }
.lgn-testimonial-card__stars { display: flex; gap: 4px; color: #ffb703; margin-bottom: 14px; }
.lgn-testimonial-card p { color: #dbe6f2; font-size: 15px; line-height: 1.9; margin: 0; }

@media (max-width: 767px) { .lgn-testimonial { padding: 56px 5%; } .lgn-testimonial-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Page hero band — reused on blog list / blog detail / courses
   ========================================================================== */
.lgn-page-hero { background: radial-gradient(1000px 480px at 78% 0%, #0d3a52 0%, var(--lgn-cyan-deep) 55%, #050f1a 100%); padding: 64px 5% 48px; text-align: center; }
.lgn-page-hero h1 { color: #fff; font-size: 32px; font-weight: 800; margin: 0; }
.lgn-page-hero p { color: #c9d6e6; font-size: 15.5px; margin: 12px auto 0; max-width: 560px; }
.lgn-page-hero__crumbs { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.lgn-page-hero__crumbs a, .lgn-page-hero__crumbs span { color: #9fc9dd; font-size: 13.5px; }
.lgn-page-hero__crumbs a:hover { color: #fff; }

/* ==========================================================================
   Sidebar widgets (blog list / blog detail)
   ========================================================================== */
.lgn-sidebar { display: flex; flex-direction: column; gap: 24px; }
.lgn-sidebar__widget { background: #fff; border: 1px solid #eef2f7; border-radius: var(--lgn-radius-md); padding: 24px; box-shadow: var(--lgn-shadow-sm); }
.lgn-sidebar__widget h4 { font-size: 15.5px; font-weight: 700; color: var(--lgn-ink); margin: 0 0 18px; }
.lgn-sidebar__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.lgn-sidebar__list a { color: var(--lgn-body); font-size: 14px; }
.lgn-sidebar__list a:hover { color: var(--lgn-brand-a); }
.lgn-sidebar__post { display: flex; flex-direction: column; gap: 4px; }
.lgn-sidebar__post a { color: var(--lgn-ink); font-weight: 600; font-size: 14px; }
.lgn-sidebar__post-date { color: var(--lgn-muted); font-size: 12.5px; }

/* ==========================================================================
   Blog detail article body
   ========================================================================== */
.lgn-article { padding: 56px 5% 96px; background: #fff; }
.lgn-article__inner { max-width: 1200px; margin: 0 auto; display: flex; gap: 48px; flex-wrap: wrap; }
.lgn-article__main { flex: 1 1 640px; min-width: 0; }
.lgn-article__aside { flex: 0 0 320px; }
.lgn-article__meta { color: var(--lgn-muted); font-size: 13.5px; margin-bottom: 12px; }
.lgn-article__title { font-size: 28px; font-weight: 800; color: var(--lgn-ink); margin: 0 0 28px; line-height: 1.5; }
.lgn-article__body { font-size: 16px; line-height: 2; color: var(--lgn-body); }
.lgn-article__body img { max-width: 100%; border-radius: var(--lgn-radius-md); }
.lgn-article__tags { margin-top: 40px; padding-top: 24px; border-top: 1px solid #eef2f7; }
.lgn-article__tags h5 { font-size: 14px; font-weight: 700; color: var(--lgn-ink); margin-bottom: 12px; }
.lgn-article__tags ul { list-style: none; display: flex; gap: 8px; flex-wrap: wrap; margin: 0; padding: 0; }
.lgn-article__tags a { display: inline-block; background: var(--lgn-tint); color: var(--lgn-navy); font-size: 12.5px; font-weight: 600; padding: 6px 14px; border-radius: 999px; }

@media (max-width: 991px) { .lgn-article__inner { flex-direction: column-reverse; } .lgn-article__aside { flex: 1 1 100%; } }

/* ==========================================================================
   Blog list page
   ========================================================================== */
.lgn-bloglist { padding: 56px 5% 96px; background: #fff; }
.lgn-bloglist__inner { max-width: 1200px; margin: 0 auto; display: flex; gap: 48px; flex-wrap: wrap; }
.lgn-bloglist__main { flex: 1 1 640px; min-width: 0; }
.lgn-bloglist__aside { flex: 0 0 320px; }
.lgn-bloglist__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-bottom: 40px; }
.lgn-bloglist__cat-btn { background: transparent; border: none; color: var(--lgn-body); font-size: 14px; padding: 0; cursor: pointer; text-align: right; }
.lgn-bloglist__cat-btn:hover { color: var(--lgn-brand-a); }

@media (max-width: 991px) { .lgn-bloglist__inner { flex-direction: column-reverse; } .lgn-bloglist__aside { flex: 1 1 100%; } }
@media (max-width: 575px) { .lgn-bloglist__grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Courses page
   ========================================================================== */
.lgn-courses { padding: 56px 5% 96px; background: #fff; }
.lgn-courses__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; max-width: 1200px; margin: 0 auto; }
.lgn-course-card { display: block; background: #fff; border: 1px solid #eef2f7; border-radius: var(--lgn-radius-md); overflow: hidden; box-shadow: var(--lgn-shadow-sm); transition: transform 0.18s ease, box-shadow 0.18s ease; text-decoration: none; color: inherit; height: 100%; }
.lgn-course-card:hover { box-shadow: var(--lgn-shadow-md); transform: translateY(-5px); color: inherit; }
.lgn-course-card__thumb { height: 180px; background: var(--lgn-tint); overflow: hidden; }
.lgn-course-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.lgn-course-card__body { padding: 22px; }
.lgn-course-card__title { font-size: 17px; font-weight: 700; color: var(--lgn-ink); margin: 0 0 10px; }
.lgn-course-card__abstract { font-size: 13.5px; line-height: 1.8; color: var(--lgn-muted); margin: 0 0 18px; }

@media (max-width: 991px) { .lgn-courses__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575px) { .lgn-courses__grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Footer
   ========================================================================== */
.lgn-footer { direction: rtl; background: var(--lgn-navy-deep); }
.lgn-footer__top { max-width: 1200px; margin: 0 auto; padding: 64px 5% 40px; display: flex; justify-content: space-between; gap: 48px; flex-wrap: wrap; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.lgn-footer__brand { flex: 1 1 280px; max-width: 320px; }
.lgn-footer__brand img { height: 28px; filter: brightness(0) invert(1); margin-bottom: 16px; }
.lgn-footer__brand p { color: #9fb0c8; font-size: 14px; line-height: 1.9; margin-bottom: 18px; }
.lgn-footer__contact { display: flex; flex-direction: column; gap: 10px; }
.lgn-footer__contact a { display: flex; align-items: center; gap: 8px; color: #cddcee; font-size: 14px; }
.lgn-footer__contact a:hover { color: #fff; }
.lgn-footer__col h5 { color: #fff; font-size: 15px; font-weight: 700; margin: 0 0 18px; }
.lgn-footer__col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.lgn-footer__col a { color: #9fb0c8; font-size: 14px; }
.lgn-footer__col a:hover { color: #fff; }
.lgn-footer__bottom { max-width: 1200px; margin: 0 auto; padding: 24px 5%; text-align: center; }
.lgn-footer__bottom span { color: #7d8fa8; font-size: 13px; }

@media (max-width: 767px) { .lgn-footer__top { text-align: center; justify-content: center; } .lgn-footer__brand p { margin-left: auto; margin-right: auto; max-width: 320px; } .lgn-footer__contact { align-items: center; } }
