:root {
  --bg-primary: #ffffff;
  --bg-secondary: #f8f9fa;
  --text-main: #1c1e21;
  --text-muted: #65676b;
  --accent-gradient: linear-gradient(
    45deg,
    #f09433 0%,
    #e6683c 25%,
    #dc2743 50%,
    #cc2366 75%,
    #bc1888 100%
  );
  --accent-solid: #0095f6;
  --accent-hover: #0081d6;
  --border-color: #dbdbdb;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 24px;
  --font-heading: "Outfit", sans-serif;
  --font-body: "Inter", sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Bootstrap Overrides & Resets */
a {
  text-decoration: none;
}
ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

body {
  background-color: var(--bg-secondary);
  font-family: var(--font-body);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Typography */
h1,
h2,
h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s ease;
}

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Navbar */
.navbar {
  background-color: var(--bg-primary);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  /* Bootstrap fix */
  display: block;
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-link {
  font-weight: 500;
  color: var(--text-main);
  font-size: 0.95rem;
}

.nav-link:hover {
  color: var(--accent-solid);
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
}

/* Hero Section */
.hero {
  background: var(--accent-gradient); /* User requested attractive background */
  padding: 4rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  color: white; /* Important for contrast */
}

/* Texture overlay for the hero */
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(
      circle at top right,
      rgba(255, 255, 255, 0.2),
      transparent 40%
    ),
    radial-gradient(circle at bottom left, rgba(0, 0, 0, 0.1), transparent 40%);
  pointer-events: none;
  z-index: 0;
}

/* Wave shape at bottom (optional, but adds flair) */
.hero::after {
  /* Keeping it simple for now to ensure clean connection with content */
  content: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.hero-title {
  font-size: 2.5rem; /* Reduced from 3.5rem for Laptop */
  margin-bottom: 2rem;
  color: white; /* Force white */
  letter-spacing: -1px;
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.hero-subtitle {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 3.5rem;
  font-weight: 500;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Custom Tabs - Glassmorphism on colorful bg */
.custom-tabs {
  margin-bottom: 2.5rem;
  background: rgba(255, 255, 255, 0.2); /* More transparent */
  padding: 6px;
  border-radius: 50px;
  flex-wrap: nowrap; /* Force single line */
  overflow-x: auto; /* Allow scroll on small screens */
  max-width: 95vw; /* Prevent overflow of screen */
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  -webkit-overflow-scrolling: touch;
  /* Hide scrollbar */
  scrollbar-width: none;

  /* Mobile Default (Scrollable) */
  display: flex;
  justify-content: flex-start;
}

/* Laptop/Tablet - Center the tabs */
@media (min-width: 768px) {
  .custom-tabs {
    display: inline-flex;
    justify-content: center;
  }
}

.custom-tabs::-webkit-scrollbar {
  display: none;
}

.custom-tabs .nav-link {
  color: rgba(255, 255, 255, 0.9);
  border-radius: 30px;
  padding: 10px 24px;
  margin: 0 2px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  white-space: nowrap; /* Prevent text wrapping */
}

.custom-tabs .nav-link:hover {
  color: white;
  background: rgba(255, 255, 255, 0.1);
}

.custom-tabs .nav-link.active {
  background: white;
  color: #cc2366; /* Match the primary gradient tone */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Search Box */
.search-container {
  background: white; /* Changed to white for cleanliness */
  padding: 6px; /* Reduced padding for tighter fit */
  border-radius: 50px; /* Fully rounded */
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  flex-wrap: nowrap;
}

.search-container:focus-within {
  transform: translateY(-2px);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.25);
}

/* New Wrapper */
.input-wrapper {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}

.search-input {
  width: 100%;
  border: none;
  padding: 12px 20px;
  padding-right: 40px; /* Space for paste icon */
  font-size: 1rem;
  outline: none;
  color: #333;
  background: transparent;
  border-radius: 50px;
}

.btn-paste {
  background: transparent;
  border: none;
  color: #999;
  cursor: pointer;
  padding: 8px;
  position: absolute;
  right: 10px; /* Relative to input-wrapper, stays inside */
  top: 50%;
  transform: translateY(-50%);
  transition: color 0.2s ease;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
}

.btn-paste:hover {
  color: #cc2366;
}

@media (max-width: 576px) {
  .btn-paste {
    right: 5px; /* Minimal adjustment needed now */
  }
}

/* Custom Button to avoid conflict */
.btn-primary-custom {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 30px; /* Wider button */
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  font-size: 1rem;
  background: var(--accent-gradient);
  color: white;
  box-shadow: 0 4px 15px rgba(220, 39, 67, 0.3);
  text-decoration: none;
  flex-shrink: 0; /* Important: Don't shrink */
  white-space: nowrap;
  margin-left: 5px;
}

.btn-primary-custom:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(220, 39, 67, 0.4);
  opacity: 0.95;
  color: white;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  font-size: 1rem;
}

.btn-primary {
  background: var(--accent-gradient);
  color: white;
  box-shadow: 0 4px 15px rgba(220, 39, 67, 0.3);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(220, 39, 67, 0.4);
  opacity: 0.95;
}

.btn-loading {
  padding-left: 40px;
  position: relative;
}
.btn-loading::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  top: 0;
  bottom: 0;
  left: 16px;
  margin: auto;
  border: 2px solid #fff;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Result Card */
.result-section {
  padding: 2rem 0;
  display: none; /* Hidden by default */
}

.result-card {
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 2rem;
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  border: 1px solid var(--border-color);
}

.preview-media {
  max-width: 100%;
  max-height: 400px;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
  object-fit: contain;
  background: #000;
}

.download-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Features */
.features {
  padding: 5rem 0;
  background-color: var(--bg-primary);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.feature-card {
  padding: 2rem;
  border-radius: var(--radius-lg);
  background: var(--bg-secondary);
  transition: transform 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  display: inline-block;
  padding: 12px;
  background: rgba(0, 149, 246, 0.1);
  border-radius: 12px;
  color: var(--accent-solid);
}

.feature-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.feature-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* How To Section */
.how-to {
  padding: 5rem 0;
  background-color: var(--bg-secondary);
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--text-main);
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 4rem;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  counter-reset: step-counter;
}

.step-card {
  background: var(--bg-primary);
  padding: 2.5rem 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  text-align: center;
  position: relative;
  border: 1px solid var(--border-color);
}

.step-card::before {
  counter-increment: step-counter;
  content: counter(step-counter);
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  background: var(--accent-gradient);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.step-title {
  margin: 1rem 0 0.5rem;
  font-size: 1.25rem;
  font-weight: 600;
}

/* FAQ Section */
.faq {
  padding: 5rem 0;
  background-color: var(--bg-primary);
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border-color);
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 1.5rem 0;
  background: none;
  border: none;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-toggle-icon {
  font-size: 1.5rem;
  color: var(--accent-solid);
  transition: transform 0.3s ease;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.3s ease,
    padding 0.3s ease;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
}

.faq-item.active .faq-answer {
  max-height: 500px; /* Approximate max height */
  padding-bottom: 1.5rem;
}

.faq-item.active .faq-toggle-icon {
  transform: rotate(45deg);
}

/* Footer Expanded */
.footer {
  background-color: #111;
  color: #fff;
  padding: 4rem 0 2rem;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-col h4 {
  color: #fff;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: #aaa;
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid #333;
  padding-top: 2rem;
  text-align: center;
  color: #777;
  font-size: 0.9rem;
}
/* ============================================
   What Can You Download Section
   ============================================ */
.what-download {
    padding: 5rem 0;
    background-color: var(--bg-secondary);
}

.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.download-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem 1.75rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.download-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
    border-color: transparent;
}

/* Instagram gradient icon container */
.download-icon {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 12px rgba(220, 39, 67, 0.25);
}

/* Icon inside */
.download-icon ion-icon {
    font-size: 30px;
    color: #ffffff;
    transition: transform 0.3s ease;
}

/* Hover: Instagram glow effect */
.download-card:hover .download-icon {
    transform: scale(1.08) rotate(-3deg);
    box-shadow: 0 8px 22px rgba(220, 39, 67, 0.45),
                0 0 0 4px rgba(220, 39, 67, 0.12);
}

.download-card:hover .download-icon ion-icon {
    transform: scale(1.15);
}

.download-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.6rem;
    font-family: var(--font-heading);
}

.download-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Mobile tweaks */
@media (max-width: 600px) {
    .what-download {
        padding: 3.5rem 0;
    }
    .download-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .download-card {
        padding: 1.5rem 1.25rem;
    }
    .download-icon {
        width: 52px;
        height: 52px;
        border-radius: 12px;
    }
    .download-icon ion-icon {
        font-size: 26px;
    }
}

/* ============================================
   One Instagram Downloader Section
   ============================================ */
.every-format {
    padding: 5rem 0;
    background-color: var(--bg-primary);
}

.format-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.format-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2.5rem 1.75rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    text-align: center;
}

.format-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(220, 39, 67, 0.12);
    border-color: transparent;
}

/* Icon - outline style with gradient stroke effect */
.format-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    background: linear-gradient(135deg,
        rgba(240, 148, 51, 0.08) 0%,
        rgba(220, 39, 67, 0.08) 50%,
        rgba(188, 24, 136, 0.08) 100%);
    transition: all 0.3s ease;
    position: relative;
}

/* Icon inside - gradient stroke using mask technique */
.format-icon ion-icon {
    font-size: 42px;
    color: #dc2743;
    transition: all 0.3s ease;
    --ionicon-stroke-width: 32px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 0 transparent);
}

/* Fallback for browsers that don't support background-clip: text */
@supports not (-webkit-background-clip: text) {
    .format-icon ion-icon {
        color: #dc2743;
        -webkit-text-fill-color: #dc2743;
    }
}

/* Hover: Instagram gradient glow */
.format-card:hover .format-icon {
    background: linear-gradient(135deg,
        rgba(240, 148, 51, 0.15) 0%,
        rgba(220, 39, 67, 0.15) 50%,
        rgba(188, 24, 136, 0.15) 100%);
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(220, 39, 67, 0.2);
}

.format-card:hover .format-icon ion-icon {
    transform: scale(1.1);
    filter: drop-shadow(0 4px 8px rgba(220, 39, 67, 0.4));
}

.format-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.75rem;
    font-family: var(--font-heading);
    letter-spacing: -0.01em;
}

.format-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.65;
    max-width: 320px;
    margin: 0 auto;
}

/* Mobile tweaks */
@media (max-width: 600px) {
    .every-format {
        padding: 3.5rem 0;
    }
    .format-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-top: 2rem;
    }
    .format-card {
        padding: 2rem 1.25rem;
    }
    .format-icon {
        width: 70px;
        height: 70px;
        margin-bottom: 1.25rem;
    }
    .format-icon ion-icon {
        font-size: 36px;
    }
    .format-title {
        font-size: 1.05rem;
    }
    .format-desc {
        font-size: 0.9rem;
    }
}

/* ============================================
   How to Save Section (Text + Image Guide)
   ============================================ */
.how-save {
    padding: 5rem 0;
    background-color: var(--bg-primary);
}

.how-save .section-title {
    font-size: 2.25rem;
    font-weight: 700;
    font-family: var(--font-heading);
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-main);
    letter-spacing: -0.02em;
}

.how-save .section-subtitle {
    text-align: center;
    color: var(--text-muted);
    max-width: 720px;
    margin: 0 auto 4rem;
    font-size: 1rem;
    line-height: 1.6;
}

/* Guide Block (2-column layout) */
.guide-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    align-items: center;
    margin-bottom: 5rem;
}

.guide-block:last-child {
    margin-bottom: 0;
}

/* Reverse layout: image on left, text on right */
.guide-block-reverse .guide-text {
    order: 2;
}

.guide-block-reverse .guide-image {
    order: 1;
}

/* Text column */
.guide-text {
    display: flex;
    flex-direction: column;
}

.guide-heading {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-main);
    font-family: var(--font-heading);
    line-height: 1.3;
    margin-bottom: 1.5rem;
    letter-spacing: -0.01em;
}

.guide-subheading {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
    font-family: var(--font-heading);
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.guide-para {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.75;
    margin-bottom: 1.1rem;
}

/* Bullet list with custom markers */
.guide-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.guide-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.85rem;
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
}

.guide-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.65rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--text-muted);
}

/* Image column */
.guide-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.guide-image img {
    width: 100%;
    height: auto;
    max-height: 420px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.guide-image img:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
}

/* Responsive — Tablet */
@media (max-width: 900px) {
    .guide-block {
        gap: 2.5rem;
    }
    .guide-heading {
        font-size: 1.5rem;
    }
}

/* Responsive — Mobile */
@media (max-width: 700px) {
    .how-save {
        padding: 3.5rem 0;
    }

    .how-save .section-title {
        font-size: 1.6rem;
    }

    .how-save .section-subtitle {
        font-size: 0.95rem;
        margin-bottom: 3rem;
    }

    /* Stack columns on mobile */
    .guide-block {
        grid-template-columns: 1fr;
        gap: 1.75rem;
        margin-bottom: 3.5rem;
    }

    /* Ensure text comes first on mobile */
    .guide-block-reverse .guide-text {
        order: 1;
    }

    .guide-block-reverse .guide-image {
        order: 2;
    }

    .guide-heading {
        font-size: 1.35rem;
    }

    .guide-image img {
        max-height: 300px;
        border-radius: 16px;
    }

    .guide-para {
        font-size: 0.95rem;
    }

    .guide-list li {
        font-size: 0.95rem;
    }
}
/* ============================================
   Blog Section — Custom Design
   ============================================ */

/* Hero */
.blog-hero {
    padding: 4rem 0 2rem;
    background: var(--bg-primary);
}

.blog-badge {
    display: inline-block;
    padding: 4px 12px;
    background: var(--accent-gradient);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    border-radius: 20px;
    margin-bottom: 1rem;
}

.blog-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.blog-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 640px;
    line-height: 1.6;
}

/* Layout */
.blog-layout {
    padding: 2rem 0 5rem;
    background: var(--bg-primary);
}

.blog-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 3rem;
    align-items: start;
}

/* ============================================
   Blog Posts Grid — Uniform Cards
   ============================================ */

.blog-posts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem;
}

.blog-post-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.blog-post-card:hover {
    transform: translateY(-6px);
    border-color: transparent;
    box-shadow: 0 20px 40px rgba(220, 39, 67, 0.12);
}

.blog-post-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

/* Thumbnail — fixed aspect ratio so all images match */
.blog-post-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
}

.blog-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    display: block;
}

.blog-post-card:hover .blog-post-thumb img {
    transform: scale(1.06);
}

.blog-post-thumb::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.4) 0%, transparent 45%);
    pointer-events: none;
}

/* Category chip */
.blog-post-cat {
     position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0;
    background: transparent;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
    border-radius: 0;
    z-index: 2;
}

/* Body */
.blog-post-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-post-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 0.65rem;
}

.blog-post-meta .dot {
    opacity: 0.5;
}

.blog-post-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -0.01em;
    line-height: 1.35;
    margin-bottom: 0.65rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.7rem;
}

.blog-post-excerpt {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.blog-post-cta {
    display: inline-flex;
    align-items: center;
    font-weight: 600;
    font-size: 0.9rem;
    color: #dc2743;
    margin-top: auto;
    transition: transform 0.2s ease;
}

.blog-post-card:hover .blog-post-cta {
    transform: translateX(4px);
}

/* Responsive */
@media (max-width: 900px) {
    .blog-posts-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .blog-posts-grid {
        gap: 1.25rem;
    }
    .blog-post-body {
        padding: 1.25rem;
    }
    .blog-post-title {
        font-size: 1.05rem;
        min-height: auto;
    }
}

/* ============================================
   Sidebar — shared by /blog listing and each post
   (single definition — no duplicates)
   ============================================ */
.blog-sidebar {
    position: -webkit-sticky;
    position: sticky;
    top: 90px;
    align-self: start;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
    max-width: 340px;
    max-height: calc(100vh - 110px);
    overflow-y: auto;
    scrollbar-width: none;
}

.blog-sidebar::-webkit-scrollbar {
    display: none;
}

.sidebar-box {
    background: var(--bg-primary);
    border-radius: 18px;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 16px -8px rgba(15, 23, 42, 0.08);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
    flex-shrink: 0;
}

.sidebar-box:hover {
    box-shadow: 0 12px 28px -10px rgba(220, 39, 67, 0.16);
    transform: translateY(-2px);
}

.sidebar-title {
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--text-muted);
    margin-bottom: 1.35rem;
    padding-bottom: 0.85rem;
    border-bottom: 2px solid rgba(220, 39, 67, 0.12);
}

/* Popular Tips */
.tips-list {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: tips;
}

.tip-item {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
    align-items: flex-start;
    transition: transform 0.2s ease;
}

.tip-item:hover {
    transform: translateX(3px);
}

.tip-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.tip-item:first-child {
    padding-top: 0;
}

.tip-number {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    flex-shrink: 0;
    line-height: 1.4;
}

.tip-content {
    flex: 1;
}

.tip-link {
    display: block;
    font-weight: 600;
    font-size: 0.94rem;
    color: var(--text-main);
    line-height: 1.4;
    margin-bottom: 0.3rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

.tip-link:hover {
    color: #dc2743;
    text-decoration: underline;
    text-decoration-color: rgba(220, 39, 67, 0.35);
}

.tip-read {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Popular Tools */
.tools-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tool-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.7rem 0.5rem;
    margin: 0 -0.5rem;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.25s ease;
}

.tool-item:hover {
    background: rgba(220, 39, 67, 0.05);
    transform: translateX(4px);
}

.tool-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(220, 39, 67, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.tool-icon ion-icon {
    font-size: 20px;
    color: #dc2743;
    transition: transform 0.3s ease;
}

.tool-item:hover .tool-icon {
    background: var(--accent-gradient);
    box-shadow: 0 6px 16px rgba(220, 39, 67, 0.3);
}

.tool-item:hover .tool-icon ion-icon {
    color: white;
    transform: scale(1.1);
}

.tool-name {
    flex: 1;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
}

.tool-arrow {
    font-size: 16px;
    color: var(--text-muted);
    opacity: 0.6;
    transition: all 0.2s ease;
}

.tool-item:hover .tool-arrow {
    opacity: 1;
    color: #dc2743;
    transform: translateX(2px);
}

/* Responsive */
@media (max-width: 900px) {
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .blog-sidebar {
        position: static;
        max-width: none;
        max-height: none;
        overflow-y: visible;
    }

    .blog-title {
        font-size: 2.25rem;
    }

    .post-title {
        font-size: 1.4rem;
    }
}

@media (max-width: 600px) {
    .blog-hero {
        padding: 3rem 0 1.5rem;
    }

    .blog-title {
        font-size: 1.75rem;
    }

    .blog-subtitle {
        font-size: 1rem;
    }

    .post-featured-body {
        padding: 1.5rem;
    }

    .post-card-link {
        flex-direction: column;
        padding: 1rem;
    }

    .post-card-image {
        width: 100%;
        height: 180px;
    }

    .sidebar-box {
        padding: 1.25rem;
    }
}
/* ============================================
   Blog Post — Inline Article Images
   ============================================ */

.article-image {
    margin: 2.5rem 0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.12);
    border: 1px solid var(--border-color);
    background: var(--bg-primary);
}

.article-image img {
    width: 100%;
    height: auto;
    display: block;
}

.article-image figcaption {
    padding: 1rem 1.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    text-align: center;
    font-style: italic;
    line-height: 1.5;
}

/* Pull-out for wide images to break out of content column */
.article-image-wide {
    margin-left: -2rem;
    margin-right: -2rem;
}

@media (max-width: 700px) {
    .article-image {
        margin: 2rem 0;
        border-radius: 12px;
    }
    .article-image figcaption {
        padding: 0.75rem 1rem;
        font-size: 0.8rem;
    }
    .article-image-wide {
        margin-left: 0;
        margin-right: 0;
    }
}

/* ============================================
   Blog Post Layout — Content + Sidebar (right)
   Single, authoritative definition. This is the
   ONLY place post-content-section / post-content-grid
   are defined in the whole file.
   ============================================ */

.post-content-section {
    padding: 3rem 0 5rem;
    background: var(--bg-primary);
    width: 100%;
}

.post-content-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.post-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 3rem;
    align-items: start;
    width: 100%;
}

.post-content-main {
    width: 100%;
    max-width: none;
    min-width: 0;
}

@media (max-width: 900px) {
    .post-content-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

/* ============================================
   Blog Post Hero Section
   ============================================ */

.post-hero-section {
    padding: 3rem 0 2rem;
    background: var(--bg-primary);
}

.post-hero-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Breadcrumb */
.post-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}

.post-breadcrumb a {
    color: #dc2743;
    font-weight: 600;
    text-decoration: none;
}

.post-breadcrumb a:hover {
    text-decoration: underline;
}

/* H1 Title */
.post-h1 {
    font-family: var(--font-heading);
    font-size: 2.75rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: var(--text-main);
    margin-bottom: 1rem;
    border-left: 6px solid #dc2743;
    padding-left: 1.5rem;
    max-width: 900px;
}

/* Meta row (date + read time) */
.post-meta-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    padding-left: 1.75rem;
}

.post-meta-row .dot {
    opacity: 0.5;
}

/* Hero Image */
.post-hero-image {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #f0f0f0;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.post-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Responsive */
@media (max-width: 700px) {
    .post-hero-section {
        padding: 2rem 0 1rem;
    }

    .post-h1 {
        font-size: 1.75rem;
        padding-left: 1rem;
        border-left-width: 4px;
    }

    .post-hero-image {
        border-radius: 12px;
    }

    .post-meta-row {
        padding-left: 1rem;
    }
}

/* ============================================
   Blog article body — base typography
   (styles the plain tags inside .post-content-main:
   p, h2, h3, ul/ol, li, a, strong, blockquote, hr)
   ============================================ */

.post-content-main {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #334155;
    text-align: left;
}

.post-content-main > *:first-child {
    margin-top: 0;
}

.post-content-main p {
    margin: 0 0 1.5rem;
    color: #334155;
    font-size: 1.05rem;
    line-height: 1.8;
}

.post-content-main h2 {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-main);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    line-height: 1.3;
    text-align: left;
}

.post-content-main h3 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-main);
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    text-align: left;
}

.post-content-main ul,
.post-content-main ol {
    margin: 0 0 1.5rem 1.5rem;
    padding-left: 0.5rem;
    font-size: 1.05rem;
    line-height: 1.8;
    color: #334155;
}

.post-content-main li {
    margin-bottom: 0.6rem;
    line-height: 1.8;
    font-size: 1.05rem;
    color: #334155;
}

.post-content-main strong {
    color: var(--text-main);
    font-weight: 600;
}

.post-content-main a {
    color: #dc2743;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.post-content-main blockquote {
    border-left: 4px solid #dc2743;
    padding: 1rem 1.5rem;
    background: var(--bg-secondary);
    border-radius: 0 8px 8px 0;
    margin: 1.5rem 0;
    font-style: italic;
    color: #334155;
}

.post-content-main hr {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 2.5rem 0;
}

/* Special content blocks inside the article */
.post-content-main .intro{color:#4a5b64;font-size:1.05rem;margin-bottom:2em}

.post-content-main .toc{background:#f7fafb;border:1px solid #dbe4e6;border-radius:8px;padding:18px 22px;margin:1.8em 0}
.post-content-main .toc p{margin:0 0 .5em;font-weight:600}
.post-content-main .toc ul{margin-bottom:0;padding-left:1.3em}
.post-content-main .toc li{margin-bottom:.35em}

.post-content-main .callout{background:#e8f2f3;border-left:4px solid #175d6b;padding:14px 18px;border-radius:4px;margin:1.5em 0}
.post-content-main .callout p:last-child{margin-bottom:0}

.post-content-main table{width:100%;border-collapse:collapse;margin:1.5em 0;font-size:.95rem}
.post-content-main th,.post-content-main td{border:1px solid #dbe4e6;padding:10px 12px;text-align:left;vertical-align:top}
.post-content-main th{background:#e8f2f3;font-weight:600}

.post-content-main figure{margin:2em 0;text-align:center}
.post-content-main figure img{max-width:100%;height:auto;border-radius:6px;border:1px solid #dbe4e6}
.post-content-main figcaption{font-size:.85rem;color:#4a5b64;margin-top:8px}

.post-content-main .faq-item{margin-bottom:1.4em}
.post-content-main .faq-item p:first-child{font-weight:600;margin-bottom:.3em}

.post-content-main h2[id],.post-content-main h3[id]{scroll-margin-top:90px}

@media (max-width:640px){
  .post-content-main table{display:block;overflow-x:auto;white-space:nowrap;-webkit-overflow-scrolling:touch}
}

/* Lead paragraph (intro card) */
.post-content-main .lead p,
.post-content-main .lead p:first-of-type,
.post-content-main .lead p:last-of-type {
    font-size: 1.2rem;
    color: #475569;
    font-weight: 400;
    line-height: 1.7;
    margin: 0 0 1rem;
    padding: 0;
    background: transparent;
    border: 0;
    text-align: left;
    max-width: none;
}

.post-content-main .lead p:last-child {
    margin-bottom: 0;
}

.post-content-main .lead + p {
    font-size: 1.2rem;
    color: #475569;
    font-weight: 400;
    line-height: 1.7;
    margin: 1rem 0 1.5rem;
    padding: 0;
    background: transparent;
    border: none;
}

@media (max-width: 700px) {
    .post-content-main .lead {
        font-size: 1.05rem;
        padding: 1.1rem 1.1rem 1.1rem 1.4rem;
    }

    .post-content-main .lead p,
    .post-content-main .lead + p {
        font-size: 1.05rem;
        line-height: 1.65;
    }

    .post-content-main {
        font-size: 1rem;
    }
    .post-content-main p,
    .post-content-main ul,
    .post-content-main ol,
    .post-content-main li {
        font-size: 1rem;
    }
    .post-content-main h2 {
        font-size: 1.4rem;
    }
    .post-content-main h3 {
        font-size: 1.15rem;
    }
}

/* ============================================
   Sidebar — shared by /blog listing and each post
   (single definition — no duplicates)
   ============================================ */
.blog-sidebar {
    position: -webkit-sticky;
    position: sticky;
    top: 90px;
    align-self: start;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
    max-width: 340px;
    max-height: calc(100vh - 110px);
    overflow-y: auto;
    scrollbar-width: none;
}

.blog-sidebar::-webkit-scrollbar {
    display: none;
}

.sidebar-box {
    background: var(--bg-primary);
    border-radius: 18px;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 16px -8px rgba(15, 23, 42, 0.08);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
    flex-shrink: 0;
}

.sidebar-box:hover {
    box-shadow: 0 12px 28px -10px rgba(220, 39, 67, 0.16);
    transform: translateY(-2px);
}

.sidebar-title {
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--text-muted);
    margin-bottom: 1.35rem;
    padding-bottom: 0.85rem;
    border-bottom: 2px solid rgba(220, 39, 67, 0.12);
}

/* Popular Tips */
.tips-list {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: tips;
}

.tip-item {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
    align-items: flex-start;
    transition: transform 0.2s ease;
}

.tip-item:hover {
    transform: translateX(3px);
}

.tip-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.tip-item:first-child {
    padding-top: 0;
}

.tip-number {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    flex-shrink: 0;
    line-height: 1.4;
}

.tip-content {
    flex: 1;
}

.tip-link {
    display: block;
    font-weight: 600;
    font-size: 0.94rem;
    color: var(--text-main);
    line-height: 1.4;
    margin-bottom: 0.3rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

.tip-link:hover {
    color: #dc2743;
    text-decoration: underline;
    text-decoration-color: rgba(220, 39, 67, 0.35);
}

.tip-read {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Popular Tools */
.tools-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tool-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.7rem 0.5rem;
    margin: 0 -0.5rem;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.25s ease;
}

.tool-item:hover {
    background: rgba(220, 39, 67, 0.05);
    transform: translateX(4px);
}

.tool-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(220, 39, 67, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.tool-icon ion-icon {
    font-size: 20px;
    color: #dc2743;
    transition: transform 0.3s ease;
}

.tool-item:hover .tool-icon {
    background: var(--accent-gradient);
    box-shadow: 0 6px 16px rgba(220, 39, 67, 0.3);
}

.tool-item:hover .tool-icon ion-icon {
    color: white;
    transform: scale(1.1);
}

.tool-name {
    flex: 1;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
}

.tool-arrow {
    font-size: 16px;
    color: var(--text-muted);
    opacity: 0.6;
    transition: all 0.2s ease;
}

.tool-item:hover .tool-arrow {
    opacity: 1;
    color: #dc2743;
    transform: translateX(2px);
}

/* Responsive */
@media (max-width: 900px) {
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .blog-sidebar {
        position: static;
        max-width: none;
        max-height: none;
        overflow-y: visible;
    }

    .blog-title {
        font-size: 2.25rem;
    }

    .post-title {
        font-size: 1.4rem;
    }
}

@media (max-width: 600px) {
    .blog-hero {
        padding: 3rem 0 1.5rem;
    }

    .blog-title {
        font-size: 1.75rem;
    }

    .blog-subtitle {
        font-size: 1rem;
    }

    .post-featured-body {
        padding: 1.5rem;
    }

    .post-card-link {
        flex-direction: column;
        padding: 1rem;
    }

    .post-card-image {
        width: 100%;
        height: 180px;
    }

    .sidebar-box {
        padding: 1.25rem;
    }
}

/* ============================================
   FAILSAFE — guarantees the two-column layout
   at desktop widths, and a clean single-column
   stack at tablet/mobile widths, permanently,
   regardless of load order elsewhere in this file.

   NOTE: this block targets .post-content-grid,
   while the responsive rules above target
   .blog-grid. Confirm which class your actual
   HTML wrapper uses — only that one will apply.
   ============================================ */
@media (min-width: 901px) {
    .post-content-grid {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) 340px !important;
        gap: 3rem !important;
    }
    .blog-sidebar {
        position: sticky !important;
        top: 90px !important;
        width: 100% !important;
        max-width: 340px !important;
    }
}

@media (max-width: 900px) {
    .post-content-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 2.5rem !important;
    }
    .blog-sidebar {
        position: static !important;
        max-width: none !important;
    }
}

/* ============================================
   Language Switcher with Flags
   ============================================ */

.lang-switcher-btn {
    display: inline-flex !important;
    align-items: center;
    gap: 0.5rem;
    padding: 6px 14px !important;
    border-radius: 30px !important;
    background: #f8f9fa !important;
    border: 1px solid #e1e5eb !important;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.lang-switcher-btn:hover {
    background: white !important;
    border-color: #dc2743 !important;
    color: #dc2743 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 39, 67, 0.15);
}

.lang-switcher-btn:focus {
    box-shadow: 0 0 0 3px rgba(220, 39, 67, 0.2) !important;
    border-color: #dc2743 !important;
}

.lang-flag {
    font-size: 1.15rem;
    line-height: 1;
    display: inline-block;
}

.lang-name {
    font-weight: 600;
    letter-spacing: -0.01em;
}

/* Dropdown menu */
.lang-dropdown {
    border-radius: 12px;
    border: 1px solid #e1e5eb;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    padding: 0.5rem;
    min-width: 180px;
    margin-top: 0.5rem;
}

.lang-item {
    display: flex !important;
    align-items: center;
    gap: 0.65rem;
    padding: 0.55rem 0.85rem !important;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #1c1e21;
    transition: all 0.2s ease;
}

.lang-item:hover {
    background: #fdf2f8 !important;
    color: #dc2743 !important;
    transform: translateX(3px);
}

.lang-item.active {
    background: linear-gradient(45deg, rgba(240, 148, 51, 0.1), rgba(188, 24, 136, 0.1)) !important;
    color: #dc2743 !important;
    font-weight: 700;
}

.lang-item.active::after {
    content: '✓';
    margin-left: auto;
    color: #dc2743;
    font-weight: 700;
}

.lang-item .lang-flag {
    font-size: 1.3rem;
}

/* Mobile */
@media (max-width: 480px) {
    .lang-switcher-btn .lang-name {
        display: none; /* Show only flag on very small screens */
    }
    .lang-switcher-btn {
        padding: 6px 10px !important;
    }
}

/* Popular Tips Sidebar */
.tips-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tip-item {
    border-bottom: 1px solid var(--border-color, #e1e5eb);
}

.tip-item:last-child {
    border-bottom: none;
}

/* This makes the ENTIRE row clickable */
.tip-link-wrap {
    display: flex;
    gap: 1rem;
    padding: 1rem 0.75rem;
    margin: 0 -0.75rem;
    text-decoration: none;
    color: inherit;
    border-radius: 10px;
    transition: all 0.25s ease;
    align-items: flex-start;
}

.tip-link-wrap:hover {
    background: rgba(220, 39, 67, 0.05);
    padding-left: 1rem;
}

.tip-number {
    font-family: var(--font-heading, 'Outfit', sans-serif);
    font-size: 1.15rem;
    font-weight: 800;
    background: linear-gradient(45deg, #f09433 0%, #dc2743 50%, #bc1888 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    flex-shrink: 0;
    line-height: 1.3;
    min-width: 28px;
}

.tip-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.tip-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-main, #1c1e21);
    line-height: 1.45;
    transition: color 0.2s ease;
}

.tip-link-wrap:hover .tip-title {
    color: #dc2743;
}

.tip-read {
    font-size: 0.8rem;
    color: var(--text-muted, #65676b);
}