/* =====================================================
   SKILLTEC — blog.css
   Palette reused from the rest of the site: blue #2ea6cc/#38a8c8/#2f545f,
   orange #f28c3c CTA, navy #06202B — no new brand colors introduced.
   Category badges use a light rotation of accent colors (WCAG AA safe)
   purely to tell categories apart at a glance.
   ===================================================== */

*, *::before, *::after {
  margin: 0; padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}
body { background: #fff; color: #333; }
a { text-decoration: none; cursor: pointer; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
button { font-family: 'Poppins', sans-serif; cursor: pointer; }

/* ── SCROLL REVEAL ── */
.reveal-up { opacity: 0; transform: translateY(40px); transition: opacity .6s ease, transform .6s ease; }
.reveal-up.visible { opacity: 1; transform: none; }

/* ── ICON SYSTEM (self-hosted inline SVG, no icon fonts) ── */
.icon{
  width:1em;height:1em;display:inline-block;
  fill:currentColor;vertical-align:-0.125em;
  flex-shrink:0;
}
.icon.fa-spin{animation:icon-spin 1s linear infinite;}
@keyframes icon-spin{100%{transform:rotate(360deg);}}

/* ══════════════════════════════════════════════════
   NAVBAR (matches site-wide fixed, shrink-on-scroll pattern)
══════════════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 20px; left: 0; right: 0;
  margin: 0 80px;
  height: 90px;
  background: white;
  border-radius: 50px;
  display: flex;
  align-items: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  z-index: 1000;
  transition: top .3s, height .3s, box-shadow .3s;
}
.navbar.scrolled { top: 10px; height: 70px; box-shadow: 0 6px 24px rgba(0,0,0,.13); }
.nav-inner { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 0 40px; }
.logo img { height: 60px; transition: height .3s; }
.navbar.scrolled .logo img { height: 42px !important; }
nav ul { display: flex; gap: 40px; list-style: none; font-weight: 500; }
.navbar .nav-link { color: #38a8c8 !important; font-weight: 500; }
.navbar .nav-link:hover { color: #2f545f !important; }
.nav-item.active .nav-link { color: #f28c3c !important; }
.btn-apply-nav {
  display: inline-block;
  background: #f28c3c;
  color: #fff !important;
  padding: 8px 20px;
  border-radius: 6px;
  font-weight: 600;
  margin-left: 10px;
  font-size: 0.9rem;
  transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
  box-shadow: 0 6px 18px rgba(242,140,60,.45);
}
.btn-apply-nav:hover { background: #e07e2a; color: #fff !important; transform: translateY(-1px); }
.dropdown-menu {
  position: absolute; top: 120%; right: 0;
  background: white; padding: 15px 0; min-width: 180px;
  border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: all 0.3s ease;
}
.dropdown-menu li { padding: 10px 20px; }
.dropdown-menu li a { color: #062C33; font-size: 15px; display: block; }
.dropdown-menu li:hover { background: #f5f5f5; }
.dropdown.open .dropdown-menu, .nav-item.dropdown.open .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }

/* ══════════════════════════════════════════════════
   BLOG HERO
══════════════════════════════════════════════════ */
.blog-hero {
  position: relative;
  isolation: isolate;
  min-height: 78vh;
  background: linear-gradient(rgba(6,32,43,.68), rgba(6,32,43,.82)), url('../images/field trip 3.jpg') center/cover no-repeat;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 160px 24px 60px;
  border-bottom-left-radius: 40px;
  border-bottom-right-radius: 40px;
  overflow: hidden;
  text-align: center;
}
.blog-hero-content { max-width: 680px; color: #fff; display: flex; flex-direction: column; align-items: center; }
.blog-hero-content h1 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: clamp(32px, 5.5vw, 56px);
  line-height: 1.15;
}
.blog-hero-content h1 em { font-style: normal; color: #f28c3c; }
.reveal-line { display: block; opacity: 0; transform: translateY(24px); animation: heroLineIn .7s ease forwards; }
.reveal-line.delay-1 { animation-delay: .18s; }
.reveal-line.delay-2 { animation-delay: .36s; }
@keyframes heroLineIn { to { opacity: 1; transform: translateY(0); } }
.blog-hero-sub { margin-top: 18px; font-size: 18px; opacity: .92; max-width: 520px; line-height: 1.6; }

.blog-search-form {
  margin-top: 32px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border-radius: 999px;
  padding: 8px 8px 8px 22px;
  width: 100%;
  max-width: 520px;
  box-shadow: 0 12px 40px rgba(0,0,0,.2);
}
.blog-search-form .icon { color: #999; font-size: 16px; }
.blog-search-form input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 15px;
  color: #333;
  font-family: 'Poppins', sans-serif;
  min-width: 0;
}
.blog-search-form button {
  background: #f28c3c;
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  transition: background .2s, transform .2s;
}
.blog-search-form button:hover { background: #e07e2a; transform: translateY(-1px); }

.blog-cta-btn {
  margin-top: 28px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  color: #06202B;
  padding: 14px 32px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  transition: all .3s;
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
}
.blog-cta-btn:hover { background: #f28c3c; color: #fff; transform: translateY(-2px); }

/* ══════════════════════════════════════════════════
   TRUST STRIP
══════════════════════════════════════════════════ */
.blog-trust-strip {
  width: fit-content;
  max-width: calc(100% - 40px);
  margin: -40px auto 0;
  position: relative;
  z-index: 5;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0,0,0,.08);
  padding: 28px 44px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 36px;
}
.blog-trust-stats { display: flex; gap: 40px; flex-wrap: wrap; }
.blog-trust-item { text-align: center; }
.blog-trust-item strong { display: block; font-size: 1.6rem; color: #2ea6cc; font-weight: 700; }
.blog-trust-item span { font-size: 0.8rem; color: #6B7280; }
.blog-trust-item span em { font-style: normal; opacity: .6; }
.blog-trust-badges { display: flex; gap: 14px; flex-wrap: wrap; }
.blog-trust-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: #EAF9FD; color: #2f545f;
  padding: 8px 16px; border-radius: 999px;
  font-size: 13px; font-weight: 500;
}
.blog-trust-badge .icon { color: #2ea6cc; }

/* ══════════════════════════════════════════════════
   FEATURED POST
══════════════════════════════════════════════════ */
.blog-featured { max-width: 1100px; margin: 70px auto; padding: 0 24px; }
.blog-featured-card {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0,0,0,.06);
  overflow: hidden;
}
.blog-featured-img { min-height: 320px; }
.blog-featured-img img { width: 100%; height: 100%; object-fit: cover; }
.blog-featured-content { padding: 40px; display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.blog-featured-content h2 { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: clamp(24px, 3vw, 32px); line-height: 1.25; color: #06202B; }
.blog-featured-content p { font-size: 15.5px; line-height: 1.7; color: #555; }

/* ── Category badges (light rotation of accents) ── */
.blog-category-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .3px;
  padding: 6px 14px;
  border-radius: 999px;
}
.cat-technology { background: #EAF9FD; color: #0B7A9E; }
.cat-graphic-design { background: #F3ECFE; color: #6D28D9; }
.cat-programming { background: #E6FBF7; color: #0D9488; }
.cat-digital-marketing { background: #FFF1E6; color: #C25A15; }
.cat-business { background: #EAEFF3; color: #2f545f; }
.cat-engineering { background: #EEF1F5; color: #475569; }
.cat-scholarships { background: #FEF3E0; color: #B45309; }
.cat-student-stories { background: #FDECEF; color: #BE123C; }
.cat-career-tips { background: #EAFBEF; color: #15803D; }

.blog-meta { display: flex; flex-wrap: wrap; gap: 16px; font-size: 13px; color: #6B7280; }
.blog-meta span { display: inline-flex; align-items: center; gap: 6px; }
.blog-meta .icon { color: #2ea6cc; font-size: 12px; }

.blog-read-more {
  display: inline-flex; align-items: center; gap: 8px;
  color: #2ea6cc; font-weight: 600; font-size: 14.5px;
  transition: gap .2s;
}
.blog-read-more:hover { gap: 12px; color: #2f545f; }

/* ══════════════════════════════════════════════════
   CATEGORY PILLS
══════════════════════════════════════════════════ */
.blog-categories { max-width: 1100px; margin: 0 auto 50px; padding: 0 24px; }
.blog-categories-scroll {
  display: flex; gap: 12px; overflow-x: auto; padding-bottom: 6px;
  scrollbar-width: thin;
}
.blog-categories-scroll::-webkit-scrollbar { height: 5px; }
.blog-categories-scroll::-webkit-scrollbar-thumb { background: #cfe3ea; border-radius: 10px; }
.blog-pill {
  flex-shrink: 0;
  background: #F7F9FC;
  border: 1.5px solid #e6eef4;
  color: #2f545f;
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: all .25s;
}
.blog-pill:hover { border-color: #2ea6cc; color: #2ea6cc; }
.blog-pill.active { background: #2ea6cc; border-color: #2ea6cc; color: #fff; }

/* ══════════════════════════════════════════════════
   ARTICLES GRID + SIDEBAR
══════════════════════════════════════════════════ */
.blog-main {
  max-width: 1200px; margin: 0 auto 90px; padding: 0 24px;
  display: grid; grid-template-columns: 1fr 320px; gap: 50px; align-items: start;
}
.blog-section-title {
  font-family: 'Poppins', sans-serif; font-weight: 700;
  font-size: 26px; color: #06202B; margin-bottom: 28px;
}
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.blog-card {
  background: #fff; border: 1px solid #eee; border-radius: 20px; overflow: hidden;
  box-shadow: 0 10px 40px rgba(0,0,0,.06);
  transition: transform .3s, box-shadow .3s;
  display: flex; flex-direction: column;
}
.blog-card:hover { transform: translateY(-8px); box-shadow: 0 20px 60px rgba(0,0,0,.1); }
.blog-card-img-link { display: block; overflow: hidden; aspect-ratio: 16/9; }
.blog-card-img-link img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.blog-card:hover .blog-card-img-link img { transform: scale(1.05); }
.blog-card-body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.blog-card-body h4 { font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 17px; line-height: 1.4; color: #06202B; }
.blog-card-body h4 a:hover { color: #2ea6cc; }
.blog-card-body p { font-size: 14px; line-height: 1.6; color: #666; flex: 1; }
.blog-no-results { text-align: center; color: #777; font-size: 15px; padding: 40px 0; grid-column: 1/-1; }

/* ── Sidebar ── */
.blog-sidebar { position: relative; }
.blog-sidebar-inner { position: sticky; top: 120px; }
.blog-sidebar-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.blog-tab {
  background: none; border: none; padding: 8px 14px; border-radius: 999px;
  font-size: 12.5px; font-weight: 600; color: #6B7280;
  transition: all .2s;
}
.blog-tab:hover { background: #F7F9FC; }
.blog-tab.active { background: #2ea6cc; color: #fff; }
.blog-sidebar-list { display: none; flex-direction: column; gap: 16px; }
.blog-sidebar-list.active { display: flex; }
.blog-sidebar-item { display: flex; gap: 12px; align-items: center; }
.blog-sidebar-item img { width: 56px; height: 56px; object-fit: cover; border-radius: 12px; flex-shrink: 0; }
.blog-sidebar-item h5 { font-size: 13.5px; font-weight: 600; color: #06202B; line-height: 1.4; margin-bottom: 2px; }
.blog-sidebar-item span { font-size: 12px; color: #888; }
.blog-sidebar-item:hover h5 { color: #2ea6cc; }

/* ══════════════════════════════════════════════════
   NEWSLETTER (dark band, visual high point)
══════════════════════════════════════════════════ */
.blog-newsletter {
  background: linear-gradient(135deg, #06202B 0%, #0B2E3D 100%);
  padding: 90px 24px;
  position: relative;
  overflow: hidden;
}
.blog-newsletter-inner { max-width: 560px; margin: 0 auto; text-align: center; position: relative; }
.blog-newsletter h2 {
  font-family: 'Poppins', sans-serif; font-weight: 700;
  font-size: clamp(28px, 4vw, 42px); color: #fff; margin-bottom: 14px;
}
.blog-newsletter p { color: rgba(255,255,255,.75); font-size: 16px; margin-bottom: 32px; }
.blog-newsletter-form { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.blog-newsletter-form input {
  flex: 1; min-width: 220px;
  padding: 15px 20px; border-radius: 999px; border: none;
  font-size: 14.5px; outline: none;
}
.blog-newsletter-form button {
  background: #f28c3c; color: #fff; border: none;
  padding: 15px 32px; border-radius: 999px; font-weight: 600; font-size: 14.5px;
  transition: background .2s, transform .2s;
}
.blog-newsletter-form button:hover { background: #e07e2a; transform: translateY(-2px); }
.blog-newsletter-feedback { margin-top: 16px; font-size: 14px; display: none; }
.blog-newsletter-feedback.success { color: #6ee7b7; display: block; }
.blog-newsletter-feedback.error { color: #fca5a5; display: block; }
.blog-confetti { position: absolute; top: 20%; left: 0; width: 100%; height: 0; pointer-events: none; }
.confetti-piece {
  position: absolute; top: 0; width: 8px; height: 8px; border-radius: 2px;
  animation: confettiFall 1.3s ease-out forwards;
}
@keyframes confettiFall {
  0% { transform: translate(0,0) rotate(0deg); opacity: 1; }
  100% { transform: translate(var(--x), 160px) rotate(var(--r)); opacity: 0; }
}

/* ══════════════════════════════════════════════════
   FOOTER (matches site-wide pattern)
══════════════════════════════════════════════════ */
footer { background: #06202B; color: white; padding: 70px 80px; }
footer h3 { margin-bottom: 16px; font-size: 18px; font-family: 'Poppins', sans-serif; }
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 60px; }
.footer-about p { font-size: 14px; line-height: 1.7; opacity: .85; }
.social-icons { margin-top: 20px; display: flex; gap: 14px; flex-wrap: wrap; }
.social-icons a {
  width: 38px; height: 38px; border-radius: 50%; background: #247a9f;
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 16px; transition: .3s;
}
.social-icons a:hover { background: #f28c3c; transform: translateY(-3px); }
.footlink, .footer-links ul a { color: white; display: block; transition: color .2s; }
.footlink:hover, .footer-links ul a:hover { color: #f28c3c; }
.footer-links ul { list-style: none; }
.footer-links ul li { margin-bottom: 10px; }
.footer-contact p { margin-bottom: 8px; font-size: 14px; line-height: 1.6; }
.newsletter { margin-top: 50px; padding-top: 40px; border-top: 1px solid rgba(255,255,255,.1); text-align: center; }
.newsletter h3 { font-size: 16px; font-weight: 500; margin-bottom: 16px; }
.newsletter-form { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; align-items: center; max-width: 700px; margin: 0 auto; }
.newsletter-form input {
  padding: 12px 16px; border-radius: 6px; border: none; font-size: .9rem;
  flex: 1; min-width: 180px; outline: none; transition: box-shadow .2s;
}
.newsletter-form input:focus { box-shadow: 0 0 0 3px rgba(242,140,60,.4); }
.newsletter-form button {
  padding: 12px 28px; background: #f28c3c; color: white; border: none;
  border-radius: 6px; font-weight: 600; transition: background .2s;
}
.newsletter-form button:hover { background: #e07e2a; }

/* ══════════════════════════════════════════
   BACK TO TOP (site-wide pattern)
══════════════════════════════════════════ */
.back-to-top{
  position:fixed;bottom:26px;right:26px;z-index:500;
  width:44px;height:44px;border-radius:50%;
  background:#f28c3c;color:#fff;border:none;
  display:flex;align-items:center;justify-content:center;
  font-size:19px;line-height:1;cursor:pointer;
  box-shadow:0 4px 12px rgba(0,0,0,.3);
  opacity:0;visibility:hidden;transform:translateY(10px);
  transition:opacity .25s ease,transform .25s ease,visibility .25s ease,background .2s;
}
.back-to-top.visible{opacity:1;visibility:visible;transform:translateY(0);}
.back-to-top:hover{background:#e07e2a;}

/* ══════════════════════════════════════════════════
   ARTICLE PAGE (blog-post.html)
══════════════════════════════════════════════════ */
.reading-progress-track { position: fixed; top: 0; left: 0; width: 100%; height: 4px; background: rgba(0,0,0,.06); z-index: 2000; }
.reading-progress-bar { height: 100%; width: 0%; background: linear-gradient(90deg, #2ea6cc, #f28c3c); transition: width .1s linear; }

.post-navbar { position: static; margin: 0; border-radius: 0; box-shadow: 0 2px 12px rgba(0,0,0,.06); top: auto; }
.post-navbar.scrolled { position: fixed; top: 0; margin: 0; border-radius: 0; }

.breadcrumbs {
  max-width: 900px; margin: 26px auto 0; padding: 0 24px;
  font-size: 13.5px; color: #888; display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
}
.breadcrumbs a { color: #2ea6cc; }
.breadcrumbs a:hover { color: #2f545f; }
.crumb-sep { color: #ccc; }
.crumb-current { color: #333; font-weight: 500; }

.post-header { max-width: 780px; margin: 22px auto 0; padding: 0 24px; text-align: center; }
.post-header .blog-category-badge { margin: 0 auto 16px; }
.post-header h1 {
  font-family: 'Poppins', sans-serif; font-weight: 700;
  font-size: clamp(28px, 4.4vw, 44px); color: #06202B; line-height: 1.2; margin-bottom: 16px;
}
.post-dek { font-size: 17px; line-height: 1.6; color: #555; margin-bottom: 22px; }
.post-header-meta { justify-content: center; }

.post-hero-img { max-width: 1000px; margin: 34px auto; padding: 0 24px; }
.post-hero-img img { width: 100%; max-height: 480px; object-fit: cover; border-radius: 20px; }

.post-share-row {
  max-width: 780px; margin: 0 auto 40px; padding: 0 24px;
  display: flex; align-items: center; gap: 12px; font-size: 13.5px; color: #6B7280;
}
.post-share-btn {
  width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid #e6eef4;
  background: #fff; color: #2f545f; display: flex; align-items: center; justify-content: center;
  transition: all .25s;
}
.post-share-btn:hover { background: #2ea6cc; border-color: #2ea6cc; color: #fff; transform: translateY(-2px); }

.post-layout {
  max-width: 1000px; margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: 220px 1fr; gap: 50px; align-items: start;
}
.post-toc-inner { position: sticky; top: 120px; }
.post-toc-inner h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .5px; color: #999; margin-bottom: 14px; }
.post-toc-inner nav { display: flex; flex-direction: column; gap: 12px; }
.toc-link { font-size: 14px; color: #6B7280; border-left: 2px solid #eee; padding-left: 14px; transition: all .2s; }
.toc-link:hover { color: #2ea6cc; }
.toc-link.active { color: #2ea6cc; border-left-color: #2ea6cc; font-weight: 600; }

.post-body h2 { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 26px; color: #06202B; margin: 40px 0 16px; }
.post-body h2:first-child { margin-top: 0; }
.post-body h3 { font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 19px; color: #2f545f; margin: 26px 0 12px; }
.post-body p { font-size: 17px; line-height: 1.8; color: #3d4c53; margin-bottom: 18px; }
.post-list { margin: 0 0 20px 22px; }
.post-list li { font-size: 16px; line-height: 1.8; color: #3d4c53; margin-bottom: 6px; }

/* ── Inline recruitment CTA box ── */
.post-inline-cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px;
  background: #EAF9FD; border: 1.5px solid #cdeef8; border-radius: 20px;
  padding: 26px 30px; margin: 30px auto; max-width: 780px;
}
.post-inline-cta h4 { font-size: 17px; color: #06202B; margin-bottom: 6px; }
.post-inline-cta p { font-size: 14px; color: #2f545f; margin: 0; }
.post-cta-btn {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 10px;
  background: #f28c3c; color: #fff; padding: 13px 26px; border-radius: 999px;
  font-weight: 600; font-size: 14.5px; transition: all .3s; white-space: nowrap;
}
.post-cta-btn:hover { background: #e07e2a; transform: translateY(-2px); }

/* ── "Browse all articles" related card variant ── */
.related-card-browse { display: flex; align-items: center; justify-content: center; min-height: 100%; background: #F7F9FC; }
.related-browse-inner { text-align: center; padding: 30px 18px; }
.related-browse-inner .icon { font-size: 26px; color: #2ea6cc; margin-bottom: 10px; }
.related-browse-inner h4 { color: #06202B; font-size: 15px; }

.post-tags { display: flex; flex-wrap: wrap; gap: 10px; margin: 32px 0; }
.post-tag {
  background: #F7F9FC; border: 1px solid #e6eef4; color: #2f545f;
  padding: 7px 16px; border-radius: 999px; font-size: 13px; font-weight: 500;
}

.author-card {
  display: flex; gap: 18px; align-items: center;
  background: #F7F9FC; border-radius: 20px; padding: 26px; margin: 40px 0;
}
.author-card-avatar {
  width: 56px; height: 56px; border-radius: 50%; background: #2ea6cc; color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 18px; flex-shrink: 0;
}
.author-card-body h4 { font-size: 16px; color: #06202B; margin-bottom: 6px; }
.author-card-body p { font-size: 14px; color: #666; margin: 0; }

.post-comments { margin: 50px 0; }
.post-comments h3 { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 22px; color: #06202B; margin-bottom: 24px; }
.comment-count { color: #999; font-weight: 400; font-size: 15px; }
.comment { display: flex; gap: 14px; margin-bottom: 22px; }
.comment-avatar {
  width: 40px; height: 40px; border-radius: 50%; background: #f28c3c; color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; flex-shrink: 0;
}
.comment-head { display: flex; gap: 10px; align-items: baseline; margin-bottom: 4px; }
.comment-head span { font-size: 12px; color: #999; }
.comment-body p { font-size: 14.5px; color: #444; line-height: 1.6; }

.comment-form { margin-top: 30px; background: #F7F9FC; border-radius: 20px; padding: 26px; }
.comment-form h4 { font-size: 16px; color: #06202B; margin-bottom: 16px; }
.comment-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.comment-form input, .comment-form textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid #e0e0e0; border-radius: 12px;
  font-size: 14px; outline: none; background: #fff; transition: border-color .2s;
}
.comment-form input:focus, .comment-form textarea:focus { border-color: #2ea6cc; }
.comment-form textarea { margin-bottom: 14px; resize: vertical; }
.comment-form button {
  background: #2ea6cc; color: #fff; border: none; padding: 12px 28px;
  border-radius: 12px; font-weight: 600; font-size: 14px; transition: background .2s;
}
.comment-form button:hover { background: #2f545f; }
.comment-feedback { margin-top: 12px; font-size: 13.5px; }
.comment-feedback.success { color: #16a34a; }
.comment-feedback.error { color: #dc2626; }

.post-pagination { display: flex; justify-content: space-between; gap: 16px; margin: 50px 0 30px; flex-wrap: wrap; }
.post-pagination-link {
  flex: 1; min-width: 220px; display: flex; align-items: center; gap: 12px;
  background: #F7F9FC; border-radius: 16px; padding: 16px 20px; font-size: 14px; color: #06202B; font-weight: 600;
  transition: background .2s;
}
.post-pagination-link:hover { background: #EAF9FD; }
.post-pagination-link.next { justify-content: flex-end; text-align: right; }
.post-pagination-link small { display: block; font-weight: 400; color: #999; font-size: 12px; margin-bottom: 2px; }
.post-pagination-link .icon { color: #2ea6cc; }

.related-posts { max-width: 1100px; margin: 80px auto; padding: 0 24px; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.related-card {
  display: block; background: #fff; border: 1px solid #eee; border-radius: 20px; overflow: hidden;
  box-shadow: 0 10px 40px rgba(0,0,0,.06); transition: transform .3s, box-shadow .3s;
}
.related-card:hover { transform: translateY(-6px); box-shadow: 0 16px 46px rgba(0,0,0,.1); }
.related-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.related-card > div { padding: 18px; }
.related-card h4 { font-size: 15px; color: #06202B; margin-top: 10px; line-height: 1.4; }

/* ══════════════════════════════════════════════════
   REDUCED MOTION
══════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  .reveal-line, .blog-card, .blog-featured-card, .related-card, .confetti-piece,
  .blog-pill, .blog-cta-btn, .blog-read-more, .reading-progress-bar {
    animation: none !important;
    transition: none !important;
  }
}

/* ══════════════════════════════════════════════════
   RESPONSIVE (matches site-wide breakpoints: 991px / 575px)
══════════════════════════════════════════════════ */
@media (max-width: 991px) {
  .navbar { margin: 0 20px; height: auto; min-height: 70px; top: 15px; border-radius: 20px; padding: 8px 0; }
  .nav-inner { padding: 0 20px; flex-wrap: wrap; }
  .logo img { width: 130px !important; height: auto !important; }

  .blog-hero { padding: 130px 20px 50px; border-bottom-left-radius: 24px; border-bottom-right-radius: 24px; }
  .blog-trust-strip { width: auto; max-width: calc(100% - 40px); margin: -30px 20px 0; padding: 24px; flex-direction: column; align-items: center; }

  .blog-featured { padding: 0 20px; }
  .blog-featured-card { grid-template-columns: 1fr; }
  .blog-featured-img { min-height: 220px; }

  .blog-categories { padding: 0 20px; }

  .blog-main { grid-template-columns: 1fr; padding: 0 20px; }
  .blog-grid { grid-template-columns: 1fr 1fr; }
  .blog-sidebar-inner { position: static; margin-top: 40px; }

  .blog-newsletter { padding: 60px 20px; }

  footer { padding: 50px 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .social-icons { justify-content: center; }
  .newsletter-form { flex-direction: column; align-items: stretch; }
  .newsletter-form input, .newsletter-form button { width: 100%; min-width: unset; }

  .post-inline-cta { margin-left: 20px; margin-right: 20px; }
  .post-layout { grid-template-columns: 1fr; }
  .post-toc-inner { position: static; margin-bottom: 30px; border-bottom: 1px solid #eee; padding-bottom: 24px; }
  .post-toc-inner nav { flex-direction: row; flex-wrap: wrap; gap: 14px; }
  .toc-link { border-left: none; border-bottom: 2px solid #eee; padding-left: 0; padding-bottom: 4px; }
  .toc-link.active { border-left-color: transparent; border-bottom-color: #2ea6cc; }
  .related-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 575px) {
  .navbar { margin: 0 12px; border-radius: 16px; }
  .logo img { width: 110px !important; }

  .blog-hero { padding: 120px 16px 40px; }
  .blog-hero-content h1 { font-size: 30px; }
  .blog-search-form { flex-wrap: wrap; padding: 14px 18px; border-radius: 20px; }
  .blog-search-form button { width: 100%; }

  .blog-trust-strip { max-width: calc(100% - 24px); margin: -24px 12px 0; padding: 20px; }
  .blog-trust-stats { gap: 24px; justify-content: center; }

  .blog-featured { padding: 0 16px; }
  .blog-featured-content { padding: 26px 20px; }

  .blog-categories { padding: 0 16px; }
  .blog-main { padding: 0 16px; }
  .blog-grid { grid-template-columns: 1fr; }
  .blog-card-body { padding: 18px; }

  .blog-newsletter { padding: 50px 16px; }
  .blog-newsletter-form input { min-width: 0; width: 100%; }
  .blog-newsletter-form button { width: 100%; }

  footer { padding: 40px 16px; }

  .post-header { padding: 0 16px; }
  .post-hero-img { padding: 0 16px; }
  .post-inline-cta { flex-direction: column; align-items: stretch; text-align: center; margin: 24px 16px; }
  .post-cta-btn { justify-content: center; }
  .post-share-row { padding: 0 16px; flex-wrap: wrap; }
  .post-layout { padding: 0 16px; }
  .comment-form-grid { grid-template-columns: 1fr; }
  .post-pagination { flex-direction: column; }
  .post-pagination-link.next { justify-content: flex-start; text-align: left; }
  .related-posts { padding: 0 16px; }
  .related-grid { grid-template-columns: 1fr; }

  .back-to-top { width: 40px; height: 40px; bottom: 18px; right: 18px; font-size: 16px; }
}

/* ══════════════════════════════════════════
   HERO IMAGE CAROUSEL (auto-rotating, no user controls)
══════════════════════════════════════════ */
.blog-hero::before{content:'';position:absolute;inset:0;z-index:0;background:linear-gradient(rgba(6,32,43,.55),rgba(6,32,43,.78));}
.blog-hero-content{position:relative;z-index:1;}
.hero-carousel{position:absolute;inset:0;overflow:hidden;z-index:-1;}
.hero-carousel-slide{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;transition:opacity 1.8s ease-in-out;}
.hero-carousel-slide.active{opacity:1;}
@media (prefers-reduced-motion:reduce){.hero-carousel-slide{transition:none;}}
