/* OmmRudraksha Mobile-First Blog & Knowledge Library Stylesheet */

.blog-page, .astrology-blog-page {
    --ink: #26382d;
    --muted: #505c53;
    --paper: #f7f4ed;
    --line: #dedfd5;
    --accent: #36513d;
    --gold: #c99a46;
}

/* Hero Header */
.omm-blog-hero {
    background: linear-gradient(135deg, #1b352a 0%, #264638 100%);
    color: #ffffff;
    border-radius: 8px;
    padding: 28px 24px;
    margin-bottom: 24px;
    box-shadow: 0 4px 16px rgba(27, 53, 42, 0.12);
}

.omm-blog-hero h1 {
    font: 500 clamp(22px, 3.2vw, 32px)/1.2 Georgia, serif;
    color: #ffffff;
    letter-spacing: -0.01em;
    margin-bottom: 8px;
}

.omm-blog-hero p {
    color: #d8e2d5;
    font-size: 14px;
    line-height: 1.55;
    margin-bottom: 0;
}

.omm-blog-hero-eyebrow {
    display: inline-block;
    background: rgba(201, 154, 70, 0.22);
    border: 1px solid rgba(201, 154, 70, 0.45);
    color: #f7dfa3;
    font: 600 11px/1.3 Arial, sans-serif;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 50rem;
    margin-bottom: 10px;
}

/* Quick Navigation Pills */
.omm-blog-pills {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    padding: 6px 0 2px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.omm-blog-pills::-webkit-scrollbar {
    display: none;
}

.omm-blog-pill {
    flex: none;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 50rem;
    font: 500 13px/1.4 Arial, sans-serif;
    text-decoration: none !important;
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.25);
    transition: all 0.2s ease;
}

.omm-blog-pill:hover, .omm-blog-pill:focus {
    background: #ffffff;
    color: var(--ink) !important;
    border-color: #ffffff;
}

.omm-blog-pill.is-active {
    background: var(--gold);
    color: #ffffff !important;
    border-color: var(--gold);
}

/* Badge mukhi & Category styling */
.badge-mukhi {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    font: 600 11px/1.3 Arial, sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: #eef1e9;
    color: #26382d !important;
    border: 1px solid #d4dbc9;
    border-radius: 4px;
}

/* Vedic Card */
.vedic-card {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 18px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

/* Blog Post Card - Desktop Default */
.omm-blog-card {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.omm-blog-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(38, 56, 45, 0.08);
}

.omm-blog-card-media {
    display: block;
    position: relative;
    width: 100%;
    height: 185px;
    background: #f6f1e6;
    overflow: hidden;
}

.omm-blog-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.omm-blog-card:hover .omm-blog-card-media img {
    transform: scale(1.03);
}

.omm-blog-card-media-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f7f4ed 0%, #eef1e9 100%);
    color: var(--accent);
    font: 600 13px/1.4 Georgia, serif;
    letter-spacing: 0.08em;
}

.omm-blog-card-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.omm-blog-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}

.omm-blog-card-title {
    font: 600 18px/1.35 Georgia, serif;
    margin: 0 0 8px;
    color: var(--ink);
}

.omm-blog-card-title a {
    color: var(--ink);
    text-decoration: none;
    transition: color 0.15s ease;
}

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

.omm-blog-card-summary {
    font-size: 13.5px;
    line-height: 1.55;
    color: var(--muted);
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.omm-blog-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 10px;
    border-top: 1px solid #f0f1ec;
    margin-top: auto;
}

.omm-blog-read-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font: 600 13px/1.4 Arial, sans-serif;
    color: var(--accent);
    text-decoration: none;
}

.omm-blog-read-link:hover {
    text-decoration: underline;
    color: #1b352a;
}

/* Tablet & Mobile Breakpoints */
@media (max-width: 991.98px) {
    .omm-blog-hero {
        padding: 20px 16px;
        margin-bottom: 16px;
    }
    .omm-blog-hero .row {
        gap: 16px;
    }
}

/* Mobile View: High-Density, Fast-Browsing List Layout (< 576px) */
@media (max-width: 575.98px) {
    .omm-blog-hero {
        padding: 16px 14px;
        border-radius: 6px;
    }
    .omm-blog-hero h1 {
        font-size: 21px;
        line-height: 1.25;
    }
    .omm-blog-hero p {
        font-size: 13px;
    }
    .omm-blog-card {
        flex-direction: row;
        align-items: stretch;
        padding: 10px;
        gap: 12px;
        border-radius: 6px;
    }
    .omm-blog-card:hover {
        transform: none;
    }
    .omm-blog-card-media {
        width: 95px !important;
        height: 95px !important;
        min-width: 95px;
        max-width: 95px;
        border-radius: 6px;
        flex-shrink: 0;
    }
    .omm-blog-card-media-placeholder {
        width: 95px !important;
        height: 95px !important;
        font-size: 10px;
        text-align: center;
        padding: 6px;
    }
    .omm-blog-card-body {
        padding: 0 !important;
        justify-content: space-between;
        min-width: 0;
    }
    .omm-blog-card-meta {
        margin-bottom: 4px;
    }
    .omm-blog-card-meta .badge-mukhi {
        font-size: 9.5px;
        padding: 2px 6px;
    }
    .omm-blog-card-meta time {
        font-size: 11px;
    }
    .omm-blog-card-title {
        font-size: 14.5px !important;
        line-height: 1.3 !important;
        margin-bottom: 4px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .omm-blog-card-summary {
        display: none !important;
    }
    .omm-blog-card-footer {
        padding-top: 2px;
        border-top: none;
        margin-top: 0;
    }
    .omm-blog-read-link {
        font-size: 12px;
    }
    .omm-blog-card-footer .small {
        font-size: 11px;
    }
    /* Compact Search Form */
    .omm-blog-search-form {
        margin-top: 4px;
    }
    .omm-blog-search-form input {
        font-size: 13px;
        height: 40px;
    }
    .omm-blog-search-form button {
        height: 40px;
        padding: 0 16px;
        font-size: 13px;
    }
}

/* Accordion Sidebar for Mobile */
.omm-sidebar-summary {
    cursor: pointer;
    font: 600 14px/1.4 Arial, sans-serif;
    color: var(--ink);
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.omm-sidebar-summary::-webkit-details-marker {
    display: none;
}

.omm-sidebar-summary::after {
    content: '▾';
    font-size: 16px;
    color: var(--accent);
    transition: transform 0.2s ease;
}

details[open] > .omm-sidebar-summary::after {
    transform: rotate(180deg);
}

/* ==========================================================================
   BLOG POST DETAILS & SACRED EDITORIAL ARTICLE STYLES (MOBILE-FIRST)
   ========================================================================== */

.blogpost-page {
    --ink: #1f2924;
    --muted: #5a655e;
    --paper: #fbf9f4;
    --line: #dedfd5;
    --accent: #14382c;
    --gold: #d4af37;
    --gold-light: #f3c968;
}

/* Article Container */
.omm-article-card {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 32px 36px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    margin-bottom: 28px;
}

/* Article Eyebrow Badge */
.omm-article-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #eef2ec;
    color: #14382c;
    border: 1px solid #d4dbc9;
    font: 700 11px/1.3 Arial, sans-serif;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 12px;
}

/* Article Title */
.omm-article-title {
    font-family: Georgia, "Cinzel", serif;
    font-size: clamp(24px, 3.4vw, 36px);
    font-weight: 700;
    color: #14382c;
    line-height: 1.25;
    letter-spacing: -0.01em;
    margin: 0 0 16px;
}

/* Article Metadata Strip */
.omm-article-meta-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 18px;
    padding: 12px 0 16px;
    border-top: 1px solid #f0f2eb;
    border-bottom: 1px solid #f0f2eb;
    margin-bottom: 24px;
    font-size: 0.88rem;
    color: var(--muted);
}

.omm-editorial-author {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #1f2924;
}

.omm-editorial-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #14382c;
    color: #f3c968;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
}

.omm-article-reading-time {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #faf7ee;
    color: #8c6b23;
    border: 1px solid rgba(212, 175, 55, 0.35);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.78rem;
    font-weight: 700;
}

/* Featured Hero Image */
.omm-article-featured-media {
    position: relative;
    width: 100%;
    max-height: 480px;
    overflow: hidden;
    border-radius: 10px;
    margin: 0 0 28px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
    background: #f7f5ed;
}

.omm-article-featured-media img {
    width: 100%;
    height: auto;
    max-height: 480px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

/* Article Share Bar */
.omm-article-share-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: #faf9f5;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px 18px;
    margin-bottom: 28px;
}

.omm-share-label {
    font-weight: 700;
    font-size: 0.85rem;
    color: #14382c;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.omm-share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.btn-omm-share {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.15s ease;
    cursor: pointer;
    border: 1px solid transparent;
}

.btn-omm-share-wa {
    background: #25d366;
    color: #ffffff !important;
}

.btn-omm-share-wa:hover {
    background: #1ebc59;
}

.btn-omm-share-tw {
    background: #111111;
    color: #ffffff !important;
}

.btn-omm-share-copy {
    background: #ffffff;
    color: #333333 !important;
    border-color: #dcdfd8;
}

.btn-omm-share-copy:hover {
    background: #f0f2eb;
}

/* Body Content Typography */
.blogpost-body.prose {
    font-family: -apple-system, BlinkMacSystemFont, "Plus Jakarta Sans", "Segoe UI", Roboto, sans-serif;
    font-size: 1.08rem;
    line-height: 1.85;
    color: #2b3530;
    overflow-wrap: anywhere;
    word-break: normal;
}

.blogpost-body.prose p {
    margin-bottom: 1.5rem;
}

.blogpost-body.prose h2,
.blogpost-body.prose h3,
.blogpost-body.prose h4 {
    font-family: Georgia, serif;
    color: #14382c;
    font-weight: 700;
    margin-top: 36px;
    margin-bottom: 14px;
    line-height: 1.35;
}

.blogpost-body.prose h2 {
    font-size: 1.55rem;
    border-bottom: 2px solid #eef1ea;
    padding-bottom: 8px;
}

.blogpost-body.prose h3 {
    font-size: 1.32rem;
}

.blogpost-body.prose h4 {
    font-size: 1.15rem;
}

.blogpost-body.prose blockquote {
    background: #faf8f3;
    border-left: 4px solid #d4af37;
    padding: 16px 22px;
    border-radius: 0 8px 8px 0;
    margin: 24px 0;
    font-family: Georgia, serif;
    font-size: 1.12rem;
    font-style: italic;
    color: #303d36;
}

.blogpost-body.prose table {
    width: 100%;
    min-width: 500px;
    border-collapse: collapse;
    margin: 24px 0;
    font-size: 0.94rem;
    line-height: 1.6;
}

.blogpost-body.prose th,
.blogpost-body.prose td {
    padding: 11px 14px;
    border: 1px solid #d8ded5;
    vertical-align: top;
    text-align: left;
}

.blogpost-body.prose th {
    background: #eef3ec;
    color: #14382c;
    font-weight: 700;
}

.blogpost-body.prose tr:nth-child(even) td {
    background: #fafbf9;
}

.blogpost-body.prose img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px auto;
    display: block;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.blogpost-body.prose ul,
.blogpost-body.prose ol {
    padding-left: 24px;
    margin-bottom: 1.5rem;
}

.blogpost-body.prose li {
    margin-bottom: 8px;
}

.blogpost-body.prose a {
    color: #1b5e40;
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 600;
}

.blogpost-body.prose a:hover {
    color: #c05638;
}

/* Devotee Consultation Callout Banner */
.omm-consultation-callout {
    background: linear-gradient(135deg, #fdfbf7 0%, #f6f0e3 100%);
    border: 1px solid #d4af37;
    border-radius: 12px;
    padding: 24px 28px;
    margin: 36px 0;
    box-shadow: 0 4px 16px rgba(212, 175, 55, 0.1);
}

.omm-consultation-callout h3 {
    font-family: Georgia, serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #14382c;
    margin: 0 0 6px;
}

/* Comments Section */
.omm-comment-item {
    background: #ffffff;
    border: 1px solid #ebe7df;
    border-radius: 10px;
    padding: 16px 20px;
    margin-bottom: 14px;
}

.omm-comment-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #14382c;
    color: #f3c968;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}

/* Responsive Table Wrapper */
.omm-table-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 20px 0;
}

/* Mobile Breakpoints for Blog Post (< 768px) */
@media (max-width: 767.98px) {
    .omm-article-card {
        padding: 20px 16px;
        border-radius: 8px;
    }

    .omm-article-title {
        font-size: 22px;
        line-height: 1.3;
    }

    .omm-article-meta-strip {
        gap: 8px 12px;
        font-size: 0.82rem;
    }

    .omm-article-featured-media {
        max-height: 240px;
        margin-bottom: 20px;
    }

    .omm-article-featured-media img {
        max-height: 240px;
    }

    .omm-article-share-bar {
        flex-direction: column;
        align-items: stretch;
        padding: 12px;
    }

    .omm-share-buttons {
        width: 100%;
        justify-content: space-between;
    }

    .btn-omm-share {
        flex: 1;
        justify-content: center;
        padding: 8px 10px;
        font-size: 12px;
    }

    .blogpost-body.prose {
        font-size: 1rem;
        line-height: 1.75;
    }

    .blogpost-body.prose h2 {
        font-size: 1.35rem;
    }

    .blogpost-body.prose h3 {
        font-size: 1.2rem;
    }

    .omm-consultation-callout {
        padding: 18px 16px;
    }
}
