:root {
  --primary-color: #2c3e50;
  --accent-color: #c0392b;
  --text-dark: #333333;
  --text-light: #777777;
  --bg-light: #ffffff;
  --bg-offwhite: #f9f9f9;
  --border-color: #eaeaea;
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-color);
  font-family: var(--font-body);
  color: var(--text-dark);
  background-color: var(--bg-light);
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

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

ul {
  list-style: none;
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
header {
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-light);
  z-index: 100;
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  letter-spacing: -0.5px;
}

.logo img {
  height: 40px;
  width: auto;
  max-width: 220px;
  display: block;
  object-fit: contain;
}

.footer-logo img {
  height: 38px;
  width: auto;
  max-width: 210px;
  display: block;
  object-fit: contain;
}

.logo span {
  color: var(--accent-color);
}

/* Modern Header Actions & Search */
.header-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.site-search-wrapper {
  position: relative;
  width: 280px;
}

.site-search-form {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.site-search-input {
  width: 100%;
  padding: 10px 42px 10px 18px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 9999px;
  font-family: var(--font-body, inherit);
  font-size: 0.9rem;
  color: #1e293b;
  outline: none;
  transition: all 0.25s ease;
}

.site-search-input:focus {
  background: #ffffff;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.site-search-btn {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  cursor: pointer;
  transition: all 0.2s ease;
}

.site-search-btn:hover {
  background: #e2e8f0;
  color: #2563eb;
}

/* Live Search Suggestions Dropdown */
.search-results-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  min-width: 340px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
  z-index: 1000;
  max-height: 420px;
  overflow-y: auto;
  display: none;
}

.search-results-dropdown.active {
  display: block;
}

.search-dropdown-header {
  padding: 10px 16px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #94a3b8;
  letter-spacing: 0.5px;
  border-bottom: 1px solid #f1f5f9;
  background: #f8fafc;
  border-radius: 12px 12px 0 0;
}

.search-dropdown-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.search-dropdown-item {
  border-bottom: 1px solid #f1f5f9;
  transition: background 0.15s ease;
}

.search-dropdown-item:last-child {
  border-bottom: none;
}

.search-dropdown-item a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  text-decoration: none;
  color: inherit;
}

.search-dropdown-item:hover,
.search-dropdown-item.selected {
  background: #f8fafc;
}

.search-dropdown-thumb {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  background: #e2e8f0;
}

.search-dropdown-info {
  flex: 1;
  min-width: 0;
}

.search-dropdown-category {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-color, #f43f5e);
  margin-bottom: 2px;
}

.search-dropdown-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: #0f172a;
  line-height: 1.35;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.search-dropdown-view-all {
  display: block;
  padding: 12px;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: #2563eb;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  border-radius: 0 0 12px 12px;
  text-decoration: none;
}

.search-dropdown-view-all:hover {
  background: #eff6ff;
  text-decoration: underline;
}

.search-empty-state {
  padding: 24px 16px;
  text-align: center;
  color: #64748b;
  font-size: 0.9rem;
}

/* Navigation */
.main-nav {
  display: flex;
  justify-content: center;
  border-top: 1px solid var(--border-color);
}

.main-nav ul {
  display: flex;
  gap: 25px;
}

.main-nav a {
  display: block;
  padding: 15px 0;
  font-weight: 500;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Layout */
.main-content-wrapper {
  display: grid;
  grid-template-columns: 2.5fr 1fr;
  gap: 40px;
  padding: 40px 0;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  margin-bottom: 25px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary-color);
  display: inline-block;
}

/* Post Cards */
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.post-card {
  display: flex;
  flex-direction: column;
}

.post-img-wrapper {
  overflow: hidden;
  border-radius: 4px;
  margin-bottom: 15px;
}

.post-img-wrapper img {
  transition: transform 0.5s ease;
  aspect-ratio: 16/10;
  object-fit: cover;
}

.post-card:hover .post-img-wrapper img {
  transform: scale(1.05);
}

.post-category {
  color: var(--accent-color);
  font-size: 0.8rem;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 5px;
  display: block;
}

.post-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  margin-bottom: 10px;
  line-height: 1.3;
}

.post-meta {
  color: var(--text-light);
  font-size: 0.85rem;
  margin-bottom: 10px;
}

.post-excerpt {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* Sidebar */
.sidebar-widget {
  margin-bottom: 40px;
  background-color: var(--bg-offwhite);
  padding: 25px;
  border-radius: 4px;
}

.widget-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 10px;
}

.trending-list li {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--border-color);
}

.sidebar-thumbnail {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 6px;
}

.sidebar-post-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.trending-list li:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.trending-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  display: block;
  margin-bottom: 5px;
}

/* Newsletter */
.newsletter-form input {
  width: 100%;
  padding: 12px;
  margin-bottom: 10px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  outline: none;
}

.newsletter-form button {
  width: 100%;
  padding: 12px;
  background-color: var(--accent-color);
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.3s;
}

.newsletter-form button:hover {
  background-color: #a02d22;
}

/* Article Page */
.article-header {
  text-align: center;
  max-width: 800px;
  margin: 40px auto 30px;
}

.article-header .post-category {
  font-size: 0.9rem;
  margin-bottom: 15px;
}

.article-title {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  margin-bottom: 20px;
  line-height: 1.2;
}

.article-meta {
  color: var(--text-light);
  font-size: 1rem;
}

.article-featured-image {
  margin-bottom: 40px;
  border-radius: 8px;
  overflow: hidden;
}

.article-featured-image img {
  width: 100%;
  max-height: 600px;
  object-fit: cover;
}

.article-body {
  background-color: var(--bg-color);
  max-width: 800px;
  margin: 0 auto 60px;
  font-size: 1.1rem;
  line-height: 1.8;
  color: #444;
}

.article-body p {
  margin-bottom: 25px;
}

.article-body h2, .article-body h3 {
  font-family: var(--font-heading);
  color: var(--primary-color);
  margin: 40px 0 20px;
}

.article-body blockquote {
  border-left: 4px solid var(--accent-color);
  padding-left: 20px;
  margin: 30px 0;
  font-style: italic;
  font-size: 1.3rem;
  color: var(--primary-color);
}

.author-link {
  font-weight: 600;
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.2s ease;
}

.author-link:hover {
  color: var(--accent-color);
  text-decoration: underline;
}

/* Author Bio Box at bottom of article */
.author-box {
  display: flex;
  align-items: center;
  gap: 25px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 25px 30px;
  margin: 50px auto 30px;
  max-width: 800px;
}

.author-box-avatar {
  width: 85px;
  height: 85px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 3px solid #ffffff;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.author-box-content {
  flex: 1;
}

.author-box-label {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--accent-color);
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.author-box-name {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  margin-bottom: 8px;
}

.author-box-name a {
  color: var(--primary-color);
  text-decoration: none;
}

.author-box-name a:hover {
  color: var(--accent-color);
}

.author-box-bio {
  color: #64748b;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 12px;
}

.author-box-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #2563eb;
  text-decoration: none;
}

.author-box-link:hover {
  text-decoration: underline;
}

@media (max-width: 600px) {
  .author-box {
    flex-direction: column;
    text-align: center;
    padding: 20px;
  }
}

/* Standard Modern Magazine Footer */
footer {
  background-color: #0f172a;
  color: #94a3b8;
  padding: 70px 0 25px;
  margin-top: 70px;
  border-top: 1px solid #1e293b;
  position: relative;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-logo {
  display: inline-block;
  margin-bottom: 18px;
}

.footer-desc {
  color: #94a3b8;
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

.footer-socials {
  display: flex;
  gap: 12px;
}

.footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background-color: #1e293b;
  color: #cbd5e1;
  font-size: 0.9rem;
  transition: all 0.25s ease;
  text-decoration: none;
}

.footer-social-link:hover {
  background-color: var(--accent-color);
  color: #ffffff;
  transform: translateY(-2px);
}

.footer-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 30px;
  height: 2px;
  background-color: var(--accent-color);
  border-radius: 2px;
}

.footer-links li {
  margin-bottom: 11px;
}

.footer-links a {
  color: #94a3b8;
  font-size: 0.92rem;
  transition: color 0.2s ease, padding-left 0.2s ease;
  display: inline-block;
}

.footer-links a:hover {
  color: #ffffff;
  padding-left: 4px;
}

.footer-newsletter p {
  color: #94a3b8;
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 15px;
}

.footer-newsletter-form {
  display: flex;
  gap: 8px;
}

.footer-newsletter-form input {
  flex: 1;
  padding: 10px 14px;
  border-radius: 6px;
  border: 1px solid #334155;
  background: #1e293b;
  color: #ffffff;
  font-size: 0.9rem;
  outline: none;
  font-family: inherit;
  transition: border-color 0.2s ease;
}

.footer-newsletter-form input:focus {
  border-color: #60a5fa;
}

.footer-newsletter-form button {
  padding: 10px 18px;
  background: var(--accent-color);
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.2s ease;
  white-space: nowrap;
}

.footer-newsletter-form button:hover {
  background: #a93226;
}

.footer-bottom {
  padding-top: 25px;
  border-top: 1px solid #1e293b;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  color: #64748b;
  font-size: 0.88rem;
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
}

.footer-bottom-links a {
  color: #64748b;
  font-size: 0.88rem;
  transition: color 0.2s ease;
}

.footer-bottom-links a:hover {
  color: #cbd5e1;
}

@media (max-width: 900px) {
  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
}

@media (max-width: 580px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    justify-content: center;
  }
  .footer-bottom-links {
    justify-content: center;
  }
}

/* Responsive */
@media (max-width: 900px) {
  .main-content-wrapper {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .header-top {
    flex-direction: column;
    gap: 15px;
  }
  
  .mobile-menu-btn {
    display: block;
    position: absolute;
    right: 20px;
    top: 30px;
  }
  
  .main-nav {
    display: none;
    flex-direction: column;
    width: 100%;
  }
  
  .main-nav.active {
    display: flex;
  }
  
  .main-nav ul {
    flex-direction: column;
    width: 100%;
    gap: 0;
  }
  
  .main-nav a {
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
  }
  
  .article-title {
    font-size: 2rem;
  }
}



/* Article Body Links */
.article-body a {
  color: #007bff; /* Bright blue for links */
  text-decoration: underline;
  font-weight: 600;
  transition: all 0.3s ease;
}

.article-body a:hover {
  color: #0056b3;
  text-decoration: none;
}


/* New Homepage Section Styles */
.section-dark {
  background-color: #1a1a2e;
  color: #fff;
  padding: 60px 20px;
  margin: 40px -20px;
  border-radius: 12px;
}
.section-dark .section-title { color: #fff; border-bottom-color: #e94560; }
.section-dark .post-card { background: #16213e; border: none; box-shadow: 0 4px 15px rgba(0,0,0,0.3); }
.section-dark .post-title, .section-dark .post-excerpt, .section-dark .post-meta { color: #e0e0e0; }
.section-dark .post-title:hover { color: #e94560; }

.list-layout { display: flex; flex-direction: column; gap: 20px; }
.list-layout .post-card { display: flex; flex-direction: row; align-items: center; }
.list-layout .post-img-wrapper { width: 40%; height: 200px; }
.list-layout .post-content { width: 60%; padding: 20px; }
@media (max-width: 768px) { .list-layout .post-card { flex-direction: column; } .list-layout .post-img-wrapper, .list-layout .post-content { width: 100%; } }

.hero-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.hero-grid .post-card:first-child { grid-column: 1 / -1; display: flex; flex-direction: row; }
.hero-grid .post-card:first-child .post-img-wrapper { width: 60%; height: 400px; }
.hero-grid .post-card:first-child .post-content { width: 40%; justify-content: center; }
@media (max-width: 992px) { .hero-grid .post-card:first-child { flex-direction: column; grid-column: span 1; } .hero-grid .post-card:first-child .post-img-wrapper, .hero-grid .post-card:first-child .post-content { width: 100%; height: auto; } .hero-grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); } }


/* =========================================
   TECH-NEW-AUTO THEME OVERRIDES
   ========================================= */
:root {
  --primary-color: #2563eb;
  --primary-blue: #2563eb;
  --dark-blue: #1d4ed8;
  --accent-cyan: #06b6d4;
  --bg-color: #f8fafc;
  --card-light: #fff;
  --border-color: #e2e8f0;
  --text-dark: #0f172a;
  --font-heading: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body {
  background-color: var(--bg-color);
  color: var(--text-dark);
}

/* Header Tech Style */
header {
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.header-top {
  padding: 15px 20px;
}
.header-top .logo {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 2.2rem;
  letter-spacing: -0.5px;
  text-transform: none;
  color: var(--text-dark);
}
.header-top .logo span {
  color: var(--primary-blue);
  font-style: normal;
}

.main-nav {
  border: none;
  background: var(--dark-blue);
  padding: 0;
}
.main-nav ul {
  gap: 0;
}
.main-nav a {
  color: #fff;
  padding: 15px 20px;
  display: block;
  font-size: 0.95rem;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 500;
  border-right: 1px solid rgba(255,255,255,0.1);
}
.main-nav a:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
}
.main-nav li:first-child a { border-left: 1px solid rgba(255,255,255,0.1); }

/* Tech Cards */
.post-card {
  background: var(--card-light);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -2px rgba(0,0,0,0.05) !important;
  padding-bottom: 0;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.post-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1) !important;
}
.post-img-wrapper img {
  border-radius: 12px 12px 0 0;
}
.post-content {
  padding: 20px;
}
.post-title {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.post-category {
  color: var(--primary-blue);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
  display: inline-block;
  background: rgba(37,99,235,0.1);
  padding: 4px 10px;
  border-radius: 4px;
}
.post-meta {
  font-size: 0.8rem;
  color: #64748b;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
}
.post-excerpt {
  color: #475569;
  font-size: 0.95rem;
}

/* Tech Section Titles */
.section-title {
  text-align: left;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  margin-bottom: 25px;
  border-bottom: 2px solid var(--primary-blue);
  position: relative;
  display: block;
  text-transform: uppercase;
}
.section-title::after { display: none; }
.section-title span.tag-box {
  background: linear-gradient(135deg, var(--dark-blue) 0%, var(--primary-blue) 50%, #0284c7 100%);
  color: #fff;
  padding: 8px 18px;
  border-radius: 6px 6px 0 0;
  display: inline-block;
  font-weight: 800;
  box-shadow: 0 2px 4px rgba(37,99,235,0.2);
}

/* Sidebar Update */
.sidebar {
  position: sticky;
  top: 20px;
  align-self: start;
  border-left: none;
  padding-left: 0;
}
.sidebar-widget {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.widget-title {
  font-size: 1.1rem;
  border-bottom: 2px solid var(--primary-blue);
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding-bottom: 0;
}
.widget-title span.tag-box {
  background: linear-gradient(135deg, var(--dark-blue) 0%, var(--primary-blue) 50%, #0284c7 100%);
  color: #fff;
  padding: 6px 14px;
  border-radius: 6px 6px 0 0;
  display: inline-block;
}
.trending-list li {
  border-bottom: 1px solid var(--border-color);
}
.sidebar-thumbnail {
  border-radius: 6px;
  border: none;
}

/* Reset Dark Section */
.section-dark {
  background: var(--card-light);
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
  color: var(--text-dark);
}
.section-dark .section-title { color: var(--text-dark); border-bottom-color: var(--primary-blue); }
.section-dark .post-card { background: #fff; border: 1px solid var(--border-color); box-shadow: none !important; }
.section-dark .post-title, .section-dark .post-excerpt, .section-dark .post-meta { color: var(--text-dark); }
.section-dark .post-excerpt { color: #475569; }



/* Related & Latest Articles - Compact 2 Column Layout */
.related-articles .posts-grid,
.latest-articles .posts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.related-articles .post-card,
.latest-articles .post-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 15px;
  padding: 12px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.related-articles .post-card:hover,
.latest-articles .post-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}

.related-articles .post-img-wrapper,
.latest-articles .post-img-wrapper {
  width: 120px;
  min-width: 120px;
  height: 90px;
  border-radius: 8px;
  overflow: hidden;
}

.related-articles .post-img-wrapper img,
.latest-articles .post-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.related-articles .post-content,
.latest-articles .post-content {
  flex: 1;
  padding: 0;
}

.related-articles .post-title,
.latest-articles .post-title {
  font-size: 14px;
  line-height: 1.4;
  margin: 4px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.related-articles .post-category,
.latest-articles .post-category {
  font-size: 11px;
  padding: 2px 8px;
}

.related-articles .post-meta,
.latest-articles .post-meta {
  font-size: 11px;
}

.related-articles .post-excerpt,
.latest-articles .post-excerpt {
  display: none;
}

@media (max-width: 768px) {
  .related-articles .posts-grid,
  .latest-articles .posts-grid {
    grid-template-columns: 1fr;
  }
}


/* =========================================
   SEO STANDARD IMAGE SIZES
   ========================================= */

/* Featured image on article pages - 16:9 ratio (1200x675 standard) */
.article-featured-image {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: 12px;
  margin-bottom: 30px;
}
.article-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-height: none;
}

/* Homepage & category card images - 16:9 ratio */
.post-img-wrapper {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
}
.post-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 16/9;
}

/* Hero first card image */
.hero-grid .post-card:first-child .post-img-wrapper {
  aspect-ratio: 16/9;
  height: auto;
}

/* List layout card images */
.list-layout .post-img-wrapper {
  aspect-ratio: 16/9;
  height: auto;
}

/* Inline article body images - 16:9 ratio */
.article-body img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 12px;
  margin: 25px 0;
}

/* Related & Latest compact cards - keep small thumbnail */
.related-articles .post-img-wrapper,
.latest-articles .post-img-wrapper {
  width: 120px;
  min-width: 120px;
  height: 85px;
  aspect-ratio: auto;
  border-radius: 8px;
}
.related-articles .post-img-wrapper img,
.latest-articles .post-img-wrapper img {
  aspect-ratio: auto;
}



/* Image Titles */
.article-body .article-figure {
  margin: 35px 0;
}
.article-body .image-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-dark, #1a1a2e);
  margin-bottom: 12px;
  line-height: 1.3;
}

/* Article Page Sidebar Layout */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
  align-items: start;
}
.article-layout .sidebar {
  position: sticky;
  top: 20px;
  align-self: start;
}
.article-main {
  min-width: 0;
}
@media (max-width: 992px) {
  .article-layout {
    grid-template-columns: 1fr;
  }
}

/* =========================================
   MOBILE SEO & CORE WEB VITALS OPTIMIZATION
   ========================================= */
.mobile-menu-btn {
  display: none;
  background: transparent;
  border: none;
  font-size: 1.8rem;
  color: var(--primary-color, #2563eb);
  cursor: pointer;
  padding: 8px 12px;
  line-height: 1;
  border-radius: 6px;
  touch-action: manipulation;
}

@media (max-width: 768px) {
  /* Prevent horizontal scroll / overflow */
  html, body {
    overflow-x: hidden;
    width: 100%;
  }

  .container {
    padding: 0 16px;
  }

  /* Mobile Header */
  .header-top {
    display: flex;
    flex-direction: row !important;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    position: relative;
    gap: 10px;
  }

  .header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .site-search-wrapper {
    width: auto;
  }

  .site-search-input {
    width: 140px;
    padding: 7px 32px 7px 12px;
    font-size: 0.82rem;
  }

  .site-search-input:focus {
    width: 190px;
  }

  .site-search-btn {
    width: 28px;
    height: 28px;
    right: 2px;
  }

  .site-search-btn svg {
    width: 14px;
    height: 14px;
  }

  .search-results-dropdown {
    position: fixed;
    top: 60px;
    left: 15px;
    right: 15px;
    min-width: auto;
    width: calc(100vw - 30px);
    max-height: 70vh;
  }

  .mobile-menu-btn {
    display: block !important;
    position: static !important;
    font-size: 2rem;
    color: var(--primary-blue, #2563eb);
    padding: 6px 10px;
  }

  .logo img {
    height: 32px;
  }

  /* Collapsible Navigation Menu */
  .main-nav {
    display: none;
    flex-direction: column;
    width: 100%;
    background: #1e293b !important;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
    border-radius: 0 0 12px 12px;
  }

  .main-nav.active {
    display: flex !important;
  }

  .main-nav ul {
    flex-direction: column;
    width: 100%;
    gap: 0;
    padding: 8px 0;
  }

  .main-nav li {
    width: 100%;
  }

  .main-nav a {
    padding: 14px 20px;
    color: #f8fafc !important;
    border-bottom: 1px solid rgba(255,255,255,0.08) !important;
    border-right: none !important;
    border-left: none !important;
    font-size: 1rem;
    display: block;
    min-height: 48px; /* Mobile touch target standard */
    box-sizing: border-box;
  }

  .main-nav a:hover,
  .main-nav a:active {
    background: rgba(255,255,255,0.1) !important;
  }

  /* Fluid Typography for Mobile Articles */
  .article-title {
    font-size: 1.85rem !important;
    line-height: 1.25 !important;
    margin-bottom: 15px;
    word-break: break-word;
  }

  .article-header {
    margin: 20px auto 20px;
  }

  .article-featured-image {
    margin-bottom: 20px;
    border-radius: 8px;
  }

  .article-body {
    font-size: 1.05rem;
    line-height: 1.75;
    word-break: break-word;
  }

  .article-body h2 {
    font-size: 1.45rem;
    margin: 30px 0 15px;
  }

  .article-body h3 {
    font-size: 1.25rem;
    margin: 25px 0 12px;
  }

  .article-body blockquote {
    font-size: 1.15rem;
    padding-left: 15px;
    margin: 20px 0;
  }

  /* Author Box Mobile Layout */
  .author-box {
    flex-direction: column;
    text-align: center;
    padding: 24px 20px;
    gap: 16px;
  }

  .author-box-avatar {
    width: 80px;
    height: 80px;
  }

  /* Post Grids - Single Column on Mobile */
  .post-grid {
    grid-template-columns: 1fr !important;
    gap: 20px;
  }

  .hero-grid {
    grid-template-columns: 1fr !important;
    gap: 20px;
  }

  .hero-grid .post-card:first-child {
    flex-direction: column !important;
  }

  .hero-grid .post-card:first-child .post-img-wrapper,
  .hero-grid .post-card:first-child .post-content {
    width: 100% !important;
    height: auto !important;
  }

  .list-layout .post-card {
    flex-direction: column !important;
  }

  .list-layout .post-img-wrapper,
  .list-layout .post-content {
    width: 100% !important;
  }

  /* Touch-friendly Tap Targets */
  .post-title a,
  .footer-links a,
  .post-category {
    min-height: 24px;
    display: inline-block;
  }

  .footer-newsletter-form {
    flex-direction: column;
  }

  .footer-newsletter-form button {
    width: 100%;
    padding: 12px;
  }
}

/* Screen reader only utility class for SEO and accessibility */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Load More & Pagination Controls */
.load-more-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 40px 0 20px;
}

.btn-load-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #0f172a;
  color: #ffffff;
  font-family: var(--font-heading, inherit);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 13px 34px;
  border-radius: 9999px;
  border: 2px solid #0f172a;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.15);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-load-more:hover {
  background: #2563eb;
  border-color: #2563eb;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.28);
}

.btn-load-more:active {
  transform: translateY(0);
}

.btn-load-more.hidden {
  display: none !important;
}

.pagination-info {
  font-size: 0.88rem;
  color: #64748b;
  font-weight: 500;
}

/* Dedicated Search Page Styling */
.search-page-header {
  margin-bottom: 35px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e2e8f0;
}

.search-page-title {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  color: #0f172a;
  margin-bottom: 8px;
}

.search-page-subtitle {
  color: #64748b;
  font-size: 1rem;
}

.search-page-bar {
  display: flex;
  gap: 12px;
  max-width: 650px;
  margin: 25px 0;
}

.search-page-bar input {
  flex: 1;
  padding: 12px 20px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 1rem;
  outline: none;
  font-family: var(--font-body);
}

.search-page-bar input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.search-page-bar button {
  padding: 12px 28px;
  background: #2563eb;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

.search-page-bar button:hover {
  background: #1d4ed8;
}

.search-results-count {
  font-size: 1.05rem;
  font-weight: 600;
  color: #334155;
  margin-bottom: 25px;
}

.search-no-results {
  padding: 60px 20px;
  text-align: center;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  color: #64748b;
  margin: 30px 0;
}



