:root {
  --bg-color: #ffffff;
  --header-bg: #ffffff;
  --accent: #B83200; 
  --accent-hover: #9c2800;
  --brand-yellow: #FFD600;
  --text-primary: #101828;
  --text-secondary: #475467;
  --card-bg: #ffffff;
  --card-shadow: 0 4px 20px rgba(16, 24, 40, 0.03);
  --card-shadow-hover: 0 12px 30px rgba(16, 24, 40, 0.08);
  --border-color: #eaecf0;
  --error: #f04438;
  --success: #12b76a;
  --shadow: 0 4px 20px -2px rgba(16, 24, 40, 0.05);
  --radius: 20px;
}

#reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand-yellow) 0%, var(--accent) 100%);
  z-index: 2000;
  width: 0%;
  transition: width 0.1s ease-out;
}

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

html, body {
  overflow-x: clip;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-color);
  color: var(--text-primary);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Fallback for Malayalam fonts */
.ml-text {
  font-family: 'Manjari', sans-serif;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Inter', sans-serif;
  color: var(--text-primary);
  font-weight: 700;
  margin-bottom: 1rem;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

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

/* Layout */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
}

.main-content {
  flex: 1;
  padding: 3rem 0;
}

.grid-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

/* Tablet: 768px+ shows sidebar but content stays dominant */
@media (min-width: 1024px) {
  .grid-layout {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 3rem;
    align-items: start;
  }

  .sidebar {
    position: sticky;
    top: 6rem;
    min-width: 0;
    max-width: 300px;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.25rem;
  background: #101828;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  text-align: center;
}

.btn:hover {
  background: #1f2937;
  color: #fff;
}

.btn-outline {
  background: transparent;
  border: 1px solid #101828;
  color: #101828;
}

.btn-outline:hover {
  background: #f9fafb;
  color: #101828;
}

.btn-secondary {
  background: #fff;
  border: 1px solid #d0d5dd;
  color: var(--text-primary);
}

.btn-secondary:hover {
  background: #f9fafb;
  color: var(--text-primary);
}

/* Floating Glass Navbar */
.navbar {
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(234, 236, 240, 0.7);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.navbar.scrolled {
  top: 0.75rem;
  border-radius: 9999px;
  box-shadow: 0 12px 30px rgba(16, 24, 40, 0.08);
  border: 1px solid rgba(234, 236, 240, 0.8);
  padding: 0.65rem 0;
  background: rgba(255, 255, 255, 0.95);
  margin: 0 1.5rem;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: #101828;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  letter-spacing: 0.5px;
}

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

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.95rem;
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
}

/* Premium Hero Section / Featured Post */
.hero-section {
  position: relative;
  background: #000;
  border-radius: 24px;
  overflow: hidden;
  margin-bottom: 5rem;
  height: 500px;
  display: flex;
  align-items: flex-end;
  color: #fff;
  box-shadow: 0 12px 30px rgba(0,0,0,0.1);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.85) 100%);
  z-index: 1;
}

.hero-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-section:hover .hero-img {
  transform: scale(1.03);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 3rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 3rem;
}

.hero-text-side {
  max-width: 800px;
}

.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(4px);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.2);
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: #eaecf0;
  margin-bottom: 0;
  opacity: 0.9;
}

.hero-arrow {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.5rem;
  transition: all 0.3s ease;
  cursor: pointer;
  flex-shrink: 0;
}

.hero-section:hover .hero-arrow {
  background: #fff;
  color: #101828;
  transform: translateX(5px);
}

/* 3-Column Post Grid (Untitled UI style) */
.post-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem 2rem;
  margin-bottom: 4rem;
}

@media (min-width: 768px) {
  .post-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .post-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Flat Modern Post Card */
.post-card {
  background: var(--card-bg);
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
  transition: none;
  display: flex;
  flex-direction: column;
}

.post-card-img-wrap {
  width: 100%;
  height: 240px;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1.25rem;
  position: relative;
}

.post-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.post-card-content {
  padding: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.post-card .post-meta {
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.post-card .post-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.4;
  color: #101828;
}

.post-card .post-title a {
  color: #101828;
  transition: color 0.2s;
}

.post-card .post-title a:hover {
  color: var(--accent);
}

.post-card .post-excerpt {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
  line-height: 1.6;
  flex: 1;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 4rem;
}

.page-num {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #d0d5dd;
  color: var(--text-secondary);
  font-weight: 600;
  transition: all 0.2s;
}

.page-num:hover, .page-num.active {
  background: #101828;
  color: #fff;
  border-color: #101828;
}

/* Panels */
.panel {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 2rem;
}

/* Forms */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text-primary);
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  background: #fff;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  color: var(--text-primary);
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(127, 86, 217, 0.1);
}

/* Sidebar Widgets */
.sidebar h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-color);
}

.sidebar ul li {
  padding: 0.6rem 0;
  border-bottom: 1px solid #f2f4f7;
}

.sidebar ul li:last-child {
  border-bottom: none;
}

/* Single Post */
.single-post {
  padding-top: 2rem;
}

.single-post-title {
  font-size: clamp(1.6rem, 4vw, 2.75rem);
  margin-bottom: 1.5rem;
  line-height: 1.25;
  word-break: break-word;
}

.post-meta-bar {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.single-post-header {
  text-align: center;
  margin-bottom: 3rem;
}

.single-post-img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  border-radius: 20px;
  margin-bottom: 3rem;
  display: block;
}

/* Post content panel — always fills full width of content column */
.post-content {
  font-size: 1.1rem;
  line-height: 1.85;
  color: #334155;
  min-width: 0; /* prevents overflow in grid */
  max-width: 100%;
  word-break: break-word;
  overflow-wrap: break-word;
  overflow-x: hidden;
}

.post-content h2 {
  font-size: clamp(1.3rem, 3vw, 1.75rem);
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.post-content h3 {
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.post-content p {
  margin-bottom: 1.25rem;
}

.post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 2rem 0;
  display: block;
}

.post-content a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.post-content blockquote {
  border-left: 4px solid var(--accent);
  padding: 0.75rem 1.25rem;
  margin: 2rem 0;
  background: #fffbeb;
  border-radius: 0 8px 8px 0;
  color: var(--text-secondary);
  font-style: italic;
}

.post-content ul, .post-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}

.post-content li {
  margin-bottom: 0.4rem;
}

.post-content pre, .post-content code {
  background: #f1f5f9;
  border-radius: 6px;
  font-family: monospace;
  font-size: 0.9em;
}

.post-content pre {
  padding: 1rem 1.25rem;
  overflow-x: auto;
  margin: 1.5rem 0;
}

.post-content code {
  padding: 0.15em 0.4em;
}

/* Like button area */
.like-btn-container {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-top: 3rem;
  padding: 1.25rem 1.5rem;
  background: #f9fafb;
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

.like-btn {
  background: #fff;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
}

.like-btn.liked {
  color: #f04438;
  background: #fef3f2;
  border-color: #fda29b;
}

.like-btn:hover {
  transform: scale(1.05);
}

/* Share section */
.share-section {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

.share-section h4 {
  margin-bottom: 1.25rem;
  color: var(--text-primary);
  font-size: 1.1rem;
}

.share-buttons {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.15s;
  white-space: nowrap;
}

.share-btn:hover {
  opacity: 0.88;
  transform: translateY(-1px);
  color: #fff;
}

.share-btn-facebook { background: #1877f2; }
.share-btn-twitter  { background: #111; }
.share-btn-whatsapp { background: #25d366; }
.share-btn-copy     { background: #fff; border: 1px solid #d0d5dd; color: var(--text-primary); }

/* Comments */
.comment {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border-color);
}

.comment:last-child {
  border-bottom: none;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  animation: fadeIn 0.4s ease forwards;
}

.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }

.badge {
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
}
.badge-pending { background: #fef3c7; color: #d97706; }
.badge-published { background: #d1fae5; color: #059669; }
.badge-draft { background: #f1f5f9; color: #475569; }

/* Mobile Menu Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.4rem;
  color: #101828;
  cursor: pointer;
  padding: 0.4rem;
  margin-left: auto;
  z-index: 10;
}

/* Mobile nav open state */
.mobile-nav-open {
  display: flex !important;
}

/* =============================================
   📱 TABLET (max-width: 1024px)
   ============================================= */
@media (max-width: 1024px) {
  .navbar.scrolled {
    margin: 0.75rem 1rem;
    border-radius: 9999px;
  }

  .hero-section {
    height: 420px;
    margin-bottom: 3rem;
  }

  .hero-content {
    padding: 2rem;
    gap: 1.5rem;
  }

  .hero-title {
    font-size: 2rem !important;
  }

  .grid-layout {
    grid-template-columns: 1fr;
  }
}

/* =============================================
   📱 MOBILE (max-width: 768px)
   ============================================= */
@media (max-width: 768px) {

  /* Containers */
  .container {
    padding: 0 1rem;
  }

  .main-content {
    padding: 1.5rem 0;
  }

  /* Enable pill navbar on mobile with fixed glass effect */
  .navbar {
    padding: 0.9rem 0;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    z-index: 1000 !important;
    background: var(--header-bg) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
  }

  .navbar.scrolled {
    position: fixed !important;
    top: 0.5rem !important;
    left: 1rem !important;
    width: calc(100% - 2rem) !important;
    margin: 0 !important;
    border-radius: 9999px !important;
    box-shadow: 0 4px 12px rgba(16,24,40,0.08) !important;
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
  }

  body {
    /* padding-top removed because header is no longer fixed on mobile */
  }

  /* Navbar layout */
  .nav-container {
    flex-wrap: nowrap;
    align-items: center;
  }

  .mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Nav links collapse by default */
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    border-top: 1px solid #eaecf0;
    border-bottom: 1px solid #eaecf0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0.5rem 0;
    margin: 0;
    z-index: 999;
    box-shadow: 0 8px 24px rgba(16,24,40,0.08);
  }

  .nav-links li {
    width: 100%;
    border-bottom: 1px solid #f2f4f7;
  }

  .nav-links li:last-child { border-bottom: none; }

  .nav-links a {
    display: block;
    padding: 0.85rem 1.5rem;
    font-size: 1rem;
    width: 100%;
  }

  /* Nav actions collapse too */
  .nav-actions {
    display: none;
    position: absolute;
    top: calc(100% + 0px);
    left: 0;
    width: 100%;
    background: #f9fafb;
    border-bottom: 1px solid #eaecf0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    z-index: 998;
    box-shadow: 0 8px 24px rgba(16,24,40,0.06);
  }

  .nav-actions form {
    margin: 0 !important;
    display: flex;
    gap: 0.5rem;
  }

  .nav-actions form input {
    flex: 1;
    width: auto !important;
  }

  .nav-actions a, .nav-actions button {
    width: 100%;
    justify-content: center;
  }

  .navbar {
    position: sticky;
    top: 0;
  }

  /* Hero */
  .hero-section {
    height: auto;
    min-height: 300px;
    border-radius: 16px;
    margin-bottom: 2rem;
  }

  .hero-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
  }

  .hero-title {
    font-size: 1.5rem !important;
    line-height: 1.3;
    margin-bottom: 0.5rem;
  }

  .hero-subtitle {
    font-size: 0.9rem !important;
  }

  .hero-arrow {
    width: 44px;
    height: 44px;
    font-size: 1.1rem;
    flex-shrink: 0;
  }

  /* Post grid */
  .post-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .post-card-img-wrap {
    height: 200px;
  }

  /* Single post */
  .single-post {
    padding-top: 1rem;
  }

  .single-post-header {
    margin-bottom: 1.5rem;
  }

  .single-post-title {
    font-size: 1.6rem;
    line-height: 1.3;
  }

  .post-meta-bar {
    gap: 0.75rem;
    justify-content: flex-start;
    font-size: 0.8rem;
    margin-bottom: 1.5rem;
  }

  .single-post-img {
    max-height: 240px;
    border-radius: 14px;
    margin-bottom: 2rem;
  }

  .post-content {
    font-size: 1.05rem;
    line-height: 1.8;
    padding: 0 !important;
    border: none;
    background: transparent;
    overflow-x: hidden;
    max-width: 100%;
  }

  .post-content * {
    max-width: 100%;
  }

  .post-content img {
    width: 100%;
    height: auto;
  }

  .post-content pre {
    max-width: 100%;
    overflow-x: auto;
  }

  .post-content table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
  }

  .single-post {
    overflow: hidden;
    max-width: 100%;
  }

  .post-content h2 {
    font-size: 1.25rem;
    margin-top: 2rem;
  }

  .post-content h3 {
    font-size: 1.1rem;
    margin-top: 1.5rem;
  }

  /* Stack grid on mobile: content first, sidebar below */
  .grid-layout {
    grid-template-columns: 1fr !important;
    gap: 2rem;
  }

  /* Sidebar on mobile */
  .sidebar {
    max-width: 100% !important;
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }

  /* Like container */
  .like-btn-container {
    flex-direction: row;
    flex-wrap: wrap;
    padding: 1rem;
    gap: 0.75rem;
    margin-top: 2rem;
  }

  /* Share buttons stack nicely on mobile */
  .share-buttons {
    gap: 0.5rem;
  }

  .share-btn {
    font-size: 0.8rem;
    padding: 0.45rem 0.85rem;
  }

  /* Pagination */
  .pagination {
    margin-top: 2rem;
  }

  .pagination a, .pagination span {
    font-size: 0.85rem;
    padding: 0.4rem 0.75rem !important;
  }

  /* Panels & forms */
  .panel {
    padding: 1.25rem;
  }

  /* Footer CTA */
  footer > div:first-child {
    padding: 3rem 0 !important;
  }

  footer h2 {
    font-size: 1.65rem !important;
  }

  footer p {
    font-size: 0.95rem !important;
  }

  /* Footer grid auto-fits to 2-col on mobile */
  footer .container > div:first-child {
    padding: 2.5rem 0 2rem !important;
  }

  /* Footer subscribe form stack */
  footer form > div {
    flex-direction: column !important;
  }

  footer form button, footer form input {
    width: 100% !important;
  }

  /* Footer bottom */
  footer > div:last-child > div:last-child {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }
}

/* =============================================
   📱 SMALL MOBILE (max-width: 480px)
   ============================================= */
@media (max-width: 480px) {
  .nav-logo span {
    font-size: 1rem;
  }

  .hero-section {
    min-height: 260px;
  }

  .hero-content {
    padding: 1.25rem;
  }

  .hero-title {
    font-size: 1.3rem !important;
  }

  footer > div:nth-child(2) > .container > div:first-child {
    grid-template-columns: 1fr 1fr !important;
    gap: 1.5rem;
  }
}

/* Hide mobile-specific engagement components by default on desktop */
.mobile-actions-bar,
.share-overlay,
.share-bottom-sheet {
  display: none !important;
}

/* =============================================
   ✨ PREMIUM MOBILE READING UX STYLES
   ============================================= */
@media (max-width: 768px) {
  /* Strict bounding limits to completely solve horizontal overflow */
  html, body {
    max-width: 100% !important;
    overflow-x: hidden !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .main-content, .single-post, .grid-layout, .post-content, .sidebar, .panel, .comments-section, .comment.panel, .share-section, .like-btn-container {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  /* Set clean viewing gutters on both sides of the post */
  .single-post {
    padding: 1.5rem 1.25rem 5rem 1.25rem !important; /* Balanced 1.25rem margins */
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  /* High-legibility typography for Malayalam long-form reading */
  .post-content {
    font-size: 1.12rem !important;
    line-height: 1.95 !important;
    letter-spacing: 0.015em;
    color: #1e293b !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    word-wrap: break-word !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
  }

  .post-content img {
    max-width: 100% !important;
    height: auto !important;
    border-radius: 12px !important;
    display: block !important;
    margin: 1.5rem auto !important;
  }

  .post-content p {
    margin-bottom: 1.75rem !important;
  }

  .post-content h2 {
    font-size: 1.45rem !important;
    margin-top: 3rem !important;
    margin-bottom: 1rem !important;
    border-left: 4px solid var(--accent);
    padding-left: 0.75rem;
    line-height: 1.3;
  }

  .post-content h3 {
    font-size: 1.25rem !important;
    margin-top: 2.25rem !important;
    margin-bottom: 0.85rem !important;
    color: #1e293b;
    line-height: 1.3;
  }

  /* Blockquote premium styling */
  .post-content blockquote {
    margin: 2.5rem 0 !important;
    padding: 1.25rem 1.5rem !important;
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%) !important;
    border-left: 5px solid var(--accent) !important;
    border-radius: 0 16px 16px 0 !important;
    font-size: 1.15rem !important;
    line-height: 1.8 !important;
    box-shadow: inset 0 1px 2px rgba(127, 86, 217, 0.05);
  }

  /* Single vertical column for Social Share buttons, strictly preventing overflow */
  .share-buttons {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.75rem !important;
    width: 100% !important;
    margin-top: 1.25rem !important;
    box-sizing: border-box !important;
  }

  /* Reset links to look like actual gorgeous buttons instead of boring underlined links */
  .post-content .share-buttons a, 
  .post-content a.share-btn {
    color: #ffffff !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    border: none !important;
  }

  .post-content .share-buttons a:hover, 
  .post-content a.share-btn:hover {
    color: #ffffff !important;
    text-decoration: none !important;
    opacity: 0.92 !important;
  }

  .share-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.6rem !important;
    padding: 0.8rem 1rem !important;
    border-radius: 12px !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    box-shadow: 0 4px 10px rgba(16, 24, 40, 0.05) !important;
    cursor: pointer !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .share-btn:active {
    transform: scale(0.96) !important;
  }

  .share-btn-facebook {
    background: linear-gradient(135deg, #1877f2 0%, #0a53be 100%) !important;
  }

  .share-btn-twitter {
    background: linear-gradient(135deg, #2c2c2c 0%, #000000 100%) !important;
  }

  .share-btn-whatsapp {
    background: linear-gradient(135deg, #25d366 0%, #1ebd55 100%) !important;
  }

  .share-btn-copy {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%) !important;
    border: 1px solid #eaecf0 !important;
    color: var(--text-primary) !important;
  }


  /* Floating Bottom Action Bar */
  .mobile-actions-bar {
    position: fixed;
    bottom: 1.25rem;
    left: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 9999px;
    box-shadow: 0 10px 30px -5px rgba(16, 24, 40, 0.15), 0 4px 12px -2px rgba(16, 24, 40, 0.05);
    display: flex !important;
    justify-content: space-around;
    align-items: center;
    padding: 0.55rem 1.25rem;
    z-index: 1000;
    transform: translateY(120%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s;
    opacity: 0;
    pointer-events: none;
  }

  .mobile-actions-bar.visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .mobile-action-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.4rem 0.8rem;
    position: relative;
    transition: color 0.2s;
    text-decoration: none;
  }

  .mobile-action-item i {
    font-size: 1.2rem;
    margin-bottom: 2px;
    transition: transform 0.2s;
  }

  .mobile-action-item span.label {
    font-size: 0.7rem;
    font-weight: 500;
  }

  .mobile-action-item span.count-badge {
    position: absolute;
    top: 2px;
    right: 4px;
    background: var(--accent);
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.1rem 0.35rem;
    border-radius: 9999px;
    line-height: 1;
  }

  .mobile-action-item.active {
    color: var(--accent);
  }

  .mobile-action-item.liked i {
    color: #f04438;
    animation: heartBeat 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  }

  .mobile-action-item:active i {
    transform: scale(0.9);
  }

  /* Chat-style Premium Comments on Mobile */
  .comments-section {
    padding: 0 1.25rem 5rem 1.25rem !important; /* Synchronized margins */
  }

  .comment.panel {
    background: #f8fafc !important;
    border: 1px solid #eaecf0 !important;
    border-radius: 16px !important;
    padding: 1.25rem !important;
    box-shadow: none !important;
    margin-bottom: 1rem;
    position: relative;
  }

  .comment-avatar-bubble {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent) 0%, #a07eff 100%);
    color: #ffffff !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    box-shadow: 0 2px 8px rgba(127, 86, 217, 0.2);
  }

  /* Sidebar widgets stacking and padding */
  .sidebar {
    border-top: 1px solid var(--border-color) !important;
    padding-top: 2.5rem !important;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }

  .sidebar .panel {
    padding: 1.25rem !important;
    border-radius: 16px !important;
    box-shadow: 0 2px 8px rgba(16, 24, 40, 0.02) !important;
  }

  /* Social Share Bottom Sheet */
  .share-overlay {
    display: block !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(16, 24, 40, 0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
  }

  .share-overlay.active {
    opacity: 1;
    pointer-events: all;
  }

  .share-bottom-sheet {
    display: block !important;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
    box-shadow: 0 -10px 40px rgba(16, 24, 40, 0.15);
    z-index: 2000;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 2rem 1.5rem;
    max-width: 600px;
    margin: 0 auto;
  }

  .share-bottom-sheet.active {
    transform: translateY(0);
  }

  .share-sheet-drag-handle {
    width: 40px;
    height: 4px;
    background: #cbd5e1;
    border-radius: 9999px;
    margin: 0 auto 1.5rem auto;
  }

  .share-sheet-title {
    font-size: 1.15rem;
    font-weight: 700;
    text-align: center;
    color: var(--text-primary);
    margin-bottom: 1.75rem;
  }

  .share-sheet-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
  }

  .share-sheet-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    gap: 0.5rem;
  }

  .share-sheet-icon {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.35rem;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  }

  .share-sheet-icon:active {
    transform: scale(0.9);
  }

  .share-sheet-option.whatsapp .share-sheet-icon { background: #25d366; }
  .share-sheet-option.facebook .share-sheet-icon { background: #1877f2; }
  .share-sheet-option.twitter .share-sheet-icon { background: #111111; }
  .share-sheet-option.copy .share-sheet-icon { background: #f1f5f9; color: var(--text-primary); border: 1px solid #e2e8f0; }

  .share-sheet-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
  }
}

/* Animations */
@keyframes heartBeat {
  0% { transform: scale(1); }
  14% { transform: scale(1.3); }
  28% { transform: scale(1.15); }
  42% { transform: scale(1.4); }
  70% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

/* Custom search slide-down animation */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-slide-down {
  animation: slideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Premium Heading Divider with brand color gradient */
.flex-1.h-px.bg-gradient-to-r {
  height: 2px !important;
  background: linear-gradient(90deg, rgba(184, 50, 0, 0.4) 0%, rgba(184, 50, 0, 0.08) 50%, rgba(234, 236, 240, 0) 100%) !important;
}

/* Modern Editorial Card Visual Polish */
article {
  box-shadow: 0 4px 20px rgba(16, 24, 40, 0.03) !important;
  border: 1px solid rgba(234, 236, 240, 0.8) !important;
  border-radius: 20px !important;
  background-color: #ffffff !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

article:hover {
  box-shadow: 0 12px 30px rgba(16, 24, 40, 0.08) !important;
  border-color: rgba(184, 50, 0, 0.15) !important;
  transform: translateY(-6px) !important;
}

/* Dark mode theme overrides */
.dark body {
  background-color: #0c111d !important;
  color: #f8fafc !important;
}

.dark .bg-white {
  background-color: #101828 !important;
}

.dark .bg-white\/80 {
  background-color: rgba(16, 24, 40, 0.8) !important;
}

.dark .bg-white\/95 {
  background-color: rgba(16, 24, 40, 0.95) !important;
}

.dark .bg-gray-50 {
  background-color: #1d2939 !important;
}

.dark .text-primary {
  color: #f8fafc !important;
}

.dark .text-secondary {
  color: #98a2b3 !important;
}

.dark .border-gray-100 {
  border-color: #1f2a37 !important;
}

.dark .border-gray-200 {
  border-color: #374151 !important;
}

.dark .border-gray-200\/70 {
  border-color: rgba(55, 65, 81, 0.7) !important;
}

.dark input, .dark textarea {
  background-color: #1d2939 !important;
  color: #f8fafc !important;
  border-color: #374151 !important;
}

.dark input::placeholder, .dark textarea::placeholder {
  color: #667085 !important;
}

/* Reusable modern styling tweaks */
.dark .glass {
  background: rgba(16, 24, 40, 0.75) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37) !important;
}

.dark .glass-panel {
  background: rgba(16, 24, 40, 0.75) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

.dark .prose-content {
  color: #98a2b3 !important;
}

.dark .prose-content h1,
.dark .prose-content h2,
.dark .prose-content h3,
.dark .prose-content h4,
.dark .prose-content h5,
.dark .prose-content h6 {
  color: #f8fafc !important;
}

.dark .prose-content strong {
  color: #f8fafc !important;
}

.dark .prose-content a {
  color: #B83200 !important;
}


