/* ===============================
   PREMIUM BLOG HERO (MATCHES PORTFOLIO / COURSES)
================================ */
.blog-hero1 {
  position: relative;
  padding: 140px 0 130px;
  background-image: url("https://images.unsplash.com/photo-1522202176988-66273c2fd55f");
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.blog-hero1::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 40, 75, 0.95),
    rgba(0, 40, 75, 0.75)
  );
  z-index: 1;
}

/* CONTENT */
.blog-hero-content1 {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

/* EYEBROW */
.blog-eyebrow {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #e5e7eb;
  background: rgba(255, 255, 255, 0.12);
  padding: 8px 18px;
  border-radius: 999px;
  margin-bottom: 26px;
}

/* TITLE */
.blog-title {
  font-size: 46px;
  font-weight: 800;
  line-height: 1.15;
  color: #ffffff;
  margin-bottom: 26px;
}

.blog-title span {
  color: #dc2d27;
}

/* DESCRIPTION */
.blog-desc {
  font-size: 18px;
  line-height: 1.75;
  color: #e2e8f0;
  max-width: 760px;
  margin: 0 auto 44px;
}

/* ACTIONS */
.blog-hero-actions1 {
  display: flex;
  justify-content: center;
  gap: 22px;
  flex-wrap: wrap;
}

/* PRIMARY CTA */
.hero-primary {
  background: #dc2d27;
  color: #ffffff;
  padding: 16px 38px;
  border-radius: 999px;
  font-weight: 700;
  transition: all 0.3s ease;
}

.hero-primary:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 45px rgba(220, 45, 39, 0.5);
}

/* SECONDARY CTA */
.hero-secondary {
  border: 2px solid rgba(255, 255, 255, 0.7);
  color: #ffffff;
  padding: 16px 38px;
  border-radius: 999px;
  font-weight: 600;
  background: transparent;
  transition: all 0.3s ease;
}

.hero-secondary:hover {
  background: #ffffff;
  color: #020617;
  transform: translateY(-4px);
}

/* MOBILE RESPONSIVE */
@media (max-width: 768px) {
  .blog-hero1 {
    padding: 110px 0 100px;
  }

  .blog-title {
    font-size: 34px;
  }

  .blog-desc {
    font-size: 16px;
  }
}

/* =====================
   BLOG SECTION
===================== */
.blog-section {
  margin: 20px;
  padding: 90px 0;
  background: #f8fafc;
}

/* =====================
   BLOG CARD
===================== */
.blog-card {
  background: #ffffff;
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 40px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.08);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 65px rgba(0, 47, 75, 0.18);
}

.blog-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.blog-card .content {
  padding: 28px;
}

.blog-card h3 {
  font-size: 24px;
  font-weight: 700;
  color: #002f4b;
  margin: 14px 0;
}

.blog-card p {
  color: #475569;
  margin-bottom: 14px;
}

.read-more {
  font-weight: 600;
  color: #dc2626;
}

/* =====================
   TAGS
===================== */
.tag {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
}

.tag-social {
  background: #2563eb;
}
.tag-seo {
  background: #059669;
}
.tag-cro {
  background: #9333ea;
}

/* =====================
   SIDEBAR
===================== */
.blog-sidebar {
  position: sticky;
  top: 110px;
}

.blog-widget {
  background: #ffffff;
  padding: 22px;
  border-radius: 16px;
  margin-bottom: 26px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.06);
}

.blog-widget h5 {
  font-weight: 700;
  margin-bottom: 14px;
}

.blog-widget ul {
  list-style: none;
  padding: 0;
}

.blog-widget ul li a {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-weight: 500;
  color: #002f4b;
}

.blog-widget ul li a:hover {
  color: #dc2626;
}

.blog-widget input {
  width: 100%;
  padding: 14px 18px;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
}

/* =====================
   PAGINATION
===================== */
.blog-pagination {
  display: flex;
  gap: 10px;
  margin-top: 30px;
}

.blog-pagination a {
  padding: 10px 18px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  color: #002f4b;
  font-weight: 600;
}

.blog-pagination a.active {
  background: #dc2626;
  color: #ffffff;
}

/* =====================
   CTA
===================== */
.blog-cta {
  padding: 90px 0;
  background: linear-gradient(135deg, #002f4b, #001629);
  color: #ffffff;
}

.blog-cta h2 {
  font-size: 34px;
  font-weight: 800;
}

.blog-cta p {
  max-width: 680px;
  margin: 14px auto 28px;
  color: #dbeafe;
}

/* =====================
   MOBILE SAFE
===================== */
@media (max-width: 991px) {
  .blog-card img {
    height: 220px;
  }

  .blog-sidebar {
    position: static;
  }
}

/* ===============================
   SCROLL REVEAL ANIMATIONS
================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
  will-change: transform, opacity;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Fade up variation */
.fade-up {
  transform: translateY(32px);
}

/* Delays */
.delay-1 {
  transition-delay: 0.15s;
}
.delay-2 {
  transition-delay: 0.3s;
}
.delay-3 {
  transition-delay: 0.45s;
}
.delay-4 {
  transition-delay: 0.6s;
}

/* =====================================================
 BLOG_PAGE_DETAILS STYLES
===================================================== */
:root {
  --primary: #dc2626;
  --dark: #001629;
  --blue-dark: #002f4b;
  --light-bg: #f8fafc;
  --text-dark: #0f172a;
  --text-muted: #475569;
  --radius-lg: 28px;
  --radius-md: 18px;
  --shadow-soft: 0 30px 70px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 40px 90px rgba(0, 0, 0, 0.12);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body.blog-details-page {
  margin: 0;
  font-family:
    "Inter",
    system-ui,
    -apple-system,
    BlinkMacSystemFont;
  background: var(--light-bg);
  color: var(--text-dark);
  line-height: 1.7;
}

/* =====================================================
   HERO (PREMIUM EDITORIAL STYLE)
===================================================== */
.blog-hero {
  padding: 80px 20px 120px;
  background:
    radial-gradient(1200px at top, rgba(255, 255, 255, 0.06), transparent),
    linear-gradient(135deg, var(--blue-dark), var(--dark));
  color: #ffffff;
  text-align: center;
  position: relative;
}

.blog-hero::after {
  content: "";
  position: absolute;
  bottom: -120px;
  left: 0;
  width: 100%;
  height: 80px;
  background: var(--light-bg);
  border-top-left-radius: 40px;
  border-top-right-radius: 40px;
}

.back-link {
  position: absolute;
  top: 28px;
  left: 24px;

  display: inline-flex;
  align-items: center;
  gap: 6px;

  font-size: 14px;
  font-weight: 600;
  color: #bfdbfe;
  text-decoration: none;

  padding: 8px 14px;
  border-radius: 999px;

  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(6px);

  transition: all 0.25s ease;
}

.back-link:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  transform: translateX(-2px);
}
/* Keep hero content centered */
.blog-hero .hero-content {
  max-width: 960px;
  margin: 0 auto;
  padding-top: 40px;
}

/* Mobile adjustment */
@media (max-width: 768px) {
  .back-link {
    top: 18px;
    left: 16px;
    font-size: 13px;
  }
}
.blog-category {
  display: inline-block;
  padding: 8px 20px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.4px;
  background: rgba(255, 255, 255, 0.14);
  margin-bottom: 24px;
}

.blog-hero h1 {
  font-size: 52px;
  font-weight: 900;
  letter-spacing: -0.8px;
  max-width: 920px;
  margin: 0 auto 16px;
}

.blog-subtitle {
  font-size: 18px;
  color: #dbeafe;
  max-width: 760px;
  margin: 0 auto 18px;
}

.blog-meta {
  font-size: 14px;
  color: #bfdbfe;
}

/* =====================================================
   BLOG WRAPPER
===================================================== */
.blog-wrapper {
  max-width: 920px;
  margin: 50px auto 120px;
  padding: 0 20px;
}

/* =====================================================
   BLOG CONTENT CARD
===================================================== */
.blog-content {
  background: #ffffff;
  padding: 70px 70px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  animation: fadeUp 0.8s ease both;
}

.blog-content p {
  font-size: 16.5px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.blog-content h3 {
  font-size: 26px;
  font-weight: 800;
  margin-top: 48px;
  margin-bottom: 10px;
  color: var(--text-dark);
}

.blog-content h3::before {
  content: "";
  display: block;
  width: 40px;
  height: 4px;
  background: var(--primary);
  border-radius: 999px;
  margin-bottom: 14px;
}

.blog-content blockquote {
  margin: 48px 0;
  padding: 26px 30px;
  background: #f1f5f9;
  border-left: 5px solid var(--primary);
  border-radius: 14px;
  font-style: italic;
  font-weight: 500;
  color: #334155;
}

/* =====================================================
   KPI SECTION (INLINE, PREMIUM)
===================================================== */
.blog-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 70px 0;
}

.kpi-card {
  background: linear-gradient(135deg, #ffffff, #f8fafc);
  padding: 34px 26px;
  border-radius: 22px;
  text-align: center;
  box-shadow: var(--shadow-soft);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.kpi-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.kpi-card strong {
  display: block;
  font-size: 38px;
  font-weight: 900;
  color: var(--primary);
  margin-bottom: 6px;
}

.kpi-card span {
  font-size: 14px;
  font-weight: 600;
  color: #475569;
}

/* =====================================================
   AUTHOR BOX
===================================================== */
.author-box {
  background: #ffffff;
  padding: 36px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  margin-bottom: 50px;
}

.author-box h4 {
  font-weight: 800;
  margin-bottom: 8px;
}

.author-box p {
  color: var(--text-muted);
  margin: 0;
}

/* =====================================================
   SHARE BAR
===================================================== */
.share-box {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 600;
  margin-bottom: 50px;
}

.share-box a {
  padding: 8px 14px;
  border-radius: 999px;
  background: #f1f5f9;
  color: var(--text-dark);
  text-decoration: none;
  font-size: 14px;
  transition: background 0.3s ease;
}

.share-box a:hover {
  background: #e2e8f0;
}

/* =====================================================
   NEXT / PREVIOUS NAV
===================================================== */
.blog-nav {
  display: flex;
  justify-content: space-between;
  margin: 60px 0;
}

.blog-nav a {
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}

.blog-nav a:hover {
  text-decoration: underline;
}

/* =====================================================
   COMMENTS
===================================================== */
/* ================= COMMENTS (PREMIUM) ================= */
.premium-comments {
  margin: 100px auto;
}

.comments-inner {
  background: #ffffff;
  border-radius: 24px;
  padding: 50px 60px;
  max-width: 900px;
  margin: 0 auto;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.06);
}

.comments-title {
  font-size: 28px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 8px;
}

.comments-subtitle {
  font-size: 16px;
  color: #64748b;
  margin-bottom: 32px;
  max-width: 520px;
}

.comment-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.comment-form input,
.comment-form textarea {
  width: 100%;
  padding: 16px 18px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  font-size: 15px;
  font-family: inherit;
  transition: all 0.25s ease;
}

.comment-form textarea {
  resize: vertical;
}

.comment-form input:focus,
.comment-form textarea:focus {
  outline: none;
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}

.btn-submit {
  align-self: flex-start;
  padding: 14px 34px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 35px rgba(220, 38, 38, 0.35);
}

/* ================= MOBILE ================= */
@media (max-width: 768px) {
  .comments-inner {
    padding: 36px 24px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .btn-submit {
    width: 100%;
    text-align: center;
  }
}

/* =====================================================
   CTA SECTION
===================================================== */
.blog-cta {
  padding: 120px 20px;
  margin-bottom: 50px;
  background:
    radial-gradient(800px at top, rgba(255, 255, 255, 0.08), transparent),
    linear-gradient(135deg, var(--blue-dark), var(--dark));
  color: #ffffff;
  text-align: center;
}

.blog-cta h2 {
  font-size: 38px;
  font-weight: 900;
  margin-bottom: 14px;
}

.blog-cta p {
  max-width: 700px;
  margin: 0 auto 28px;
  color: #dbeafe;
}

.blog-cta .btn {
  padding: 14px 36px;
  border-radius: 999px;
  font-weight: 700;
}

/* =====================================================
   ANIMATIONS
===================================================== */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =====================================================
   RESPONSIVE
===================================================== */
@media (max-width: 991px) {
  .blog-hero {
    padding: 120px 20px 90px;
  }

  .blog-hero h1 {
    font-size: 36px;
  }

  .blog-content {
    padding: 40px 28px;
  }

  .blog-kpis {
    grid-template-columns: 1fr;
  }

  .blog-cta h2 {
    font-size: 28px;
  }
}
