/**
 * आरतीसंध्या — सिंगल पोस्ट पेज रीडिज़ाइन (single1.css)
 * होम पेज (style3.css) जैसा ही थीम/टोकन सिस्टम — विज़ुअल consistency के लिए
 * नोट: यह style.css/style1/2/3 से स्वतंत्र फ़ाइल है — सभी क्लासेज़ 's1-' प्रीफ़िक्स के साथ
 */

:root {
    --s1-maroon:      #8A1220;
    --s1-maroon-deep: #4A0E17;
    --s1-twilight:    #2C1440;
    --s1-saffron:     #E9871E;
    --s1-marigold:    #F6B93B;
    --s1-brass:       #B8860B;

    --s1-ink:         #2A1810;
    --s1-ink-soft:    #6B4A3A;
    --s1-ink-faint:   #9C8172;
    --s1-cream:       #FFF3E0;
    --s1-tint:        #FFFAF2;
    --s1-line:        #F0DFC6;
    --s1-white:       #FFFFFF;

    --s1-radius-sm: 12px;
    --s1-radius-md: 18px;
    --s1-radius-lg: 26px;

    --s1-shadow-sm: 0 2px 10px rgba(90, 30, 15, 0.06);
    --s1-shadow-md: 0 14px 32px rgba(90, 30, 15, 0.12);

    --s1-ease: cubic-bezier(0.22, 1, 0.36, 1);

    --s1-font-display: 'Noto Serif Devanagari', 'Tiro Devanagari Hindi', serif;
    --s1-font-body: 'Noto Sans Devanagari', 'Mukta', sans-serif;
    --s1-font-utility: 'Poppins', 'Noto Sans Devanagari', sans-serif;
}

.s1-page, .s1-page h1, .s1-page h2, .s1-page h3, .s1-page h4, .s1-page p {
    overflow-wrap: break-word;
    word-break: break-word;
}

.s1-container { max-width: 1400px; margin: 0 auto; padding: 0 24px; }

/* ================================================
   हेडर बैंड — Breadcrumb + Title
================================================ */
.s1-header-band {
    background: linear-gradient(160deg, var(--s1-cream) 0%, var(--s1-white) 100%);
    padding: 30px 0 38px;
    border-bottom: 1px solid var(--s1-line);
}

.s1-breadcrumb {
    font-family: var(--s1-font-utility);
    font-size: 16px;
    color: var(--s1-ink-faint);
    margin-bottom: 18px;
    text-align: center;
}

.s1-breadcrumb a { color: var(--s1-saffron); text-decoration: none; font-weight: 600; }
.s1-breadcrumb a:hover { color: var(--s1-maroon); }
.s1-breadcrumb span { color: var(--s1-ink-soft); }

.s1-title-block { text-align: center; max-width: 1100px; margin: 0 auto; }

.s1-title-block h1 {
    font-family: var(--s1-font-display);
    font-size: clamp(22px, 2.2vw + 15px, 34px);
    font-weight: 700;
    color: var(--s1-maroon);
    line-height: 1.3;
    margin-bottom: 12px;
}

.s1-desc {
    font-family: var(--s1-font-body);
    font-size: 16px;
    color: var(--s1-ink-soft);
    line-height: 1.7;
    margin-bottom: 20px;
}

.s1-meta-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.s1-meta-pill {
    font-family: var(--s1-font-utility);
    font-size: 16px;
    font-weight: 600;
    color: var(--s1-ink-soft);
    background: var(--s1-white);
    border: 1px solid var(--s1-line);
    padding: 7px 16px;
    border-radius: 50px;
}

.s1-cat-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

.s1-cat-row a {
    font-family: var(--s1-font-utility);
    font-size: 16px;
    font-weight: 600;
    color: var(--s1-maroon);
    background: var(--s1-cream);
    padding: 6px 15px;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.25s var(--s1-ease);
}

.s1-cat-row a:hover { background: var(--s1-marigold); color: var(--s1-maroon-deep); }

/* ================================================
   मुख्य लेआउट — Article + Sidebar
================================================ */
.s1-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 36px;
    padding: 44px 0 60px;
    align-items: start;
}

.s1-main { min-width: 0; }

/* Featured image */
.s1-featured-img {
    border-radius: var(--s1-radius-lg);
    overflow: hidden;
    margin-bottom: 28px;
    box-shadow: var(--s1-shadow-sm);
}
.s1-featured-img img { width: 100%; height: auto; display: block; }

/* सामान्य कार्ड ब्लॉक — परिचय / मुख्य कंटेंट / Hinglish */
.s1-block {
    background: var(--s1-white);
    border: 1px solid var(--s1-line);
    border-radius: var(--s1-radius-lg);
    padding: 30px 32px;
    margin-bottom: 26px;
}

.s1-block-alt { background: var(--s1-tint); }

.s1-block-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--s1-line);
}

.s1-block-icon {
    width: 42px; height: 42px;
    display: flex; align-items: center; justify-content: center;
    background: var(--s1-cream);
    border-radius: 12px;
    font-size: 19px;
    flex-shrink: 0;
}

.s1-block-head h3 {
    font-family: var(--s1-font-display);
    font-size: clamp(17px, 0.8vw + 15px, 21px);
    font-weight: 700;
    color: var(--s1-maroon);
    margin: 0;
}

.s1-content {
    font-family: var(--s1-font-body);
    font-size: clamp(16px, 0.4vw + 13px, 16px);
    line-height: 1.95;
    color: var(--s1-ink);
}

.s1-content p { margin-bottom: 16px; }
.s1-content img { border-radius: var(--s1-radius-sm); max-width: 100%; height: auto; }

/* Content action buttons (TTS/PDF/etc from aartisandhya-buttons.php) — keep functional, restyle wrapper */
.s1-content-actions {
    margin-bottom: 18px;
}
.s1-content-actions button,
.s1-content-actions a {
    font-family: var(--s1-font-utility) !important;
    border-radius: 50px !important;
}

/* शेयर सेक्शन */
.s1-share {
    background: var(--s1-white);
    border: 1px solid var(--s1-line);
    border-radius: var(--s1-radius-lg);
    padding: 26px 30px;
    margin-bottom: 26px;
    text-align: center;
}

.s1-share h3 {
    font-family: var(--s1-font-display);
    font-size: 18px;
    color: var(--s1-maroon);
    margin-bottom: 16px;
}

.s1-share-buttons { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

.s1-share-buttons a {
    font-family: var(--s1-font-utility);
    font-weight: 600;
    font-size: 16px;
    padding: 11px 22px;
    border-radius: 50px;
    text-decoration: none;
    color: #fff;
    transition: transform 0.25s var(--s1-ease);
}
.s1-share-buttons a:hover { transform: translateY(-3px); color: #fff; }

.s1-share-fb { background: #3b5998; }
.s1-share-tw { background: #1da1f2; }
.s1-share-wa { background: #25d366; }

/* ================================================
   साइडबार — Widgets
================================================ */
.s1-sidebar { display: flex; flex-direction: column; gap: 20px; min-width: 0; }

.s1-widget {
    background: var(--s1-white);
    border: 1px solid var(--s1-line);
    border-radius: var(--s1-radius-md);
    padding: 22px;
}

.s1-widget h3 {
    font-family: var(--s1-font-display);
    font-size: 16.5px;
    font-weight: 700;
    color: var(--s1-maroon);
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--s1-line);
}

.s1-simple-list { list-style: none; display: flex; flex-direction: column; gap: 2px; }

.s1-simple-list li a,
.s1-simple-list a {
    display: block;
    font-family: var(--s1-font-body);
    font-size: 16px;
    color: var(--s1-ink);
    text-decoration: none;
    padding: 9px 6px;
    border-bottom: 1px dashed var(--s1-line);
    transition: all 0.2s var(--s1-ease);
}
.s1-simple-list li:last-child a { border-bottom: none; }
.s1-simple-list li a:hover { color: var(--s1-maroon); padding-left: 12px; }

/* Sidebar posts with thumbnail */
.s1-post-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px dashed var(--s1-line);
}
.s1-post-item:last-child { border-bottom: none; }

.s1-post-thumb {
    flex-shrink: 0;
    width: 52px; height: 52px;
    border-radius: 10px;
    overflow: hidden;
    background: var(--s1-cream);
}
.s1-post-thumb img { width: 100%; height: 100%; object-fit: cover; }

.s1-post-info { min-width: 0; }
.s1-post-info h4 {
    font-family: var(--s1-font-body);
    font-size: 16px;
    font-weight: 700;
    color: var(--s1-ink);
    margin-bottom: 3px;
    line-height: 1.4;
}
.s1-post-info h4 a { color: inherit; text-decoration: none; }
.s1-post-info h4 a:hover { color: var(--s1-maroon); }

.s1-post-date {
    font-family: var(--s1-font-utility);
    font-size: 16px;
    color: var(--s1-ink-faint);
}

/* ================================================
   संबंधित पोस्ट — Related Posts Grid (full width)
================================================ */
.s1-related-section { padding: 20px 0 60px; background: var(--s1-tint); }

.s1-related-section h2 {
    text-align: center;
    font-family: var(--s1-font-display);
    font-size: 26px;
    color: var(--s1-maroon);
    margin-bottom: 30px;
}

.s1-related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.s1-related-card {
    background: var(--s1-white);
    border: 1px solid var(--s1-line);
    border-radius: var(--s1-radius-md);
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: center;
    transition: all 0.3s var(--s1-ease);
}
.s1-related-card:hover { transform: translateY(-5px); box-shadow: var(--s1-shadow-md); border-color: var(--s1-marigold); }

.s1-related-icon { font-size: 30px; }

.s1-related-card h3 { font-family: var(--s1-font-display); font-size: clamp(16px, 0.4vw + 12.5px, 16px); color: var(--s1-ink); }
.s1-related-card h3 a { color: inherit; text-decoration: none; }
.s1-related-card h3 a:hover { color: var(--s1-maroon); }

.s1-related-card p {
    font-family: var(--s1-font-body);
    font-size: clamp(16px, 0.25vw + 11px, 16px);
    color: var(--s1-ink-soft);
    line-height: 1.6;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

.s1-related-btn {
    margin-top: auto;
    font-family: var(--s1-font-utility);
    font-size: 16px;
    font-weight: 600;
    color: var(--s1-saffron);
    text-decoration: none;
}
.s1-related-btn:hover { color: var(--s1-maroon); }

a:focus-visible, button:focus-visible { outline: 3px solid var(--s1-saffron); outline-offset: 2px; }

/* ================================================
   RESPONSIVE — same 5-tier system used site-wide
================================================ */
/* ================================================
   RESPONSIVE — archive1.css / taxonomy1.css जैसा ही final principle:
   sidebar हमेशा article के साथ रहता है (कभी नीचे स्टैक नहीं होता जब तक मोबाइल न आ जाए),
   सिर्फ़ ratio बदलता है, और उसी हिसाब से related-grid adjust होता है
================================================ */
@media (min-width: 1280px) and (max-width: 1400px) {
    .s1-container { max-width: 1200px; }
}

/* ---------- छोटा लैपटॉप (1024px – 1280px) — sidebar साथ, related-grid अब भी 3-कॉलम ---------- */
@media (max-width: 1280px) and (min-width: 1024px) {
    .s1-layout { grid-template-columns: 1fr 300px; gap: 28px; }
    .s1-related-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- टैबलेट (768px – 1023px) — sidebar अभी भी साथ है, बस ratio 2:1 हो गया ---------- */
@media (max-width: 1023px) and (min-width: 768px) {
    .s1-layout {
        grid-template-columns: 2fr 1fr;
        gap: 20px;
    }
    .s1-related-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
}

/* ---------- मोबाइल (<767px) — यहां से genuinely स्टैक ---------- */
@media (max-width: 767px) {
    .s1-container { padding: 0 16px; }
    .s1-layout { grid-template-columns: 1fr; gap: 24px; padding: 30px 0 44px; }
    .s1-sidebar { order: 2; }
    .s1-main { order: 1; }
    .s1-desc { font-size: 16px; }
    .s1-block { padding: 22px 18px; }
    .s1-related-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .s1-related-card { padding: 16px; }
    .s1-share { padding: 20px; }
}

/* ---------- बहुत छोटे फ़ोन (<280px) ---------- */
@media (max-width: 280px) {
    .s1-container { padding: 0 10px; }
    .s1-related-grid { grid-template-columns: 1fr; }
    .s1-meta-pill { font-size: 16px; padding: 5px 12px; }
}