/* =======================================================================
   0. SHARED DESIGN SYSTEM
   Mirrors Curriculum.css so the navbar, footer, and buttons render
   identically on this page. Do not change values here without updating
   Curriculum.css to match — see project note at the top of the file.
   ======================================================================= */
:root {
  --color-primary: #091838;
  --color-primary-dark: #041f5c;
  --color-primary-light: #1e56c7;
  --color-accent: #109d58;
  --color-accent-dark: #0c7a44;
  --color-accent-light: #3fbe7c;

  --color-bg: #ffffff;
  --color-bg-soft: #f4f8fc;
  --color-bg-alt: #eaf1fb;
  --color-text: #0b1b33;
  --color-text-muted: #57677e;
  --color-border: #dce6f5;
  --color-white: #ffffff;

  --gradient-primary: linear-gradient(135deg, #06318f 0%, #041f5c 100%);
  --gradient-accent: linear-gradient(135deg, #109d58 0%, #0c7a44 100%);
  --gradient-soft: linear-gradient(135deg, #eaf1fb 0%, #ffffff 60%);
  --gradient-brand: linear-gradient(120deg, #06318f 0%, #0d5aa0 55%, #109d58 130%);

  --white: var(--color-white);
  --primary-blue: var(--color-primary-light);
  --dark-blue: var(--color-primary-dark);
  --green: var(--color-accent);
  --green-dark: var(--color-accent-dark);
  --light-green: #e3f7ec;
  --border: var(--color-border);
  --bg-light: var(--color-bg-soft);
  --text-dark: var(--color-text);
  --text-gray: var(--color-text-muted);

  --font-display: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 999px;

  --shadow-sm: 0 2px 10px rgba(6, 49, 143, 0.07);
  --shadow-md: 0 12px 30px rgba(6, 49, 143, 0.11);
  --shadow-lg: 0 25px 60px rgba(6, 49, 143, 0.18);

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  --nav-height: 96px;
  --nav-height-scrolled: 70px;
  --nav-height-tablet: 76px;
  --nav-height-tablet-scrolled: 64px;
  --nav-height-mobile: 68px;
  --nav-height-mobile-scrolled: 58px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  overflow-x: hidden;
  padding-top: var(--nav-height);
}

img, video, iframe { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
html, body { max-width: 100%; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text);
}

a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--color-primary-light);
  outline-offset: 3px;
}

.container, .section-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.text-gradient {
  background: linear-gradient(120deg, #06318f 0%, #0d5aa0 55%, #109d58 130%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
  background: var(--color-bg-alt);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: 11px;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), opacity var(--transition);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: #0c2b6d;
  color: #ffffff;
  font-weight: 700;
  border: none;
  cursor: pointer;
  border-radius: 11px;
}
.btn-primary:hover { opacity: 0.9; box-shadow: 0 10px 24px rgba(37, 99, 235, 0.35); transform: translateY(-3px); }

.btn-white, .btn--white {
  background: var(--color-white);
  color: var(--color-primary-dark);
  box-shadow: var(--shadow-md);
}
.btn-white:hover, .btn--white:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

/* Reveal-on-scroll (used by blog.js) */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------------------------------------------------------------------
   FLOATING SOCIAL SIDEBAR
   --------------------------------------------------------------------- */
.social-float {
  position: fixed; right: 0; top: 50%; transform: translateY(-50%);
  z-index: 950; display: flex; flex-direction: column; gap: 10px;
  padding-right: env(safe-area-inset-right, 0px);
}
.social-float-link {
  position: relative; width: 58px; height: 58px; display: grid; place-items: center;
  background: var(--color-white); color: var(--color-primary); font-size: 1.25rem;
  border: 1.5px solid var(--color-border); border-right: none;
  border-radius: var(--radius-md) 0 0 var(--radius-md); box-shadow: var(--shadow-md);
  transition: width var(--transition), background var(--transition), color var(--transition), border-color var(--transition);
}
.social-float-link::after {
  content: attr(data-tooltip); position: absolute; right: 100%; top: 50%;
  transform: translateY(-50%) translateX(8px); background: var(--color-primary-dark);
  color: var(--color-white); font-family: var(--font-display); font-size: 0.78rem; font-weight: 600;
  padding: 7px 14px; border-radius: var(--radius-sm); white-space: nowrap; opacity: 0; visibility: hidden;
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition); pointer-events: none;
}
.social-float-link:hover::after { opacity: 1; visibility: visible; transform: translateY(-50%) translateX(0); }
.social-float-link:hover { color: var(--color-white); border-color: transparent; }
.sf-facebook:hover { background: #1877f2; }
.sf-instagram:hover { background: radial-gradient(circle at 30% 110%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
.sf-whatsapp:hover { background: #25d366; }
.sf-tiktok:hover { background: #0b0c0b; }

/* ---------------------------------------------------------------------
   NAVBAR
   --------------------------------------------------------------------- */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; height: var(--nav-height);
  display: flex; align-items: center; background: var(--color-white); z-index: 1000;
  border-bottom: 1px solid var(--color-border);
  transition: height 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}
.navbar.scrolled { height: var(--nav-height-scrolled); box-shadow: var(--shadow-md); }

.nav-container {
  width: 100%; max-width: 1220px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}

.logo { display: flex; align-items: center; flex-shrink: 0; }
.logo img { width: 150px; height: 80px; object-fit: contain; transition: width 0.3s ease, height 0.3s ease; }
.navbar.scrolled .logo img { width: 100px; height: 55px; }

.nav-links { display: flex; align-items: center; gap: 4px; flex: 1; justify-content: center; }
.nav-item { position: relative; }

.nav-link {
  position: relative; display: inline-flex; align-items: center; gap: 8px; font-weight: 500;
  font-size: 110%; color: var(--color-text-muted); padding: 10px 16px; border-radius: var(--radius-full);
  transition: color var(--transition), background var(--transition), padding 0.3s ease, font-size 0.3s ease;
}
.navbar.scrolled .nav-link { padding: 8px 14px; font-size: 0.88rem; }
.nav-link.active { color: var(--color-primary-dark); font-weight: 600; }
.nav-item.has-dropdown.open > .nav-dropdown-toggle { color: var(--color-primary-dark); font-weight: 600; }

@media (min-width: 901px) {
  .nav-link::after {
    content: ''; position: absolute; bottom: 2px; left: 6px; width: 0; height: 3px;
    background: var(--primary-blue); border-radius: var(--radius-full); transition: width 0.3s ease;
  }
  .nav-link:hover::after, .nav-link.active::after,
  .nav-item.has-dropdown:hover > .nav-dropdown-toggle::after { width: calc(100% - 12px); }
}

.nav-caret-circle {
  width: 20px; height: 20px; min-width: 20px; border-radius: 50%; color: var(--color-primary-dark);
  display: grid; place-items: center; font-size: 0.6rem; transition: transform 0.3s ease, background 0.3s ease;
}
.nav-item.has-dropdown.open .nav-caret-circle,
.nav-dropdown-toggle[aria-expanded="true"] .nav-caret-circle { transform: rotate(180deg); }

.nav-dropdown-wrapper { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.35s cubic-bezier(.4,0,.2,1); }
.nav-item.has-dropdown.open .nav-dropdown-wrapper { grid-template-rows: 1fr; }
.nav-dropdown-inner { overflow: hidden; min-height: 0; }
.nav-dropdown { display: flex; flex-direction: column; gap: 2px; padding: 8px; }

.nav-dropdown-item {
  display: flex; align-items: flex-start; gap: 12px; padding: 10px 12px; border-radius: var(--radius-sm);
  font-size: 0.88rem; color: var(--color-text); transition: background var(--transition), transform var(--transition);
}
.nav-dropdown-item:hover { transform: translateX(2px); }
.nav-dropdown-item i {
  width: 30px; height: 30px; flex-shrink: 0; display: grid; place-items: center; border-radius: 8px;
  background: var(--color-bg-alt); color: var(--color-primary); font-size: 0.85rem;
  transition: background var(--transition), color var(--transition);
}
.nav-dropdown-item:hover i { background: var(--gradient-primary); color: var(--color-white); }
.nav-dropdown-item span { display: flex; flex-direction: column; gap: 2px; }
.nav-dropdown-item strong { font-family: var(--font-display); font-size: 0.86rem; font-weight: 600; }
.nav-dropdown-item small { color: var(--color-text-muted); font-size: 0.75rem; }

@media (min-width: 901px) {
  .nav-dropdown-wrapper {
    position: absolute; top: calc(100% + 8px); left: 0; width: 280px; background: var(--color-white);
    border: 1px solid var(--color-border); border-radius: var(--radius-md); box-shadow: var(--shadow-lg);
    opacity: 0; visibility: hidden; transform: translateY(6px);
    transition: grid-template-rows 0.3s ease, opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
    z-index: 1001;
  }
  .nav-item.has-dropdown.open .nav-dropdown-wrapper { opacity: 1; visibility: visible; transform: translateY(0); }
  .nav-item.has-dropdown:hover .nav-dropdown-wrapper { grid-template-rows: 1fr; opacity: 1; visibility: visible; transform: translateY(0); }
  .nav-item.has-dropdown:hover .nav-caret-circle { transform: rotate(180deg); }
  .nav-item.has-dropdown:hover > .nav-dropdown-toggle { color: var(--color-primary-dark); font-weight: 600; }
}

.nav-actions { display: flex; align-items: center; gap: 18px; flex-shrink: 0; }
.navbar.scrolled .nav-actions .btn-primary { padding: 10px 20px; font-size: 0.85rem; }
.nav-panel-cta { display: none; }

.hamburger { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 30px; height: 30px; }
.hamburger span { height: 2px; background: var(--color-text); border-radius: 2px; transition: transform var(--transition), opacity var(--transition); }
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1024px) and (min-width: 901px) {
  .nav-container { padding: 0 18px; }
  .nav-links { gap: 0; }
  .nav-link { padding: 9px 11px; font-size: 0.86rem; }
  .social-float-link { width: 52px; height: 52px; font-size: 1.1rem; }
}

@media (max-width: 900px) {
  :root { --nav-height: var(--nav-height-tablet); }
  .navbar { height: var(--nav-height-tablet); }
  .navbar.scrolled { height: var(--nav-height-tablet-scrolled); }
  .nav-container { padding: 0 16px; }
  .hamburger { display: flex; }
  .logo img { width: 110px; height: 60px; }
  .navbar.scrolled .logo img { width: 90px; height: 48px; }

  .social-float { display: flex !important; gap: 8px; }
  .social-float-link { display: grid !important; width: 46px; height: 46px; font-size: 1rem; }
  .social-float-link::after { display: none; }

  .nav-links {
    position: fixed; top: 0; left: -100%; width: 300px; max-width: 88%; height: 100vh; height: 100dvh;
    background: var(--color-white); flex-direction: column; align-items: stretch; justify-content: flex-start;
    gap: 6px; padding: 96px 16px 24px; box-shadow: var(--shadow-lg);
    transition: left 0.35s cubic-bezier(.4,0,.2,1); overflow-y: auto; z-index: 1002;
  }
  .nav-links.open { left: 0; }
  .nav-item { width: 100%; }
  .nav-link { width: 100%; justify-content: space-between; padding: 14px 16px; font-size: 0.98rem; border-radius: var(--radius-md); }
  .nav-item.has-dropdown.open > .nav-dropdown-toggle { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }

  .nav-dropdown-wrapper {
    position: static; width: 100%; transform: none; opacity: 1; visibility: visible;
    background: var(--color-bg-alt); border: 1px solid var(--color-border); border-top: none;
    border-radius: 0 0 var(--radius-md) var(--radius-md); box-shadow: none;
  }
  .nav-item.has-dropdown:not(.open) .nav-dropdown-wrapper { border-color: transparent; }
  .nav-dropdown { padding: 6px 8px 8px 22px; }

  .nav-actions .btn-primary { display: none; }
  .nav-panel-cta { display: block; width: 100%; text-align: center; margin-top: 14px; padding-top: 16px; border-top: 1px solid var(--color-border); }
  .nav-panel-cta .btn-primary { display: flex; width: 100%; }
}

@media (max-width: 480px) {
  :root { --nav-height: var(--nav-height-mobile); }
  .navbar { height: var(--nav-height-mobile); }
  .navbar.scrolled { height: var(--nav-height-mobile-scrolled); }
  .nav-container { padding: 0 12px; }
  .logo img { width: 90px; height: 48px; }
  .nav-links { width: 260px; padding: 88px 14px 20px; }
  .social-float { gap: 6px; }
  .social-float-link { width: 40px; height: 40px; font-size: 0.9rem; }
}

/* ---------------------------------------------------------------------
   12. FOOTER
   --------------------------------------------------------------------- */
.footer-logo { 
   width:150px;
  height:80px;
  object-fit:contain;
  display:block;
 }

.site-footer {
  background: var(--white);
  border-top: 1px solid var(--color-border);
  padding: 4.5rem 0 2.5rem;
  opacity: 0;
  transform: translateY(16px);
  animation: footerFadeIn 0.7s ease-out forwards;
}
@keyframes footerFadeIn { to { opacity: 1; transform: translateY(0); } }

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.3fr;
  gap: 32px;
}
.footer-col { margin-bottom: 2.5rem; }

.footer-desc {
  color: var(--color-text-muted);
  font-size: 0.94rem;
  line-height: 1.7;
  max-width: 320px;
  margin: 0 0 1.6rem;
}

.social-icons { display: flex; flex-wrap: wrap; gap: 0.7rem; list-style: none; padding: 0; margin: 0; }
.social-icons a {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--color-white);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 0.95rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, background-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}
.social-icons a:hover,
.social-icons a:focus-visible { color: var(--color-white); transform: translateY(-4px) scale(1.06); box-shadow: var(--shadow-md); }
.social-icons .sf-facebook:hover  { background: #1877f2; }
.social-icons .sf-instagram:hover { background: radial-gradient(circle at 30% 110%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
.social-icons .sf-linkedin:hover  { background: #0a66c2; }
.social-icons .sf-youtube:hover   { background: #ff0000; }
.social-icons .sf-whatsapp:hover  { background: #25d366; }

.footer-heading { font-family: var(--font-display); font-size: 1.02rem; font-weight: 700; color: var(--color-text); margin: 0 0 1.4rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 0.85rem; }
.footer-links a { color: var(--color-text-muted); text-decoration: none; font-size: 0.94rem; position: relative; display: inline-block; padding-bottom: 2px; transition: color 0.3s ease; }
.footer-links a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 0%; height: 1.5px; background: var(--color-primary-light); transition: width 0.3s ease; }
.footer-links a:hover, .footer-links a:focus-visible, .footer-links a.is-active { color: var(--color-primary-dark); }
.footer-links a:hover::after, .footer-links a:focus-visible::after, .footer-links a.is-active::after { width: 100%; }

.contact-list { list-style: none; padding: 0; margin: 0 0 1.6rem; }
.contact-list li { display: flex; align-items: flex-start; gap: 0.7rem; margin-bottom: 1rem; font-size: 0.92rem; color: var(--color-text-muted); line-height: 1.5; }
.contact-list i { color: var(--color-primary); background: var(--color-bg-alt); width: 32px; height: 32px; min-width: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 0.85rem; }

.btn-demo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--gradient-primary);
  color: var(--color-white);
  border: none;
  padding: 0.75rem 1.6rem;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(6, 49, 143, 0.28);
  transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
  width: 100%;
  max-width: 260px;
}
.btn-demo:hover, .btn-demo:focus-visible {
  opacity: 0.92;
  transform: translateY(-3px);
  box-shadow: 0 12px 26px rgba(4, 31, 92, 0.35);
  color: var(--color-white);
}

.footer-divider { border: none; border-top: 1px solid var(--color-border); margin: 1rem 0 0; }

.footer-bottom {
  padding: 1.5rem 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}
.copyright { margin: 0; }

.footer-bottom-links { display: flex; gap: 1.6rem; list-style: none; padding: 0; margin: 0; flex-wrap: wrap; }
.footer-bottom-links a { color: var(--color-text-muted); text-decoration: none; position: relative; padding-bottom: 2px; transition: color 0.3s ease; }
.footer-bottom-links a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 0%; height: 1.5px; background: var(--color-primary-light); transition: width 0.3s ease; }
.footer-bottom-links a:hover, .footer-bottom-links a:focus-visible, .footer-bottom-links a.is-active { color: var(--color-primary-dark); }
.footer-bottom-links a:hover::after, .footer-bottom-links a:focus-visible::after, .footer-bottom-links a.is-active::after { width: 100%; }

@media (min-width: 1400px) {
  .footer-desc { max-width: 360px; }
}
@media (max-width: 991.98px) {
  .site-footer { padding-top: 3.5rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-col {
     margin-bottom: 2.25rem;
     }
  .footer-bottom {
     flex-direction: column;
      align-items: flex-end; 
      text-align: right; 
  }
  .footer-bottom .copyright { width: 100%; text-align:center; font-size:12px;}
  .footer-bottom-links { width: 100%; justify-content: flex-end; text-align: right; }
}
@media (max-width: 767.98px) {
  .site-footer { padding-top: 3rem; text-align: left; }
  .footer-grid { grid-template-columns: 1fr; text-align: left; }
  .footer-col { text-align: left; }
  .footer-links { text-align: left; }
  .social-icons { justify-content: flex-start; }
  .footer-desc { max-width: 100%; margin-left: 0; margin-right: 0; }
  .contact-list li { justify-content: flex-start; }
  .footer-bottom-links { gap: 1.2rem; }
}
@media (max-width: 575.98px) {
  .site-footer { padding-top: 2.5rem; }
  .footer-col { margin-bottom: 2rem; }
  .footer-heading { font-size: 0.98rem; margin-bottom: 1.1rem; }
  .social-icons a { width: 38px; height: 38px; }
  .btn-demo { width: 100%; max-width: 100%; }
  .footer-bottom { font-size: 0.8rem; }
  .footer-bottom-links { gap: 1rem; flex-direction: column; }
}
@media (max-width: 359.98px) {
  .footer-desc { font-size: 0.9rem; }
  .contact-list li { font-size: 0.88rem; }
}

.back-to-top {
  position: fixed;
  right: calc(24px + env(safe-area-inset-right, 0px));
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  width: 52px; height: 52px;
  display: grid;
  place-items: center;
  background: var(--gradient-primary);
  color: var(--color-white);
  border-radius: 50%;
  box-shadow: var(--shadow-lg);
  font-size: 1.1rem;
  border: none;
  cursor: pointer;
  z-index: 1500;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(0.9);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease, box-shadow 0.25s ease;
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.back-to-top:hover, .back-to-top:focus-visible { transform: translateY(-4px) scale(1.05); box-shadow: 0 18px 40px rgba(6, 49, 143, 0.32); }
.back-to-top:active { transform: translateY(-1px) scale(0.97); }

@media (max-width: 900px) {
  .back-to-top { width: 46px; height: 46px; right: calc(18px + env(safe-area-inset-right, 0px)); bottom: calc(18px + env(safe-area-inset-bottom, 0px)); font-size: 1rem; }
}
@media (max-width: 480px) {
  .back-to-top { width: 42px; height: 42px; right: calc(14px + env(safe-area-inset-right, 0px)); bottom: calc(14px + env(safe-area-inset-bottom, 0px)); font-size: 0.92rem; }
}
@media (max-width: 380px) {
  .back-to-top { width: 38px; height: 38px; right: calc(12px + env(safe-area-inset-right, 0px)); bottom: calc(12px + env(safe-area-inset-bottom, 0px)); font-size: 0.85rem; }
}

/* ---------------------------------------------------------------------
   14. SCROLL REVEAL ANIMATION
   --------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }


/* =======================================================================
   1. BLOG HERO
   ======================================================================= */
.blog-hero {
  position: relative;
  padding: 72px 0 88px;
  background: var(--gradient-soft);
  overflow: hidden;
  text-align: center;
}
.blog-hero__glow {
  position: absolute;
  top: -180px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 480px;
  background: radial-gradient(closest-side, rgba(30, 86, 199, 0.16), rgba(30, 86, 199, 0));
  pointer-events: none;
}
.blog-hero__inner { position: relative; max-width: 720px; }

.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 22px;
}
.breadcrumb a { color: var(--color-text-muted); transition: color var(--transition); }
.breadcrumb a:hover { color: var(--color-primary-light); }
.breadcrumb i { font-size: 0.65rem; }
.breadcrumb span { color: var(--color-primary-dark); font-weight: 600; }

.blog-hero h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); margin-bottom: 18px; }
.blog-hero p { color: var(--color-text-muted); font-size: 1.05rem; max-width: 560px; margin: 0 auto; }

/* =======================================================================
   2. BLOG GRID + CARDS
   ======================================================================= */
.blog-content { padding: 80px 0 96px; }

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

/* ---------- BLOG CARD ---------- */
.blog-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
}
.blog-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }

.blog-card__media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 2.7;
  overflow: hidden;
  background: var(--color-bg-alt);
  /* Folded-corner "notebook page" treatment — the signature motif for the card */
  clip-path: polygon(0 0, calc(100% - 26px) 0, 100% 26px, 100% 100%, 0 100%);
}
.blog-card__media::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 26px; height: 26px;
  background: var(--color-bg-soft);
  clip-path: polygon(0 0, 100% 0, 100% 100%);
  box-shadow: -3px 3px 6px rgba(9, 24, 56, 0.12);
}
.blog-card__media img {
  width: 100%; height: 100%; object-fit:fill;
  transition: transform 0.5s cubic-bezier(.4,0,.2,1), filter 0.4s ease;
  filter: blur(0);
}
.blog-card__media img.lazy-img:not(.is-loaded) { filter: blur(8px); transform: scale(1.05); }
.blog-card:hover .blog-card__media img { transform: scale(1.08); }

.blog-card__badge {
  position: absolute;
  top: 14px; left: 14px;
  background: var(--color-primary);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 6px 14px;
  border-radius: var(--radius-full);
}

.blog-card__body { padding: 24px 24px 22px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.blog-card__body h3 { font-size: 1.12rem; line-height: 1.35; }
.blog-card__body h3 a { transition: color var(--transition); }
.blog-card__body h3 a:hover { color: var(--color-primary-light); }
.blog-card__body p { font-size: 0.9rem; color: var(--color-text-muted); line-height: 1.65; flex: 1; }

.blog-card__meta { display: flex; flex-wrap: wrap; gap: 14px; font-size: 0.8rem; color: var(--color-text-muted); }
.blog-card__meta i { color: var(--color-primary-light); margin-right: 5px; }

.blog-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--color-border);
}

/* Read-time ring: a small progress dial in place of a plain minute count */
.read-time { display: inline-flex; align-items: center; gap: 8px; font-size: 0.8rem; color: var(--color-text-muted); font-weight: 500; }
.read-time__ring { width: 22px; height: 22px; transform: rotate(-90deg); }
.read-time__ring circle { fill: none; stroke: var(--color-border); stroke-width: 3; }
.read-time__ring .read-time__progress {
  stroke: var(--color-accent);
  stroke-linecap: round;
  stroke-dasharray: 81.7; /* 2 * PI * r(13) */
  stroke-dashoffset: 81.7;
  transition: stroke-dashoffset 1s ease 0.2s;
}
.blog-card.reveal.is-visible .read-time__progress { stroke-dashoffset: var(--ring-offset, 20); }

.read-more {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-size: 0.85rem; font-weight: 600;
  color: var(--color-primary-dark);
  background: none; border: none; padding: 0; cursor: pointer;
  transition: gap var(--transition), color var(--transition);
}
.read-more i { font-size: 0.75rem; transition: transform var(--transition); }
.read-more:hover { color: var(--color-accent-dark); gap: 12px; }
.read-more:hover i { transform: translateX(2px); }
.read-more[aria-expanded="true"] i { transform: rotate(90deg); }
.read-more[aria-expanded="true"]:hover i { transform: rotate(90deg) translateX(2px); }

/* Expandable article detail — revealed in place below the card body on Read More */
.blog-card__expand {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s cubic-bezier(.4,0,.2,1);
}
.blog-card__expand-inner { overflow: hidden; min-height: 0; }
.blog-card__expand.is-open { grid-template-rows: 1fr; }

.blog-card__expand-content {
  padding-top: 16px;
  margin-top: 4px;
  border-top: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.blog-card__expand-content p {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* =======================================================================
   3. RESPONSIVE GRID BREAKPOINTS
   Desktop: 3 per row · Tablet: 2 per row · Mobile: 1 per row
   ======================================================================= */
@media (max-width: 1024px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .blog-grid { grid-template-columns: 1fr; }
  .blog-content { padding: 56px 0 64px; }
  .blog-hero { padding: 52px 0 64px; }
}