/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #333;
    line-height: 1.6;
}

/* Containers */
.rsbam-container {
    max-width: 1150px;
    margin: 0 auto;
    padding: 0 20px;
}

.rsbam-container-full {
    width: 100%;
    margin: 0;
    padding: 0;
}

/* ==============================================
    Writers Archive Header and Title
    ============================================== */
    
/* Archive Header */
.writers-archive-container-header {
    background: transparent;
    margin-bottom: 30px;
    padding: 15px 0;
    margin-top: 30px;
    text-align: center;
}

.our-writers {
    color: #000;
    font-size: 2.2rem;
    font-weight: 600;
    margin: 0;
}


/* ==============================================
    Single Writer Page Style
    ============================================== */

/* Single Writer Page */
.rsbam-writer-content {
    padding: 40px 0;
}

.rsbam-writer-bio-section {
    display: flex;
    gap: 30px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.24);
    padding: 30px;
    padding-top: 40px;
    margin-bottom: 40px;
}

.rsbam-writer-bio-image img {
    max-width: 160px;
    height: auto;
    border-radius: 8px;
    border: 1px solid #eee;
}

.rsbam-writer-bio-text h1 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: #222;
}

.rsbam-writer-bio-content {
    font-size: 1.1rem;
    color: #000;
}

/* Posts section ko bhi same boxed look dena */
.rsbam-posts-section {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.24);
    padding: 30px;
    padding-top: 3px;
    padding-bottom: 3px;
    margin-bottom: 40px;          /* bio section ke neeche space */
}

/* Heading ko thoda adjust kar sakte ho box ke andar fit karne ke liye */
.rsbam-posts-heading {
    font-size: 1.8rem;            /* ya 24px jo pehle tha */
    font-weight: 600;
    color: #222;
    margin: 0 0 30px 0;           /* neeche categories se space */
    padding-bottom: 12px;
    border-bottom: 2px solid #eee; /* optional: light separator line */
}

/* Category titles ko bhi thoda prominent bana sakte ho */
.rsbam-category-title {
    font-size: 1.35rem;
    margin: 35px 0 18px 0;
    color: #0073aa;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 8px;
    font-weight: 600;
}

/* List ko box ke andar better spacing */
.rsbam-writer-posts-list {
    column-count: 2;
    column-gap: 35px;
    padding-left: 28px;           /* bullet se thoda zyada space */
    margin: 0 0 35px 0;
}

.rsbam-writer-posts-list li {
    margin-bottom: 10px;          /* pehle 6px tha, thoda badha diya readability ke liye */
    font-size: 1.05rem;
}

/* Posts Grid on Writer Single Page */
.rsbam-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.rsbam-posts-heading {
    font-size: 24px;
    font-weight: 600;
    margin: 36px 0 0;
    color: #222;
}

/* Mobile screens */
@media (max-width: 767px) {
    .rsbam-posts-heading {
        font-size: 21px;   /* mobile ke liye chhota */
        margin: 24px 0 0;  /* optional: thoda kam gap */
    }
}

.post-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    transition: transform 0.2s;
}

.post-item:hover {
    transform: translateY(-4px);
}

.post-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.post-item h3 {
    padding: 12px 15px;
    font-size: 1.1rem;
    margin: 0;
    text-align: center;
}

.post-item a {
    color: #000;
    text-decoration: none;
    display: block;
}

/* Pagination */
.rsbam-pagination {
    text-align: center;
    margin: 40px 0;
}

.rsbam-pagination ul {
    list-style: none;
    padding: 0;
    display: inline-flex;
    gap: 8px;
}

.rsbam-pagination a,
.rsbam-pagination span {
    padding: 10px 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    text-decoration: none;
    color: #0073aa;
}

.rsbam-pagination .current {
    background: #0073aa;
    color: white;
    border-color: #0073aa;
}

/* Responsive */
@media (max-width: 768px) {
    .rsbam-writer-bio-section {
        flex-direction: column;
        text-align: left;
    }
    .rsbam-writer-bio-image img {
        margin: 0 auto 20px;
    }
    .rsbam-posts-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }
}

@media (max-width: 480px) {
    .rsbam-writers-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }
}

.rsbam-writer-link {
    margin-right: 3px;          /* Tick se pahle space kam (naam aur tick ke beech) */
    display: inline-flex;
    font-weight: bold;
    align-items: center;
}

.rsbam-writer-link + .verified-badge {
    margin-right: 6px;           /* Tick ke baad thoda space (tick aur next text ke beech) */
    margin-left: 1px;
}

.rsbam-writer-link:hover {
    color: #005177;
    text-decoration: none;
}

/* Writer's posts list - Bullet list in 2 columns */
.rsbam-writer-posts-list {
    list-style-type: disc;           /* Bullet points */
    padding-left: 20px;
    font-size:18px;
    margin: 20px 0 40px 0;
}

.rsbam-writer-posts-list li {
    margin-bottom: 6px;              /* Har bullet ke neeche space sirf 6px (bahut kam) */
    line-height: 1.4;                /* Line height tight rakha */
    break-inside: avoid;
}

.rsbam-writer-posts-list a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s;
}

.rsbam-writer-posts-list a:hover {
    color: #0073aa;
    text-decoration: underline;
}

/* Mobile pe 1 column */
@media (max-width: 768px) {
    .rsbam-writer-posts-list {
        column-count: 1;
        padding-left: 22px;
    }
    .rsbam-writer-posts-list li {
        margin-bottom: 8px;
    }
}

/* Category-wise posts styling */
.rsbam-category-title {
    font-size: 1.1rem;
    margin: 40px 0 15px 0;
    color: #0073aa;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 8px;
}

.rsbam-writer-posts-list {
    list-style-type: disc;
    padding-left: 25px;
    font-weight: 500;
    margin: 0 0 30px 0;
}

/* Writer's posts list - Bullet list in 2 columns with tight spacing */
.rsbam-writer-posts-list {
    list-style-type: disc;
    padding-left: 20px;              /* Bullet se left space */
    margin: 15px 0 30px 0;           /* Top/bottom margin kam kiya */
}

.rsbam-writer-posts-list a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s;
}

.rsbam-writer-posts-list a:hover {
    color: #0073aa;
    text-decoration: underline;
}

/* Mobile pe 1 column */
@media (max-width: 768px) {
    .rsbam-writer-posts-list {
        column-count: 1;
    }
}


/* ==============================================
    Copyright Notice for Single Page
    ============================================== */

.rsbam-copyright-notice {
    margin-top: 40px;
    padding: 20px 25px;
    background: #f8f9fa;
    border-left: 5px solid #0073aa;
    border-radius: 4px;
    font-size: 0.95rem;
    color: #444;
    line-height: 1.6;
}

.rsbam-copyright-notice strong {
    color: #222;
}

.rsbam-copyright-free-notice {
    margin-top: 40px;
    padding: 20px 25px;
    background: #f8f9fa;
    border-left: 5px solid #0073aa;
    border-radius: 4px;
    font-size: 0.95rem;
    color: #444;
    line-height: 1.6;
}

.rsbam-copyright-free-notice strong {
    color: #222;
}

/* ==============================================
    Verified Badge Style
    ============================================== */

/* Verified Badge */
.verified-badge {
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
    margin-left: 4px;           /* Agar koi aur element ke baad ho to adjust */
    cursor: pointer;
    width: 18px;                /* Tick size chhota kiya (pehle 20px tha) */
    height: 18px;
    line-height: 1;
}

.verified-badge svg {
    width: 100%;
    height: 100%;
}


/* Single writer profile page par verified badge ka size bada */
body.single-writer .verified-badge {
    width: 21px;          /* Archive/post mein 18-20px tha, yahan 28px bada */
    height: 21px;
    margin-left: 8px;     /* thoda space left se */
    vertical-align: middle;
}

body.single-writer .rsbam-writer-name {
    display: flex;
    font-weight:bold;
    align-items: center;
    flex-wrap: wrap;      /* agar naam lambi ho to tick neeche aa jaye */

    /* bad me add kiye gaye hain */
    margin: 0 0 30px 0;           /* neeche categories se space */
    padding-bottom: 12px;
    border-bottom: 2px solid #D9D9D9; /* optional: light separator line */        
}

/* Mobile pe size thoda kam rakh sakte ho agar chahiye */
@media (max-width: 768px) {
    body.single-writer .verified-badge {
        width: 24px;
        height: 24px;
    }
}


.rsbam-verified-tooltip {
    position: absolute;
    z-index: 99999;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    box-shadow: 0 6px 22px rgba(0,0,0,0.18);
    padding: 16px 18px;
    padding-bottom :2px;
    font-size: 15px;
    line-height: 1.5;
    color: #222;
    width: auto;
    max-width: 380px;
    pointer-events: auto;
}

.rsbam-tooltip-content {
    position: relative;
}

/* Close button ko top-right corner mein half-out style */
.rsbam-tooltip-close {
    position: absolute;
    top: -24px;                    /* bahar ki taraf upar */
    right: -24px;                  /* bahar ki taraf right */
    width: 28px;
    height: 28px;
    background: #ffffff;
    border: 1px solid #d0d0d0;
    border-radius: 50%;
    text-align: center;
    color: #555;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: all 0.15s ease;
}

.rsbam-tooltip-close:hover {
    background: #f8f8f8;
    color: #000;
    transform: scale(1.08);
}

/* Optional: Tooltip ko thoda rounded aur clean look ke liye */
.rsbam-verified-tooltip {
    border-radius: 12px;           /* thoda zyada rounded pasand ho to */
    /* border: 1px solid #ccc;     ← agar border light karna ho to */
}

/* Mobile pe bhi same look rahe */
@media (max-width: 640px) {
    .rsbam-verified-tooltip {
        max-width: 92vw;
        left: 4vw !important;
        right: 4vw !important;
        margin: 0 auto;
        transform: none !important;
        padding: 18px 20px;
        padding-bottom :2px;
    }

    .rsbam-tooltip-close {
        top: -30px;
        right: -30px;
        width: 32px;
        height: 32px;
        font-size: 22px;
        line-height: 30px;
    }
}


/* ==============================================
    Writers Archive Page Setting - Hindi Alphabetical
    ============================================== */

/* Alphabetical section heading */
.rsbam-section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #222;
    margin: 50px 0 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid #0073aa;
}

/* 4-column bullet list with tight spacing */
.rsbam-four-columns {
    column-count: 4;
    column-gap: 40px;
    list-style-type: disc;
    padding-left: 22px;
    margin: 15px 0 35px 0;
}

.rsbam-four-columns .writer-item {
    margin-bottom: 8px;
    break-inside: avoid-column;
    display: flex;
    align-items: center;
    gap: 4px;                      /* Controls space between name and badge - adjust 3px/5px if needed */
    line-height: 1.45;
}

.rsbam-four-columns .writer-item a {
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 500;
    margin: 0;
    padding: 0;
}

.rsbam-four-columns .verified-badge {
    margin: 0;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    width: 16px;
    height: 16px;
}

.rsbam-four-columns .verified-badge svg {
    width: 100%;
    height: 100%;
}

.rsbam-four-columns .writer-item a:hover {
    color: #0073aa;
    text-decoration: underline;
}

/* Responsive columns */
@media (max-width: 1100px) { .rsbam-four-columns { column-count: 3; } }
@media (max-width: 768px)  { 
    .rsbam-four-columns { column-count: 2; column-gap: 25px; }
    .rsbam-four-columns .writer-item { gap: 5px; }
}
@media (max-width: 480px)  { .rsbam-four-columns { column-count: 1; padding-left: 18px; } }