/* ─── TOKENS ─────────────────────────────────────────────── */
:root {
  --bg-body: #fdfdfd;
  --bg-alt: #f8f9fa;
  --card-bg: #ffffff;
  --text-main: #1a1a1a;
  --text-muted: #64748b;
  --accent-navy: #0f172a;
  --primary: #3b82f6;
  --primary-hover: #2563eb;
  --accent-blue: #2563eb;
  --accent-green: #16a34a;
  --border-color: #e5e7eb;
  --border-subtle: #f1f5f9;
  --nav-height: 68px;
  --radius-card: 10px;
  --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.06), 0 4px 16px rgba(0, 0, 0, 0.04);
  --shadow-hover: 0 8px 32px rgba(0, 0, 0, 0.10);
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── RESET ──────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
  background: var(--bg-body);
  color: var(--text-main);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

section[id] {
  scroll-margin-top: var(--nav-height);
}

/* ═══════════════════════════════════════════════════════════
  HEADER / NAV
═══════════════════════════════════════════════════════════ */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  padding: 0 5%;
  gap: 24px;
}

header>.header-inner {
  width: 100%;
  max-width: 1552px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.logo {
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--accent-navy);
  letter-spacing: -0.03em;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  text-transform: uppercase;
}

.logo-name {
  color: var(--accent-blue);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: flex-start;
  padding-left: 32px;
}

/* UPDATED NAV LINK: Smaller, bolder, editorial style */
.nav-link {
  font-size: 12px;
  font-weight: 700;
  color: #1f2937;
  padding: 6px 12px;
  border-radius: 6px;
  transition: var(--transition);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent-navy);
  background: var(--border-subtle);
}

.nav-link.active {
  color: var(--accent-blue);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.btn {
  font-size: 12.5px;
  font-weight: 700;
  padding: 0 16px;
  border-radius: 6px;
  transition: var(--transition);
  white-space: nowrap;
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  box-sizing: border-box;
}

.btn-about {
  color: #fff;
  background: var(--accent-blue);
  border: 1px solid var(--accent-blue);
}

.btn-about:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

/* Header Social Icons (Micro-cluster) */
.header-socials {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 2px;
}

.social-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 7px;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid var(--border-color);
  font-size: 15px;
  transition: var(--transition);
  text-decoration: none;
  cursor: pointer;
}

.social-icon-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.social-icon-btn.linkedin:hover {
  color: #fff;
  background: #0A66C2;
  border-color: #0A66C2;
}

.social-icon-btn.youtube:hover {
  color: #fff;
  background: #FF0000;
  border-color: #FF0000;
}

.social-icon-btn.instagram:hover {
  color: #fff;
  background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
  border-color: #e1306c;
}

.social-icon-btn.whatsapp:hover {
  color: #fff;
  background: #25D366;
  border-color: #25D366;
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.btn-follow {
  color: #0A66C2;
  border: 1px solid #0A66C2;
  background: transparent;
}

.btn-follow:hover {
  background: #f0f7ff;
}

.btn-join {
  color: #fff;
  background: var(--accent-green);
  border: 1px solid var(--accent-green);
}

.btn-join:hover {
  background: #15803d;
  transform: translateY(-1px);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  border: none;
  background: none;
  border-radius: 6px;
  margin-left: auto;
  flex-shrink: 0;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--accent-navy);
  border-radius: 2px;
  transition: var(--transition);
}

.mobile-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border-bottom: 1px solid var(--border-color);
  padding: 16px 5% 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.mobile-nav.open {
  display: block;
}

.mobile-nav>a {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  padding: 10px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.mobile-nav>a:last-of-type {
  border-bottom: none;
}

.mobile-nav-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 14px;
}

.mobile-nav-actions .btn {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 13px;
  padding: 10px 16px;
  width: 100%;
}

.mobile-social-header {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin: 16px 0 10px 0;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
}

.mobile-nav-socials {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.mobile-social-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--border-color);
  background: #f8fafc;
  color: var(--text-main);
  text-decoration: none;
  transition: var(--transition);
}

.mobile-social-card:hover {
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.mobile-social-card i {
  font-size: 16px;
  width: 18px;
  text-align: center;
}

.mobile-social-card.linkedin i { color: #0A66C2; }
.mobile-social-card.youtube i { color: #FF0000; }
.mobile-social-card.instagram i { color: #E1306C; }
.mobile-social-card.whatsapp i { color: #25D366; }

/* ═══════════════════════════════════════════════════════════
  HERO CAROUSEL & SLIDES
═══════════════════════════════════════════════════════════ */
.hero-carousel-wrapper {
  position: relative;
  overflow: hidden;
  width: 100%;
  margin-top: var(--nav-height);
  touch-action: pan-y;
  background-color: var(--accent-navy);
}

/* NEW: Carousel Navigation Arrows */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 30;
  background: rgba(15, 23, 42, 0.35);
  /* Semi-transparent */
  color: rgba(255, 255, 255, 0.8);
  border: none;
  width: 38px;
  /* Small, elegant size */
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  opacity: 0;
  /* Hidden by default */
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.hero-carousel-wrapper:hover .carousel-arrow {
  opacity: 1;
}

.carousel-arrow:hover {
  background: rgba(15, 23, 42, 0.85);
  color: #ffffff;
  transform: translateY(-50%) scale(1.05);
}

.carousel-arrow i {
  font-size: 14px;
}

.prev-arrow {
  left: 2.5%;
}

.next-arrow {
  right: 2.5%;
}

@media (max-width: 768px) {
  .carousel-arrow {
    display: none;
  }
}

/* END NEW ARROWS */

.hero-carousel-track {
  display: flex;
  width: 100%;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  background-color: var(--accent-navy);
}

.hero {
  flex: 0 0 100%;
  width: 100%;
  box-sizing: border-box;
  min-height: calc(90vh - var(--nav-height));
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.hero-left {
  padding: 80px 6% 180px 8%;
  position: relative;
  z-index: 2;
  pointer-events: none;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 28px;
  transition: color 0.3s ease;
}

.hero-eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.4;
    transform: scale(1.4);
  }
}

.hero h1 {
  font-family: 'Newsreader', Georgia, serif;
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  line-height: 1.12;
  color: #ffffff;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.hero h1 em {
  font-style: italic;
  color: #93c5fd;
}

.hero-sub {
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
  color: #94a3b8;
  max-width: 400px;
  margin-bottom: 40px;
  font-weight: 400;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  position: relative;
  z-index: 10;
  pointer-events: auto;
}

.hero-cta {
  background-color: transparent;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 7px;
  font-size: 13.5px;
  font-weight: 700;
  transition: var(--transition);
}

.hero-cta:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
  border-color: #ffffff;
}

.hero-right {
  position: relative;
  height: 100%;
  min-height: calc(90vh - var(--nav-height));
  overflow: hidden;
  pointer-events: none;
}

.hero-img-container {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
  transform: translateZ(0);
}

@media (hover: hover) and (pointer: fine) {
  .hero.slide:hover .hero-img-container {
    transform: scale(1.04);
  }
}

@keyframes slideExitImage {
  to {
    transform: scale(1.15);
    opacity: 0;
  }
}

@keyframes slideExitText {
  to {
    transform: translateX(-20px);
    opacity: 0;
  }
}

.hero.slide.navigating-out .hero-img-container {
  animation: slideExitImage 0.35s forwards;
}

.hero.slide.navigating-out .hero-left {
  animation: slideExitText 0.35s forwards;
}

@keyframes heroFloat {
  0% {
    transform: scale(1.02);
  }

  100% {
    transform: scale(1.06);
  }
}

.hero-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.88;
  filter: grayscale(5%) contrast(105%) brightness(0.88);
  animation: none;
  transform-origin: center;
}

.hero.slide.is-active .hero-img-container img {
  animation: heroFloat 18s ease-in-out infinite alternate;
}

.hero-carousel-track.is-transitioning .hero-img-container img {
  animation-play-state: paused !important;
}

/* Slide 4 Desktop Headroom */
@media (min-width: 769px) {
  .slide-4 .hero-img-container img {
    object-position: center 15%;
  }
}

/* Base Gradient Overlay (Desktop) */
.hero-overlay-gradient {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: linear-gradient(to right, #0f172a 0%, rgba(15, 23, 42, 0.97) 8%, rgba(15, 23, 42, 0.88) 18%, rgba(15, 23, 42, 0.72) 28%, rgba(15, 23, 42, 0.52) 40%, rgba(15, 23, 42, 0.30) 55%, rgba(15, 23, 42, 0.12) 72%, rgba(15, 23, 42, 0.04) 86%, rgba(15, 23, 42, 0) 100%);
}

.slide-1 .hero-eyebrow {
  color: #60a5fa;
}

.slide-1 .hero-eyebrow-dot {
  background: #60a5fa;
}

.slide-2 .hero-eyebrow {
  color: #818cf8;
}

.slide-2 .hero-eyebrow-dot {
  background: #818cf8;
}

.slide-2 .hero-overlay-gradient {
  background: linear-gradient(to right, #0f172a 0%, rgba(15, 23, 42, 0.97) 8%, rgba(20, 25, 50, 0.4) 50%, rgba(30, 40, 90, 0.1) 100%);
}

.slide-3 .hero-eyebrow {
  color: #94a3b8;
}

.slide-3 .hero-eyebrow-dot {
  background: #94a3b8;
}

.slide-3 .hero-overlay-gradient {
  background: linear-gradient(to right, #0f172a 0%, rgba(15, 23, 42, 0.97) 8%, rgba(15, 20, 30, 0.5) 50%, rgba(0, 0, 0, 0) 100%);
}

.slide-4 .hero-eyebrow {
  color: #cbd5e1;
}

.slide-4 .hero-eyebrow-dot {
  background: #cbd5e1;
}

.slide-5 .hero-eyebrow {
  color: #38bdf8;
}

.slide-5 .hero-eyebrow-dot {
  background: #38bdf8;
}

.slide-5 .hero-overlay-gradient {
  background: linear-gradient(to right, #0f172a 0%, rgba(15, 23, 42, 0.97) 8%, rgba(10, 35, 50, 0.3) 50%, rgba(0, 0, 0, 0) 100%);
}

.slide-6 .hero-eyebrow {
  color: #a1a1aa;
}

.slide-6 .hero-eyebrow-dot {
  background: #a1a1aa;
}

.slide-6 .hero-overlay-gradient {
  background: linear-gradient(to right, #0f172a 0%, rgba(15, 23, 42, 0.97) 8%, rgba(15, 20, 30, 0.4) 50%, rgba(0, 0, 0, 0) 100%);
}

/* Slide 1 Inline Stats */
.hero-stats-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
  margin-top: 2rem;
  pointer-events: none;
}

.hero-stat-item {
  display: flex;
  flex-direction: column;
}

.hero-stat-item .stat-val {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.75rem;
  font-weight: 800;
  color: #fff;
}

.hero-stat-item .stat-lbl {
  font-size: 0.875rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
  margin-top: 0.25rem;
}

/* Navigation Progress Bars - Positioned Bottom Left over text background */
.carousel-progress {
  position: absolute;
  bottom: 35px;
  left: 8%;
  display: flex;
  gap: 10px;
  z-index: 20;
}

.progress-bar {
  width: 32px;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.progress-bar:hover {
  background: rgba(255, 255, 255, 0.4);
}

.progress-bar.active {
  width: 48px;
  background: rgba(255, 255, 255, 0.3);
}

.progress-bar.active::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: #ffffff;
  animation: progressFill 10s linear forwards;
}

@keyframes progressFill {
  0% {
    width: 0%;
  }

  100% {
    width: 100%;
  }
}

.carousel-progress.manual-mode .progress-bar.active::after {
  animation: none;
  width: 100%;
  background: #ffffff;
}

/* ═══════════════════════════════════════════════════════════
  SHARED SECTION CHROME
═══════════════════════════════════════════════════════════ */
.section-wrap {
  padding: 96px 8%;
}

.section-wrap.alt {
  background: var(--bg-alt);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 56px;
  flex-wrap: wrap;
}

.section-label {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-blue);
  display: block;
  margin-bottom: 8px;
}

.section-title {
  font-family: 'Newsreader', Georgia, serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--accent-navy);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.section-view-all {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-blue);
  border: 1px solid var(--border-color);
  padding: 8px 18px;
  border-radius: 6px;
  transition: var(--transition);
  white-space: nowrap;
  flex-shrink: 0;
}

.section-view-all:hover {
  background: var(--accent-blue);
  border-color: var(--accent-blue);
  color: #fff;
}

/* ═══════════════════════════════════════════════════════════
  TOOLS SECTION
═══════════════════════════════════════════════════════════ */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}

@media (min-width: 769px) {
  .tools-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.hidden {
  display: none !important;
}

.tool-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-card);
  padding: 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  text-decoration: none;
  color: inherit;
}

.tool-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-blue), #60a5fa);
  opacity: 0;
  transition: var(--transition);
}

.tool-card.theme-green::before {
  background: linear-gradient(90deg, var(--accent-green), #34d399);
}

@media (hover: hover) {
  .tool-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: #c7d2fe;
  }

  .tool-card:hover::before {
    opacity: 1;
  }

  .tool-card.theme-green:hover {
    border-color: #a7f3d0;
  }
}

.tool-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 2px;
}

.tool-card-identity {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tool-icon-wrap {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #eff6ff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-blue);
  font-size: 1rem;
  flex-shrink: 0;
}

.tool-chip {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-blue);
  background: #eff6ff;
  padding: 2px 8px;
  border-radius: 20px;
}

.tool-card.theme-green .tool-icon-wrap {
  color: var(--accent-green);
  background: #ecfdf5;
}

.tool-card.theme-green .tool-chip {
  color: var(--accent-green);
  background: #ecfdf5;
}

.tool-card.theme-green .tool-cta {
  color: var(--accent-green);
}

/* Card Footer Row: Left-aligned date, Right-aligned CTA */
.tool-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid #f1f5f9;
}

.tool-card-footer .tool-cta:only-child {
  margin-left: auto;
}

.tool-footer-date {
  font-size: 11.5px;
  font-weight: 500;
  color: #94a3b8;
  letter-spacing: 0.01em;
  line-height: 1;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.tool-footer-date i {
  font-size: 10.5px;
  color: #cbd5e1;
}

.tool-title {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent-navy);
  line-height: 1.3;
}

.tool-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  flex: 1;
}

.tool-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-blue);
  margin-top: 4px;
  transition: var(--transition);
}

@media (hover: hover) {
  .tool-cta:hover {
    gap: 10px;
  }
}

/* ═══════════════════════════════════════════════════════════
  INSIGHTS / POSTS SECTION
═══════════════════════════════════════════════════════════ */
.insights-tabs {
  display: flex;
  gap: 0;
  margin-bottom: -1px;
  padding: 0;
  overflow-x: auto;
  scrollbar-width: none;
  position: relative;
  z-index: 2;
}

.insights-tabs::-webkit-scrollbar {
  display: none;
}

.insight-tab {
  background: #f1f5f9;
  border: 1px solid var(--border-color);
  margin-left: -1px;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 0;
  transition: all 0.2s ease;
  white-space: nowrap;
  position: relative;
  z-index: 1;
}

.insight-tab:first-child {
  margin-left: 0;
  border-top-left-radius: 12px;
}

.insight-tab:last-child {
  border-top-right-radius: 12px;
}

.insight-tab:hover {
  background: #e2e8f0;
  color: var(--accent-navy);
  z-index: 2;
}

.insight-tab.active {
  background: var(--card-bg);
  border-bottom-color: var(--card-bg);
  color: var(--accent-blue);
  z-index: 3;
}

.insight-tab.active::before,
.insight-tab.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  width: 12px;
  height: 12px;
  pointer-events: none;
}

.insight-tab.active::before {
  left: -13px;
  border-bottom-right-radius: 12px;
  box-shadow: 6px 6px 0 6px var(--card-bg);
  border: 1px solid var(--border-color);
  border-top: none;
  border-left: none;
  background: transparent;
}

.insight-tab:first-child.active::before {
  display: none;
}

.insight-tab.active::after {
  right: -13px;
  border-bottom-left-radius: 12px;
  box-shadow: -6px 6px 0 6px var(--card-bg);
  border: 1px solid var(--border-color);
  border-top: none;
  border-right: none;
  background: transparent;
}

.insights-tab-pane {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 0 12px 12px 12px;
  padding: 32px;
  position: relative;
  z-index: 1;
  box-shadow: var(--shadow-card);
}

@media (max-width: 768px) {
  .insights-tab-pane {
    padding: 20px;
    border-radius: 0 8px 8px 8px;
  }

  .insights-tabs {
    padding: 0;
  }

  .insight-tab {
    padding: 10px 16px;
    font-size: 13px;
  }
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 36px;
}

.post-card.hidden {
  display: none !important;
}

.post-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-alt);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-card);
}

.post-thumb-wrap {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--border-subtle);
  position: relative;
}

.post-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.post-thumb[src$=".jpeg"],
.post-thumb[src$=".jpg"] {
  filter: brightness(0.88) contrast(1.05) saturate(0.9);
}

@media (hover: hover) {
  .post-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
  }

  .post-card:hover .post-thumb {
    transform: scale(1.04);
  }
}

.post-body {
  padding: 24px 24px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.post-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.post-category {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-blue);
  margin-bottom: 0;
}

.post-date {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.post-title {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent-navy);
  line-height: 1.3;
  margin-bottom: 10px;
}

.post-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 18px;
}

.post-read-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--accent-navy);
  padding-bottom: 1px;
  border-bottom: 1.5px solid transparent;
  transition: var(--transition);
}

@media (hover: hover) {
  .post-read-link:hover {
    border-color: var(--accent-navy);
    gap: 10px;
  }
}

/* ═══════════════════════════════════════════════════════════
  PRESENTATIONS TIMELINE
═══════════════════════════════════════════════════════════ */
#presentations {
  background: var(--bg-alt);
}

.timeline {
  position: relative;
  padding-left: 32px;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent-blue) 0%, #c7d2fe 100%);
  border-radius: 2px;
}

.timeline-entry {
  position: relative;
  margin-bottom: 48px;
}

.timeline-entry:last-child {
  margin-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -40px;
  top: 16px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent-blue);
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px var(--accent-blue);
}

.tl-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  display: grid;
  grid-template-columns: 1fr 45%;
  align-items: stretch;
}

.tl-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.tl-body {
  padding: 32px 36px;
}

.tl-event-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-blue);
  background: #eff6ff;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.tl-pres-title {
  font-family: 'Newsreader', Georgia, serif;
  font-size: clamp(1.2rem, 2.5vw, 1.55rem);
  font-weight: 700;
  color: var(--accent-navy);
  line-height: 1.2;
  margin-bottom: 12px;
}

.tl-pres-sub {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 24px;
}

.tl-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 28px;
}

.tl-meta-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

.tl-meta-item i {
  color: var(--accent-blue);
  font-size: 12px;
}

.tl-view-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--accent-navy);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 11px 22px;
  border-radius: 7px;
  transition: var(--transition);
}

.tl-view-btn:hover {
  background: var(--accent-blue);
  transform: translateY(-1px);
}

.tl-visual {
  position: relative;
  background: #f8fafc;
  border-left: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow: hidden;
  cursor: pointer;
}

.tl-visual img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  opacity: 0.97;
  transition: transform 0.4s ease, opacity 0.3s ease;
}

.tl-visual:hover img {
  transform: scale(1.04);
  opacity: 1;
}

.tl-placeholder {
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
  border: 2px dashed var(--border-color);
  border-radius: var(--radius-card);
  padding: 36px;
  text-align: center;
  color: var(--text-muted);
}

.tl-placeholder-icon {
  font-size: 2rem;
  color: #cbd5e1;
  margin-bottom: 12px;
}

.tl-placeholder p {
  font-size: 0.9rem;
  font-style: italic;
}

/* ═══════════════════════════════════════════════════════════
  FOOTER (Injected)
═══════════════════════════════════════════════════════════ */
footer {
  background: var(--accent-navy);
  color: #fff;
  padding: 48px 8% 32px;
  border-top: 1px solid #1e293b;
}

.footer-inner {
  max-width: 1552px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-bottom: 28px;
  margin-bottom: 28px;
  border-bottom: 1px solid #1e293b;
}

.footer-logo {
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 15px;
}

.footer-logo span {
  color: #60a5fa;
}

.footer-tagline {
  font-size: 13px;
  color: #64748b;
  white-space: nowrap;
}

.footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
}

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.footer-links a {
  font-size: 13px;
  color: #94a3b8;
  font-weight: 500;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #60a5fa;
}

/* Footer Social Icon Bar (Right-aligned with links) */
.footer-social-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.footer-social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 14px;
  transition: var(--transition);
  text-decoration: none;
}

.footer-social-icon:hover {
  transform: translateY(-3px);
  color: #ffffff;
}

.footer-social-icon.linkedin:hover {
  background: #0A66C2;
  border-color: #0A66C2;
  box-shadow: 0 4px 14px rgba(10, 102, 194, 0.45);
}

.footer-social-icon.youtube:hover {
  background: #FF0000;
  border-color: #FF0000;
  box-shadow: 0 4px 14px rgba(255, 0, 0, 0.45);
}

.footer-social-icon.instagram:hover {
  background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
  border-color: #e1306c;
  box-shadow: 0 4px 14px rgba(225, 48, 108, 0.45);
}

.footer-social-icon.whatsapp:hover {
  background: #25D366;
  border-color: #25D366;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.45);
}

.footer-copy {
  font-size: 12px;
  color: #475569;
  text-align: center;
}

.section-divider {
  height: 1px;
  background: var(--border-color);
}

/* ═══════════════════════════════════════════════════════════
  ABOUT PAGE SOCIAL ROW
═══════════════════════════════════════════════════════════ */
.about-social-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 1.25rem;
  width: 100%;
}

.about-social-row .social-icon-btn {
  width: 38px;
  height: 38px;
  font-size: 16px;
}

/* ═══════════════════════════════════════════════════════════
  CALCULATORS PAGE LAYOUT OVERRIDES (Global)
═══════════════════════════════════════════════════════════ */
.calculators-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px 30px;
}

.calc-wrapper {
  display: flex;
  flex-direction: column;
}

@media (min-width: 1024px) {
  .container {
    max-width: 1300px !important;
  }

  .calculators-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .section-divider {
    display: none !important;
  }
}

/* ═══════════════════════════════════════════════════════════
  RESPONSIVE & MOBILE OPTIMIZATIONS
═══════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: 80vh;
    height: auto;
  }

  .hero-left {
    padding: 64px 6%;
    padding-bottom: 80px;
    height: 100%;
  }

  .hero-right {
    position: absolute;
    inset: 0;
    min-height: 0;
    z-index: 0;
  }

  .hero {
    position: relative;
  }
}

@media (max-width: 768px) {

  .nav-links,
  .nav-actions {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  header {
    padding: 0 5%;
    gap: 0;
  }

  .section-wrap {
    padding: 96px 5% 64px;
  }

  /* --- MOBILE HERO LAYOUT OVERRIDES --- */
  .hero {
    min-height: 85vh;
    height: auto;
  }

  .hero-left {
    padding: 80px 6% 70px 6%;
    height: 100%;
    min-height: 85vh;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transform: translateZ(0);
    backface-visibility: hidden;
  }

  .hero-eyebrow {
    position: absolute;
    top: 40px;
    left: 6%;
    color: #ffffff !important;
    margin-bottom: 0;
  }

  .hero-eyebrow-dot {
    background: #ffffff !important;
  }

  .hero h1 {
    font-size: clamp(1.8rem, 6vw, 2.2rem);
    line-height: 1.15;
    margin-bottom: 12px;
  }

  .hero-sub {
    margin-bottom: 16px;
    font-size: 0.95rem;
  }

  .carousel-progress {
    bottom: 20px;
    left: 6%;
    right: auto;
  }

  .hero-buttons {
    display: none !important;
  }

  .slide-1 .hero-sub {
    display: none !important;
  }

  .hero-stats-inline {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 16px;
    margin-top: 10px;
    pointer-events: none;
  }

  .hero-stat-item {
    background: transparent;
    border: none;
    padding: 0;
    box-shadow: none;
    text-align: left;
  }

  .hero-stat-item .stat-val {
    color: #ffffff;
    font-size: 1.4rem;
    font-weight: 800;
    line-height: 1.2;
  }

  .hero-stat-item .stat-lbl {
    color: #94a3b8;
    font-size: 0.65rem;
    font-weight: 700;
    margin-top: 2px;
  }

  .slide-4 h1 em {
    display: block;
  }

  .hero-overlay-gradient {
    background: linear-gradient(to top, #0f172a 0%, rgba(15, 23, 42, 0.95) 25%, rgba(15, 23, 42, 0.6) 50%, rgba(15, 23, 42, 0) 100%) !important;
  }

  /* --- POSTS & TIMELINE RESPONSIVENESS --- */
  .tools-grid,
  .posts-grid,
  .tl-card {
    grid-template-columns: 1fr;
  }

  .timeline {
    padding-left: 24px;
  }

  .timeline-dot {
    left: -32px;
  }

  .tl-visual {
    border-left: none;
    border-top: 1px solid var(--border-color);
    padding: 14px;
  }

  .tl-body {
    padding: 24px 22px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .footer-tagline {
    text-align: center;
    white-space: normal;
  }

  .footer-right {
    align-items: center;
    width: 100%;
  }

  .footer-social-bar {
    justify-content: center;
  }

  .footer-links {
    justify-content: center;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- MOBILE SECTIONS SLIDER --- */
.mobile-sections-nav {
  display: none;
}

@media (max-width: 768px) {
  .mobile-sections-slider {
    display: flex;
    align-items: flex-start;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-snap-stop: always;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    scrollbar-width: none;
    transition: height 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  }

  .mobile-sections-slider::-webkit-scrollbar {
    display: none;
  }

  .mobile-sections-slider>.section-wrap {
    flex: 0 0 100%;
    width: 100%;
    min-width: 100%;
    scroll-snap-align: center;
    scroll-snap-stop: always;
    box-sizing: border-box;
  }

  .mobile-sections-slider .section-divider {
    display: none;
  }

  .mobile-sections-nav {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 14px 20px 8px 0;
    position: relative;
    z-index: 10;
  }

  .ms-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #475569;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
  }

  .ms-dot.active {
    background: #60a5fa;
    width: 24px;
    border-radius: 4px;
  }
}

/* ═══════════════════════════════════════════════════════════
  SIDEBAR & TWO-COLUMN LAYOUT (TOOLS & PRESENTATIONS)
═══════════════════════════════════════════════════════════ */
.app-layout {
  display: flex;
  justify-content: center;
  min-height: 100vh;
  padding-top: var(--nav-height);
  background: #f4f7f9;
  /* Light grey background for the whole app */
  max-width: 100%;
}

#sidebar-injector {
  display: none;
  /* Hidden on mobile/small screens by default */
}

#tool-content {
  flex: 1;
  min-width: 0;
  max-width: 1248px;
  /* 1200px + padding */
  transition: opacity 0.25s ease;
  padding: 48px 24px 24px;
  box-sizing: border-box;
}

#tool-content.fade-out {
  opacity: 0;
}

/* Fix for existing section-wrap inside tools to prevent double-padding */
.app-layout .section-wrap {
  padding: 0;
  background: transparent;
}

.app-layout .section-wrap.dashboard-wrapper {
  background: var(--bg-main);
}

.app-layout .dashboard-container {
  margin: 0 auto;
  max-width: 1200px;
  padding: 28px 32px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 4px 15px rgba(0, 0, 0, 0.03);
  border-radius: 12px;
  background: #ffffff;
}

@media (max-width: 768px) {
  .app-layout .dashboard-container {
    padding: 16px;
  }
}

/* Shared Title / Editorial classes for tool dashboards */
.title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
  flex-wrap: wrap;
  gap: 15px;
}

.page-title {
  font-size: 28px;
  font-weight: 800;
  margin: 0 0 0 -2px;
  /* optical alignment with KPI cards */
  color: var(--accent-navy);
}

.editorial-brief {
  font-family: 'Newsreader', serif;
  font-size: 18px;
  color: #334155;
  margin-bottom: 25px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 20px;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .page-title {
    font-size: 22px;
  }

  .editorial-brief {
    font-size: 16px;
  }
}

/* Desktop layout — sidebar visible on large screens only */
@media (min-width: 1540px) {
  #sidebar-injector {
    display: block;
    width: 225px;
    flex-shrink: 0;
    position: sticky;
    top: calc(var(--nav-height) + 24px);
    height: calc(100vh - var(--nav-height) - 48px);
    margin: 24px 0 24px 24px;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: none;
    border: 1px solid var(--border-color);
    padding: 24px 0;
    overflow-y: auto;
    /* Custom scrollbar for sidebar */
    scrollbar-width: thin;
    scrollbar-color: var(--border-color) transparent;
  }

  #tool-content {
    padding: 24px;
    /* Align top perfectly with sidebar */
  }

  #sidebar-injector::-webkit-scrollbar {
    width: 4px;
  }

  #sidebar-injector::-webkit-scrollbar-thumb {
    background-color: var(--border-color);
    border-radius: 4px;
  }
}

/* Sidebar Component Internal Styles */
.sidebar-menu {
  padding: 0;
}

.sidebar-section {
  margin-bottom: 42px;
}

.sidebar-heading {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #334155;
  margin-bottom: 12px;
  padding-left: 28px;
  position: relative;
  padding-bottom: 8px;
}

.sidebar-heading::after {
  content: '';
  position: absolute;
  left: 28px;
  bottom: 0;
  width: 85%;
  height: 1px;
  background-color: var(--border-color);
}

.sidebar-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-nav-list li {
  margin-bottom: 0;
}

.sidebar-divider {
  display: none;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 500;
  color: #1E293B;
  padding: 8px 12px 8px 18px;
  margin: 4px 16px;
  border-radius: 6px;
  background: transparent;
  border: none;
  box-shadow: none;
  transition: all 0.15s ease;
  text-decoration: none;
  line-height: 1.4;
  position: relative;
  overflow: hidden;
}

.sidebar-link:hover {
  background: var(--border-subtle);
  color: #1E293B;
  box-shadow: none;
  transform: none;
  border: none;
  padding: 8px 10px 8px 20px;
}

.sidebar-link.active {
  background: #eff6ff;
  color: #2563EB;
  border: none;
  box-shadow: none;
  font-weight: 600;
}

.sidebar-link.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background-color: #2563EB;
}

.sidebar-link i {
  color: #64748B;
  font-size: 16px;
  width: 22px;
  text-align: center;
  transition: all 0.15s ease;
}

.sidebar-link:hover i {
  color: #334155;
}

.sidebar-link.active i {
  color: #2563EB;
}