/* ============================================================
   BLOG.CSS — Royal Technologies Blog
   Shared stylesheet for blog.html, blog-1.html, blog-2.html, blog-3.html
   Inherits design system from main site (colors, fonts, radii, spacing)
   ============================================================ */

/* ============================================================
   1. CSS CUSTOM PROPERTIES (matching index.html)
   ============================================================ */
:root {
  --pink: #ed2e72;
  --blue: #009fed;
  --dark-blue: #1561ed;
  --navy: #0f153c;
  --deep-navy: #01062a;
  --accent-blue: #218dc2;
  --green: #60d769;
  --bg: #f8faff;
  --white: #ffffff;
  --black: #000000;
  --text-muted: #918f8f;
  --border: #ededed;

  --gradient-brand: linear-gradient(178.81deg, #ed2e72 0%, rgba(237, 46, 114, 0) 100%),
    linear-gradient(to left, #009fed, #009fed);
  --gradient-icon: linear-gradient(230.92deg, rgba(130, 130, 130, 1) 0%, rgba(0, 0, 0, 1) 100%);

  --shadow-card: 0 2px 49.7px rgba(19, 42, 97, 0.11);
  --shadow-soft: 0 4px 44.6px rgba(217, 229, 255, 0.45);
  --shadow-nav: 0 4px 44.6px rgba(217, 229, 255, 0.45);

  --radius-card: 30px;
  --radius-btn: 50px;
  --radius-tag: 20px;

  --pad-x: 80px;
  --max-w: 1440px;

  --font-body: "Space Grotesk", sans-serif;
  --font-bold: "Space Grotesk", sans-serif;
}

/* ============================================================
   2. RESET
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--black);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

button {
  border: none;
  cursor: pointer;
  background: none;
  font: inherit;
}

input {
  border: none;
  outline: none;
  font: inherit;
}

ul,
ol {
  list-style: none;
}

/* ============================================================
   3. GOOGLE FONTS IMPORT
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Space+Grotesk:wght@300..700&display=swap');

/* ============================================================
   4. BUTTONS (matching index.html)
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 10px 10px 10px 20px;
  border-radius: var(--radius-btn);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  cursor: pointer;
  transition: opacity .2s, transform .25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow .3s ease;
  white-space: nowrap;
  border: 1px solid transparent;
}

.btn:hover {
  opacity: .88;
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0) scale(0.98);
}

.btn__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.btn__icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.btn--green {
  background: var(--green);
  color: var(--white);
  box-shadow: 0 5px 29.3px rgba(210, 255, 213, 1);
}

.btn--pink {
  background: var(--pink);
  color: var(--white);
  box-shadow: 0 5px 29.3px rgba(237, 46, 114, 0.3);
}

.btn--black {
  background: var(--black);
  color: var(--white);
  box-shadow: 0 4px 26.3px rgba(192, 212, 255, 0.35);
}

.btn--outline {
  background: transparent;
  color: var(--black);
  border: 1.5px solid var(--black);
  box-shadow: none;
  padding: 10px 20px;
}

.btn--outline:hover {
  background: var(--black);
  color: var(--white);
}

.btn__wa {
  width: 24px;
  height: 24px;
  object-fit: contain;
  flex-shrink: 0;
}

.btn--green {
  animation: pulseGlow 3s ease-in-out infinite;
}

/* ============================================================
   5. NAVBAR (matching index.html)
   ============================================================ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: var(--shadow-nav);
  width: 100%;
  animation: navbarSlideDown 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.navbar__wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 100px;
  padding: 0 var(--pad-x);
  max-width: var(--max-w);
  margin: 0 auto;
}

.navbar__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  width: 102px;
  height: 39px;
  overflow: hidden;
}

.navbar__logo img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.navbar__links {
  display: flex;
  align-items: center;
  gap: 45px;
}

.navbar__links a {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--black);
  transition: opacity .2s;
  position: relative;
}

.navbar__links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--pink);
  border-radius: 2px;
  transition: width 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.navbar__links a:hover::after {
  width: 100%;
}

.navbar__links a:hover {
  opacity: .6;
}

.navbar__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.navbar__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--black);
  border-radius: 2px;
  transition: .3s;
}

/* Mobile drawer */
.mobile-nav {
  display: none;
  position: fixed;
  top: 80px;
  left: 0;
  right: 0;
  background: var(--white);
  z-index: 999;
  flex-direction: column;
  padding: 20px 24px;
  gap: 0;
  box-shadow: 0 8px 30px rgba(0, 0, 0, .12);
  border-top: 1px solid #f0f0f0;
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav a {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--black);
  padding: 12px 0;
  border-bottom: 1px solid #f5f5f5;
  display: block;
}

.mobile-nav a:last-child {
  border-bottom: none;
}

.mobile-nav__cta {
  background: var(--green) !important;
  border-radius: var(--radius-btn) !important;
  padding: 12px 20px !important;
  color: var(--white) !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
  border-bottom: none !important;
}


/* ============================================================
   7. BLOG HERO SECTION
   ============================================================ */
.blog-hero {
  background: var(--navy);
  position: relative;
  overflow: hidden;
  padding: 80px var(--pad-x);
}

.blog-hero__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
}

/* Decorative blobs */
.blog-hero__blob1,
.blog-hero__blob2 {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(80px);
}

.blog-hero__blob1 {
  width: 400px;
  height: 400px;
  background: var(--pink);
  opacity: 0.18;
  top: -100px;
  left: -80px;
}

.blog-hero__blob2 {
  width: 350px;
  height: 350px;
  background: var(--blue);
  opacity: 0.18;
  bottom: -80px;
  right: -60px;
}

.blog-hero__label {
  font-size: 16px;
  font-weight: 600;
  color: var(--blue);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.blog-hero__title {
  font-family: var(--font-bold);
  font-size: 56px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
  max-width: 800px;
}

.blog-hero__title span {
  color: var(--pink);
}

.blog-hero__desc {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
  max-width: 620px;
}

/* ============================================================
   8. BLOG CATEGORIES FILTER
   ============================================================ */
.blog-categories {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0 var(--pad-x);
  position: sticky;
  top: 100px;
  z-index: 100;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

.blog-categories__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  gap: 8px;
  padding: 16px 0;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.blog-categories__inner::-webkit-scrollbar {
  display: none;
}

.cat-btn {
  flex-shrink: 0;
  padding: 8px 20px;
  border-radius: var(--radius-btn);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg);
  border: 1.5px solid var(--border);
  cursor: pointer;
  transition: all .2s ease;
  white-space: nowrap;
}

.cat-btn:hover,
.cat-btn.active {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

/* ============================================================
   9. BLOG GRID SECTION
   ============================================================ */
.blog-grid-section {
  padding: 80px var(--pad-x);
}

.blog-grid-section__inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* ============================================================
   10. BLOG CARD
   ============================================================ */
.blog-card {
  background: var(--white);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  transition: transform .35s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow .35s ease;
  will-change: transform;
}

.blog-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(19, 42, 97, 0.16);
}

.blog-card__img-wrap {
  position: relative;
  overflow: hidden;
  height: 220px;
}

.blog-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s cubic-bezier(0.22, 1, 0.36, 1);
}

.blog-card:hover .blog-card__img {
  transform: scale(1.07);
}

.blog-card__img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 56px;
}

.blog-card__img-placeholder--1 {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.blog-card__img-placeholder--2 {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.blog-card__img-placeholder--3 {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.blog-card__tag {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--pink);
  color: var(--white);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-btn);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.blog-card__tag--blue {
  background: var(--dark-blue);
}

.blog-card__tag--green {
  background: #0e9f6e;
}

.blog-card__body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}

.blog-card__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--text-muted);
}

.blog-card__meta-dot {
  width: 4px;
  height: 4px;
  background: var(--text-muted);
  border-radius: 50%;
}

.blog-card__title {
  font-family: var(--font-bold);
  font-size: 20px;
  font-weight: 700;
  color: var(--black);
  line-height: 1.35;
  transition: color .2s;
}

.blog-card:hover .blog-card__title {
  color: var(--pink);
}

.blog-card__excerpt {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.65;
  flex: 1;
}

.blog-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.blog-card__read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--pink);
  transition: gap .2s ease;
}

.blog-card__read-more:hover {
  gap: 12px;
}

.blog-card__read-more svg {
  width: 16px;
  height: 16px;
  stroke: var(--pink);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.blog-card__read-time {
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.blog-card__read-time svg {
  width: 14px;
  height: 14px;
  stroke: var(--text-muted);
  fill: none;
  stroke-width: 2;
}

/* ============================================================
   11. BLOG LISTING CTA SECTION
   ============================================================ */
.blog-cta {
  background: var(--navy);
  padding: 80px var(--pad-x);
  position: relative;
  overflow: hidden;
}

.blog-cta__blob {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: var(--pink);
  opacity: 0.1;
  filter: blur(100px);
  top: -200px;
  right: -100px;
  pointer-events: none;
}

.blog-cta__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.blog-cta__text {}

.blog-cta__label {
  font-size: 16px;
  color: var(--blue);
  font-weight: 600;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.blog-cta__title {
  font-family: var(--font-bold);
  font-size: 42px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  max-width: 560px;
}

.blog-cta__title span {
  color: var(--pink);
}

.blog-cta__actions {
  display: flex;
  gap: 16px;
  flex-shrink: 0;
}

/* ============================================================
   12. INDIVIDUAL BLOG PAGE — HERO
   ============================================================ */
.post-hero {
  background: var(--navy);
  padding: 60px var(--pad-x) 0;
  position: relative;
  overflow: hidden;
}

.post-hero__inner {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.post-hero__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 32px;
  transition: color .2s, gap .2s;
}

.post-hero__back:hover {
  color: var(--white);
  gap: 12px;
}

.post-hero__back svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.post-hero__tag {
  display: inline-flex;
  background: var(--pink);
  color: var(--white);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: var(--radius-btn);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}

.post-hero__title {
  font-family: var(--font-bold);
  font-size: 52px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 24px;
}

.post-hero__meta {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 48px;
}

.post-hero__meta-dot {
  width: 4px;
  height: 4px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
}

.post-hero__featured-img-wrap {
  border-radius: var(--radius-card) var(--radius-card) 0 0;
  overflow: hidden;
  height: 380px;
}

.post-hero__featured-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-hero__featured-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 80px;
}

.post-hero__featured-placeholder--1 {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.post-hero__featured-placeholder--2 {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.post-hero__featured-placeholder--3 {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

/* Blobs for post hero */
.post-hero__blob1,
.post-hero__blob2 {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(80px);
}

.post-hero__blob1 {
  width: 400px;
  height: 400px;
  background: var(--pink);
  opacity: 0.14;
  top: -100px;
  right: -80px;
}

.post-hero__blob2 {
  width: 300px;
  height: 300px;
  background: var(--blue);
  opacity: 0.12;
  bottom: 0;
  left: -60px;
}

/* ============================================================
   13. BLOG POST CONTENT
   ============================================================ */
.post-layout {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  align-items: start;
  padding-top: 60px;
  padding-bottom: 80px;
}

.post-content {
  min-width: 0;
}

/* Typography for blog content */
.post-content h2 {
  font-family: var(--font-bold);
  font-size: 30px;
  font-weight: 700;
  color: var(--black);
  margin-top: 48px;
  margin-bottom: 16px;
  line-height: 1.25;
}

.post-content h3 {
  font-family: var(--font-bold);
  font-size: 22px;
  font-weight: 700;
  color: var(--black);
  margin-top: 32px;
  margin-bottom: 12px;
  line-height: 1.3;
}

.post-content p {
  font-size: 17px;
  color: #444;
  line-height: 1.8;
  margin-bottom: 20px;
}

.post-content ul,
.post-content ol {
  padding-left: 24px;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.post-content ul {
  list-style: disc;
}

.post-content ol {
  list-style: decimal;
}

.post-content li {
  font-size: 16px;
  color: #444;
  line-height: 1.7;
}

.post-content strong {
  font-weight: 700;
  color: var(--black);
}

/* Highlight quote / info box */
.post-highlight {
  background: linear-gradient(135deg, rgba(237, 46, 114, 0.06) 0%, rgba(0, 159, 237, 0.06) 100%);
  border-left: 4px solid var(--pink);
  border-radius: 0 var(--radius-card) var(--radius-card) 0;
  padding: 24px 28px;
  margin: 36px 0;
}

.post-highlight p {
  font-size: 18px;
  font-weight: 600;
  color: var(--black);
  line-height: 1.6;
  margin: 0;
  font-style: italic;
}

/* Info box */
.post-infobox {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-card);
  padding: 28px;
  margin: 36px 0;
  box-shadow: var(--shadow-soft);
}

.post-infobox__title {
  font-family: var(--font-bold);
  font-size: 16px;
  font-weight: 700;
  color: var(--accent-blue);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.post-infobox__title svg {
  width: 18px;
  height: 18px;
  stroke: var(--accent-blue);
  fill: none;
  stroke-width: 2;
  flex-shrink: 0;
}

.post-infobox ul {
  list-style: none;
  padding: 0;
  gap: 8px;
}

.post-infobox li {
  font-size: 15px;
  color: #444;
  padding-left: 20px;
  position: relative;
}

.post-infobox li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--pink);
  font-weight: 700;
}

/* Funnel / step list */
.post-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 28px 0;
}

.post-step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--white);
  border-radius: 18px;
  padding: 20px 24px;
  box-shadow: var(--shadow-card);
}

.post-step__num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pink), var(--blue));
  color: var(--white);
  font-weight: 700;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.post-step__text strong {
  display: block;
  font-size: 16px;
  margin-bottom: 4px;
}

.post-step__text span {
  font-size: 14px;
  color: var(--text-muted);
}

/* Post CTA at the end of article */
.post-cta-inline {
  background: linear-gradient(135deg, var(--navy), #1a2a6e);
  border-radius: var(--radius-card);
  padding: 40px;
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}

.post-cta-inline__title {
  font-family: var(--font-bold);
  font-size: 26px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
}

.post-cta-inline__desc {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.7);
  max-width: 480px;
  line-height: 1.6;
}

.post-cta-inline__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ============================================================
   14. SIDEBAR
   ============================================================ */
.post-sidebar {
  position: sticky;
  top: 130px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sidebar-widget {
  background: var(--white);
  border-radius: var(--radius-card);
  padding: 28px;
  box-shadow: var(--shadow-card);
}

.sidebar-widget__title {
  font-family: var(--font-bold);
  font-size: 18px;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--border);
}

/* TOC */
.toc-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toc-list a {
  font-size: 14px;
  color: var(--text-muted);
  padding: 6px 12px;
  border-radius: 10px;
  transition: background .2s, color .2s;
  display: block;
  border-left: 2px solid transparent;
}

.toc-list a:hover,
.toc-list a.active {
  background: var(--bg);
  color: var(--pink);
  border-left-color: var(--pink);
}

/* Related posts */
.related-post {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.related-post:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.related-post__img {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
}

.related-post__img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.related-post__img-placeholder--1 {
  background: linear-gradient(135deg, #f093fb, #f5576c);
}

.related-post__img-placeholder--2 {
  background: linear-gradient(135deg, #4facfe, #00f2fe);
}

.related-post__img-placeholder--3 {
  background: linear-gradient(135deg, #43e97b, #38f9d7);
}

.related-post__info {}

.related-post__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--black);
  line-height: 1.35;
  margin-bottom: 4px;
  transition: color .2s;
}

.related-post:hover .related-post__title {
  color: var(--pink);
}

.related-post__date {
  font-size: 12px;
  color: var(--text-muted);
}

/* Sidebar CTA */
.sidebar-cta {
  background: linear-gradient(180deg, var(--pink) 0%, var(--blue) 100%);
  border-radius: var(--radius-card);
  padding: 28px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.sidebar-cta__title {
  font-family: var(--font-bold);
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
}

.sidebar-cta__desc {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.5;
}

.btn--white {
  background: var(--white);
  color: var(--navy);
  border: none;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  padding: 10px 20px;
  height: 46px;
  font-weight: 600;
}

.btn--white:hover {
  opacity: 0.9;
}

/* ============================================================
   15. SCROLL ANIMATIONS
   ============================================================ */
.anim-fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.anim-fade-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.anim-fade-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.anim-scale-in {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.anim-revealed {
  opacity: 1 !important;
  transform: none !important;
}

.anim-delay-1 {
  transition-delay: 0.08s !important;
}

.anim-delay-2 {
  transition-delay: 0.16s !important;
}

.anim-delay-3 {
  transition-delay: 0.24s !important;
}

.anim-delay-4 {
  transition-delay: 0.32s !important;
}

/* ============================================================
   16. KEYFRAME ANIMATIONS
   ============================================================ */
@keyframes navbarSlideDown {
  from {
    opacity: 0;
    transform: translateY(-100%);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulseGlow {

  0%,
  100% {
    box-shadow: 0 5px 29.3px rgba(96, 215, 105, 0.6);
  }

  50% {
    box-shadow: 0 5px 40px rgba(96, 215, 105, 0.95), 0 0 0 6px rgba(96, 215, 105, 0.15);
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

/* Hero text animations */
.blog-hero__label {
  animation: fadeUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
}

.blog-hero__title {
  animation: fadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.35s both;
}

.blog-hero__desc {
  animation: fadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.5s both;
}

.post-hero__back {
  animation: fadeUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
}

.post-hero__tag {
  animation: fadeUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
}

.post-hero__title {
  animation: fadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.35s both;
}

.post-hero__meta {
  animation: fadeUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.5s both;
}

.post-hero__featured-img-wrap {
  animation: fadeUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.6s both;
}

/* ============================================================
   17. RESPONSIVE — TABLET (769–1100px)
   ============================================================ */
@media (min-width: 769px) and (max-width: 1100px) {
  :root {
    --pad-x: 40px;
  }

  .navbar__wrap {
    padding: 0 40px;
  }

  .navbar__links,
  .navbar__cta {
    display: none !important;
  }

  .navbar__hamburger {
    display: flex !important;
  }

  .mobile-nav {
    top: 100px;
  }

  .blog-hero {
    padding: 60px 40px;
  }

  .blog-hero__title {
    font-size: 42px;
  }

  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .blog-grid-section {
    padding: 60px 40px;
  }

  .blog-cta {
    padding: 60px 40px;
  }

  .blog-cta__inner {
    flex-direction: column;
    gap: 28px;
  }

  .blog-cta__title {
    font-size: 34px;
  }

  .post-hero {
    padding: 50px 40px 0;
  }

  .post-hero__title {
    font-size: 38px;
  }

  .post-layout {
    padding: 48px 40px 60px;
    grid-template-columns: 1fr;
  }

  .post-sidebar {
    position: static;
  }

  .blog-categories {
    padding: 0 40px;
  }

  .footer__inner {
    padding: 48px 40px;
  }

  .footer__main {
    flex-direction: column;
    gap: 32px;
  }

  .footer__contact-card {
    min-width: 100%;
  }
}

/* ============================================================
   18. RESPONSIVE — MOBILE (≤768px)
   ============================================================ */
@media (max-width: 768px) {
  :root {
    --pad-x: 20px;
    --radius-card: 20px;
  }

  body {
    overflow-x: hidden;
  }

  /* Navbar */
  .navbar__wrap {
    padding: 0 20px;
    height: 68px;
  }

  .navbar__links,
  .navbar__cta {
    display: none !important;
  }

  .navbar__hamburger {
    display: flex !important;
  }

  .navbar__logo {
    width: 90px;
    height: auto;
  }

  .mobile-nav {
    top: 68px;
  }

  /* Blog hero */
  .blog-hero {
    padding: 50px 20px;
  }

  .blog-hero__title {
    font-size: 32px;
  }

  .blog-hero__desc {
    font-size: 15px;
  }

  /* Categories */
  .blog-categories {
    padding: 0 20px;
    top: 68px;
  }

  /* Blog grid */
  .blog-grid-section {
    padding: 48px 20px;
  }

  .blog-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .blog-card__img-wrap {
    height: 200px;
  }

  .blog-card__title {
    font-size: 18px;
  }

  /* Blog CTA */
  .blog-cta {
    padding: 50px 20px;
  }

  .blog-cta__inner {
    flex-direction: column;
    gap: 24px;
  }

  .blog-cta__title {
    font-size: 28px;
  }

  .blog-cta__actions {
    flex-direction: column;
    width: 100%;
  }

  .blog-cta__actions .btn {
    justify-content: center;
  }

  /* Post hero */
  .post-hero {
    padding: 40px 20px 0;
  }

  .post-hero__title {
    font-size: 28px;
  }

  .post-hero__meta {
    flex-wrap: wrap;
    gap: 10px;
  }

  .post-hero__featured-img-wrap {
    height: 220px;
  }

  /* Post layout */
  .post-layout {
    padding: 32px 20px 50px;
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .post-sidebar {
    position: static;
  }

  /* Post content */
  .post-content h2 {
    font-size: 24px;
    margin-top: 36px;
  }

  .post-content h3 {
    font-size: 20px;
  }

  .post-content p {
    font-size: 15px;
  }

  .post-cta-inline {
    padding: 28px 20px;
  }

  .post-cta-inline__title {
    font-size: 22px;
  }

  .post-cta-inline__actions {
    flex-direction: column;
    width: 100%;
  }

  .post-cta-inline__actions .btn {
    justify-content: center;
  }

  /* Footer */
  .footer__inner {
    padding: 48px 20px 32px;
    gap: 36px;
  }

  .footer__main {
    flex-direction: column !important;
    gap: 32px !important;
    align-items: flex-start !important;
  }

  .footer__brand {
    width: 100%;
  }

  .footer__logo {
    width: 140px;
  }

  .footer__tagline {
    font-size: 14px;
  }

  .footer__links-col {
    width: 100%;
    padding: 0;
  }

  .footer__contact-col {
    width: 100%;
  }

  .footer__contact-card {
    width: 100%;
    min-width: unset;
    border-radius: 20px;
    padding: 20px 16px;
  }

  .footer__contact-list {
    height: auto;
    gap: 16px;
  }

  .footer__contact-text {
    font-size: 14px;
  }

  .footer__legal {
    gap: 16px;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .footer__legal a {
    font-size: 13px;
  }

  .btn {
    height: 48px;
    font-size: 15px;
    padding: 8px 8px 8px 18px;
  }

  .btn__icon {
    width: 28px;
    height: 28px;
  }
}

/* Small mobile */
@media (max-width: 390px) {
  .blog-hero__title {
    font-size: 26px !important;
  }

  .post-hero__title {
    font-size: 24px !important;
  }

  .blog-cta__title {
    font-size: 24px !important;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}