/* Premium Styles for Devotee Articles Index and Detail Views */

.devotee-articles-container {
    max-width: 680px;
    margin: 10px auto;
    padding: 10px 15px;
    font-family: 'AdobeDev', 'Noto Sans Devanagari', serif;
    color: #333;
}

/* Page Headers */
.devotee-header-title {
    font-size: 3.2vh;
    font-weight: 800;
    color: #972c2c;
    text-align: center;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 12px;
}

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

/* Articles Card Grid */
.devotee-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

/* Premium Article Cards */
.devotee-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #f9ebeb;
    border-left: 5px solid #d35400; /* Warm spiritual saffron-orange */
    padding: 24px 20px 20px 24px !important;
    text-decoration: none !important;
    color: #333 !important;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box !important;
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), 
                box-shadow 0.3s cubic-bezier(0.25, 0.8, 0.25, 1),
                border-color 0.3s ease;
}

.devotee-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(211, 84, 0, 0.12);
    border-color: #fcd5b8;
}

.devotee-card-header {
    margin-bottom: 10px;
}

.devotee-card-title {
    font-size: 2.5vh;
    font-weight: 700;
    color: #1a252f;
    margin: 0 0 6px 0;
    line-height: 1.3;
    transition: color 0.2s ease;
}

.devotee-card:hover .devotee-card-title {
    color: #d35400;
}

/* Badges */
.devotee-author-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #fff8f4;
    color: #d35400;
    border: 1px solid #fde7d9;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 1.5vh;
    font-weight: 700;
}

.devotee-author-badge .material-symbols-outlined {
    font-size: 16px !important;
}

/* Card Body / Snippet */
.devotee-card-snippet {
    font-size: 1.8vh;
    line-height: 1.6;
    color: #555;
    margin: 10px 0 15px 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: justify;
}

/* Card Action / Footer */
.devotee-card-action {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    font-size: 1.6vh;
    font-weight: 700;
    color: #d35400;
    gap: 4px;
    transition: gap 0.2s ease;
}

.devotee-card:hover .devotee-card-action {
    gap: 8px;
}

.devotee-card-action .material-symbols-outlined {
    font-size: 16px !important;
    transition: transform 0.2s ease;
}

.devotee-card:hover .devotee-card-action .material-symbols-outlined {
    transform: translateX(2px);
}

/* ========================================== */
/* ARTICLE DETAIL VIEW                        */
/* ========================================== */

.devotee-detail-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #f9ebeb;
    border-left: 5px solid #d35400;
    padding: 25px;
    margin-bottom: 20px;
    text-align: left;
}

.devotee-detail-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    flex-wrap: wrap;
    gap: 10px;
}

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

.devotee-divider {
    height: 1px;
    background: linear-gradient(90deg, #fde7d9, transparent);
    margin: 15px 0 20px 0;
}

.devotee-content {
    font-size: 2.1vh;
    line-height: 1.8;
    color: #2c3e50;
    font-weight: 400;
    text-align: justify;
}

.devotee-content p {
    margin-bottom: 1.5em;
    margin-top: 0;
}

/* Bullet list styling in article body */
.devotee-content ul {
    margin-top: -10px;
    margin-bottom: 20px;
    padding-left: 20px;
}

.devotee-content li {
    margin-bottom: 8px;
    position: relative;
    list-style-type: disc;
}

/* Custom navigation container for devotee articles */
.devotee-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 25px;
    gap: 15px;
    width: 100%;
}

.devotee-nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 6px;
    background-color: #fdf5f0;
    color: #d35400 !important;
    text-decoration: none !important;
    font-size: 15px;
    font-weight: 700;
    border: 1px solid #fbe3d2;
    transition: all 0.2s ease;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(211, 84, 0, 0.05);
}

.devotee-nav-btn:hover {
    background-color: #d35400;
    color: #fff !important;
    border-color: #d35400;
    box-shadow: 0 4px 8px rgba(211, 84, 0, 0.15);
}

.devotee-nav-btn .material-symbols-outlined {
    font-size: 18px !important;
}

/* Responsive grid for tablets/larger phones */
@media (min-width: 600px) {
    .devotee-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Override default green PREV/NEXT buttons from footer2.php to match saffron/crimson devotee theme */
.button-3 {
    background-color: #d35400 !important;
    border-color: #b84500 !important;
    font-family: 'AdobeDev', 'Noto Sans Devanagari', serif !important;
    transition: all 0.2s ease !important;
}

.button-3:hover {
    background-color: #b84500 !important;
}

.button-3:focus {
    box-shadow: rgba(211, 84, 0, .4) 0 0 0 3px !important;
}

.button-3:active {
    background-color: #9e3b00 !important;
}

/* Gracefully collapse ad containers when ads are blocked or unfilled */
.devotee-in-article-ad {
    display: block;
    text-align: center;
    clear: both;
    width: 100%;
    margin: 0;
}

.devotee-in-article-ad ins.adsbygoogle {
    margin: 25px auto;
    display: block;
}

.devotee-in-article-ad ins.adsbygoogle:empty,
.devotee-in-article-ad ins.adsbygoogle[data-ad-status="unfilled"],
.devotee-in-article-ad ins.adsbygoogle[style*="display: none"] {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
    height: 0 !important;
}

/* Floating Scroll-to-Top Button (Saffron Theme) */
.scroll-to-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #d35400;
    color: #ffffff;
    border: none;
    outline: none;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.2s ease, background-color 0.2s ease;
}

.scroll-to-top-btn.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top-btn:hover {
    background-color: #b84500;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.scroll-to-top-btn:active {
    transform: translateY(-1px);
}

.scroll-to-top-btn .material-symbols-outlined {
    font-size: 24px !important;
    color: #ffffff !important;
}
