/* ============================================
   MOBILE ONLY STYLES (max-width: 768px)
   ============================================ */

html, body {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow-x: hidden !important;
}

* {
  box-sizing: border-box !important;
  max-width: 100% !important;
}

/* Kill ALL inline padding-left/right with large values */
[style*="padding-left: 350px"],
[style*="padding-left: 352px"],
[style*="padding-left: 400px"],
[style*="padding-left: 64px"],
[style*="padding-right: 350px"],
[style*="padding-right: 352px"],
[style*="padding-right: 400px"] {
  padding-left: 16px !important;
  padding-right: 16px !important;
}

/* Kill ALL inline width with large values */
[style*="width: 1218px"],
[style*="width: 1216px"],
[style*="width: 800px"],
[style*="width: 598px"],
[style*="width: 942px"],
[style*="width: 667px"],
[style*="width: 518px"],
[style*="width: 392px"],
[style*="width: 390px"],
[style*="width: 358px"],
[style*="width: 362px"],
[style*="width: 266px"],
[style*="width: 254px"],
[style*="width: 97px"] {
  width: 100% !important;
  max-width: 100% !important;
}

/* Navbar */
.navbar-container {
  width: 100% !important;
  max-width: 100% !important;
  padding: 16px !important;
}
.navbar-inner {
  width: 100% !important;
  max-width: 100% !important;
  flex-direction: column !important;
  gap: 12px !important;
}
.logo {
  width: 100% !important;
  text-align: center !important;
  margin-bottom: 8px !important;
}
.nav-links {
  width: 100% !important;
  justify-content: center !important;
  gap: 16px !important;
}
.nav-actions {
  width: 100% !important;
  justify-content: center !important;
  gap: 16px !important;
}
.search-box { display: none !important; }

/* Main containers */
.main-container {
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
  gap: 32px !important;
}
.content-wrapper {
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 12px !important;
  gap: 32px !important;
}

/* Legal page content card */
.legal-content-card {
  padding: 20px 14px !important;
}

/* Featured post - fix overlapping */
.featured-container {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  min-height: auto !important;
  display: flex !important;
  flex-direction: column !important;
  position: relative !important;
  gap: 0 !important;
  margin-bottom: 24px !important;
}
.featured-container > div {
  position: relative !important;
  left: 0 !important;
  top: 0 !important;
}
.featured-image {
  width: 100% !important;
  height: 200px !important;
  border-radius: 12px 12px 0 0 !important;
}
.featured-card {
  width: 100% !important;
  max-width: 100% !important;
  position: relative !important;
  left: 0 !important;
  top: 0 !important;
  padding: 16px !important;
  border-radius: 0 0 12px 12px !important;
  margin-top: 0 !important;
}

/* Post grid - fix stacking */
.posts-grid,
.post-row {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  min-height: auto !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 20px !important;
  margin-top: 20px !important;
}
.post-row > a {
  width: 100% !important;
  display: block !important;
}
.post-card {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  min-height: auto !important;
  padding: 16px !important;
  display: flex !important;
  flex-direction: column !important;
}
.post-card-image {
  width: 100% !important;
  height: 160px !important;
}
.post-card-content {
  width: 100% !important;
  padding: 12px 0 !important;
}

/* Section heading */
.section-heading {
  font-size: 20px !important;
  text-align: center !important;
  margin-bottom: 16px !important;
}

/* Posts section wrapper */
.posts-grid,
.content-wrapper > div {
  min-height: auto !important;
}

/* View All Post button */
[style*="width: 142px"] {
  width: auto !important;
  max-width: none !important;
  display: inline-flex !important;
  margin-top: 24px !important;
  align-self: center !important;
}

/* Share buttons */
.share-bar {
  width: 100% !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  padding: 12px 0 !important;
}

/* Footer */
.footer-section {
  width: 100% !important;
  max-width: 100% !important;
  padding: 32px 16px !important;
}
.footer-main {
  width: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 32px !important;
}
.footer-about,
.footer-links {
  width: 100% !important;
}
.footer-links {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  justify-content: space-between !important;
}
.footer-links > div {
  width: 45% !important;
}

/* Newsletter - fix structure */
.newsletter-card {
  width: 100% !important;
  max-width: 100% !important;
  padding: 24px 16px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 16px !important;
}
.newsletter-card > div:first-child {
  text-align: center !important;
}
.newsletter-card > div:last-child {
  width: 100% !important;
}
.newsletter-input-wrapper {
  width: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
}
.newsletter-input-wrapper input {
  width: 100% !important;
  padding: 12px !important;
}
.newsletter-input-wrapper + div {
  width: 100% !important;
  padding: 12px !important;
}

/* Blog index featured post (overlay style) */
.featured-post-link {
  width: 100% !important;
  max-width: 100% !important;
  display: block !important;
}
.featured-post-card {
  width: 100% !important;
  max-width: 100% !important;
  min-height: 280px !important;
  padding: 20px !important;
}
.featured-post-card h2 {
  font-size: 22px !important;
  line-height: 28px !important;
}

/* Post page (slug) - content wrapper */
.post-content-wrapper {
  padding: 0 12px !important;
  max-width: 100% !important;
}
.post-featured-image {
  width: 100% !important;
  height: 200px !important;
  aspect-ratio: auto !important;
}
.post-title {
  font-size: 24px !important;
  line-height: 30px !important;
}
.other-posts-grid {
  flex-direction: column !important;
}
.other-post-link {
  width: 100% !important;
  max-width: 100% !important;
}

/* Blog page post grid header row (1216px wrapper) */
[style*="width: 1216px"][style*="height: 28px"] {
  width: 100% !important;
  height: auto !important;
}

/* Footer copyright */
.footer-copyright-row {
  width: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 16px !important;
  text-align: center !important;
  padding-top: 24px !important;
}
.footer-copyright-row > div {
  width: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
}
