/* ---------- GLOBAL RESET, VARIABLES (aligned with Home, plus article specifics) ---------- */
    * { margin: 0; padding: 0; box-sizing: border-box; }
    html { font-family: 'Inter', sans-serif; font-size: 16px; scroll-behavior: smooth; }
    body { line-height: 1.5; transition: background-color 0.2s ease, color 0.2s ease; }
    /* Light theme (default) */
    body, .light-mode {
      --bg-primary: #f9fafc;
      --bg-secondary: #ffffff;
      --bg-card: #ffffff;
      --text-primary: #0b1c33;
      --text-secondary: #2d3a4f;
      --text-meta: #5b6c7e;
      --border-light: #e2e8f0;
      --accent: #0a7c7c;
      --accent-soft: #dcfce7;
      --accent-hover: #0b6b6b;
      --card-shadow: 0 8px 20px -6px rgba(0,0,0,0.02);
      --header-bg: rgba(255,255,255,0.8);
      --footer-bg: #ffffff;
      --trend-bg: #f1f6fa;
      --pagination-bg: #ffffff;
      --modal-bg: #ffffff;
      --code-bg: #f2f4f8;        /* for prompt box background */
      --copy-hover: #d1d9e6;
      --tip-bg: #e6f7f7;
      --eeat-bg: #f0f5fa;
      color-scheme: light;
    }
    /* Dark theme */
    .dark body {
      --bg-primary: #0b121c;
      --bg-secondary: #16202c;
      --bg-card: #1e2a36;
      --text-primary: #edf2f7;
      --text-secondary: #d1dce6;
      --text-meta: #a0b3c6;
      --border-light: #334150;
      --accent: #6cd4c5;
      --accent-soft: #1f4949;
      --accent-hover: #a0e6db;
      --card-shadow: 0 18px 28px -12px rgba(0,0,0,0.4);
      --header-bg: rgba(15, 25, 35, 0.85);
      --footer-bg: #0f1a24;
      --trend-bg: #1e2a36;
      --pagination-bg: #1e2a36;
      --modal-bg: #1e2a36;
      --code-bg: #253341;
      --copy-hover: #30495c;
      --tip-bg: #1d3a3a;
      --eeat-bg: #1e2f3a;
      color-scheme: dark;
    }
    body { background-color: var(--bg-primary); color: var(--text-primary); }
    .container { max-width: 1280px; margin: 0 auto; padding: 0 2rem; } /* consistent with home but narrower */
    @media (max-width: 640px) { .container { padding: 0 1.25rem; } }
    a { text-decoration: none; color: inherit; }

    /* ---------- HEADER (exact copy from Home, with minor adapt) ---------- */
    header {
      background: var(--header-bg);
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
      border-bottom: 1px solid var(--border-light);
      position: sticky;
      top: 0;
      z-index: 100;
    }
    .header-wrapper {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0.9rem 0;
    }
    .logo-area { display: flex; align-items: center; gap: 0.7rem; }
    .logo-icon { font-size: 2rem; color: var(--accent); }
    .logo-text { font-weight: 800; font-size: 1.6rem; letter-spacing: -0.02em; }
    .logo-span { color: var(--accent); background: linear-gradient(145deg, #0a7c7c, #24b3b3); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
    .nav-links { display: flex; gap: 2.2rem; font-weight: 600; }
    .nav-links a { color: var(--text-secondary); transition: color 0.15s; }
    .nav-links a:hover, .nav-links a.active { color: var(--accent); }
    .theme-toggle {
      background: var(--bg-card); border: 1px solid var(--border-light); border-radius: 40px; padding: 0.4rem 0.6rem;
      display: flex; align-items: center; gap: 0.4rem; cursor: pointer;
    }
    .theme-toggle i { font-size: 1.1rem; color: var(--text-secondary); padding: 0.25rem 0.3rem; border-radius: 30px; }
    .theme-toggle i.active-theme { background: var(--accent); color: white; }
    .mobile-menu-icon { display: none; font-size: 1.6rem; color: var(--text-primary); }
    .search-header-btn {
      background: var(--bg-card); border: 1px solid var(--border-light); border-radius: 40px; padding: 0.4rem 1rem;
      display: flex; align-items: center; gap: 0.5rem; cursor: pointer; color: var(--text-secondary); transition: all 0.2s;
    }
    .search-header-btn:hover { border-color: var(--accent); color: var(--accent); }
    /* quick mobile header (same as home) */
    @media (max-width: 768px) {
      .nav-links, .theme-toggle span { display: none; }
      .mobile-menu-icon { display: block; }
      .search-header-btn span { display: none; }
      .search-header-btn { padding: 0.4rem; }
    }

    /* ---------- MOBILE SIDEBAR (same as Home) ---------- */
    .mobile-sidebar-overlay {
      position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.5);
      backdrop-filter: blur(4px); z-index: 300; opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s;
    }
    .mobile-sidebar {
      position: fixed; top: 0; left: -280px; width: 280px; height: 100%; background: var(--bg-card);
      border-right: 1px solid var(--border-light); z-index: 350; transition: left 0.3s ease; padding: 2rem 1.8rem;
      display: flex; flex-direction: column; gap: 2rem;
    }
    .mobile-sidebar.open { left: 0; }
    .mobile-sidebar-overlay.active { opacity: 1; visibility: visible; }
    .sidebar-close { font-size: 1.6rem; align-self: flex-end; cursor: pointer; color: var(--text-meta); }
    .sidebar-nav { display: flex; flex-direction: column; gap: 1.5rem; list-style: none; }

    /* ---------- BLOG POST SPECIFIC STYLES ---------- */
    .post-header { margin: 2rem 0 1.5rem; }
    .post-title { font-size: 2.8rem; font-weight: 800; line-height: 1.2; letter-spacing: -0.02em; background: linear-gradient(145deg, var(--accent), #1e9b9b); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
    .author-row { display: flex; align-items: center; gap: 1.8rem; flex-wrap: wrap; color: var(--text-meta); margin: 1rem 0 1.5rem; font-size: 0.95rem; }
    .author-row i { margin-right: 0.3rem; color: var(--accent); }
    .featured-image { width: 100%; border-radius: 28px; overflow: hidden; border: 1px solid var(--border-light); margin-bottom: 2.2rem; background: var(--bg-card); box-shadow: var(--card-shadow); }
    /*.featured-image img { width: 100%; height: auto; display: block; object-fit: cover; aspect-ratio: 1.91/1; }*/
    .featured-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;   /* keeps full image */
  aspect-ratio: auto;    /* removes forced ratio */
}

    /* LONG INTRO PARAGRAPH for SEO */
    .seo-intro {
      background: var(--accent-soft); padding: 2rem; border-radius: 28px; margin-bottom: 2.2rem; border-left: 6px solid var(--accent);
      font-size: 1.1rem; color: var(--text-secondary); line-height: 1.6;
    }

    /* table of contents */
    .toc-card { background: var(--bg-card); border: 1px solid var(--border-light); border-radius: 28px; padding: 1.8rem 2rem; margin-bottom: 2.5rem; box-shadow: var(--card-shadow); }
    .toc-title { font-size: 1.6rem; font-weight: 700; margin-bottom: 1rem; display: flex; align-items: center; gap: 0.6rem; }
    .toc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0.8rem 1.5rem; }
    .toc-item { color: var(--accent); font-weight: 500; border-bottom: 1px dashed var(--border-light); padding: 0.4rem 0; cursor: pointer; transition: color 0.2s; }
    .toc-item:hover { color: var(--accent-hover); padding-left: 5px; }

    /* prompt block - with usage & tip section */
    .prompt-block { margin: 2.5rem 0 3rem; }
    .prompt-heading { font-size: 1.8rem; font-weight: 700; margin-bottom: 1rem; color: var(--text-primary); border-left: 6px solid var(--accent); padding-left: 1.2rem; }
    .prompt-image { border-radius: 24px; overflow: hidden; border: 1px solid var(--border-light); margin-bottom: 1.2rem; background: var(--bg-secondary); box-shadow: var(--card-shadow); }
    /*.prompt-image img { width: 100%; height: auto; display: block; aspect-ratio: 1.91/1; object-fit: cover; }*/

    .prompt-image {
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--border-light);
  margin-bottom: 1.2rem;
  background: var(--bg-secondary);
  box-shadow: var(--card-shadow);

  /* Make container auto-size */
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
}

.prompt-image img {
  width: 100%;
  height: auto;
  max-height: 700px;     /* Prevent extremely tall images */
  object-fit: contain;   /* Keep original proportions */
  border-radius: 18px;
}


.prompt-image {
  border-radius: 24px;
  border: 1px solid var(--border-light);
  margin-bottom: 1.2rem;
  background: var(--bg-secondary);
  box-shadow: var(--card-shadow);

  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1.5rem;
}

.prompt-image img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 650px;
  border-radius: 20px;
}



    /* Prompt box design */
    .prompt-box {
      background: var(--code-bg); border: 1px solid var(--border-light); border-radius: 24px; padding: 1.2rem 1.8rem;
      box-shadow: var(--card-shadow); display: flex; flex-direction: column; gap: 1rem;
    }
    .prompt-header {
      display: flex; justify-content: space-between; align-items: center; border-bottom: 1px dashed var(--border-light); padding-bottom: 0.6rem;
    }
    .prompt-header span { font-weight: 600; color: var(--accent); letter-spacing: 0.3px; }
    .copy-btn {
      background: var(--bg-card); border: 1px solid var(--border-light); border-radius: 40px; padding: 0.5rem 1.2rem;
      font-weight: 600; color: var(--text-secondary); display: inline-flex; align-items: center; gap: 0.5rem;
      cursor: pointer; transition: all 0.2s; font-size: 0.9rem; white-space: nowrap;
    }
    .copy-btn:hover { background: var(--copy-hover); border-color: var(--accent); color: var(--accent); }
    .copy-btn.copied { background: #2e7d32; color: white; border-color: #2e7d32; }
    .prompt-text {
      font-family: 'Inter', monospace; font-size: 1rem; color: var(--text-primary); white-space: pre-wrap;
      word-break: break-word; line-height: 1.6; background: var(--bg-primary); padding: 1rem 1.4rem;
      border-radius: 20px; border: 1px solid var(--border-light);
    }

    /* New: usage & tip section under each prompt */
    .prompt-extra {
      margin-top: 0.8rem; display: flex; flex-direction: column; gap: 0.6rem;
    }
    .usage-line {
      background: var(--tip-bg); padding: 0.7rem 1.2rem; border-radius: 40px; color: var(--text-secondary);
      font-size: 0.95rem; border-left: 4px solid var(--accent); display: flex; align-items: center; gap: 0.6rem;
    }
    .tip-line {
      background: var(--bg-card); padding: 0.7rem 1.2rem; border-radius: 40px; border: 1px solid var(--border-light);
      font-size: 0.95rem; display: flex; align-items: center; gap: 0.6rem; color: var(--text-meta);
    }
    .tip-line i, .usage-line i { color: var(--accent); width: 1.4rem; }

    /* closing note */
    .closing-note { background: var(--trend-bg); border-radius: 28px; padding: 2rem; margin: 3rem 0 2rem; }


    /* UPDATED: Author Authority (E-E-A-T) section */
.eeat-section {
  background: var(--eeat-bg);
  border-radius: 32px;
  padding: 2.2rem 2.4rem;
  margin: 2.8rem 0 2rem;
  border: 1px solid var(--border-light);
  box-shadow: var(--card-shadow);
  transition: all 0.25s ease;
}

.eeat-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.eeat-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2.2rem;
  align-items: center;
}

.eeat-avatar {
  text-align: center;
}

.eeat-author-img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent);
  background: var(--bg-card);
  padding: 4px;
  margin-bottom: 1rem;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  transition: transform 0.2s ease;
}

.eeat-author-img:hover {
  transform: scale(1.05);
}

.eeat-avatar h3 {
  margin-top: 0.8rem;
  font-size: 1.4rem;
  font-weight: 700;
}

.eeat-avatar p {
  color: var(--text-meta);
  margin-bottom: 1rem;
}

.eeat-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin: 1rem 0 1.2rem;
}

.eeat-badge {
  background: var(--accent-soft);
  color: var(--accent);
  padding: 0.4rem 1rem;
  border-radius: 40px;
  font-size: 0.82rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.eeat-badge:hover {
  background: var(--accent);
  color: #fff;
}

.eeat-portfolio-btn {
  display: inline-block;
  margin-top: 0.8rem;
  padding: 0.6rem 1.6rem;
  background: var(--accent);
  color: #fff;
  border-radius: 40px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
  border: 1px solid transparent;
}

.eeat-portfolio-btn:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
}

.eeat-desc p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.eeat-signature {
  margin-top: 1.2rem;
  font-style: italic;
  color: var(--accent);
  font-weight: 500;
}

/* Mobile */
@media (max-width: 640px) {
  .eeat-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .eeat-desc {
    text-align: left;
    margin-top: 1rem;
  }
}


    /* 🚀 Modern Share Section */
.share-section {
  background: var(--bg-card);
  border-radius: 32px;
  border: 1px solid var(--border-light);
  padding: 1.5rem 2rem;
  margin: 2.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  box-shadow: var(--card-shadow);
}

.share-label {
  font-weight: 700;
  color: var(--text-meta);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.05rem;
}

.share-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.share-button {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  border: 1px solid var(--border-light);
  background: var(--trend-bg);
  color: var(--text-secondary);
  transition: all 0.25s ease;
}

.share-button:hover {
  transform: translateY(-4px);
}

/* Brand Colors */
.share-button.twitter:hover { background: #1DA1F2; color: #fff; }
.share-button.linkedin:hover { background: #0077B5; color: #fff; }
.share-button.facebook:hover { background: #1877F2; color: #fff; }
.share-button.whatsapp:hover { background: #25D366; color: #fff; }
.share-button.telegram:hover { background: #0088cc; color: #fff; }
.share-button.reddit:hover { background: #FF4500; color: #fff; }
.share-button.email:hover { background: #EA4335; color: #fff; }

@media (max-width: 700px) {
  .share-section {
    flex-direction: column;
    align-items: flex-start;
  }
}


.share-button.copy:hover {
  background: var(--accent);
  color: #fff;
}

.share-button.copy.copied {
  background: #2e7d32;
  color: #fff;
}




    /* FAQ accordion */
    .faq-item { background: var(--bg-card); border: 1px solid var(--border-light); border-radius: 24px; margin-bottom: 1rem; }
    .faq-question { padding: 1.3rem 2rem; font-weight: 700; display: flex; justify-content: space-between; align-items: center; cursor: pointer; border-radius: 24px; transition: background 0.2s; }
    .faq-question:hover { background: var(--accent-soft); }
    .faq-answer { padding: 0 2rem 1.5rem 2rem; color: var(--text-secondary); display: none; }
    .faq-item.open .faq-answer { display: block; }
    .faq-item.open .faq-question i { transform: rotate(180deg); }

    /* RELATED & TRENDING GRIDS - cards as links */
    .related-grid, .trending-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.8rem; margin: 2rem 0; }
    .related-card, .trend-card {
      background: var(--bg-card); border: 1px solid var(--border-light); border-radius: 24px; overflow: hidden;
      transition: transform 0.2s, border-color 0.2s; display: block; color: inherit;
    }
    .related-card:hover, .trend-card:hover { transform: translateY(-4px); border-color: var(--accent); }
    .related-card img, .trend-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-bottom: 1px solid var(--border-light); }
    .related-card h4, .trend-card .trend-content h4 { padding: 1rem 1.2rem 0.2rem; font-weight: 700; }
    .related-card p, .trend-card .trend-content span { padding: 0 1.2rem 1.2rem; color: var(--text-meta); font-size: 0.9rem; display: block; }
    .trend-card .trend-content { padding: 1rem 1.2rem; }

    /* FOOTER aligned properly */
    footer { margin-top: 4rem; background: var(--footer-bg); border-top: 1px solid var(--border-light); padding: 3rem 0 2rem; }
    .footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 2.5rem; align-items: start; }
    .footer-col p { margin-top: 0.8rem; color: var(--text-secondary); }
    .footer-col h4 { font-weight: 700; margin-bottom: 1rem; }
    .footer-col ul { list-style: none; color: var(--text-secondary); }
    .footer-col li { margin-bottom: 0.6rem; }
    .footer-copyright { text-align: center; margin-top: 3rem; color: var(--text-meta); }
    @media (max-width: 768px) { 
      .footer-grid { grid-template-columns: 1fr 1fr; } 
      .related-grid, .trending-grid { grid-template-columns: 1fr; }
    }

    /* ==============================
   MODERN PROFESSIONAL FOOTER
================================ */

footer {
  margin-top: 4rem;
  background: linear-gradient(180deg, var(--footer-bg), rgba(0,0,0,0.02));
  border-top: 1px solid var(--border-light);
  padding: 3.5rem 0 2.2rem;
  position: relative;
}

/* GRID LAYOUT */
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.2fr 1.2fr;
  gap: 3rem;
  align-items: start;
}

/* FOOTER COLUMN */
.footer-col {
  display: flex;
  flex-direction: column;
}

/* BRAND TEXT */
.footer-col span {
  font-size: 1.7rem;
  font-weight: 800;
}

.footer-col p {
  margin-top: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 0.95rem;
  max-width: 340px;
}

/* HEADING STYLE */
.footer-col h4 {
  font-weight: 700;
  margin-bottom: 1.2rem;
  font-size: 1.05rem;
  position: relative;
  display: inline-block;
  padding-bottom: 8px;
}

/* Decorative underline */
.footer-col h4::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 3px;
  background: var(--accent);
  border-radius: 3px;
  transition: width 0.3s ease;
}

.footer-col h4:hover::after {
  width: 70px;
}

/* LIST STYLING */
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li {
  margin-bottom: 0.7rem;
}

.footer-col li a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.25s ease;
  display: inline-block;
}

/* Hover animation */
.footer-col li a:hover {
  color: var(--accent);
  transform: translateX(5px);
}

/* COPYRIGHT */
.footer-copyright {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
  text-align: center;
  color: var(--text-meta);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ==============================
   RESPONSIVE DESIGN
================================ */

/* Tablet */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}

/* Mobile */
@media (max-width: 600px) {

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-col {
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-light);
  }

  .footer-col:last-child {
    border-bottom: none;
  }

  .footer-col p {
    max-width: 100%;
  }

  .footer-col h4::after {
    width: 60px; /* more visible in mobile */
  }
}


/* ==============================
   FOOTER BOTTOM PREMIUM STYLE
================================ */

.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--border-light);
  text-align: center;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-meta);
  letter-spacing: 0.3px;
  line-height: 1.6;
}

/* Link style */
.footer-bottom a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
}

/* Hover effect */
.footer-bottom a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

/* Mobile spacing */
@media (max-width: 600px) {
  .footer-bottom {
    margin-top: 2rem;
    padding-top: 1.3rem;
  }

  .footer-bottom p {
    font-size: 0.85rem;
  }
}


.footer-logo {
  font-size: 1.8rem;
  font-weight: 800;
}



.footer-logo-accent {
  background: linear-gradient(145deg, var(--accent), #24b3b3);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}


/* ==============================
   BLOG FOOTER CONTACT SECTION
================================ */

.footer-contact {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-contact li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.9rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
  transition: transform 0.25s ease;
}

.footer-contact li:hover {
  transform: translateX(5px);
}

.footer-contact i {
  color: var(--accent);
  font-size: 0.9rem;
  min-width: 18px;
}

.footer-contact a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: 0.25s ease;
}

.footer-contact a:hover {
  color: var(--accent);
}

/* =========================================
   FIX RELATED & TRENDING IMAGE CROPPING
   Show full original image size
========================================= */

.related-card img,
.trend-card img {
  aspect-ratio: auto !important;   /* remove forced 16:9 */
  height: auto !important;
  object-fit: contain !important;  /* prevent crop */
}

/* Allow card height to adjust naturally */
.related-card,
.trend-card {
  height: auto !important;
}
