/*
Theme Name: Mehndistaan
Theme URI: https://mehndistaan.com
Author: Antigravity
Author URI: https://mehndistaan.com
Description: A custom WordPress theme for Mehndistaan, completely editable.
Version: 1.0
Tested up to: 6.5
Requires PHP: 7.4
Text Domain: mehndistaan
*/

/* ============================================
   MEHNDISTAAN.COM — Main Stylesheet
   Rebuilt from original Kadence WordPress theme
   ============================================ */

/* ---------- CSS CUSTOM PROPERTIES ---------- */
:root {
  --palette1: #2B6CB0;    /* Link blue */
  --palette2: #215387;    /* Link hover blue */
  --palette3: #1A202C;    /* Heading dark */
  --palette4: #2D3748;    /* Body text */
  --palette5: #4A5568;    /* Subtle text */
  --palette6: #718096;    /* Muted text */
  --palette7: #EDF2F7;    /* Light gray bg */
  --palette8: #F7FAFC;    /* Page bg */
  --palette9: #ffffff;    /* White */

  --header-bg: #a60000;
  --nav-bg: #ff9900;
  --nav-text: #a60000;
  --nav-hover-text: #0b0b0b;
  --footer-bg: #8B0000;
  --footer-heading: #FFD700;
  --footer-bottom-bg: #ff9900;
  --drawer-bg: rgba(58,9,2,0.97);
  --drawer-link: #f5a524;
  --red-accent: #b82105;

  --content-width: 1290px;
  --narrow-width: 842px;
  --edge-padding: 1.5rem;

  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  --font-heading: inherit;

  --shadow-entry: 0px 15px 15px -10px rgba(0,0,0,0.05);
  --shadow-btn-hover: 0px 15px 25px -7px rgba(0,0,0,0.1);
}

/* ---------- RESET & BASE ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  color: var(--palette4);
  background: var(--palette8);
}

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

a {
  color: var(--palette1);
  text-decoration: none;
  transition: color 0.3s;
}

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

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.5;
}

h1 { font-size: 32px; color: var(--palette3); }
h2 { font-size: 28px; color: var(--palette3); }
h3 { font-size: 24px; color: var(--palette3); }
h4 { font-size: 22px; color: var(--palette4); }
h5 { font-size: 20px; color: var(--palette4); }
h6 { font-size: 18px; color: var(--palette5); }

p {
  margin-bottom: 1em;
}

/* ---------- LAYOUT CONTAINERS ---------- */
.site-container {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 var(--edge-padding);
}

.narrow-container {
  max-width: var(--narrow-width);
  margin: 0 auto;
  padding: 0 var(--edge-padding);
}

.content-area {
  margin-top: 2rem;
  margin-bottom: 4rem;
}

@media (max-width: 1024px) {
  .content-area {
    margin-top: 3rem;
    margin-bottom: 3rem;
  }
}

@media (max-width: 767px) {
  .content-area {
    margin-top: 2rem;
    margin-bottom: 2rem;
  }
}

/* ---------- HEADER ---------- */
.site-top-header {
  background: var(--palette9);
  padding: 0.5rem 0;
  text-align: center;
}

.site-logo {
  max-height: 80px;
  width: auto;
  display: inline-block;
}

#masthead {
  position: relative;
  z-index: 100;
}

.header-main {
  background: var(--header-bg);
  min-height: 60px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: center; /* Center the nav */
  position: relative;
  min-height: 60px;
}

/* Desktop Navigation */
.primary-nav {
  display: flex;
  align-items: center;
  background: var(--nav-bg);
  height: 100%;
}

.primary-nav .nav-menu {
  display: flex;
  align-items: center;
  gap: 0;
}

.primary-nav .nav-menu li a {
  display: block;
  padding: 1rem 1.2rem;
  color: var(--nav-text);
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  transition: color 0.3s, background 0.3s;
}

.primary-nav .nav-menu li a:hover,
.primary-nav .nav-menu li.current-menu-item > a {
  color: var(--nav-hover-text);
}

/* Header Search */
.header-search {
  position: absolute;
  right: var(--edge-padding);
  top: 50%;
  transform: translateY(-50%);
}

.header-search .search-form {
  display: flex;
  background: var(--palette9);
  border-radius: 2px;
  overflow: hidden;
  width: 250px;
}

.header-search .search-field {
  border: none;
  padding: 0.5rem 0.8rem;
  font-size: 14px;
  width: 100%;
  outline: none;
  color: var(--palette4);
}

.header-search .search-btn {
  background: transparent;
  border: none;
  padding: 0.5rem 0.8rem;
  color: var(--palette5);
  cursor: pointer;
}

/* Mobile toggle - hidden on desktop */
.mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.4em 0.6em;
  color: var(--palette9);
  font-size: 14px;
  position: absolute;
  left: var(--edge-padding);
}

.mobile-toggle .hamburger-icon {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.mobile-toggle .hamburger-icon span {
  display: block;
  width: 28px;
  height: 3px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

@media (max-width: 1024px) {
  .primary-nav {
    display: none;
  }
  .header-search {
    position: static;
    transform: none;
    flex: 1;
    max-width: 250px;
    margin-right: 15px;
  }
  .header-search .search-form {
    width: 100%;
  }
  .mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    position: static;
  }
  .header-inner {
    justify-content: space-between;
    padding: 0 var(--edge-padding);
  }
}



/* ---------- MOBILE DRAWER ---------- */
.mobile-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.mobile-drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: -320px;
  width: 320px;
  max-width: 85vw;
  height: 100%;
  background: var(--drawer-bg);
  z-index: 1000;
  overflow-y: auto;
  transition: right 0.35s ease;
}

.mobile-drawer.active {
  right: 0;
}

.drawer-header {
  display: flex;
  justify-content: flex-end;
  padding: 1rem;
}

.drawer-close {
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--palette9);
  font-size: 24px;
  padding: 0.6em 0.15em;
  position: relative;
  width: 34px;
  height: 34px;
}

.drawer-close span {
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  position: absolute;
  top: 50%;
  left: 50%;
}

.drawer-close span:first-child {
  transform: translate(-50%, -50%) rotate(45deg);
}

.drawer-close span:last-child {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.drawer-nav ul {
  padding: 0;
}

.drawer-nav ul li {
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.drawer-nav ul li a {
  display: block;
  padding: 1em 1.5em;
  color: var(--drawer-link);
  font-size: 14px;
  font-weight: 400;
  text-decoration: none;
  transition: color 0.3s;
}

.drawer-nav ul li a:hover,
.drawer-nav ul li.current-menu-item > a {
  color: var(--palette9);
}

.drawer-search {
  padding: 1em 1.5em;
}

.drawer-search .search-form {
  display: flex;
  align-items: center;
  position: relative;
}

.drawer-search .search-field {
  width: 100%;
  padding: 0.7em 2.5em 0.7em 1em;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.1);
  color: var(--palette9);
  font-size: 14px;
  border-radius: 3px;
  outline: none;
}

.drawer-search .search-field::placeholder {
  color: rgba(255,255,255,0.5);
}

.drawer-search .search-btn {
  position: absolute;
  right: 8px;
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.6);
  cursor: pointer;
  font-size: 16px;
}

/* ---------- HERO TITLE SECTION ---------- */
.hero-title {
  text-align: center;
  padding: 1rem 0 2rem;
}

.hero-title h1 {
  font-size: 32px;
  font-weight: 700;
  color: #a60000;
  background: #ff9900;
  display: inline-block;
  padding: 12px 30px;
  border-radius: 4px;
  border-left: 10px solid #8b0000;
  border-right: 10px solid #8b0000;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  margin: 0;
  width: 100%;
}

@media (max-width: 767px) {
  .hero-title h1 {
    font-size: 20px;
    padding: 10px 15px;
    border-left: 6px solid #8b0000;
    border-right: 6px solid #8b0000;
  }
}

/* ---------- BLOG POST GRID ---------- */
.post-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.post-card {
  background: transparent;
  border-radius: 0;
  overflow: hidden;
}

.post-card-inner {
  display: flex;
  flex-direction: row;
  align-items: stretch;
}

.post-card-image {
  flex: 0 0 40%;
  max-width: 40%;
  position: relative;
}

.post-card-image a {
  display: block;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%;
  position: relative;
  overflow: hidden;
}

.post-card-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-card-content {
  flex: 1;
  padding: 0 0 0 2rem;
}

.post-card-content .entry-title {
  font-size: 24px;
  margin-bottom: 0.5rem;
}

.post-card-content .entry-title a {
  color: var(--palette3);
  text-decoration: none;
}

.post-card-content .entry-title a:hover {
  color: var(--palette1);
}

.post-meta {
  font-size: 14px;
  color: var(--palette5);
  margin-bottom: 1rem;
}

.post-meta a {
  color: var(--palette1);
}

.post-excerpt {
  font-size: 15px;
  line-height: 1.6;
  color: var(--palette4);
  margin-bottom: 1rem;
}

.read-more-link {
  display: inline-block;
  color: var(--palette9);
  background: #a60000;
  padding: 8px 16px;
  font-weight: 400;
  font-size: 16px;
  text-decoration: none;
  transition: background 0.3s;
}

.read-more-link:hover {
  background: #8b0000;
  color: var(--palette9);
}

.post-tags {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--palette7);
  display: flex;
  flex-wrap: wrap;
  gap: 0.4em;
  align-items: flex-start;
}

.post-tags .tag-icon {
  flex-shrink: 0;
  margin-right: 0.3em;
}

.post-tags a {
  font-size: 13px;
  color: var(--palette5);
  text-decoration: none;
}

.post-tags a:hover {
  color: var(--palette1);
}

@media (max-width: 767px) {
  .post-card-inner {
    flex-direction: column;
  }
  .post-card-image {
    flex: none;
    max-width: 100%;
  }
  .post-card-content {
    padding: 1.5rem;
  }
  .post-card-content .entry-title {
    font-size: 20px;
  }
}

/* ---------- PAGINATION ---------- */
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.pagination a, .pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0.3em 0.8em;
  border: 1px solid var(--palette7);
  color: var(--palette4);
  font-size: 15px;
  text-decoration: none;
  transition: all 0.3s;
}

.pagination a:hover {
  background: var(--palette1);
  color: var(--palette9);
  border-color: var(--palette1);
}

.pagination .current {
  background: var(--palette1);
  color: var(--palette9);
  border-color: var(--palette1);
}

/* ---------- SINGLE POST PAGE ---------- */

/* Breadcrumb */
.breadcrumb {
  font-size: 13px;
  color: var(--palette5);
  margin-bottom: 1.2rem;
  padding: 0.8rem 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3em;
}

.breadcrumb a {
  color: var(--palette1);
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumb a:hover {
  color: var(--palette2);
  text-decoration: underline;
}

.breadcrumb-sep {
  color: var(--palette6);
  margin: 0 0.15em;
}

.breadcrumb-current {
  color: var(--palette4);
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 350px;
}

/* Post Article Wrapper */
.single-post-article {
  background: var(--palette9);
  box-shadow: var(--shadow-entry);
  border-radius: 6px;
  overflow: hidden;
}

.single-post-header {
  padding: 2rem 2rem 0;
  margin-bottom: 0;
}

.single-post-header .entry-title {
  font-size: 28px;
  margin-bottom: 0.6rem;
  color: var(--palette3);
  line-height: 1.35;
  font-weight: 700;
}

.post-meta-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  font-size: 13px;
  color: var(--palette5);
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--palette7);
  margin-bottom: 0;
}

.post-meta-bar .meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
}

.post-meta-bar .meta-icon {
  opacity: 0.6;
  flex-shrink: 0;
}

.post-meta-bar a {
  color: var(--palette1);
}

.post-featured-image {
  margin: 0;
  overflow: hidden;
}

.post-featured-image img {
  width: 100%;
  display: block;
}

.single-post-content {
  background: var(--palette9);
  padding: 2rem;
}

.single-post-content h2 {
  margin-top: 2rem;
  margin-bottom: 0.8rem;
  font-size: 24px;
  color: var(--palette3);
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--palette7);
}

.single-post-content h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.6rem;
  font-size: 20px;
  color: var(--palette3);
}

.single-post-content h4 {
  margin-top: 1.2rem;
  margin-bottom: 0.5rem;
  font-size: 18px;
}

.single-post-content p {
  margin-bottom: 1.2em;
  line-height: 1.8;
}

.single-post-content ul,
.single-post-content ol {
  margin: 1em 0 1em 2em;
  list-style: disc;
}

.single-post-content ol {
  list-style: decimal;
}

.single-post-content li {
  margin-bottom: 0.5em;
  line-height: 1.7;
}

.single-post-content strong {
  font-weight: 700;
}

.single-post-content blockquote {
  border-left: 4px solid var(--red-accent);
  padding: 1em 1.5em;
  margin: 1.5em 0;
  background: var(--palette7);
  font-style: italic;
  border-radius: 0 4px 4px 0;
}

.single-post-content img {
  border-radius: 4px;
  margin: 1rem 0;
}

/* Table of Contents style */
.toc-box {
  background: var(--palette7);
  border: 1px solid #ddd;
  padding: 1.5rem;
  margin: 1.5rem 0;
  border-radius: 4px;
}

.toc-box h3 {
  margin-bottom: 0.8rem;
  font-size: 18px;
  border-bottom: none;
}

.toc-box ol {
  margin-left: 1.5em;
  list-style: decimal;
}

.toc-box li {
  margin-bottom: 0.4em;
}

.toc-box a {
  font-size: 15px;
}

/* Similar Posts */
.similar-posts {
  margin: 0;
  padding: 2rem;
  background: #2D3748;
  border-radius: 0 0 6px 6px;
}

.similar-posts h3 {
  margin-bottom: 1.2rem;
  color: var(--palette9);
  font-size: 22px;
  border-bottom: none;
}

.similar-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.similar-post-card {
  display: block;
  background: var(--palette9);
  border-radius: 6px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.similar-post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

.similar-post-thumb {
  width: 100%;
  height: 140px;
  overflow: hidden;
}

.similar-post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

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

.similar-post-no-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--palette7);
  font-size: 2rem;
}

.similar-post-card .card-body {
  padding: 0.8rem 1rem;
}

.similar-post-card .card-body h4 {
  font-size: 14px;
  line-height: 1.4;
  color: var(--palette3);
  margin: 0;
}

/* Single post mobile */
@media (max-width: 767px) {
  .breadcrumb {
    font-size: 12px;
    padding: 0.5rem 0;
  }
  .breadcrumb-current {
    max-width: 180px;
  }
  .single-post-header {
    padding: 1.2rem 1.2rem 0;
  }
  .single-post-header .entry-title {
    font-size: 20px;
  }
  .post-meta-bar {
    gap: 0.6rem;
    font-size: 12px;
  }
  .single-post-content {
    padding: 1.2rem;
  }
  .single-post-content h2 {
    font-size: 20px;
  }
  .single-post-content h3 {
    font-size: 18px;
  }
  .similar-posts {
    padding: 1.2rem;
  }
  .similar-posts-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
  }
  .similar-post-thumb {
    height: 100px;
  }
  .similar-post-card .card-body {
    padding: 0.6rem 0.8rem;
  }
  .similar-post-card .card-body h4 {
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .similar-posts-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Comment Form */
.comment-section {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 2px solid var(--palette7);
}

.comment-section h3 {
  margin-bottom: 1.5rem;
}

.comment-form .form-group {
  margin-bottom: 1.2rem;
}

.comment-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
  font-size: 15px;
  color: var(--palette4);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  padding: 0.7em 1em;
  border: 1px solid #ccc;
  border-radius: 3px;
  font-size: 15px;
  font-family: var(--font-body);
  color: var(--palette4);
  transition: border-color 0.3s;
}

.comment-form input:focus,
.comment-form textarea:focus {
  border-color: var(--palette1);
  outline: none;
}

.comment-form textarea {
  min-height: 150px;
  resize: vertical;
}

.comment-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 767px) {
  .comment-form .form-row {
    grid-template-columns: 1fr;
  }
}

.comment-form .checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.comment-form .checkbox-group input[type="checkbox"] {
  margin-top: 4px;
}

.comment-form .checkbox-group label {
  font-weight: 400;
  font-size: 14px;
  color: var(--palette5);
}

.btn-submit {
  display: inline-block;
  padding: 0.7em 2em;
  background: var(--palette1);
  color: var(--palette9);
  border: none;
  border-radius: 3px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s, box-shadow 0.3s;
}

.btn-submit:hover {
  background: var(--palette2);
  box-shadow: var(--shadow-btn-hover);
}

/* ---------- PAGE CONTENT (About, Contact, Privacy) ---------- */
.page-content {
  background: var(--palette9);
  padding: 2rem;
  box-shadow: var(--shadow-entry);
}

.page-content h1 {
  margin-bottom: 0.3rem;
}

.page-content h2 {
  margin-top: 2rem;
  margin-bottom: 0.8rem;
}

.page-content h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.6rem;
}

.page-content p {
  margin-bottom: 1.2em;
  line-height: 1.7;
}

.page-content ul {
  margin: 1em 0 1em 2em;
  list-style: disc;
}

.page-content ul li {
  margin-bottom: 0.5em;
  line-height: 1.6;
}

.page-content a {
  color: var(--palette1);
  text-decoration: underline;
}

.page-content a:hover {
  color: var(--palette2);
}

.page-content .email-link {
  color: var(--red-accent);
  font-weight: 700;
}

.page-content .date-meta {
  font-size: 14px;
  color: var(--palette5);
  margin-bottom: 1.5rem;
}

/* About page checkmarks */
.check-section h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.check-icon {
  color: var(--palette3);
  font-size: 1.1em;
}

/* Why Mehndistaan list */
.why-list {
  list-style: none !important;
  margin-left: 0.5em !important;
}

.why-list li {
  position: relative;
  padding-left: 0.2em;
}

.why-list li::before {
  content: "✨ ";
}

/* Contact page emoji headings */
.emoji-heading {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ---------- FOOTER ---------- */
.mehndi-footer {
  background: var(--footer-bg);
  color: var(--palette9);
  padding: 50px 20px;
  font-family: Arial, sans-serif;
}

.footer-container {
  max-width: 1200px;
  margin: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.mehndi-footer h3 {
  color: var(--footer-heading);
  margin-bottom: 15px;
  font-size: 22px;
}

.mehndi-footer p {
  line-height: 1.6;
  font-size: 15px;
}

.footer-column {
  width: 45%;
  min-width: 260px;
  margin-bottom: 30px;
}

.footer-column ul {
  list-style: none;
  padding: 0;
}

.footer-column ul li {
  margin-bottom: 10px;
}

.footer-column ul li a {
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  transition: 0.3s;
}

.footer-column ul li a:hover {
  color: var(--footer-heading);
  padding-left: 5px;
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.2);
  margin-top: 30px;
  padding-top: 15px;
  font-size: 14px;
  color: #f5f5f5;
}

@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .footer-column {
    width: 100%;
  }
  .footer-column ul li a:hover {
    padding-left: 0;
    text-decoration: underline;
    color: var(--footer-heading);
  }
}

/* ---------- ENTRY CONTENT WRAP ---------- */
.entry-content-wrap {
  padding: 2rem;
}

@media (max-width: 1024px) {
  .entry-content-wrap {
    padding: 2rem;
  }
}

@media (max-width: 767px) {
  .entry-content-wrap {
    padding: 1.5rem;
  }
}

/* ---------- SCREEN READER ---------- */
.screen-reader-text {
  border: 0;
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

/* ---------- UTILITY ---------- */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

/* Body lock when drawer is open */
body.drawer-open {
  overflow: hidden;
}

/* ============================================
   COMPREHENSIVE MOBILE RESPONSIVE STYLES
   ============================================ */

/* Prevent horizontal overflow on all pages */
html, body {
  overflow-x: hidden;
  max-width: 100vw;
}

/* ---------- TABLET (max-width: 1024px) ---------- */
@media (max-width: 1024px) {
  :root {
    --edge-padding: 1rem;
  }

  body {
    background: #ffffff; /* White background to match screenshot */
  }

  h1 { font-size: 26px; }
  h2 { font-size: 24px; }
  h3 { font-size: 20px; }

  /* New mobile header layout */
  .site-top-header {
    border-bottom: 2px solid #a60000;
  }

  .header-top-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .header-main {
    display: none; /* Hide the red search bar section on mobile */
  }

  .site-logo {
    max-height: 60px;
    margin: 0;
  }

  /* Hamburger button */
  .mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    position: static;
    color: #a60000; /* Red color for hamburger */
    padding: 0.5em;
  }

  .page-content {
    padding: 1.5rem;
    box-shadow: none;
  }

  .page-content h1 {
    font-size: 24px;
  }

  .page-content h2 {
    font-size: 22px;
  }
}

/* ---------- MOBILE (max-width: 767px) ---------- */
@media (max-width: 767px) {
  :root {
    --edge-padding: 0.8rem;
  }

  body {
    font-size: 15px;
  }

  h1 { font-size: 22px; }
  h2 { font-size: 20px; }
  h3 { font-size: 18px; }
  h4 { font-size: 17px; }
  h5 { font-size: 16px; }
  h6 { font-size: 15px; }

  /* Logo area */
  .site-top-header {
    padding: 0.3rem 0;
  }

  .site-logo {
    max-height: 50px;
  }

  .site-branding a {
    display: inline-block;
  }

  .custom-logo {
    max-height: 50px;
    width: auto;
  }

  /* Header bar */
  .header-main {
    min-height: 50px;
  }

  .header-inner {
    min-height: 50px;
    gap: 0.5rem;
  }

  /* Hamburger button */
  .mobile-toggle {
    padding: 0.5em;
    z-index: 10;
  }

  .mobile-toggle .hamburger-icon {
    gap: 5px;
  }

  .mobile-toggle .hamburger-icon span {
    width: 24px;
    height: 2.5px;
  }

  /* Search bar on mobile header */
  .header-search {
    max-width: 180px;
  }

  .header-search .search-form {
    width: 100%;
  }

  .header-search .search-field {
    padding: 0.4rem 0.6rem;
    font-size: 13px;
  }

  .header-search .search-btn {
    padding: 0.4rem 0.5rem;
  }

  /* Mobile Drawer improvements */
  .mobile-drawer {
    width: 280px;
  }

  .drawer-nav ul li a {
    padding: 0.9em 1.2em;
    font-size: 15px;
  }

  /* Post Grid on homepage */
  .post-card-inner {
    flex-direction: column;
  }

  .post-card-image {
    flex: none;
    max-width: 100%;
  }

  .post-card-image a {
    padding-bottom: 56.25%;
  }

  .post-card-content {
    padding: 1rem;
  }

  .post-card-content .entry-title {
    font-size: 18px;
    margin-bottom: 0.3rem;
  }

  .post-meta {
    font-size: 12px;
    margin-bottom: 0.6rem;
  }

  .post-excerpt {
    font-size: 14px;
    margin-bottom: 0.8rem;
  }

  .read-more-link {
    font-size: 14px;
    padding: 6px 14px;
  }

  .post-tags {
    margin-top: 0.8rem;
    padding-top: 0.8rem;
  }

  .post-tags a {
    font-size: 12px;
  }

  /* Hero Title */
  .hero-title {
    padding: 0.5rem 0 1.2rem;
  }

  .hero-title h1 {
    font-size: 18px;
    padding: 8px 12px;
    border-left: 5px solid #8b0000;
    border-right: 5px solid #8b0000;
  }

  /* Pagination */
  .pagination a, .pagination span {
    min-width: 34px;
    height: 34px;
    font-size: 13px;
    padding: 0.2em 0.5em;
  }

  /* Single Post */
  .single-post-article {
    border-radius: 4px;
  }

  .breadcrumb {
    font-size: 11px;
    padding: 0.4rem 0;
    margin-bottom: 0.8rem;
  }

  .breadcrumb-current {
    max-width: 160px;
  }

  .single-post-header {
    padding: 1rem 1rem 0;
  }

  .single-post-header .entry-title {
    font-size: 20px;
    line-height: 1.3;
  }

  .post-meta-bar {
    flex-direction: column;
    gap: 0.3rem;
    font-size: 12px;
    padding-bottom: 0.8rem;
  }

  .single-post-content {
    padding: 1rem;
  }

  .single-post-content h2 {
    font-size: 19px;
    margin-top: 1.5rem;
  }

  .single-post-content h3 {
    font-size: 17px;
  }

  .single-post-content p {
    font-size: 15px;
    line-height: 1.7;
  }

  .single-post-content img {
    margin: 0.8rem 0;
  }

  .single-post-content blockquote {
    padding: 0.8em 1em;
    margin: 1em 0;
  }

  .single-post-content ul,
  .single-post-content ol {
    margin: 0.8em 0 0.8em 1.5em;
  }

  /* Similar Posts */
  .similar-posts {
    padding: 1rem;
  }

  .similar-posts h3 {
    font-size: 18px;
    margin-bottom: 0.8rem;
  }

  .similar-posts-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
  }

  .similar-post-thumb {
    height: 90px;
  }

  .similar-post-card .card-body {
    padding: 0.5rem 0.6rem;
  }

  .similar-post-card .card-body h4 {
    font-size: 12px;
  }

  /* Comment section */
  .comment-section {
    margin-top: 1.5rem;
    padding: 1rem !important;
  }

  .comment-form .form-row {
    grid-template-columns: 1fr;
  }

  /* Page content */
  .page-content {
    padding: 1rem;
  }

  .page-content h1 {
    font-size: 22px;
  }

  .page-content h2 {
    font-size: 20px;
  }

  .page-content p {
    font-size: 14px;
    line-height: 1.65;
  }

  .page-content ul {
    margin: 0.8em 0 0.8em 1.5em;
  }

  /* Footer */
  .mehndi-footer {
    padding: 30px 15px;
  }

  .mehndi-footer h3 {
    font-size: 18px;
  }

  .mehndi-footer p {
    font-size: 14px;
  }

  .footer-column {
    min-width: unset;
  }

  .footer-bottom {
    font-size: 12px;
    padding-top: 12px;
    margin-top: 20px;
  }

  /* Entry content wrap */
  .entry-content-wrap {
    padding: 1rem;
  }

  /* Contact template */
  .contact-form input,
  .contact-form textarea,
  .contact-form select {
    font-size: 14px;
  }

  /* WordPress comment form defaults */
  #respond .comment-form-author,
  #respond .comment-form-email,
  #respond .comment-form-url {
    width: 100% !important;
    float: none !important;
  }

  #respond input[type="text"],
  #respond input[type="email"],
  #respond input[type="url"],
  #respond textarea {
    width: 100% !important;
    max-width: 100%;
    box-sizing: border-box;
  }

  .comment-respond h3 {
    font-size: 18px;
  }

  /* Search page */
  .search-results .post-card-content .entry-title {
    font-size: 18px;
  }
}

/* ---------- SMALL MOBILE (max-width: 480px) ---------- */
@media (max-width: 480px) {
  :root {
    --edge-padding: 0.6rem;
  }

  body {
    font-size: 14px;
  }

  .site-logo {
    max-height: 40px;
  }

  .custom-logo {
    max-height: 40px;
  }

  .header-search {
    max-width: 140px;
  }

  .header-search .search-field {
    font-size: 12px;
    padding: 0.35rem 0.5rem;
  }

  .mobile-toggle .hamburger-icon span {
    width: 22px;
    height: 2px;
  }

  .hero-title h1 {
    font-size: 16px;
    padding: 7px 10px;
    border-left: 4px solid #8b0000;
    border-right: 4px solid #8b0000;
  }

  .single-post-header .entry-title {
    font-size: 18px;
  }

  .post-card-content .entry-title {
    font-size: 16px;
  }

  .similar-posts-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }

  .similar-post-thumb {
    height: 80px;
  }

  .similar-post-card .card-body h4 {
    font-size: 11px;
  }

  .footer-bottom {
    font-size: 11px;
  }
}

/* ---------- WORDPRESS IMAGE RESPONSIVE ---------- */
.wp-block-image img,
.entry-content img,
.single-post-content img,
figure img {
  max-width: 100%;
  height: auto;
}

/* WordPress alignment classes */
.alignnone,
.aligncenter,
.alignleft,
.alignright {
  max-width: 100%;
}

@media (max-width: 767px) {
  .alignleft,
  .alignright {
    float: none;
    display: block;
    margin-left: auto;
    margin-right: auto;
  }
}

/* WordPress embed responsive */
.wp-block-embed__wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}

.wp-block-embed__wrapper iframe,
.wp-block-embed__wrapper video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
