
@import url('https://fonts.googleapis.com/css2?family=Jost:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=Mukta:wght@400;500;600;700&family=Noto+Sans+Gurmukhi:wght@400;500;600;700&family=Noto+Sans+Devanagari:wght@400;500;600;700&family=Noto+Sans+Bengali:wght@400;500;600;700&family=Noto+Sans+Tamil:wght@400;500;600;700&family=Noto+Sans+Telugu:wght@400;500;600;700&family=Noto+Sans+Oriya:wght@400;500;600;700&family=Noto+Sans+Gujarati:wght@400;500;600;700&family=Noto+Sans+Kannada:wght@400;500;600;700&family=Noto+Sans+Malayalam:wght@400;500;600;700&family=Noto+Naskh+Arabic:wght@400;500;600;700&display=swap');

:root {
  --contrast: #222222;
  --contrast-2: #575760;
  --contrast-3: #b2b2be;
  --base: #f0f0f0;
  --base-2: #f7f8f9;
  --base-3: #ffffff;
  --accent: #1e73be;
  --header-gold: #e09718;
  --header-gold-hover: #c9820f;
  --heading-dark: #2c3e50;
  --gold-ornament: #f39c12;
  --border-color: #e5e7eb;
  --font-main: 'Jost', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-gurmukhi: 'Noto Sans Gurmukhi', 'Jost', sans-serif;
  --font-hindi: 'Noto Sans Devanagari', 'Mukta', sans-serif;
  --font-bengali: 'Noto Sans Bengali', sans-serif;
  --font-tamil: 'Noto Sans Tamil', sans-serif;
  --font-telugu: 'Noto Sans Telugu', sans-serif;
  --font-odia: 'Noto Sans Oriya', sans-serif;
  --font-gujarati: 'Noto Sans Gujarati', sans-serif;
  --font-kannada: 'Noto Sans Kannada', sans-serif;
  --font-malayalam: 'Noto Sans Malayalam', sans-serif;
  --font-arabic: 'Noto Naskh Arabic', 'Amiri', Tahoma, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--base-2);
  color: var(--contrast);
  font-family: var(--font-main);
  font-size: 1.05rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

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

a:hover, a:focus {
  color: var(--contrast);
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 10px;
  background: var(--header-gold);
  color: #222222;
  padding: 8px 16px;
  z-index: 10000;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
}
.skip-link:focus {
  top: 10px;
}

/* Header matching dakshinamurthystotram.in */
.site-header {
  background-color: var(--header-gold);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.inside-header {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-icon, .brand-icon-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.35));
  transition: transform 0.2s ease, filter 0.2s ease;
}

.brand-icon-img:hover {
  transform: scale(1.06);
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.45));
}

.main-title {
  font-size: 1.55rem;
  font-weight: 700;
  margin: 0;
}

.main-title a {
  color: var(--contrast);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.main-title a:hover {
  color: #000000;
}

/* Main Navigation */
.main-navigation {
  display: flex;
  align-items: center;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 0;
  padding: 0;
}

.main-nav > ul > li {
  position: relative;
}

.main-nav a {
  color: var(--contrast);
  text-decoration: none;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 0.98rem;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.main-nav a:hover,
.main-nav li:hover > a {
  color: var(--accent);
  background-color: rgba(0, 0, 0, 0.04);
}

.dropdown-icon {
  font-size: 0.65rem;
  transition: transform 0.2s ease;
}

.main-nav li:hover > a .dropdown-icon {
  transform: rotate(180deg);
}

.dropdown-icon-right {
  font-size: 0.65rem;
  margin-left: auto;
  padding-left: 10px;
}

/* Sub-menus: strictly closed by default */
.sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 230px;
  background-color: var(--header-gold);
  box-shadow: 0 8px 20px rgba(0,0,0,0.18);
  padding: 6px 0;
  display: none !important;
  flex-direction: column;
  z-index: 1000;
  border-radius: 4px;
  border: 1px solid rgba(0,0,0,0.08);
}

.sub-menu li {
  width: 100%;
  position: relative;
}

.sub-menu li a {
  color: var(--contrast);
  padding: 9px 18px;
  font-size: 0.92rem;
  font-weight: 500;
  border-radius: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  white-space: nowrap;
  box-sizing: border-box;
}

.sub-menu li a:hover {
  background-color: rgba(0, 0, 0, 0.08);
  color: var(--contrast);
  padding-left: 22px;
}

/* Second-level / nested sub-menus for desktop */
.sub-menu .sub-menu {
  top: 0;
  left: 100%;
  margin-top: -6px;
}

/* Open only on hover on desktop devices */
@media (min-width: 769px) {
  .main-nav li:hover > .sub-menu,
  .main-nav li:focus-within > .sub-menu {
    display: flex !important;
  }
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(0,0,0,0.25);
  color: var(--contrast);
  padding: 6px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1.15rem;
}

/* Main Container */
.site {
  max-width: 1200px;
  margin: 30px auto;
  padding: 0 20px;
}

.inside-article {
  background: var(--base-3);
  padding: 40px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  border-radius: 4px;
}

/* Headings with Diamond Ornament matching dakshinamurthystotram.in */
.entry-content h1,
.entry-content h2, 
.entry-content h3, 
.entry-content h4,
.entry-header h1.entry-title {
  text-align: center;
  color: var(--heading-dark); 
  font-weight: 700;
  margin-top: 20px;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 25px;
  line-height: 1.35;
}

.entry-content h1, .entry-header h1.entry-title {
  font-size: 2.1rem;
}

.entry-content h2 {
  font-size: 1.7rem;
}

.entry-content h3 {
  font-size: 1.35rem;
}

/* Diamond Shape (Center) */
.entry-content h1::before,
.entry-content h2::before, 
.entry-content h3::before, 
.entry-content h4::before,
.entry-header h1.entry-title::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 10px;
  height: 10px;
  border: 2px solid var(--gold-ornament);
  background-color: #fff;
  z-index: 2;
}

/* Horizontal Lines (Both sides) */
.entry-content h1::after,
.entry-content h2::after, 
.entry-content h3::after, 
.entry-content h4::after,
.entry-header h1.entry-title::after {
  content: "";
  position: absolute;
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 160px;
  height: 1px;
  background-color: var(--gold-ornament);
  z-index: 1;
}

/* Paragraphs & Lists */
p {
  margin-bottom: 1.4rem;
  color: #333333;
  line-height: 1.75;
}

.entry-content ul,
.entry-content ol {
  margin: 0 0 1.5rem 1.8rem;
  padding-left: 0.5rem;
  color: #333333;
}

.entry-content ul {
  list-style-type: disc;
}

.entry-content ol {
  list-style-type: decimal;
}

.entry-content li {
  margin-bottom: 0.55rem;
  line-height: 1.7;
}

.entry-content li:last-child {
  margin-bottom: 0;
}

/* GenerateBlocks Style Buttons (Matches dakshinamurthystotram.in) */
.gb-button-wrap {
  text-align: center;
  margin: 25px 0 35px 0;
}

.gb-btn {
  display: inline-block;
  background-color: var(--header-gold);
  color: #ffffff;
  padding: 12px 32px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 1.05rem;
  text-decoration: none;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(224, 151, 24, 0.35);
}

.gb-btn:hover {
  background-color: var(--header-gold-hover);
  color: #ffffff;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(224, 151, 24, 0.45);
}

.gb-btn-small {
  padding: 8px 20px;
  font-size: 0.92rem;
}

/* Structured Table Styles matching dakshinamurthystotram.in */
.wp-block-table {
  overflow-x: auto;
  margin: 25px 0;
}

.wp-block-table table {
  border-collapse: collapse;
  width: 100%;
  border: 1px solid var(--border-color);
}

.wp-block-table th {
  background-color: var(--header-gold);
  color: #ffffff;
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  border: 1px solid #d48b11;
}

.wp-block-table td {
  border: 1px solid var(--border-color);
  padding: 12px 16px;
  color: #333333;
}

.wp-block-table tbody tr:nth-child(even) {
  background-color: #f9fafb;
}

.wp-block-table tbody tr:hover {
  background-color: #fffbf2;
}

/* Prayer Lyrics Display matching Dakshinamurthy Stotram centered verses */
.prayer-lyrics-section {
  text-align: center;
  margin: 30px 0;
}

.prayer-shloka-block {
  margin: 22px 0;
  padding: 12px 10px;
  line-height: 2;
}

.prayer-shloka-heading {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--heading-dark);
  margin-top: 15px;
  margin-bottom: 8px;
}
.prayer-shloka-heading::before, .prayer-shloka-heading::after {
  display: none !important;
}

.shloka-text {
  font-size: 1.2rem;
  color: #1f2937;
  line-height: 2;
  font-family: var(--font-hindi);
}

.font-gurmukhi,
.font-gurmukhi .shloka-text,
.font-gurmukhi .prayer-shloka-heading,
.font-gurmukhi .shloka-meaning-content,
.font-gurmukhi .shloka-meaning-btn {
  font-family: var(--font-gurmukhi);
}

.font-gurmukhi .shloka-text,
.font-gurmukhi .prayer-shloka-heading {
  font-size: 1.2rem;
}

.font-english,
.font-english .shloka-text,
.font-english .prayer-shloka-heading,
.font-english .shloka-meaning-content,
.font-english .shloka-meaning-btn {
  font-family: var(--font-main);
}

.font-english .shloka-text,
.font-english .prayer-shloka-heading {
  font-size: 1.15rem;
  line-height: 1.85;
}

/* Audio Player */
.audio-player-wrapper {
  background: #fffbf5;
  border: 1px solid #fed7aa;
  border-radius: 6px;
  padding: 20px;
  margin: 25px 0;
  text-align: center;
}

.audio-player-wrapper audio {
  width: 100%;
  max-width: 600px;
  margin-top: 10px;
}

/* Language Cards & Grid matching dakshinamurthystotram.in */
.language-section-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.language-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 22px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.language-card:hover {
  transform: translateY(-2px);
  border-color: var(--header-gold);
}

.language-card h3 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 1.18rem;
  color: var(--heading-dark);
}
.language-card h3::before, .language-card h3::after {
  display: none !important;
}

.language-card p {
  font-size: 0.95rem;
  color: #64748b;
  margin-bottom: 16px;
  flex-grow: 1;
}

/* Interactive FAQ Accordion */
.rank-math-block, .faq-section {
  margin: 30px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #ffffff;
  overflow: hidden;
  transition: all 0.25s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.faq-item:hover {
  border-color: #cbd5e1;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.06);
}

.faq-item[open] {
  border-color: #f3d19e;
  background: #fffdf9;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--heading-dark);
  cursor: pointer;
  user-select: none;
  list-style: none;
  background: transparent;
  transition: background-color 0.2s ease, color 0.2s ease;
  text-align: left;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question:hover {
  color: var(--primary-color);
  background: rgba(229, 137, 24, 0.04);
}

.faq-toggle-icon {
  font-size: 0.85rem;
  color: #888888;
  transition: transform 0.3s ease, color 0.3s ease;
  margin-left: 12px;
  flex-shrink: 0;
}

.faq-item[open] .faq-toggle-icon {
  transform: rotate(180deg);
  color: var(--primary-color);
}

.faq-answer {
  padding: 0 20px 18px 20px;
  border-top: 1px dashed #f1f5f9;
  padding-top: 14px;
}

.faq-answer p, .rank-math-answer, .rank-math-answer p {
  color: #475569;
  line-height: 1.7;
  text-align: left !important;
  margin-bottom: 0;
  font-size: 1.02rem;
}

.rank-math-list-item {
  border-bottom: 1px solid #e2e8f0;
  padding: 16px 0;
  text-align: center;
}

.rank-math-list-item:last-child {
  border-bottom: none;
}

.rank-math-question {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--heading-dark);
  margin-bottom: 8px;
  text-align: center !important;
  padding-bottom: 0 !important;
}
.rank-math-question::before, .rank-math-question::after {
  display: none !important;
}

/* Shloka Meaning Accordion */
.shloka-meaning-details {
  margin-top: 14px;
  border-top: 1px dashed #e2e8f0;
  padding-top: 10px;
  text-align: center;
}

.shloka-meaning-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 5px 14px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--heading-dark);
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: all 0.2s ease;
  margin: 0 auto;
}

.shloka-meaning-btn::-webkit-details-marker {
  display: none;
}

.shloka-meaning-btn:hover {
  background: var(--header-gold);
  color: #ffffff;
  border-color: var(--header-gold);
}

.shloka-meaning-details[open] .shloka-meaning-btn {
  background: var(--heading-dark);
  color: #ffffff;
  border-color: var(--heading-dark);
}

.shloka-meaning-details[open] .faq-toggle-icon {
  transform: rotate(180deg);
  color: #ffffff;
}

.shloka-meaning-content {
  margin-top: 10px;
  background: #fffdf9;
  border: 1px solid #f3d19e;
  border-radius: 6px;
  padding: 12px 16px;
  text-align: left;
}

.shloka-meaning-content p {
  color: #334155;
  font-size: 0.98rem;
  line-height: 1.65;
  margin: 0;
  text-align: left !important;
}

/* Concluding Slogan */
.concluding-salutation {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--heading-dark);
  margin: 40px 0 20px 0;
}

/* Audio Player Card - Compact */
.audio-player-card {
  background: linear-gradient(135deg, #fdf8f0 0%, #faebd7 100%);
  border: 1px solid #f3d19e;
  border-left: 4px solid var(--header-gold);
  border-radius: 8px;
  padding: 8px 16px;
  margin: 16px 0 24px 0;
  box-shadow: 0 2px 8px rgba(229, 137, 24, 0.06);
}

.audio-inner-compact {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.audio-header-compact {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.audio-icon-compact {
  font-size: 1.15rem;
}

.audio-title-compact {
  font-size: 1rem;
  font-weight: 700;
  color: #2c3e50;
}

.audio-control-wrap {
  flex: 1;
  min-width: 250px;
}

.site-audio-player {
  width: 100%;
  height: 36px;
  outline: none;
}

/* Category: About Chaupai Sahib Styles */
.category-badge {
  display: inline-block;
  background: var(--header-gold);
  color: #ffffff;
  padding: 4px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.category-banner {
  background: linear-gradient(135deg, #fdf6ec 0%, #faecd8 100%);
  border: 1px solid #f3d19e;
  border-left: 5px solid var(--header-gold);
  border-radius: 8px;
  padding: 24px 28px;
  margin: 35px 0 25px 0;
}

.category-banner h2 {
  margin-top: 0;
  margin-bottom: 8px;
  color: #2c3e50;
}

.category-banner h2::before,
.category-banner h2::after {
  display: none !important;
}

.category-articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  margin: 25px 0 35px 0;
}

.category-article-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.category-article-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.08);
  border-color: var(--header-gold);
}

.category-article-card h3 {
  font-size: 1.15rem;
  margin-top: 0;
  margin-bottom: 10px;
  color: #2c3e50;
  line-height: 1.4;
}

.category-article-card h3::before,
.category-article-card h3::after {
  display: none !important;
}

.category-article-card p {
  font-size: 0.92rem;
  color: var(--contrast-2);
  line-height: 1.55;
  margin-bottom: 15px;
  flex-grow: 1;
}

.category-article-container {
  background: #fafbfc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 30px;
  margin: 30px 0;
}

/* FAQ Accordion / List matching dakshinamurthystotram.in */
/* Footer matching dakshinamurthystotram.in */
.site-footer {
  background-color: var(--base-3);
  border-top: 1px solid #e5e7eb;
  color: var(--contrast-2);
  margin-top: 50px;
}

.inside-site-info {
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 20px;
}

.footer-bar {
  display: flex;
  justify-content: center;
  margin-bottom: 15px;
}

.menu-footer {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin: 0;
  padding: 0;
}

.menu-footer a {
  color: var(--contrast-2);
  text-decoration: none;
  font-size: 0.95rem;
}

.menu-footer a:hover {
  color: var(--header-gold);
  text-decoration: underline;
}

.copyright-bar {
  text-align: center;
  font-size: 0.9rem;
  color: var(--contrast-2);
}

.copyright-bar a {
  color: var(--contrast-2);
}

/* Back to top button */
.generate-back-to-top {
  font-size: 18px;
  border-radius: 3px;
  position: fixed;
  bottom: 30px;
  right: 30px;
  line-height: 40px;
  width: 40px;
  height: 40px;
  text-align: center;
  z-index: 10;
  background-color: rgba(0,0,0,0.5);
  color: #ffffff;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.generate-back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.generate-back-to-top:hover {
  background-color: rgba(0,0,0,0.8);
  color: #ffffff;
}

/* Static page cards & forms */
.contact-container {
  max-width: 700px;
  margin: 30px auto;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 30px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  color: #334155;
}

.form-control {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
}

.form-control:focus {
  outline: none;
  border-color: var(--header-gold);
}

/* Responsive Improvements for Mobile */
html, body {
  overflow-x: hidden;
  max-width: 100%;
}

@media (max-width: 768px) {
  .inside-header {
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .site-branding {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .site-header .main-title,
  .site-branding .main-title,
  .main-title {
    display: block !important;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
  }

  .main-title a {
    color: var(--contrast);
    text-decoration: none;
    white-space: nowrap;
  }

  .brand-icon, .brand-icon-img {
    width: 32px;
    height: 32px;
  }

  .menu-toggle {
    display: block;
    min-width: 44px;
    min-height: 44px;
    font-size: 1.25rem;
    line-height: 1;
  }

  .main-navigation .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background-color: var(--header-gold);
    padding: 8px 0 16px 0;
    box-shadow: 0 10px 20px rgba(0,0,0,0.18);
  }

  .main-navigation .main-nav.active {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .main-nav a {
    padding: 12px 18px;
    font-size: 1rem;
    border-radius: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  }

  .sub-menu {
    position: static;
    display: none !important;
    background-color: rgba(0, 0, 0, 0.08);
    box-shadow: none;
    padding: 0;
    border: none;
    border-radius: 0;
    width: 100%;
  }

  .sub-menu li a {
    padding: 11px 18px 11px 28px;
    font-size: 0.95rem;
    white-space: normal;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  }

  .sub-menu .sub-menu {
    background-color: rgba(0, 0, 0, 0.12);
    margin-top: 0;
  }

  .sub-menu .sub-menu li a {
    padding: 10px 18px 10px 40px;
    font-size: 0.92rem;
  }

  .main-nav li.open > .sub-menu {
    display: flex !important;
  }

  .main-nav li.open > a .dropdown-icon {
    transform: rotate(180deg);
  }

  .main-nav li.open > a .dropdown-icon-right {
    transform: rotate(90deg);
  }

  /* Audio player mobile */
  .audio-player-card {
    padding: 12px 14px;
    margin: 16px 0 20px 0;
  }

  .audio-inner-compact {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .audio-control-wrap {
    width: 100%;
    min-width: 0;
  }

  .site-audio-player {
    height: 40px;
  }

  /* Content area */
  .site {
    margin: 15px auto;
    padding: 0 10px;
  }

  .inside-article {
    padding: 22px 15px;
    border-radius: 6px;
  }

  /* Hide page title heading on mobile version across all pages */
  .entry-header,
  .entry-header .entry-title,
  .entry-header .category-badge {
    display: none !important;
  }

  .entry-content h1 {
    font-size: 1.45rem;
    line-height: 1.35;
    margin-bottom: 18px;
  }

  .entry-content h2 {
    font-size: 1.25rem;
    line-height: 1.35;
    margin: 28px 0 14px 0;
  }

  .entry-content h3 {
    font-size: 1.12rem;
  }

  .entry-content p, .entry-content ul, .entry-content ol {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 16px;
  }

  .prayer-shloka-block {
    padding: 16px 14px;
    margin: 14px 0;
  }

  .prayer-shloka-heading {
    font-size: 1.08rem;
  }

  .shloka-text {
    font-size: 1.08rem;
    line-height: 1.85;
    word-break: break-word;
  }

  .gb-button-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 20px !important;
  }

  .gb-btn, .btn-download-pdf {
    width: auto;
    max-width: 90%;
    text-align: center;
    margin: 0 auto !important;
    padding: 8px 22px;
    font-size: 0.95rem;
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .gb-btn-small {
    padding: 6px 18px;
    font-size: 0.88rem;
    min-height: 34px;
    width: auto;
    align-self: center;
  }

  .category-banner {
    padding: 18px 14px;
    margin: 20px 0;
  }

  .category-articles-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    margin: 18px 0;
  }

  .contact-container {
    padding: 20px 15px;
    margin: 20px auto;
  }

  .inside-site-info {
    padding: 24px 15px;
  }

  .menu-footer {
    gap: 10px 16px;
  }

  .menu-footer a {
    font-size: 0.88rem;
  }

  .generate-back-to-top {
    bottom: 20px;
    right: 20px;
    width: 38px;
    height: 38px;
    line-height: 38px;
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .inside-header {
    padding: 8px 12px;
  }



  .inside-article {
    padding: 18px 12px;
  }

  .entry-content h1, .entry-header h1.entry-title {
    font-size: 1.3rem;
  }

  .entry-content h2 {
    font-size: 1.15rem;
  }

  .shloka-text {
    font-size: 1.02rem;
    line-height: 1.78;
  }

  .prayer-shloka-heading {
    font-size: 1.02rem;
  }
}
