/* premium dynamic styles for VedaMrit articles index and details pages */

/* Primary typography and containers */
.faq-section-container {
    margin-top: 5px;
    padding: 10px;
    font-family: 'AdobeDev', 'Noto Sans Devanagari', serif;
    color: #333;
}

.article-detail-container {
    max-width: 640px;
    margin: 10px auto;
    padding: 10px 5px;
    font-family: 'AdobeDev', 'Noto Sans Devanagari', serif;
    color: #333;
    text-align: left;
}

/* Header style with warm saffron-crimson accent gradient underline */
.faq-header-title {
    font-size: 2.8vh;
    font-weight: bold;
    color: #972c2c;
    text-align: center;
    margin-bottom: 2px;
    position: relative;
    padding-bottom: 1px;
}

.faq-header-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #972c2c, #d35400);
    border-radius: 2px;
}

/* Simple language switch button */
.lang-switch-container {
    display: flex;
    justify-content: center;
    margin: 15px 0 25px 0;
}

.lang-toggle-btn {
    display: inline-block;
    padding: 6px 18px;
    border-radius: 6px;
    background-color: #972c2c;
    color: #fff !important;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 700;
    border: 1px solid #972c2c;
    transition: all 0.2s ease;
    cursor: pointer;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.lang-toggle-btn:hover {
    background-color: #f7eded;
    color: #972c2c !important;
}

/* Category cards and grouping - beautiful white background */
.category-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    margin-bottom: 25px;
    padding: 20px;
    border-left: 5px solid #972c2c;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

.category-title {
    font-size: 2.2vh;
    font-weight: 700;
    color: #444;
    margin: 0 0 12px 0;
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
    display: flex;
    align-items: center;
}

.category-title-icon {
    margin-right: 8px;
    color: #972c2c;
    font-size: 20px !important;
}

/* Question list and links */
.article-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.article-item {
    margin: 8px 0;
}

.article-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: #fafafa;
    border-radius: 8px;
    color: #333;
    text-decoration: none;
    font-size: 1.8vh;
    font-weight: 500;
    line-height: 1.4;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.article-link:hover {
    background: #fff8f8;
    color: #972c2c;
    border-color: #fce8e8;
    padding-left: 16px;
}

.article-chevron {
    color: #bbb;
    font-size: 16px !important;
    transition: all 0.2s ease;
}

.article-link:hover .article-chevron {
    color: #972c2c;
    transform: translateX(4px);
}

/* Breadcrumb navigation */
.breadcrumb {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

.breadcrumb a {
    color: #972c2c;
    text-decoration: none;
    font-weight: 600;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* Detail Card layout - transparent background to match the theme of the site */
.article-detail-card {
    position: relative;
}

.card-top-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.article-badge {
    background: #faf2f2;
    color: #972c2c;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    border: 1px solid #f8e1e1;
    display: inline-flex;
    align-items: center;
}

.article-badge .material-symbols-outlined {
    font-size: 16px !important;
    margin-right: 4px;
}

/* Clean language switcher class */

.article-title {
    font-size: 3.2vh;
    font-weight: 800;
    color: #1a252f;
    line-height: 1.35;
    margin: 10px 0 20px 0;
}

.article-divider {
    height: 1px;
    background: #eaeaea;
    margin: 20px 0;
}

/* Detailed answer typography */
.article-answer {
    font-size: 2.1vh;
    line-height: 1.75;
    color: #2c3e50;
    font-weight: 400;
    text-align: justify;
}

.article-answer p {
    margin-bottom: 1.5em;
    margin-top: 0;
}

/* Navigation container for detail page */
.navigation-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 35px;
    gap: 15px;
    flex-wrap: wrap;
}

@media (max-width: 480px) {
    .navigation-container {
        flex-direction: column;
        gap: 12px;
    }

    .navigation-container .button-3,
    .navigation-container .back-to-list-link {
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }
}

.back-to-list-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #972c2c !important;
    text-decoration: none !important;
    font-size: 15px;
    font-weight: 700;
    padding: 8px 16px;
    transition: all 0.2s ease;
    border-radius: 4px;
}

.back-to-list-link:hover {
    color: #d35400 !important;
    background: #fff5f5;
}

.back-to-list-link .material-symbols-outlined {
    font-size: 20px !important;
}

/* Client-side Language Toggle Rules */
.lang-hi {
    display: none;
}

.lang-en {
    display: block;
}

/* Inline lang tags */
span.lang-en,
a.lang-en {
    display: inline !important;
}

span.lang-hi,
a.lang-hi {
    display: none !important;
}

/* Hindi mode overrides */
html.lang-mode-hi .lang-hi {
    display: block !important;
}

html.lang-mode-hi span.lang-hi,
html.lang-mode-hi a.lang-hi {
    display: inline-block !important;
}

html.lang-mode-hi .lang-en,
html.lang-mode-hi span.lang-en,
html.lang-mode-hi a.lang-en {
    display: none !important;
}

/* English mode overrides */
html.lang-mode-en .lang-en {
    display: block !important;
}

html.lang-mode-en span.lang-en,
html.lang-mode-en a.lang-en {
    display: inline-block !important;
}

html.lang-mode-en .lang-hi,
html.lang-mode-en span.lang-hi,
html.lang-mode-en a.lang-hi {
    display: none !important;
}

/* Styling for monthly grouped Ekadashi cards (side-by-side Krishna and Gaura Paksha) */
.month-row {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    margin-bottom: 25px;
    padding: 16px 20px;
    border: 1px solid #f2e2e2;
    border-left: 5px solid #972c2c;
    text-align: left;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.month-row:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(151, 44, 44, 0.06);
}

.month-title {
    font-size: 2.1vh;
    font-weight: 700;
    color: #444;
    margin: 0 0 14px 0;
    padding-bottom: 6px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
}

.month-title-icon {
    margin-right: 8px;
    color: #972c2c;
    font-size: 20px !important;
}

.ekadashi-pair {
    display: flex;
    gap: 15px;
}

.ekadashi-card-col {
    flex: 1;
    min-width: 0;
}

.ekadashi-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 12px 15px;
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 8px;
    color: #333;
    text-decoration: none;
    transition: all 0.2s ease;
    height: 100%;
    box-sizing: border-box;
}

.ekadashi-card:hover {
    background: #fff8f8;
    border-color: #fce8e8;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(151, 44, 44, 0.04);
}

.ekadashi-card-name {
    font-size: 2.1vh;
    font-weight: bold;
    color: #972c2c;
    margin-bottom: 4px;
}

.ekadashi-card-meta {
    font-size: 1.5vh;
    color: #777;
    font-weight: 500;
}

.paksha-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 1.3vh;
    font-weight: 700;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.paksha-krishna {
    background: #e8f0fe;
    color: #1a73e8;
}

.paksha-gaura {
    background: #fdf2e9;
    color: #d35400;
}

/* Stack cards vertically on small mobile screens to prevent cramming */
@media (max-width: 540px) {
    .ekadashi-pair {
        flex-direction: column;
        gap: 10px;
    }
}