@charset "UTF-8";
/*
Theme Name: Mahapuran Theme
Theme URI: https://www.mahapuran.com
Author: Pradeep Singh Tomar
Author URI: https://www.pradeeptomar.com
Description: A devotional WordPress theme optimized for speed, SEO, and user experience
Version: 2.1.0
Requires at least: 5.8
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mahapuran-theme
Tags: blog, news, custom-colors, custom-logo, custom-menu, editor-style, featured-images, footer-widgets, full-width-template, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready
*/



/* ==========================================================================
   1. CSS CUSTOM PROPERTIES - LIGHT & DARK THEME
   ========================================================================== */
/* =========================================================
   Mahapuran Theme – Root Colors (Light Mode)
   ========================================================= */
:root {
    /* Brand */
    --color-primary: #ff6600;
    --color-primary-hover: #e55a00;
    --color-accent: #ffd700;

    /* Text */
    --text-primary: #222222;
    --text-secondary: #666666;
    --text-muted: #999999;
    --text-inverse: #ffffff;

    /* Backgrounds */
    --bg-body: #ffffff;
    --bg-surface: #ffffff;
    --bg-muted: #f8f9fa;
    --bg-dark-overlay: rgba(0,0,0,0.7);

    /* Header / Navigation */
    --bg-header: #ffffff;
    --bg-menu-hover: #fff5f0;
    --bg-menu-panel: #ffffff;

    /* Borders */
    --border-light: #e9ecef;
    --border-medium: #dddddd;

    /* Shadows */
    --shadow-xs: 0 2px 8px rgba(0,0,0,0.05);
    --shadow-sm: 0 2px 16px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 24px rgba(0,0,0,0.12);

    /* Gradients */
    --gradient-brand: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-search: linear-gradient(135deg, #667eea 0%, #764ba2 100%);

    /* Focus */
    --focus-ring: 0 0 0 3px rgba(255,102,0,0.4);
}


/* =========================================================
   Mahapuran Theme – Root Colors (Dark Mode)
   ========================================================= */
[data-theme="dark"] {
    /* Brand */
    --color-primary: #ff6600;
    --color-primary-hover: #ff7a1a;
    --color-accent: #ffd700;

    /* Text */
    --text-primary: #dddddd;
    --text-secondary: #aaaaaa;
    --text-muted: #888888;
    --text-inverse: #000000;

    /* Backgrounds */
    --bg-body: #0d0d0d;
    --bg-surface: #1a1a1a;
    --bg-muted: #121212;
    --bg-dark-overlay: rgba(0,0,0,0.8);

    /* Header / Navigation */
    --bg-header: #1a1a1a;
    --bg-menu-hover: #2d2d2d;
    --bg-menu-panel: #1a1a1a;

    /* Borders */
    --border-light: #2d2d2d;
    --border-medium: #3d3d3d;

    /* Shadows */
    --shadow-xs: 0 2px 8px rgba(0,0,0,0.3);
    --shadow-sm: 0 2px 16px rgba(0,0,0,0.35);
    --shadow-md: 0 4px 24px rgba(0,0,0,0.5);

    /* Gradients */
    --gradient-brand: linear-gradient(135deg, #4c5bd4 0%, #5b3f91 100%);
    --gradient-search: linear-gradient(135deg, #4c5bd4 0%, #5b3f91 100%);

    /* Focus */
    --focus-ring: 0 0 0 3px rgba(255,102,0,0.5);
}



/* ==========================================================================
   2. GLOBAL RESET & BASE STYLES
   ========================================================================== */

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

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: var(--bg-body);
    color: var(--text-primary);
}







/* =================================================================
   Index/Home Page Styles — Mahapuran Theme
   Loaded only on: front-page, home
   ================================================================= */

/* ── CSS Custom Properties ───────────────────────────────────────── */
:root {
    --mp-accent:       #ff6600;
    --mp-accent-dark:  #e55a00;
    --mp-accent-glow:  rgba(255, 102, 0, 0.35);
    --mp-gold:         #ffd700;
    --mp-text:         #222;
    --mp-text-muted:   #666;
    --mp-text-light:   rgba(255,255,255,0.95);
    --mp-bg:           #fff;
    --mp-bg-subtle:    #f8f9fa;
    --mp-border:       #e9ecef;
    --mp-shadow-sm:    0 4px 12px rgba(0,0,0,0.08);
    --mp-shadow-md:    0 8px 24px rgba(0,0,0,0.12);
    --mp-shadow-lg:    0 12px 32px rgba(0,0,0,0.18);
    --mp-radius:       12px;
    --mp-radius-sm:    8px;
    --mp-font:         'Noto Sans Devanagari', Arial, sans-serif;

    /* SVG icons as CSS variables — avoids repetition in selectors */
    --icon-calendar:   url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23666"><path d="M19 4h-1V2h-2v2H8V2H6v2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V9h14v11z"/></svg>');
    --icon-calendar-w: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M19 4h-1V2h-2v2H8V2H6v2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V9h14v11z"/></svg>');
    --icon-author:     url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23ff6600"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 3c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3 1.34-3 3-3zm0 14.2c-2.5 0-4.71-1.28-6-3.22.03-1.99 4-3.08 6-3.08 1.99 0 5.97 1.09 6 3.08-1.29 1.94-3.5 3.22-6 3.22z"/></svg>');
    --icon-author-w:   url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23ffd700"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 3c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3 1.34-3 3-3zm0 14.2c-2.5 0-4.71-1.28-6-3.22.03-1.99 4-3.08 6-3.08 1.99 0 5.97 1.09 6 3.08-1.29 1.94-3.5 3.22-6 3.22z"/></svg>');
}

/* ── Layout ──────────────────────────────────────────────────────── */
.site-main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.content-sidebar-wrapper {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
    margin: 0 auto;
}

#primary-content { min-width: 0; }

/* ── Hero Article ────────────────────────────────────────────────── */
.hero {
    position: relative;
    margin-bottom: 40px;
    border-radius: var(--mp-radius);
    overflow: hidden;
    box-shadow: var(--mp-shadow-md);
    background: var(--mp-bg);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    /* Reserve space for LCP image — prevents layout shift */
    contain: layout;
}

.hero:hover {
    transform: translateY(-4px);
    box-shadow: var(--mp-shadow-lg);
}

.hero-media-container {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.hero-media-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.hero:hover .hero-media-container img { transform: scale(1.05); }

/* ── Category / Tag Badges ───────────────────────────────────────── */
.featured-terms {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 10;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.term-badge {
    background: rgba(255, 102, 0, 0.95);
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.term-badge:hover {
    background: var(--mp-accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--mp-accent-glow);
}

/* ── Hero Inner (gradient overlay) ──────────────────────────────── */
.hero-inner {
    padding: 30px;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.7) 50%, transparent 100%);
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    color: #fff;
}

.hero-title {
    font-size: 36px;
    line-height: 1.3;
    margin: 0 0 15px;
    font-weight: 800;
    font-family: var(--mp-font);
}

.hero-title a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.hero-title a:hover { color: var(--mp-gold); }

/* ── Entry Meta (shared) ─────────────────────────────────────────── */
.entry-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
}

.hero .entry-meta {
    gap: 15px;
    font-size: 14px;
    margin-bottom: 15px;
    color: rgba(255,255,255,0.9);
}

.hero .entry-meta time,
.hero .entry-meta .author,
.post-card .entry-meta time,
.post-card .entry-meta .author {
    display: flex;
    align-items: center;
}

/* Meta icon — calendar */
.meta-date::before {
    content: "";
    display: inline-block;
    width: 14px;
    height: 14px;
    background: var(--icon-calendar-w) no-repeat center / contain;
    margin-right: 5px;
    vertical-align: middle;
}

.post-card .meta-date::before {
    background-image: var(--icon-calendar);
}

/* Meta icon — author */
.meta-author a::before {
    content: "";
    display: inline-block;
    width: 14px;
    height: 14px;
    background: var(--icon-author-w) no-repeat center / contain;
    margin-right: 5px;
    vertical-align: middle;
}

.post-card .meta-author a::before {
    background-image: var(--icon-author);
}

.author-separator { color: rgba(255,255,255,0.6); }

.hero .entry-meta a {
    color: var(--mp-gold);
    text-decoration: none;
    font-weight: 600;
}

.hero .entry-meta a:hover { text-decoration: underline; }

.post-card .entry-meta {
    color: var(--mp-text-muted);
}

.post-card .entry-meta a {
    color: var(--mp-accent);
    text-decoration: none;
    font-weight: 600;
}

.post-card .entry-meta a:hover { text-decoration: underline; }

.entry-summary {
    font-size: 16px;
    line-height: 1.6;
    color: var(--mp-text-light);
    margin: 0;
}

/* ── Posts Grid ──────────────────────────────────────────────────── */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

/* ── Post Card ───────────────────────────────────────────────────── */
.post-card {
    background: var(--mp-bg);
    border-radius: var(--mp-radius);
    overflow: hidden;
    box-shadow: var(--mp-shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    /* Prevent paint outside box during hover */
    will-change: transform;
}

.post-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--mp-shadow-lg);
}

.post-media-container {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

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

.post-card:hover .post-media-container img { transform: scale(1.1); }

.post-card-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.post-card .entry-header { margin-bottom: 12px; }

.post-card .entry-title {
    font-size: 20px;
    line-height: 1.4;
    margin: 0 0 12px;
    font-weight: 700;
    font-family: var(--mp-font);
}

.post-card .entry-title a {
    color: var(--mp-text);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.post-card {
    opacity: 1;
    transform: none;
}

/* Hero doesn't need reveal treatment */
.hero { opacity: 1 !important; transform: none !important; }

/* ── Screen Reader Utility ───────────────────────────────────────── */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
    word-wrap: normal !important;
}

/* ── Pagination ──────────────────────────────────────────────────── */
.pagination-wrapper {
    margin: 50px 0;
    padding: 30px;
    background: var(--mp-bg-subtle);
    border-radius: var(--mp-radius);
    text-align: center;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    background: var(--mp-bg);
    color: #333;
    border: 2px solid var(--mp-border);
    border-radius: var(--mp-radius-sm);
    text-decoration: none;
    font-weight: 600;
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.pagination .page-numbers:hover {
    background: var(--mp-accent);
    color: #fff;
    border-color: var(--mp-accent);
    transform: translateY(-2px);
}

.pagination .page-numbers.current {
    background: var(--mp-accent);
    color: #fff;
    border-color: var(--mp-accent);
}

.pagination .page-numbers.dots {
    border: none;
    background: transparent;
}

.pagination .prev,
.pagination .next { font-weight: 700; }

/* ── Sidebar ─────────────────────────────────────────────────────── */
#secondary {
    position: sticky;
    top: 20px;
    align-self: start;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--mp-accent) #f1f1f1;
}

#secondary::-webkit-scrollbar      { width: 6px; }
#secondary::-webkit-scrollbar-track { background: #f1f1f1; border-radius: 10px; }
#secondary::-webkit-scrollbar-thumb { background: var(--mp-accent); border-radius: 10px; }

.widget-area {
    background: var(--mp-bg-subtle);
    padding: 25px;
    border-radius: var(--mp-radius);
    box-shadow: var(--mp-shadow-sm);
}

.widget {
    margin-bottom: 30px;
    padding: 20px;
    background: var(--mp-bg);
    border-radius: var(--mp-radius-sm);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.widget:last-child { margin-bottom: 0; }

.widget-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--mp-text);
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--mp-accent);
    font-family: var(--mp-font);
}

.widget ul  { list-style: none; padding: 0; margin: 0; }

.widget li {
    margin: 12px 0;
    padding-left: 20px;
    position: relative;
}

.widget li::before {
    content: "▸";
    position: absolute;
    left: 0;
    color: var(--mp-accent);
    font-weight: bold;
}

.widget a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 15px;
    line-height: 1.6;
}

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

/* ── No Results ──────────────────────────────────────────────────── */
.no-results {
    background: var(--mp-bg);
    padding: 60px 40px;
    border-radius: var(--mp-radius);
    box-shadow: var(--mp-shadow-sm);
    text-align: center;
}

.page-header   { margin-bottom: 30px; }

.page-title {
    font-size: 32px;
    color: var(--mp-text);
    margin: 0 0 15px;
    font-weight: 700;
}

.page-content {
    font-size: 18px;
    color: var(--mp-text-muted);
    line-height: 1.8;
}

.page-content p { margin-bottom: 25px; }

/* ── Search Form ─────────────────────────────────────────────────── */
.search-form {
    display: flex;
    max-width: 500px;
    margin: 30px auto 0;
    gap: 10px;
}

.search-form .search-field {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid var(--mp-border);
    border-radius: var(--mp-radius-sm);
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.search-form .search-field:focus {
    outline: none;
    border-color: var(--mp-accent);
}

.search-form .search-submit {
    padding: 12px 30px;
    background: var(--mp-accent);
    color: #fff;
    border: none;
    border-radius: var(--mp-radius-sm);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.25s ease;
}

.search-form .search-submit:hover {
    background: var(--mp-accent-dark);
    transform: translateY(-2px);
}

/* ── Dark Mode ───────────────────────────────────────────────────── */
@media (prefers-color-scheme: dark) {
    :root {
        --mp-text:        #ddd;
        --mp-text-muted:  #aaa;
        --mp-bg:          #1a1a1a;
        --mp-bg-subtle:   #0d0d0d;
        --mp-border:      #333;
        --mp-shadow-sm:   0 4px 12px rgba(0,0,0,0.3);
        --mp-shadow-md:   0 8px 24px rgba(0,0,0,0.4);
        --mp-shadow-lg:   0 12px 32px rgba(0,0,0,0.5);
    }
}

/* Also honour explicit data-theme attribute on <html> */
[data-theme="dark"] {
    --mp-text:        #ddd;
    --mp-text-muted:  #aaa;
    --mp-bg:          #1a1a1a;
    --mp-bg-subtle:   #0d0d0d;
    --mp-border:      #333;
}

/* ── Accessibility ───────────────────────────────────────────────── */
.skip-to-content {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--mp-accent);
    color: #fff;
    padding: 8px;
    text-decoration: none;
    z-index: 100;
    transition: top 0.2s ease;
}

.skip-to-content:focus { top: 0; }

/* Focus-visible ring for keyboard navigation */
a:focus-visible,
button:focus-visible,
.page-numbers:focus-visible {
    outline: 3px solid var(--mp-accent);
    outline-offset: 3px;
    border-radius: 4px;
}

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .content-sidebar-wrapper {
        grid-template-columns: 1fr 280px;
        gap: 20px;
    }
    .posts-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .content-sidebar-wrapper { grid-template-columns: 1fr; }

    #secondary {
        position: static;
        max-height: none;
        margin-top: 40px;
    }

    .hero-media-container { height: 350px; }
    .hero-title           { font-size: 28px; }
    .hero-inner           { padding: 20px; }
    .posts-grid           { grid-template-columns: 1fr; gap: 20px; }
    .post-media-container { height: 200px; }
    .site-main            { padding: 15px; }
}

@media (max-width: 480px) {
    .hero-media-container      { height: 280px; }
    .hero-title                { font-size: 22px; }
    .hero .entry-meta          { font-size: 12px; }
    .entry-summary             { font-size: 14px; }
    .post-card .entry-title    { font-size: 18px; }
    .pagination .page-numbers  { min-width: 38px; height: 38px; font-size: 14px; }
}

/* ── Print ───────────────────────────────────────────────────────── */
@media print {
    .hero-media-container,
    .post-media-container,
    #secondary,
    .pagination-wrapper { display: none; }

    .hero-inner           { position: static; background: none; color: #000; }
    .hero-title a,
    .post-card .entry-title a { color: #000; }
}








/* =================================================================
   Header Styles - Mahapuran Design
   ================================================================= */

/* Skip Link for Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #ff6600;
    color: white;
    padding: 12px 20px;
    text-decoration: none;
    z-index: 10000;
    border-radius: 0 0 8px 0;
    font-weight: 600;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 0;
    outline: 3px solid #ffd700;
}

/* Main Header Container */
.site-header {
    background: white;
    box-shadow: 0 2px 16px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.site-header.scrolled {
    box-shadow: 0 4px 24px rgba(0,0,0,0.12);
}

/* Container */
.header-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

/* Logo/Brand */
.brand {
    flex-shrink: 0;
    z-index: 2;
}

.brand a {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.brand a:hover {
    transform: scale(1.05);
}

.brand img {
    max-height: 50px;
    width: auto;
    display: block;
}

.logo-light {
    display: block !important;
}

.logo-dark {
    display: none !important;
}

[data-theme="dark"] .logo-light {
    display: none !important;
}

[data-theme="dark"] .logo-dark {
    display: block !important;
}

/* If no dark logo exists, show light logo in dark mode with filter */
[data-theme="dark"] .brand img.logo-light:only-child {
    display: block !important;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

/* Site Title (when no logo) */
.site-branding {
    flex-shrink: 0;
}

.site-title {
    font-size: 28px;
    font-weight: 800;
    margin: 0;
    font-family: 'Noto Sans Devanagari', Arial, sans-serif;
}

.site-title a {
    color: #222;
    text-decoration: none;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s ease;
}

.site-title a:hover {
    opacity: 0.8;
}

.site-desc {
    font-size: 14px;
    color: #666;
    margin: 5px 0 0;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 2;
}

/* Theme Toggle Button */
.theme-toggle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid #e9ecef;
    background: white;
    color: #ff6600;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.theme-toggle:hover {
    background: #ff6600;
    color: white;
    border-color: #ff6600;
    transform: rotate(180deg) scale(1.1);
}

.theme-toggle:focus {
    outline: 3px solid #ff6600;
    outline-offset: 2px;
}

.theme-toggle:active {
    transform: rotate(180deg) scale(0.95);
}

/* Theme toggle icon animation */
.theme-toggle span {
    display: inline-block;
    transition: transform 0.3s ease;
}

[data-theme="dark"] .theme-toggle {
    background: #2d2d2d;
    border-color: #3d3d3d;
    color: #ffa500;
}

[data-theme="dark"] .theme-toggle:hover {
    background: #ff6600;
    color: white;
}

/* Hamburger Menu Button */
.hamburger {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    border: 2px solid #e9ecef;
    background: white;
    color: #333;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.hamburger:hover {
    background: #ff6600;
    color: white;
    border-color: #ff6600;
    transform: scale(1.1);
}

.hamburger:focus {
    outline: 3px solid #ff6600;
    outline-offset: 2px;
}

/* Menu Overlay */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(5px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 998;
}

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

/* Menu Panel */
.menu-panel {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background: white;
    box-shadow: -4px 0 24px rgba(0,0,0,0.15);
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.menu-panel.active {
    right: 0;
}

/* Menu Close Button */
.menu-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: #f8f9fa;
    color: #333;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 2;
}

.menu-close:hover {
    background: #ff6600;
    color: white;
    transform: rotate(90deg);
}

/* Menu Links Container */
.menu-links {
    padding: 80px 30px 30px;
    flex: 1;
}

/* Navigation Menu */
.nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-menu li {
    margin: 0;
    border-bottom: 1px solid #e9ecef;
}

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

.nav-menu a {
    display: block;
    padding: 16px 20px;
    color: #333;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
    font-family: 'Noto Sans Devanagari', Arial, sans-serif;
}

.nav-menu a:hover,
.nav-menu .current-menu-item > a,
.nav-menu .current_page_item > a {
    background: #fff5f0;
    color: #ff6600;
    border-left-color: #ff6600;
    padding-left: 24px;
}

/* Submenu */
.nav-menu .sub-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    background: #f8f9fa;
}

.nav-menu .sub-menu a {
    padding-left: 40px;
    font-size: 15px;
    font-weight: 500;
}

.nav-menu .sub-menu a:hover {
    padding-left: 44px;
}

/* Search Form Container */
.search-container {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
    border-bottom: 1px solid #e9ecef;
}

.simple-search-form {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    gap: 10px;
    align-items: center;
}

/* Search Field */
.search-field {
    flex: 1;
    padding: 14px 20px;
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 25px;
    font-size: 15px;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    color: #333;
}

.search-field:focus {
    outline: none;
    border-color: #ff6600;
    background: white;
    box-shadow: 0 4px 16px rgba(255,102,0,0.2);
    transform: translateY(-2px);
}

.search-field::placeholder {
    color: #999;
}

/* Search Submit Button */
.search-submit {
    padding: 14px 30px;
    background: #ff6600;
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(255,102,0,0.3);
}

.search-submit:hover {
    background: #e55a00;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255,102,0,0.4);
}

.search-submit:focus {
    outline: 3px solid white;
    outline-offset: 2px;
}

/* Screen Reader Text */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
    word-wrap: normal !important;
}

/* Dark Mode Styles */
[data-theme="dark"] .site-header {
    background: #1a1a1a;
    box-shadow: 0 2px 16px rgba(0,0,0,0.3);
}

[data-theme="dark"] .site-title a {
    color: white;
    -webkit-text-fill-color: white;
}

[data-theme="dark"] .site-desc {
    color: #aaa;
}

[data-theme="dark"] .hamburger {
    background: #2d2d2d;
    border-color: #3d3d3d;
    color: #ff6600;
}

[data-theme="dark"] .hamburger:hover {
    background: #ff6600;
    color: white;
}

[data-theme="dark"] .menu-panel {
    background: #1a1a1a;
}

[data-theme="dark"] .menu-close {
    background: #2d2d2d;
    color: #fff;
}

[data-theme="dark"] .nav-menu a {
    color: #ddd;
}

[data-theme="dark"] .nav-menu li {
    border-bottom-color: #2d2d2d;
}

[data-theme="dark"] .nav-menu a:hover,
[data-theme="dark"] .nav-menu .current-menu-item > a {
    background: #2d2d2d;
    color: #ff6600;
}

[data-theme="dark"] .nav-menu .sub-menu {
    background: #0d0d0d;
}

[data-theme="dark"] .search-field {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.2);
    color: white;
}

[data-theme="dark"] .search-field::placeholder {
    color: rgba(255,255,255,0.5);
}

[data-theme="dark"] .search-field:focus {
    background: rgba(255,255,255,0.15);
}

/* Responsive Design */
@media (min-width: 1025px) {
    .hamburger {
        display: none;
    }
    
    .menu-panel {
        position: static;
        width: auto;
        max-width: none;
        height: auto;
        background: transparent;
        box-shadow: none;
        flex: 1;
        overflow: visible;
        right: 0;
    }
    
    .menu-panel.active {
        right: 0;
    }
    
    .menu-close {
        display: none;
    }
    
    .menu-links {
        padding: 0;
        display: flex;
        justify-content: flex-end;
    }
    
    .nav-menu {
        display: flex;
        align-items: center;
        gap: 5px;
    }
    
    .nav-menu li {
        border-bottom: none;
        position: relative;
    }
    
    .nav-menu > li > a {
        padding: 10px 18px;
        border-radius: 8px;
        border-left: none;
    }
    
    .nav-menu > li > a:hover,
    .nav-menu .current-menu-item > a,
    .nav-menu .current_page_item > a {
        background: #fff5f0;
        color: #ff6600;
        padding-left: 18px;
    }
    
    /* Desktop Dropdown */
    .nav-menu .sub-menu {
        position: absolute;
        top: 100%;
        left: 0;
        min-width: 220px;
        background: white;
        box-shadow: 0 8px 24px rgba(0,0,0,0.15);
        border-radius: 8px;
        padding: 8px 0;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.3s ease;
        z-index: 100;
    }
    
    .nav-menu li:hover > .sub-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    
    .nav-menu .sub-menu a {
        padding: 10px 20px;
        border-radius: 0;
    }
    
    .nav-menu .sub-menu a:hover {
        padding-left: 24px;
        background: #fff5f0;
    }
    
    [data-theme="dark"] .nav-menu .sub-menu {
        background: #2d2d2d;
    }
    
    .menu-overlay {
        display: none;
    }
}

@media (max-width: 1024px) {
    .header-inner {
        padding: 12px 15px;
    }
    
    .brand img {
        max-height: 40px;
    }
    
    .site-title {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .header-inner {
        padding: 10px 12px;
        gap: 10px;
    }
    
    .brand img {
        max-height: 35px;
    }
    
    .site-title {
        font-size: 20px;
    }
    
    .theme-toggle,
    .hamburger {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .header-actions {
        gap: 8px;
    }
    
    .menu-panel {
        max-width: 320px;
    }
    
    .search-container {
        padding: 15px;
    }
    
    .simple-search-form {
        flex-direction: column;
    }
    
    .search-submit {
        width: 100%;
    }
}

/* Loading Animation */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.site-header {
    animation: slideDown 0.4s ease-out;
}

/* Focus Visible for Better Accessibility */
button:focus-visible,
a:focus-visible {
    outline: 3px solid #ff6600;
    outline-offset: 2px;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Print Styles */
@media print {
    .site-header {
        position: static;
        box-shadow: none;
    }
    
    .header-actions,
    .search-container,
    .menu-panel {
        display: none;
    }
}






/* =================================================================
   Footer Styles - Mahapuran Design (Inline for Speed)
   ================================================================= */

/* Footer Widgets Area */
.footer-widgets-area {
    background: #f8f9fa;
    padding: 50px 20px;
    border-top: 1px solid #e9ecef;
}

.footer-widgets-area .container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.footer-widgets-area .widget {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.footer-widgets-area .widget:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.footer-widgets-area .widget-title {
    font-size: 20px;
    font-weight: 700;
    color: #222;
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 3px solid #ff6600;
    font-family: 'Noto Sans Devanagari', Arial, sans-serif;
}

.footer-widgets-area .widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-widgets-area .widget li {
    margin: 12px 0;
    padding-left: 20px;
    position: relative;
}

.footer-widgets-area .widget li::before {
    content: "▸";
    position: absolute;
    left: 0;
    color: #ff6600;
    font-weight: bold;
}

.footer-widgets-area .widget a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 15px;
    line-height: 1.6;
}

.footer-widgets-area .widget a:hover {
    color: #ff6600;
}

/* Main Footer */
.site-footer {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px 20px 20px;
    position: relative;
    overflow: hidden;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.4));
    z-index: 1;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    text-align: center;
}

/* Footer Navigation */
.footer-nav {
    margin-bottom: 30px;
}

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

.footer-menu li {
    margin: 0;
}

.footer-menu a {
    display: block;
    padding: 10px 20px;
    color: white;
    text-decoration: none;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: 25px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.footer-menu a:hover,
.footer-menu .current-menu-item a {
    background: #ff6600;
    border-color: rgba(255,255,255,0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255,102,0,0.4);
}

/* Social Media Icons */
.footer-social {
    margin: 25px 0;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    font-size: 20px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.social-link:hover {
    background: #ff6600;
    border-color: rgba(255,255,255,0.3);
    transform: translateY(-4px) rotate(5deg);
    box-shadow: 0 6px 16px rgba(255,102,0,0.4);
}

/* Footer Text */
.footer-text {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid rgba(255,255,255,0.2);
}

.footer-text p {
    margin: 10px 0;
    font-size: 14px;
    color: rgba(255,255,255,0.9);
    line-height: 1.6;
}

.footer-text a {
    color: #ffd700;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-text a:hover {
    color: white;
    text-decoration: underline;
}

.privacy-policy-link {
    margin-top: 10px;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #ff6600;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(255,102,0,0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: #e55a00;
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 6px 24px rgba(255,102,0,0.6);
}

.back-to-top:focus {
    outline: 3px solid white;
    outline-offset: 2px;
}

/* Newsletter Section (if present) */
.footer-newsletter {
    max-width: 500px;
    margin: 0 auto 30px;
    padding: 30px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 2px solid rgba(255,255,255,0.2);
}

.footer-newsletter h3 {
    font-size: 22px;
    margin: 0 0 10px;
    font-weight: 700;
}

.footer-newsletter p {
    font-size: 14px;
    margin: 0 0 20px;
    color: rgba(255,255,255,0.9);
}

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

.newsletter-form input[type="email"] {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 25px;
    background: rgba(255,255,255,0.95);
    color: #333;
    font-size: 14px;
    transition: all 0.3s ease;
}

.newsletter-form input[type="email"]:focus {
    outline: none;
    border-color: #ff6600;
    background: white;
}

.newsletter-form button {
    padding: 12px 30px;
    background: #ff6600;
    color: white;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.newsletter-form button:hover {
    background: #e55a00;
    transform: scale(1.05);
}

/* Footer Credits */
.footer-credits {
    margin-top: 20px;
    font-size: 12px;
    color: rgba(255,255,255,0.7);
}

.footer-credits a {
    color: rgba(255,255,255,0.9);
}

/* Dark Mode Support */
[data-theme="dark"] .footer-widgets-area {
    background: #0d0d0d;
    border-top-color: #2d2d2d;
}

[data-theme="dark"] .footer-widgets-area .widget {
    background: #1a1a1a;
}

[data-theme="dark"] .footer-widgets-area .widget-title {
    color: white;
}

[data-theme="dark"] .footer-widgets-area .widget a {
    color: #ddd;
}

[data-theme="dark"] .footer-widgets-area .widget a:hover {
    color: #ff6600;
}

/* Responsive Design */
@media (max-width: 768px) {
    .footer-widgets-area {
        padding: 40px 15px;
    }
    
    .footer-widgets-area .container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .site-footer {
        padding: 30px 15px 15px;
    }
    
    .footer-menu {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-menu a {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
    
    .footer-newsletter {
        padding: 20px;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form button {
        width: 100%;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .footer-widgets-area .widget {
        padding: 20px;
    }
    
    .footer-text p {
        font-size: 13px;
    }
    
    .footer-social {
        gap: 10px;
    }
    
    .social-link {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
}

/* Print Styles */
@media print {
    .footer-widgets-area,
    .footer-social,
    .back-to-top,
    .footer-newsletter {
        display: none;
    }
    
    .site-footer {
        background: white;
        color: black;
        padding: 20px;
    }
    
    .footer-menu a {
        background: none;
        color: black;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Loading Optimization */
.site-footer {
    content-visibility: auto;
    contain-intrinsic-size: 400px;
}





/* =================================================================
   Exact same CSS as in your single.php (full copy)
   ================================================================= */
/* Container and Layout */
.single-post-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
}
/* Breadcrumb Navigation */
.breadcrumb-navigation {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
    padding: 10px 0;
}
.breadcrumb-navigation a {
    color: #ff6600;
    text-decoration: none;
    transition: color 0.3s ease;
}
.breadcrumb-navigation a:hover {
    color: #ff8533;
    text-decoration: underline;
}
/* Article Header */
.article-header {
    margin-bottom: 30px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 20px;
}
.article-title {
    font-size: 32px;
    line-height: 1.4;
    color: #333;
    font-weight: 700;
    margin-bottom: 15px;
    font-family: 'Noto Sans Devanagari', Arial, sans-serif;
}
/* Article Meta Information */
.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 14px;
    color: #777;
    margin-bottom: 15px;
}
.meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
}


.meta-item::before         { content: "\1F4C5"; } /* 📅 */
.meta-author::before       { content: "\270D";  } /* ✍  */
.meta-category::before     { content: "\1F4C1"; } /* 📁 */
.meta-reading-time::before { content: "\23F1";  } /* ⏱  */
.meta-updated::before      { content: "\1F504"; } /* 🔄 */

.meta-item a {
    color: #ff6600;
    text-decoration: none;
}
.meta-item a:hover {
    text-decoration: underline;
}
/* Featured Image */
.featured-image-container {
    margin: 30px 0;
    text-align: center;
}
.featured-image-container img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.image-caption {
    font-size: 14px;
    color: #666;
    font-style: italic;
    margin-top: 10px;
}
/* Audio Player Widget */
.audio-player-widget {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    margin: 20px 0;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.audio-player-widget::before {
    content: "\25B6";
    font-size: 24px;
    font-weight: bold;
}
.audio-player-text {
    font-weight: 600;
    font-size: 16px;
}
/* Table of Contents */
.table-of-contents {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin: 30px 0;
}
.toc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    margin-bottom: 15px;
    font-weight: 700;
    font-size: 18px;
    color: #333;
}
.toc-toggle {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #666;
    transition: transform 0.3s ease;
}
.toc-toggle.collapsed {
    transform: rotate(180deg);
}
.toc-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
}
.toc-list li {
    margin: 10px 0;
    padding-left: 20px;
    position: relative;
}
.toc-list li::before {
    content: "\25C8";
    position: absolute;
    left: 0;
    color: #ff6600;
    font-weight: bold;
}
.toc-list a {
    color: #495057;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 15px;
    line-height: 1.6;
}
.toc-list a:hover {
    color: #ff6600;
    padding-left: 5px;
}
.toc-list ul {
    list-style: none;
    padding-left: 20px;
    margin-top: 5px;
}
/* Article Content */
.article-content {
    font-size: 18px;
    line-height: 1.8;
    color: #333;
    font-family: 'Noto Sans Devanagari', Georgia, serif;
}
.article-content h2 {
    font-size: 28px;
    font-weight: 700;
    color: #222;
    margin: 40px 0 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid #ff6600;
}
.article-content h3 {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin: 30px 0 15px;
}
.article-content h4 {
    font-size: 20px;
    font-weight: 600;
    color: #444;
    margin: 25px 0 12px;
}
.article-content p {
    margin: 18px 0;
    text-align: justify;
}
.article-content strong {
    font-weight: 700;
    color: #000;
}
.article-content em {
    font-style: italic;
    color: #555;
}
/* Blockquote Styling */
.article-content blockquote {
    background: #fff8dc;
    border-left: 5px solid #ff6600;
    margin: 30px 0;
    padding: 20px 25px;
    font-style: italic;
    font-size: 17px;
    color: #555;
    border-radius: 0 8px 8px 0;
}
/* Lists */
.article-content ul,
.article-content ol {
    margin: 20px 0;
    padding-left: 40px;
}
.article-content li {
    margin: 10px 0;
    line-height: 1.8;
}
/* Images in Content */
.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 25px auto;
    display: block;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
/* Highlight/Alert Boxes */
.highlight-box {
    background: #fff3cd;
    border-left: 5px solid #ffc107;
    padding: 20px;
    margin: 25px 0;
    border-radius: 0 8px 8px 0;
}
.info-box {
    background: #d1ecf1;
    border-left: 5px solid #0dcaf0;
    padding: 20px;
    margin: 25px 0;
    border-radius: 0 8px 8px 0;
}
.warning-box {
    background: #f8d7da;
    border-left: 5px solid #dc3545;
    padding: 20px;
    margin: 25px 0;
    border-radius: 0 8px 8px 0;
}
/* Source Attribution */
.source-attribution {
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    padding: 20px;
    margin: 30px 0;
    border-radius: 8px;
    font-size: 16px;
}
.source-attribution strong {
    color: #ff6600;
}
/* FAQ Section */
.faq-section {
    margin: 40px 0;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 8px;
}
.faq-section h2 {
    color: #222;
    font-size: 26px;
    margin-bottom: 25px;
    border-bottom: 3px solid #ff6600;
    padding-bottom: 10px;
}
.faq-item {
    background: white;
    margin: 15px 0;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #ff6600;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.faq-question {
    font-size: 19px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
}
.faq-answer {
    font-size: 17px;
    line-height: 1.8;
    color: #555;
}
/* Related Posts Section */
.related-posts-section {
    margin: 50px 0;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 8px;
}
.related-posts-section h3 {
    font-size: 26px;
    font-weight: 700;
    color: #222;
    margin-bottom: 25px;
    border-bottom: 3px solid #ff6600;
    padding-bottom: 10px;
}
.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}
.related-post-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.related-post-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.15);
}
.related-post-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}
.related-post-content {
    padding: 20px;
}
.related-post-title {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
    color: #333;
    margin-bottom: 12px;
    text-decoration: none;
    display: block;
}
.related-post-title:hover {
    color: #ff6600;
}
.related-post-excerpt {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
    margin: 15px 0;
}
.related-post-excerpt p {
    margin: 0;
}
.read-more {
    display: inline-block;
    margin-top: 10px;
    font-weight: 600;
    color: #ff6600;
    text-decoration: none;
    font-size: 15px;
}
.read-more:hover {
    text-decoration: underline;
}
.read-more::after {
    content: " \2192";
}
/* Pagination */
.posts-pagination {
    text-align: center;
    margin: 60px 0 40px;
}
.posts-pagination .page-numbers {
    display: inline-block;
    padding: 12px 20px;
    margin: 0 5px;
    background: #f8f9fa;
    color: #333;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
}
.posts-pagination .page-numbers:hover {
    background: #ff6600;
    color: white;
}
.posts-pagination .page-numbers.current {
    background: #ff6600;
    color: white;
}
/* Mobile Responsive */
@media (max-width: 768px) {
    .single-post-container {
        padding: 15px;
    }
    .article-title {
        font-size: 24px;
    }
    .related-posts-grid {
        grid-template-columns: 1fr;
    }
    .related-post-card img {
        height: 200px;
    }
    .related-post-title {
        font-size: 18px;
    }
    .related-post-excerpt {
        font-size: 15px;
    }
}
/* Print & Accessibility (same as single.php) */
@media print {
    .share-buttons,
    .related-posts-section,
    .comments-section {
        display: none;
    }
    .article-content {
        font-size: 12pt;
        line-height: 1.6;
    }
}
.fade-in {
    animation: fadeIn 0.5s ease-in;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.archive-description {
    font-size: 17px;
    line-height: 1.8;
    color: #555;
    margin-top: 20px;
}


.no-results.not-found {
    text-align: center;
    font-size: 18px;
    color: #777;
    padding: 80px 0;
}
.archive-post-count {
    font-size: 15px;
    color: #777;
    margin-top: 15px;
}










/* =================================================================
   Page Template Styles - Matching mahapuran.com Design
   ================================================================= */

/* Main Container */
.site-main.page-template {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* Page Layout with Sidebar */
.page-layout-wrapper {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
    margin: 0 auto;
}

.page-main-content {
    min-width: 0;
}

/* Page Article Container */
.page-content {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    animation: fadeInUp 0.6s ease-out;
}

/* Page Header */
.page-header {
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 60px 40px;
    text-align: center;
    color: white;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.4));
    z-index: 1;
}

.page-header > * {
    position: relative;
    z-index: 2;
}

.entry-title.page-title {
    font-size: 42px;
    line-height: 1.3;
    margin: 0;
    font-weight: 800;
    color: white;
    font-family: 'Noto Sans Devanagari', Arial, sans-serif;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* Featured Image in Header */
.page-featured-image {
    margin: 30px auto 0;
    max-width: 800px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(0,0,0,0.3);
}

.page-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Breadcrumbs */
.breadcrumbs {
    margin-top: 20px;
    padding: 12px 20px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    display: inline-block;
    font-size: 14px;
}

.breadcrumbs a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumbs a:hover {
    color: #ffd700;
}

.breadcrumbs span {
    color: rgba(255,255,255,0.8);
    margin: 0 8px;
}

/* Page Body Content */
.entry-content.page-body {
    padding: 50px 40px;
    font-size: 17px;
    line-height: 1.8;
    color: #333;
}

.entry-content.page-body h1,
.entry-content.page-body h2,
.entry-content.page-body h3,
.entry-content.page-body h4,
.entry-content.page-body h5,
.entry-content.page-body h6 {
    font-family: 'Noto Sans Devanagari', Arial, sans-serif;
    font-weight: 700;
    color: #222;
    margin-top: 35px;
    margin-bottom: 20px;
    line-height: 1.3;
}

.entry-content.page-body h2 {
    font-size: 32px;
    padding-bottom: 12px;
    border-bottom: 3px solid #ff6600;
}

.entry-content.page-body h3 {
    font-size: 26px;
    color: #ff6600;
}

.entry-content.page-body h4 {
    font-size: 22px;
}

.entry-content.page-body h5 {
    font-size: 19px;
}

.entry-content.page-body p {
    margin-bottom: 20px;
}

.entry-content.page-body a {
    color: #ff6600;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.entry-content.page-body a:hover {
    color: #e55a00;
    border-bottom-color: #ff6600;
}

/* Lists */
.entry-content.page-body ul,
.entry-content.page-body ol {
    margin: 20px 0;
    padding-left: 30px;
}

.entry-content.page-body ul li,
.entry-content.page-body ol li {
    margin: 10px 0;
    line-height: 1.8;
}

.entry-content.page-body ul li {
    list-style: none;
    position: relative;
    padding-left: 20px;
}

.entry-content.page-body ul li::before {
    content: "▸";
    position: absolute;
    left: 0;
    color: #ff6600;
    font-weight: bold;
}

/* Blockquotes */
.entry-content.page-body blockquote {
    background: #f8f9fa;
    border-left: 4px solid #ff6600;
    padding: 20px 30px;
    margin: 30px 0;
    border-radius: 8px;
    font-style: italic;
    color: #555;
}

.entry-content.page-body blockquote p:last-child {
    margin-bottom: 0;
}

/* Code Blocks */
.entry-content.page-body pre {
    background: #2d2d2d;
    color: #f8f8f2;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 25px 0;
}

.entry-content.page-body code {
    background: #f4f4f4;
    padding: 2px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.entry-content.page-body pre code {
    background: none;
    padding: 0;
    color: inherit;
}

/* Tables */
.entry-content.page-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border-radius: 8px;
    overflow: hidden;
}

.entry-content.page-body th,
.entry-content.page-body td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

.entry-content.page-body th {
    background: #ff6600;
    color: white;
    font-weight: 600;
}

.entry-content.page-body tr:hover {
    background: #f8f9fa;
}

/* Images */
.entry-content.page-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 25px 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.entry-content.page-body .wp-caption {
    max-width: 100%;
}

.entry-content.page-body .wp-caption-text {
    text-align: center;
    font-size: 14px;
    color: #666;
    margin-top: 10px;
    font-style: italic;
}

/* Buttons */
.entry-content.page-body .wp-block-button__link,
.entry-content.page-body .button {
    display: inline-block;
    padding: 12px 30px;
    background: #ff6600;
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.entry-content.page-body .wp-block-button__link:hover,
.entry-content.page-body .button:hover {
    background: #e55a00;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 102, 0, 0.4);
    border-bottom: none;
}

/* Page Links (Pagination) */
.page-links {
    margin: 40px 0;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 8px;
    text-align: center;
}

.page-links-title {
    font-weight: 600;
    color: #333;
    margin-right: 15px;
}

.page-links .page-number {
    display: inline-block;
    margin: 0 5px;
    padding: 8px 15px;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
}

.page-links .page-number:hover,
.page-links .post-page-numbers.current {
    background: #ff6600;
    color: white;
    border-color: #ff6600;
}

/* Page Footer */
.entry-footer.page-footer {
    padding: 25px 40px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.page-updated {
    font-size: 14px;
    color: #666;
}

.updated-label {
    font-weight: 600;
    color: #333;
}

.page-updated time {
    color: #ff6600;
}

.edit-link a {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background: #ff6600;
    color: white;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.edit-link a:hover {
    background: #e55a00;
    transform: translateY(-2px);
}

/* Table of Contents (if present) */
.toc-container {
    background: #f8f9fa;
    border: 2px solid #ff6600;
    border-radius: 12px;
    padding: 25px;
    margin: 30px 0;
}

.toc-title {
    font-size: 20px;
    font-weight: 700;
    color: #222;
    margin: 0 0 15px;
    font-family: 'Noto Sans Devanagari', Arial, sans-serif;
}

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

.toc-list li {
    margin: 10px 0;
    padding-left: 0;
}

.toc-list li::before {
    display: none;
}

.toc-list a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.toc-list a:hover {
    color: #ff6600;
    border-bottom: none;
}

/* Sidebar Styles */
#secondary.page-sidebar {
    position: sticky;
    top: 20px;
    align-self: start;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #ff6600 #f1f1f1;
}

#secondary.page-sidebar::-webkit-scrollbar {
    width: 6px;
}

#secondary.page-sidebar::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

#secondary.page-sidebar::-webkit-scrollbar-thumb {
    background: #ff6600;
    border-radius: 10px;
}

.widget-area.page-sidebar {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.page-sidebar .widget {
    margin-bottom: 30px;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.page-sidebar .widget:last-child {
    margin-bottom: 0;
}

.page-sidebar .widget-title {
    font-size: 20px;
    font-weight: 700;
    color: #222;
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 3px solid #ff6600;
    font-family: 'Noto Sans Devanagari', Arial, sans-serif;
}

.page-sidebar .widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.page-sidebar .widget li {
    margin: 12px 0;
    padding-left: 20px;
    position: relative;
}

.page-sidebar .widget li::before {
    content: "▸";
    position: absolute;
    left: 0;
    color: #ff6600;
    font-weight: bold;
}

.page-sidebar .widget a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 15px;
    line-height: 1.6;
}

.page-sidebar .widget a:hover {
    color: #ff6600;
}

/* Comments Section */
#comments {
    margin-top: 50px;
    padding: 40px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.comments-title {
    font-size: 28px;
    font-weight: 700;
    color: #222;
    margin: 0 0 30px;
    padding-bottom: 12px;
    border-bottom: 3px solid #ff6600;
    font-family: 'Noto Sans Devanagari', Arial, sans-serif;
}

/* No Results / 404 */
.no-results.not-found {
    background: white;
    padding: 60px 40px;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    text-align: center;
}

.no-results .page-title {
    font-size: 32px;
    color: #222;
    margin: 0 0 15px;
    font-weight: 700;
}

.no-results .page-content {
    font-size: 18px;
    color: #666;
    line-height: 1.8;
}

.no-results .page-content p {
    margin-bottom: 25px;
}

/* Search Form */
.search-form {
    display: flex;
    max-width: 500px;
    margin: 30px auto 0;
    gap: 10px;
}

.search-form .search-field {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.search-form .search-field:focus {
    outline: none;
    border-color: #ff6600;
}

.search-form .search-submit {
    padding: 12px 30px;
    background: #ff6600;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-form .search-submit:hover {
    background: #e55a00;
    transform: translateY(-2px);
}

/* Screen Reader Text */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
    word-wrap: normal !important;
}

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

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

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-layout-wrapper {
        grid-template-columns: 1fr 280px;
        gap: 20px;
    }
    
    .entry-content.page-body {
        padding: 40px 30px;
        font-size: 16px;
    }
    
    .entry-title.page-title {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .page-layout-wrapper {
        grid-template-columns: 1fr;
    }
    
    #secondary.page-sidebar {
        position: static;
        max-height: none;
        margin-top: 40px;
    }
    
    .page-header {
        padding: 40px 25px;
    }
    
    .entry-title.page-title {
        font-size: 32px;
    }
    
    .entry-content.page-body {
        padding: 30px 25px;
    }
    
    .entry-content.page-body h2 {
        font-size: 28px;
    }
    
    .entry-content.page-body h3 {
        font-size: 24px;
    }
    
    .entry-footer.page-footer {
        padding: 20px 25px;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .site-main.page-template {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .page-header {
        padding: 30px 20px;
    }
    
    .entry-title.page-title {
        font-size: 26px;
    }
    
    .entry-content.page-body {
        padding: 25px 20px;
        font-size: 15px;
    }
    
    .entry-content.page-body h2 {
        font-size: 24px;
    }
    
    .entry-content.page-body h3 {
        font-size: 20px;
    }
    
    .breadcrumbs {
        font-size: 12px;
        padding: 10px 15px;
    }
    
    .entry-footer.page-footer {
        padding: 15px 20px;
    }
}

/* Print Styles */
@media print {
    .page-header,
    #secondary,
    .edit-link,
    .breadcrumbs {
        display: none;
    }
    
    .entry-content.page-body {
        padding: 20px;
    }
    
    .entry-content.page-body a {
        color: black;
        border-bottom: 1px solid black;
    }
}

/* Accessibility Improvements */
.skip-to-content {
    position: absolute;
    top: -40px;
    left: 0;
    background: #ff6600;
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

.skip-to-content:focus {
    top: 0;
}

/* Focus Styles */
a:focus,
button:focus,
input:focus,
textarea:focus {
    outline: 3px solid #ff6600;
    outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .page-header {
        background: #000;
    }
    
    .entry-content.page-body a {
        border-bottom: 2px solid currentColor;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

























/* =================================================================
   Single Post Page Styles - Mahapuran Design
   ================================================================= */

/* Main Container and Layout */
.single-post-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
}

.single-post-main {
    min-width: 0;
}

.single-post-container {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    animation: fadeInUp 0.6s ease-out;
}

/* Breadcrumb Navigation */
.breadcrumb-navigation {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 15px 30px;
    margin: 0 0 20px;
    border-radius: 12px 12px 0 0;
    font-size: 14px;
    color: rgba(255,255,255,0.9);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.breadcrumb-navigation a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 4px 8px;
    border-radius: 4px;
}

.breadcrumb-navigation a:hover {
    background: rgba(255,255,255,0.2);
    color: #ffd700;
}

.breadcrumb-navigation span {
    color: rgba(255,255,255,0.7);
}

/* Article Header */
.article-header {
    padding: 40px 40px 30px;
    border-bottom: 3px solid #f0f0f0;
    background: linear-gradient(to bottom, #ffffff 0%, #fafafa 100%);
}

.article-title {
    font-size: 36px;
    line-height: 1.3;
    color: #222;
    font-weight: 800;
    margin: 0 0 20px;
    font-family: 'Noto Sans Devanagari', Arial, sans-serif;
}

/* Article Meta Information */
.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 14px;
    color: #666;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 15px;
    background: #f8f9fa;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.meta-item:hover {
    background: #fff5f0;
    transform: translateY(-2px);
}

.meta-date::before { content: "📅"; }
.meta-author::before { content: "✍️"; }
.meta-category::before { content: "📁"; }
.meta-reading-time::before { content: "⏱️"; }
.meta-updated::before { content: "🔄"; }
.meta-views::before { content: "👁️"; }

.meta-item a {
    color: #ff6600;
    text-decoration: none;
    font-weight: 600;
}

.meta-item a:hover {
    text-decoration: underline;
}

/* Featured Image */
.featured-image-container {
    margin: 0;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.featured-image-container img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.featured-image-container:hover img {
    transform: scale(1.05);
}

.image-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: 15px 30px;
    font-size: 14px;
    color: white;
    font-style: italic;
}

/* Audio Player Widget */
.audio-player-widget {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 30px;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    font-weight: 700;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
}

.audio-player-widget:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    box-shadow: 0 6px 28px rgba(102, 126, 234, 0.6);
}

.audio-player-widget::before {
    content: "▶";
    font-size: 28px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Table of Contents */
.table-of-contents {
    background: linear-gradient(135deg, #fff5f0 0%, #ffe8db 100%);
    border: 2px solid #ff6600;
    border-radius: 12px;
    padding: 25px 30px;
    margin: 30px 40px;
    box-shadow: 0 4px 16px rgba(255, 102, 0, 0.1);
}

.toc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    margin-bottom: 20px;
    font-weight: 700;
    font-size: 20px;
    color: #222;
    font-family: 'Noto Sans Devanagari', Arial, sans-serif;
}

.toc-header::before {
    content: "📑 ";
    font-size: 24px;
}

.toc-toggle {
    background: #ff6600;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    color: white;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toc-toggle:hover {
    background: #e55a00;
    transform: rotate(180deg);
}

.toc-toggle.collapsed {
    transform: rotate(0deg);
}

.toc-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.toc-list li {
    margin: 12px 0;
    padding-left: 25px;
    position: relative;
    transition: all 0.3s ease;
}

.toc-list li::before {
    content: "▸";
    position: absolute;
    left: 0;
    color: #ff6600;
    font-weight: bold;
    transition: all 0.3s ease;
}

.toc-list li:hover::before {
    transform: translateX(5px);
}

.toc-list a {
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 15px;
    line-height: 1.6;
    font-weight: 500;
}

.toc-list a:hover {
    color: #ff6600;
    padding-left: 5px;
}

.toc-list ul {
    list-style: none;
    padding-left: 25px;
    margin-top: 8px;
}

/* Article Content */
.article-content {
    padding: 40px;
    font-size: 18px;
    line-height: 1.8;
    color: #333;
    font-family: 'Noto Sans Devanagari', Georgia, serif;
}

.article-content h2 {
    font-size: 30px;
    font-weight: 700;
    color: #222;
    margin: 50px 0 20px;
    padding-bottom: 12px;
    border-bottom: 3px solid #ff6600;
    font-family: 'Noto Sans Devanagari', Arial, sans-serif;
    scroll-margin-top: 100px;
}

.article-content h3 {
    font-size: 26px;
    font-weight: 600;
    color: #333;
    margin: 40px 0 15px;
    color: #ff6600;
    scroll-margin-top: 100px;
}

.article-content h4 {
    font-size: 22px;
    font-weight: 600;
    color: #444;
    margin: 30px 0 12px;
    scroll-margin-top: 100px;
}

.article-content p {
    margin: 20px 0;
    text-align: justify;
}

.article-content strong {
    font-weight: 700;
    color: #000;
}

.article-content em {
    font-style: italic;
    color: #555;
}

.article-content a {
    color: #ff6600;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.article-content a:hover {
    border-bottom-color: #ff6600;
    color: #e55a00;
}

/* Blockquote Styling */
.article-content blockquote {
    background: #fff8dc;
    border-left: 5px solid #ff6600;
    margin: 30px 0;
    padding: 25px 30px;
    font-style: italic;
    font-size: 17px;
    color: #555;
    border-radius: 0 12px 12px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.article-content blockquote::before {
    content: """;
    font-size: 48px;
    color: #ff6600;
    opacity: 0.3;
    position: absolute;
    margin-left: -30px;
    margin-top: -20px;
}

/* Lists */
.article-content ul,
.article-content ol {
    margin: 25px 0;
    padding-left: 40px;
}

.article-content li {
    margin: 12px 0;
    line-height: 1.8;
}

.article-content ul li {
    list-style: none;
    position: relative;
    padding-left: 25px;
}

.article-content ul li::before {
    content: "▸";
    position: absolute;
    left: 0;
    color: #ff6600;
    font-weight: bold;
}

/* Images in Content */
.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 30px auto;
    display: block;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-content img:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 32px rgba(0,0,0,0.18);
}

/* Tables */
.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    background: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border-radius: 12px;
    overflow: hidden;
}

.article-content th,
.article-content td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

.article-content th {
    background: #ff6600;
    color: white;
    font-weight: 600;
}

.article-content tr:hover {
    background: #f8f9fa;
}

/* Highlight/Alert Boxes */
.highlight-box,
.info-box,
.warning-box {
    padding: 25px 30px;
    margin: 30px 0;
    border-radius: 12px;
    border-left: 5px solid;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.highlight-box {
    background: #fff3cd;
    border-left-color: #ffc107;
}

.info-box {
    background: #d1ecf1;
    border-left-color: #0dcaf0;
}

.warning-box {
    background: #f8d7da;
    border-left-color: #dc3545;
}

/* Source Attribution */
.source-attribution {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px dashed #dee2e6;
    padding: 25px 30px;
    margin: 30px 40px;
    border-radius: 12px;
    font-size: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.source-attribution strong {
    color: #ff6600;
    font-size: 18px;
}

/* Share Buttons */
.share-buttons {
    display: flex;
    gap: 12px;
    padding: 30px 40px;
    background: #f8f9fa;
    flex-wrap: wrap;
    align-items: center;
    border-top: 1px solid #e9ecef;
}

.share-label {
    font-weight: 700;
    font-size: 16px;
    color: #333;
    margin-right: 10px;
}

.share-button {
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.share-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.share-facebook { background: #1877f2; color: white; }
.share-twitter { background: #1da1f2; color: white; }
.share-whatsapp { background: #25d366; color: white; }
.share-telegram { background: #0088cc; color: white; }
.share-linkedin { background: #0077b5; color: white; }
.share-copy { background: #6c757d; color: white; }

/* Tags Section */
.post-tags {
    padding: 30px 40px;
    border-top: 1px solid #e9ecef;
}

.post-tags strong {
    font-size: 16px;
    color: #333;
    margin-right: 10px;
}

.post-tags a {
    display: inline-block;
    padding: 8px 16px;
    background: #f8f9fa;
    color: #333;
    text-decoration: none;
    border-radius: 20px;
    margin: 5px;
    font-size: 14px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.post-tags a:hover {
    background: #ff6600;
    color: white;
    border-color: #ff6600;
    transform: translateY(-2px);
}

/* Author Box */
.author-box {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 30px;
    margin: 30px 40px;
    border-radius: 12px;
    display: flex;
    gap: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.author-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.author-info h4 {
    margin: 0 0 10px;
    font-size: 20px;
    color: #222;
}

.author-info p {
    margin: 0;
    color: #666;
    line-height: 1.6;
}

.author-social {
    margin-top: 10px;
    display: flex;
    gap: 10px;
}

/* Related Posts */
.related-posts-section {
    margin: 0;
    padding: 40px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-top: 3px solid #ff6600;
}

.related-posts-section h3 {
    font-size: 28px;
    font-weight: 700;
    color: #222;
    margin: 0 0 30px;
    font-family: 'Noto Sans Devanagari', Arial, sans-serif;
}

.related-posts-section h3::before {
    content: "🔗 ";
    font-size: 30px;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.related-post-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.related-post-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.15);
}

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

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

.related-post-content {
    padding: 20px;
}

.related-post-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    text-decoration: none;
    display: block;
    line-height: 1.4;
}

.related-post-title:hover {
    color: #ff6600;
}

.related-post-date {
    font-size: 13px;
    color: #888;
}

/* Comments Section */
.comments-section {
    padding: 40px;
    background: white;
    border-top: 3px solid #ff6600;
}

.comments-section h3 {
    font-size: 28px;
    font-weight: 700;
    color: #222;
    margin: 0 0 30px;
    font-family: 'Noto Sans Devanagari', Arial, sans-serif;
}

.comments-section h3::before {
    content: "💬 ";
    font-size: 30px;
}

/* Sidebar */
.single-post-sidebar {
    position: sticky;
    top: 20px;
    align-self: start;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #ff6600 #f1f1f1;
}

.single-post-sidebar::-webkit-scrollbar {
    width: 6px;
}

.single-post-sidebar::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.single-post-sidebar::-webkit-scrollbar-thumb {
    background: #ff6600;
    border-radius: 10px;
}

.sidebar-widget {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    margin-bottom: 20px;
}

.sidebar-widget h3 {
    font-size: 20px;
    font-weight: 700;
    color: #222;
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 3px solid #ff6600;
}

/* Reading Progress Bar */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, #ff6600 0%, #ffa500 100%);
    width: 0%;
    z-index: 9999;
    transition: width 0.2s ease;
    box-shadow: 0 2px 8px rgba(255,102,0,0.4);
}

/* Post Navigation */
.post-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 30px 40px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

.nav-link {
    padding: 20px;
    background: white;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.nav-link:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.nav-label {
    font-size: 12px;
    color: #999;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 8px;
}

.nav-title {
    font-size: 16px;
    color: #333;
    font-weight: 600;
}

.nav-link:hover .nav-title {
    color: #ff6600;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .single-post-wrapper {
        grid-template-columns: 1fr;
    }
    
    .single-post-sidebar {
        position: static;
        max-height: none;
        margin-top: 40px;
    }
}

@media (max-width: 768px) {
    .single-post-wrapper {
        padding: 15px;
    }
    
    .article-header {
        padding: 30px 25px;
    }
    
    .article-title {
        font-size: 28px;
    }
    
    .article-content {
        padding: 25px;
        font-size: 16px;
    }
    
    .article-content h2 {
        font-size: 24px;
    }
    
    .article-content h3 {
        font-size: 20px;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .related-posts-grid {
        grid-template-columns: 1fr;
    }
    
    .share-buttons {
        padding: 25px;
        justify-content: center;
    }
    
    .table-of-contents {
        margin: 25px;
        padding: 20px;
    }
    
    .post-navigation {
        grid-template-columns: 1fr;
        padding: 20px;
    }
    
    .breadcrumb-navigation {
        padding: 12px 20px;
    }
}

@media (max-width: 480px) {
    .article-title {
        font-size: 22px;
    }
    
    .article-content {
        padding: 20px;
        font-size: 15px;
        line-height: 1.7;
    }
    
    .article-content h2 {
        font-size: 20px;
        margin: 30px 0 15px;
    }
}

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

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

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Print Styles */
@media print {
    .share-buttons,
    .related-posts-section,
    .comments-section,
    .post-navigation,
    .single-post-sidebar,
    .breadcrumb-navigation,
    .reading-progress,
    .author-box {
        display: none;
    }
    
    .article-content {
        padding: 20px;
        font-size: 12pt;
        line-height: 1.6;
    }
}

/* Dark Mode Support */
[data-theme="dark"] .single-post-container {
    background: #1a1a1a;
}

[data-theme="dark"] .article-title,
[data-theme="dark"] .article-content h2,
[data-theme="dark"] .article-content h3 {
    color: white;
}

[data-theme="dark"] .article-content {
    color: #ddd;
}

[data-theme="dark"] .article-header {
    background: linear-gradient(to bottom, #1a1a1a 0%, #0d0d0d 100%);
}

/* Accessibility */
.skip-to-content {
    position: absolute;
    top: -40px;
    left: 0;
    background: #ff6600;
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    z-index: 10000;
    border-radius: 0 0 8px 0;
}

.skip-to-content:focus {
    top: 0;
}

/* Focus Styles */
a:focus,
button:focus {
    outline: 3px solid #ff6600;
    outline-offset: 2px;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}


