/* =========================================================
   HƏMVƏTƏN BLOG STYLESHEET
   100% Crystal-Clear Contrast in Both Light & Dark Themes
   ========================================================= */

/* Base Light Theme Tokens */
:root {
  --font-sans: "Poppins", system-ui, -apple-system, sans-serif;
  --az-blue: #0098c3;
  --az-red: #ef3340;
  --az-green: #00b16a;
  --flame: #f5a623;
  --flame-deep: #ff8c00;
  --flame-grad: linear-gradient(-47deg, #ff8c00 0%, #f5a623 100%);
  --blue-grad: linear-gradient(135deg, #00529c 0%, #0098c3 100%);
  --flag-grad: linear-gradient(90deg, #0098c3 0%, #ef3340 50%, #00b16a 100%);
  
  /* Light Mode Colors (Sharp High Contrast) */
  --bg-main: #f8fafc;
  --bg-sub: #f1f5f9;
  --bg-card: #ffffff;
  --bg-card-hover: #ffffff;
  --bg-navbar: rgba(255, 255, 255, 0.92);
  --border-color: rgba(15, 23, 42, 0.08);
  --border-color-hover: rgba(245, 166, 35, 0.5);
  
  --text-primary: #0f172a;       /* Darkest Slate for Titles */
  --text-secondary: #334155;     /* Dark Slate for Body Text */
  --text-muted: #64748b;         /* Neutral Slate for Meta */
  
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.06);
  --shadow-card: 0 10px 30px -10px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 25px 50px -12px rgba(15, 23, 42, 0.12);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
}

/* Dark Mode Tokens (Deep Space + Crisp Light Text) */
body.dark-theme {
  --bg-main: #060913;
  --bg-sub: #0a0f1c;
  --bg-card: #0f172a;
  --bg-card-hover: #131d33;
  --bg-navbar: rgba(6, 9, 19, 0.92);
  --border-color: rgba(255, 255, 255, 0.1);
  --border-color-hover: rgba(245, 166, 35, 0.45);
  
  --text-primary: #f8fafc;       /* Pure Crisp White for Titles */
  --text-secondary: #cbd5e1;     /* Light Crisp Slate for Body Text */
  --text-muted: #94a3b8;         /* Medium Light Slate for Meta */
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.35);
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 30px 60px -15px rgba(0, 0, 0, 0.8);
}

/* Base Body Styles */
body {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  background-image: 
    radial-gradient(at 0 0, rgba(0, 152, 195, 0.06) 0, transparent 50%),
    radial-gradient(at 100% 0, rgba(245, 166, 35, 0.06) 0, transparent 50%),
    radial-gradient(at 50% 100%, rgba(239, 51, 64, 0.03) 0, transparent 50%),
    linear-gradient(rgba(15, 23, 42, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.02) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 100% 100%, 40px 40px, 40px 40px;
  line-height: 1.65;
  transition: background-color 0.3s, color 0.3s;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body.dark-theme {
  background-image: 
    radial-gradient(at 0 0, rgba(0, 152, 195, 0.12) 0, transparent 50%),
    radial-gradient(at 100% 0, rgba(245, 166, 35, 0.1) 0, transparent 50%),
    radial-gradient(at 50% 100%, rgba(239, 51, 64, 0.08) 0, transparent 50%),
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
}

/* =========================================================
   NAVBAR (Transparent on Hero, Glassmorphism on Scroll)
   ========================================================= */
.navbar {
  position: fixed;
  top: 4px;
  left: 0;
  right: 0;
  z-index: 100;
  transition: all 0.3s ease;
  background: transparent;
  border-bottom: 1px solid transparent;
}

.navbar:not(.scrolled) .nav-link {
  color: #ffffff !important;
  font-weight: 600;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.navbar:not(.scrolled) .nav-link:hover {
  color: #fff !important;
  opacity: 0.9;
}

.navbar:not(.scrolled) .brand h3 {
  color: #ffffff !important;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.navbar:not(.scrolled) .btn-theme-toggle {
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
  background: rgba(255, 255, 255, 0.15) !important;
}

/* Scrolled Navbar */
.navbar.scrolled {
  background: var(--bg-navbar) !important;
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border-color) !important;
  box-shadow: var(--shadow-sm);
}

.navbar.scrolled .nav-link {
  color: var(--text-secondary) !important;
  text-shadow: none;
}

.navbar.scrolled .nav-link:hover, .navbar.scrolled .nav-link.active {
  color: var(--text-primary) !important;
}

.navbar.scrolled .brand h3 {
  color: var(--text-primary) !important;
  text-shadow: none;
}

.navbar.scrolled .btn-theme-toggle {
  color: var(--text-primary) !important;
  border-color: var(--border-color) !important;
  background: rgba(0, 0, 0, 0.04) !important;
}

body.dark-theme .navbar.scrolled .btn-theme-toggle {
  background: rgba(255, 255, 255, 0.08) !important;
}

/* =========================================================
   2-TIER CENTERED SEARCH & CATEGORY FILTER BAR
   ========================================================= */
.blog-controls-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  max-width: 1050px;
  margin: 0 auto 46px auto;
  width: 100%;
}

/* Tier 1: Centered Search Input */
.blog-search-centered-wrap {
  width: 100%;
  max-width: 580px;
  display: flex;
  justify-content: center;
}

.blog-search-box {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  background: var(--bg-card);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.blog-search-box:hover {
  border-color: rgba(245, 166, 35, 0.5);
  box-shadow: 0 6px 20px -4px rgba(15, 23, 42, 0.1);
  transform: translateY(-1px);
}

.blog-search-box:focus-within {
  border-color: #f5a623;
  box-shadow: 0 0 0 4px rgba(245, 166, 35, 0.25), 0 10px 25px -5px rgba(245, 166, 35, 0.15);
  transform: translateY(-2px);
}

.blog-search-svg {
  position: absolute;
  left: 20px;
  color: var(--text-muted);
  pointer-events: none;
  transition: color 0.2s ease;
}

.blog-search-box:focus-within .blog-search-svg {
  color: #f5a623;
}

.blog-search-input {
  width: 100%;
  padding: 13px 24px 13px 52px;
  border-radius: var(--radius-full);
  border: none;
  background: transparent;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 500;
  outline: none;
}

.blog-search-input::placeholder {
  color: var(--text-muted);
  font-weight: 400;
}

/* Tier 2: Category Filter Pills */
.blog-category-pills-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
}

.blog-category-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.blog-pill {
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-secondary);
  padding: 9px 20px;
  border-radius: var(--radius-full);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
  box-shadow: var(--shadow-sm);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.blog-pill:hover {
  border-color: #ff8c00;
  color: var(--text-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(255, 140, 0, 0.18);
}

.blog-pill.active {
  background: var(--flame-grad);
  color: #ffffff !important;
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(245, 166, 35, 0.4);
  transform: translateY(-2px);
}

/* =========================================================
   ARTICLE CARDS (Featured & Grid)
   ========================================================= */
.featured-article-wrap {
  margin-bottom: 48px;
}

.featured-article-card {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  color: inherit;
  position: relative;
}

.featured-article-card:after {
  content: "";
  background: 0 0;
  height: 4px;
  transition: background 0.3s;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
}

.featured-article-card:hover {
  border-color: var(--border-color-hover);
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.featured-article-card:hover:after {
  background: var(--flame-grad);
}

.featured-img-box {
  min-height: 320px;
  overflow: hidden;
  position: relative;
}

.featured-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.featured-article-card:hover .featured-img-box img {
  transform: scale(1.04);
}

.featured-text-box {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.category-badge-pill {
  align-self: flex-start;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 14px;
}

.tag-finance, .tag-fintech { background: rgba(16, 185, 129, 0.15); color: #059669; }
.tag-travel { background: rgba(0, 152, 195, 0.15); color: #007799; }
.tag-visa-legal, .tag-legal { background: rgba(37, 99, 235, 0.15); color: #1d4ed8; }
.tag-life-community, .tag-community, .tag-living { background: rgba(245, 166, 35, 0.18); color: #d97706; }
.tag-career, .tag-is-karyera { background: rgba(139, 92, 246, 0.15); color: #7c3aed; }

body.dark-theme .tag-finance, body.dark-theme .tag-fintech { color: #34d399; }
body.dark-theme .tag-travel { color: #38bdf8; }
body.dark-theme .tag-visa-legal, body.dark-theme .tag-legal { color: #60a5fa; }
body.dark-theme .tag-life-community, body.dark-theme .tag-community, body.dark-theme .tag-living { color: #fbbf24; }
body.dark-theme .tag-career, body.dark-theme .tag-is-karyera { color: #c4b5fd; }

.featured-text-box h2 {
  font-size: 25px;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 14px;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.featured-text-box p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 24px;
}

.post-meta-row {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: var(--text-muted);
}

.post-author-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--text-primary);
}

.post-author-wrap img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

/* Grid of Articles */
.blog-articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 32px;
  margin-bottom: 60px;
}

.article-grid-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  position: relative;
}

.article-grid-card:after {
  content: "";
  background: 0 0;
  height: 4px;
  transition: background 0.3s;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
}

.article-grid-card:hover {
  border-color: var(--border-color-hover);
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.article-grid-card:hover:after {
  background: var(--flame-grad);
}

.article-grid-thumb {
  width: 100%;
  height: 205px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.article-grid-card:hover .article-grid-thumb {
  transform: scale(1.03);
}

.article-grid-body {
  padding: 26px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.article-grid-title {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 10px;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.article-grid-excerpt {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
  flex: 1;
}

.article-grid-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-color);
  padding-top: 14px;
  margin-top: auto;
}

.article-read-btn {
  color: #ff8c00;
  font-size: 13.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: transform 0.2s ease;
}

.article-grid-card:hover .article-read-btn {
  transform: translateX(4px);
  color: #e8740c;
}

/* =========================================================
   ARTICLE READER VIEW (.article-reader-container)
   High Contrast Typography for Both Light & Dark
   ========================================================= */

html, body {
  overflow-x: hidden !important;
  width: 100% !important;
  max-width: 100vw !important;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

*, *::before, *::after {
  box-sizing: border-box;
}

.article-reader-container {
  width: 100% !important;
  max-width: 860px;
  margin: 20px auto 80px;
  padding: 0 20px;
  box-sizing: border-box;
  overflow-x: hidden;
}

.blog-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--text-muted);
  margin-bottom: 24px;
  overflow-wrap: break-word;
}

.blog-breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.blog-breadcrumb a:hover {
  color: #ff8c00;
}

.reader-meta-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 32px;
  width: 100%;
  box-sizing: border-box;
}

.reader-author-info {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 100%;
}

.reader-avatar-wrapper {
  position: relative;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.reader-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: contain;
  border: 2px solid rgba(245, 166, 35, 0.4);
  background: var(--bg-card);
  padding: 3px;
}

.avatar-status-badge {
  position: absolute;
  bottom: -1px;
  right: -1px;
  width: 17px;
  height: 17px;
  background: #10b981;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 800;
  border: 2px solid var(--bg-card);
}

.reader-author-name {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--text-primary);
  overflow-wrap: break-word;
}

.verified-trust-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 2px 8px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

.reader-author-subtitle {
  font-size: 12.5px;
  color: var(--text-secondary);
  margin-top: 3px;
  overflow-wrap: break-word;
}

/* Community Trust Box (Author Credibility) */
.community-trust-box {
  background: var(--bg-card);
  border: 1.5px solid rgba(245, 166, 35, 0.35);
  border-radius: var(--radius-lg, 20px);
  padding: 28px 32px;
  margin: 40px 0;
  box-shadow: 0 10px 30px -10px rgba(245, 166, 35, 0.1);
  position: relative;
  overflow: hidden;
}

.community-trust-box:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: var(--flame-grad);
}

.trust-box-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.trust-badge-pill {
  background: rgba(245, 166, 35, 0.12);
  color: #ff8c00;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 9999px;
  border: 1px solid rgba(245, 166, 35, 0.3);
}

.dark-theme .trust-badge-pill {
  background: rgba(245, 166, 35, 0.2);
  color: #f5a623;
}

.trust-date {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
}

.community-trust-box h4 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.community-trust-box p {
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin: 0;
}

.reader-share-btns {
  display: flex;
  align-items: center;
  gap: 8px;
}

.reader-share-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.reader-share-btn svg {
  width: 18px;
  height: 18px;
  display: block;
}

.reader-share-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.reader-share-btn.wa { color: #25D366; }
.reader-share-btn.wa:hover { background: #25D366; border-color: #25D366; color: #ffffff !important; }

.reader-share-btn.tg { color: #0088cc; }
.reader-share-btn.tg:hover { background: #0088cc; border-color: #0088cc; color: #ffffff !important; }

.reader-share-btn.fb { color: #1877f2; }
.reader-share-btn.fb:hover { background: #1877f2; border-color: #1877f2; color: #ffffff !important; }

.reader-share-btn.cp { color: #ff8c00; }
.reader-share-btn.cp:hover { background: #ff8c00; border-color: #ff8c00; color: #ffffff !important; }

.reader-cover-img {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin-bottom: 36px;
  box-shadow: var(--shadow-card);
}

/* Article Content Body — High Contrast and Legibility */
.reader-content-body {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  font-size: 17px;
  line-height: 1.85;
  color: var(--text-secondary);
  overflow-wrap: break-word !important;
  word-wrap: break-word !important;
  word-break: break-word !important;
  hyphens: auto;
}

.reader-content-body * {
  max-width: 100% !important;
  box-sizing: border-box !important;
}

.reader-content-body h2 {
  font-size: 26px;
  font-weight: 800;
  color: var(--text-primary);
  margin: 44px 0 16px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  overflow-wrap: break-word;
  word-break: break-word;
}

.reader-content-body h3 {
  font-size: 21px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 30px 0 12px;
  overflow-wrap: break-word;
  word-break: break-word;
}

.reader-content-body p {
  width: 100% !important;
  max-width: 100% !important;
  margin-bottom: 24px;
  overflow-wrap: break-word !important;
  word-wrap: break-word !important;
  word-break: break-word !important;
}

.reader-content-body a {
  overflow-wrap: break-word !important;
  word-break: break-word !important;
}

.reader-content-body ul, .reader-content-body ol {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 0 24px 0 !important;
  padding-left: 22px !important;
  padding-right: 0 !important;
  box-sizing: border-box !important;
}

.reader-content-body li {
  margin-bottom: 10px;
  color: var(--text-secondary);
  overflow-wrap: break-word !important;
  word-break: break-word !important;
}

.reader-content-body strong {
  color: var(--text-primary);
  font-weight: 700;
}

/* Force all inline partner callout boxes & trust boxes to stay within bounds */
.partner-callout-card,
.flight-partner-card,
.esim-partner-card,
.community-trust-box,
.affiliate-callout-card,
.reader-app-banner,
.reader-content-body div[style*="border-left"] {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

/* Affiliate Conversion Callout */
.affiliate-callout-card {
  background: var(--bg-card);
  border: 1.5px solid #ff8c00;
  border-radius: var(--radius-md);
  padding: 26px 30px;
  margin: 36px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  box-shadow: 0 12px 30px rgba(245, 166, 35, 0.15);
  position: relative;
  overflow: hidden;
}

.affiliate-callout-card:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 5px;
  background: var(--flame-grad);
}

.affiliate-top-badge {
  position: absolute;
  top: 0;
  right: 28px;
  background: var(--flame-grad);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 3px 12px;
  border-radius: 0 0 8px 8px;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(245, 166, 35, 0.3);
}

.affiliate-info h4 {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.affiliate-info p {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0;
}

.btn-affiliate-action {
  background: var(--flame-grad);
  color: #fff !important;
  font-size: 14px;
  font-weight: 700;
  padding: 12px 26px;
  border-radius: var(--radius-full);
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 4px 15px rgba(245, 166, 35, 0.4);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-affiliate-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(245, 166, 35, 0.6);
}

/* App Download Banner (Exact Match with Landing Page Style) */
.reader-app-banner {
  background: linear-gradient(135deg, rgba(239, 51, 64, 0.92) 0%, rgba(245, 166, 35, 0.95) 100%), url(/welcome-bg.jpg) 50%/cover no-repeat;
  border: none;
  border-radius: var(--radius-lg, 24px);
  padding: 48px 36px;
  margin: 48px 0;
  text-align: center;
  color: #ffffff;
  box-shadow: 0 20px 40px rgba(245, 166, 35, 0.25);
  position: relative;
  overflow: hidden;
}

.reader-app-banner h3 {
  font-size: 26px;
  font-weight: 800;
  color: #ffffff !important;
  margin-bottom: 12px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

.reader-app-banner p {
  font-size: 15.5px;
  color: rgba(255, 255, 255, 0.95) !important;
  max-width: 560px;
  margin: 0 auto 28px;
  line-height: 1.6;
  text-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

.reader-store-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.btn-store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #000000;
  color: #ffffff !important;
  padding: 10px 22px;
  border-radius: 12px;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  transition: all 0.25s ease;
}

.btn-store-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
  border-color: rgba(255, 255, 255, 0.45);
}

/* Airalo eSIM Partner / Solution Card */
.esim-partner-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.95));
  border: 2px solid rgba(245, 166, 35, 0.45);
  border-radius: var(--radius-lg, 20px);
  padding: 28px;
  margin: 36px 0;
  box-shadow: 0 12px 30px -10px rgba(245, 166, 35, 0.15);
  position: relative;
  overflow: hidden;
}

.dark-theme .esim-partner-card {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.95));
  border-color: rgba(245, 166, 35, 0.35);
}

.esim-partner-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 100%;
  background: var(--flame-grad);
}

.esim-partner-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(245, 166, 35, 0.15);
  color: #d97706;
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 4px 12px;
  border-radius: 9999px;
  border: 1px solid rgba(245, 166, 35, 0.3);
  margin-bottom: 14px;
}

.dark-theme .esim-partner-badge {
  background: rgba(245, 166, 35, 0.2);
  color: #f5a623;
}

.esim-partner-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.esim-partner-text {
  flex: 1 1 320px;
}

.esim-partner-text h4 {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 0 8px 0;
  letter-spacing: -0.2px;
}

.esim-partner-text p {
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

.esim-partner-action {
  flex-shrink: 0;
}

.btn-esim-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--flame-grad);
  color: #ffffff !important;
  font-size: 15px;
  font-weight: 700;
  padding: 14px 26px;
  border-radius: 12px;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(245, 166, 35, 0.35);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-esim-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(245, 166, 35, 0.5);
  filter: brightness(1.05);
}

/* Flight & Aviasales Partner Styles */
.flight-partner-card,
.partner-callout-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.95));
  border: 2px solid rgba(245, 166, 35, 0.45);
  border-radius: var(--radius-lg, 20px);
  padding: 28px;
  margin: 36px 0;
  box-shadow: 0 12px 30px -10px rgba(245, 166, 35, 0.15);
  position: relative;
  overflow: hidden;
}

.dark-theme .flight-partner-card,
.dark-theme .partner-callout-card {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.95));
  border-color: rgba(245, 166, 35, 0.35);
}

.flight-partner-card::before,
.partner-callout-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 100%;
  background: var(--flame-grad);
}

.btn-flight-cta,
.btn-partner-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--flame-grad);
  color: #ffffff !important;
  font-size: 15px;
  font-weight: 700;
  padding: 14px 26px;
  border-radius: 12px;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(245, 166, 35, 0.35);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-flight-cta:hover,
.btn-partner-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(245, 166, 35, 0.5);
  filter: brightness(1.05);
}

/* =========================================================
   NATURAL EDITORIAL INTERNAL LINKING & RELATED POSTS
   ========================================================= */

/* Natural In-Text Editorial Hyperlinks (Industry Standard) */
.blog-intext-link {
  color: #ea580c;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(234, 88, 12, 0.4);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  transition: all 0.2s ease;
  border-radius: 2px;
}

.blog-intext-link:hover {
  color: #c2410c;
  text-decoration-color: #c2410c;
  background: rgba(234, 88, 12, 0.08);
}

.dark-theme .blog-intext-link {
  color: #f59e0b;
  text-decoration-color: rgba(245, 158, 11, 0.45);
}

.dark-theme .blog-intext-link:hover {
  color: #fbbf24;
  text-decoration-color: #fbbf24;
  background: rgba(245, 158, 11, 0.12);
}

/* Related Articles Container at bottom of article */
.related-posts-container {
  margin-top: 55px;
  padding-top: 40px;
  border-top: 1px solid var(--border-color);
}

.related-posts-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 26px;
  flex-wrap: wrap;
  gap: 12px;
}

.related-posts-header h3 {
  font-size: 22px;
  font-weight: 800;
  margin: 4px 0 0;
  color: var(--text-primary);
}

.related-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

/* =========================================================
   MOBILE RESPONSIVENESS & TOUCH OPTIMIZATIONS (Complete)
   ========================================================= */

/* Mobile Menu Toggle Button */
.btn-mobile-menu {
  display: none;
  background: transparent;
  border: none;
  padding: 8px;
  cursor: pointer;
  color: #ffffff;
  border-radius: var(--radius-sm);
  transition: all 0.25s ease;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.navbar.scrolled .btn-mobile-menu {
  color: var(--text-primary);
}

.nav-actions-mobile {
  display: none;
  align-items: center;
  gap: 6px;
}

/* Mobile Nav Drawer (Adapts dynamically to Light & Dark Theme) */
.mobile-nav-drawer {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.98);
  -webkit-backdrop-filter: blur(25px) saturate(190%);
  backdrop-filter: blur(25px) saturate(190%);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  padding: 80px 24px 32px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-20px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
}

body.dark-theme .mobile-nav-drawer {
  background: rgba(6, 9, 19, 0.98);
}

.mobile-nav-drawer.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mobile-nav-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(15, 23, 42, 0.06);
  border: 1px solid rgba(15, 23, 42, 0.12);
  color: var(--text-primary);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 20px;
  transition: all 0.2s ease;
}

body.dark-theme .mobile-nav-close {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.mobile-nav-close:hover {
  background: rgba(15, 23, 42, 0.12);
  transform: rotate(90deg);
}

body.dark-theme .mobile-nav-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 10px;
}

.mobile-nav-link {
  color: var(--text-primary);
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  background: var(--bg-sub);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

body.dark-theme .mobile-nav-link {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

.mobile-nav-link:active, .mobile-nav-link.active, .mobile-nav-link:hover {
  background: var(--flame-grad);
  border-color: transparent;
  color: #ffffff !important;
  box-shadow: 0 4px 15px rgba(245, 166, 35, 0.4);
}

.mobile-nav-footer {
  margin-top: auto;
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn-mobile-download {
  background: var(--flame-grad);
  color: #ffffff !important;
  font-size: 16px;
  font-weight: 800;
  text-align: center;
  padding: 15px;
  border-radius: var(--radius-md);
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(245, 166, 35, 0.4);
}

/* Responsive Table Wrapper for Mobile Article Reading */
.reader-content-body table {
  width: 100% !important;
  display: block !important;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch !important;
  border-collapse: collapse !important;
  margin: 24px 0 !important;
  border: 1px solid var(--border-color) !important;
  border-radius: var(--radius-sm) !important;
}

.reader-content-body th,
.reader-content-body td {
  padding: 12px 16px !important;
  border: 1px solid var(--border-color) !important;
  font-size: 14px !important;
  min-width: 120px !important;
  text-align: left !important;
}

.reader-content-body th {
  background: var(--bg-sub) !important;
  color: var(--text-primary) !important;
  font-weight: 700 !important;
}

.reader-content-body img,
.reader-content-body iframe,
.reader-content-body video,
.reader-content-body svg {
  max-width: 100% !important;
  height: auto !important;
  border-radius: 12px !important;
}

.reader-content-body pre {
  max-width: 100% !important;
  overflow-x: auto !important;
  padding: 16px !important;
  border-radius: 12px !important;
  background: var(--bg-sub) !important;
  font-size: 13.5px !important;
}

/* Tablet & Mobile Breakpoints */
@media (max-width: 960px) {
  .nav-links {
    display: none !important;
  }
  .btn-mobile-menu {
    display: inline-flex;
  }
  .nav-actions-mobile {
    display: flex;
  }
  .blog-articles-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

@media (max-width: 768px) {
  /* Hero Section */
  .hero-section {
    min-height: auto !important;
    padding: 110px 18px 70px !important;
    gap: 12px !important;
  }
  
  .hero-section h1 {
    font-size: clamp(24px, 6.5vw, 34px) !important;
    line-height: 1.25 !important;
  }

  .hero-section p {
    font-size: 14.5px !important;
    line-height: 1.6 !important;
  }

  #articleTitle {
    font-size: clamp(22px, 5.8vw, 30px) !important;
    line-height: 1.3 !important;
  }

  /* Filter Bar & Horizontal Category Scroll */
  .blog-filter-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    margin-bottom: 28px;
  }

  .blog-category-pills {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 8px;
    padding-bottom: 6px;
    width: 100%;
  }

  .blog-category-pills::-webkit-scrollbar {
    display: none;
  }

  .blog-pill {
    white-space: nowrap;
    flex-shrink: 0;
    padding: 8px 16px;
    font-size: 13px;
  }

  .blog-search-wrap {
    width: 100%;
    min-width: 0;
  }

  .blog-search-input {
    font-size: 14px;
    padding: 10px 16px 10px 38px;
  }

  /* Featured Article Card */
  .featured-article-wrap {
    margin-bottom: 32px;
  }

  .featured-article-card {
    grid-template-columns: 1fr;
  }

  .featured-img-box {
    min-height: 200px;
    max-height: 240px;
  }

  .featured-text-box {
    padding: 22px 18px;
  }

  .featured-text-box h2 {
    font-size: 20px;
    margin-bottom: 10px;
  }

  .featured-text-box p {
    font-size: 14px;
    margin-bottom: 16px;
    line-height: 1.55;
  }

  /* Grid of Articles */
  .blog-articles-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 40px;
  }

  .article-grid-thumb {
    height: 190px;
  }

  .article-grid-body {
    padding: 20px 18px;
  }

  .article-grid-title {
    font-size: 17.5px;
    margin-bottom: 8px;
  }

  .article-grid-excerpt {
    font-size: 13.5px;
    line-height: 1.55;
    margin-bottom: 16px;
  }

  /* Article Reader View */
  .article-reader-container {
    padding: 0 16px !important;
    margin: 16px auto 48px !important;
  }

  .blog-breadcrumb {
    font-size: 12.5px;
    gap: 6px;
    margin-bottom: 18px;
  }

  .reader-meta-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding-bottom: 20px;
    margin-bottom: 24px;
  }

  .reader-share-btns {
    width: 100%;
    justify-content: space-between;
    gap: 8px;
  }

  .reader-share-btn {
    flex: 1;
    min-width: 44px;
    height: 44px;
    border-radius: 12px;
  }

  .reader-cover-img {
    max-height: clamp(200px, 50vw, 320px);
    border-radius: 14px;
    margin-bottom: 24px;
  }

  .reader-content-body {
    font-size: 16px;
    line-height: 1.8;
  }

  .reader-content-body h2 {
    font-size: 21px;
    margin: 32px 0 12px;
  }

  .reader-content-body h3 {
    font-size: 18px;
    margin: 24px 0 10px;
  }

  .reader-content-body ul, .reader-content-body ol {
    margin: 0 0 20px 0 !important;
    padding-left: 20px !important;
    padding-right: 0 !important;
  }

  /* Partner Cards */
  .esim-partner-card,
  .flight-partner-card,
  .partner-callout-card,
  .community-trust-box,
  .affiliate-callout-card {
    padding: 20px 16px !important;
    border-radius: 16px !important;
    margin: 28px 0 !important;
  }

  .esim-partner-content {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .esim-partner-action,
  .btn-esim-cta,
  .btn-flight-cta,
  .btn-partner-cta,
  .btn-affiliate-action {
    width: 100% !important;
    box-sizing: border-box !important;
    text-align: center !important;
    justify-content: center !important;
    padding: 13px 20px !important;
    font-size: 14.5px !important;
  }

  /* App Download Banner */
  .reader-app-banner {
    padding: 30px 18px !important;
    border-radius: 18px !important;
    margin: 36px 0 !important;
  }

  .reader-app-banner h3 {
    font-size: 20px !important;
    margin-bottom: 10px !important;
  }

  .reader-app-banner p {
    font-size: 14px !important;
    margin-bottom: 22px !important;
    line-height: 1.55 !important;
  }

  .reader-store-buttons {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .btn-store-badge {
    width: 100%;
    box-sizing: border-box;
    justify-content: center;
    padding: 11px 18px;
  }

  /* Related Posts */
  .related-posts-container {
    margin-top: 40px;
    padding-top: 30px;
  }

  .related-posts-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    margin-bottom: 20px;
  }

  .related-posts-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  /* Footer */
  footer {
    padding: 40px 18px 24px !important;
  }

  .footer-content {
    flex-direction: column !important;
    gap: 30px !important;
  }
}

@media (max-width: 480px) {
  .hero-section {
    padding: 100px 14px 60px !important;
  }

  .reader-author-info {
    gap: 10px;
  }

  .reader-avatar-wrapper, .reader-avatar {
    width: 42px;
    height: 42px;
  }

  .reader-author-name {
    font-size: 14px;
  }

  .reader-author-subtitle {
    font-size: 11.5px;
  }
}


