/* =========================================================
   VERSES POEM ARCHIVE STYLES (MATCHING STORY ARCHIVE DESIGN)
========================================================= */

:root {
    --primary: #5a211d;
    --primary-dark: #421512;
    --secondary: #8b4b3e;
    --cream: #f6f1e8;
    --cream-dark: #eadcc5;
    --white: #ffffff;
    --border: #eadfd0;
    --text: #332522;
    --muted: #81736b;
    --shadow: 0 6px 20px rgba(70,42,28,.07);
    --radius: 12px;
}

/* OVERRIDE ELEMENTOR WIDGET CONTAINER MAX-WIDTH (1134px -> 1280px) */
.elementor-widget-verses-poem-archive,
.elementor-widget-verses-poem-archive > .elementor-widget-container {
    width: 100% !important;
    max-width: 1280px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

.site-wrapper-archive {
    width: 100% !important;
    max-width: 1280px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    background: #fffdfa !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    box-shadow: 0 4px 30px rgba(68,42,28,.05) !important;
    box-sizing: border-box !important;
    padding: 0 !important;
}

/* HERO SECTION - FULL TOP WIDTH INSIDE CONTAINER */
.site-wrapper-archive .hero {
    margin: 0 !important;
    width: 100% !important;
    min-height: 310px;
    border-radius: 16px 16px 0 0 !important;
    position: relative;
    overflow: hidden;
    box-sizing: border-box !important;
    background:
        linear-gradient(90deg,
        rgba(255,250,242,.98) 0%,
        rgba(255,250,242,.88) 45%,
        rgba(255,250,242,.25) 100%),
        url('../img/illustration.webp')
        center/cover no-repeat;
}

.site-wrapper-archive .hero-content {
    position: absolute;
    left: 7%;
    top: 50%;
    transform: translateY(-50%);
    max-width: 440px;
}

.site-wrapper-archive .hero-label {
    display: inline-block;
    background: #f5e6d3;
    color: #7b4438;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11px;
    margin-bottom: 12px;
}

.site-wrapper-archive .hero h1 {
    font-family: "Noto Serif Bengali", serif;
    font-size: 38px;
    line-height: 1.3;
    color: #271916;
    margin-bottom: 10px;
}

.site-wrapper-archive .hero p {
    font-size: 13px;
    color: #74655e;
    max-width: 350px;
    margin-bottom: 20px;
}

.site-wrapper-archive .hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--primary);
    color: #fff;
    padding: 11px 20px;
    border-radius: 6px;
    font-size: 12px;
    text-decoration: none;
}

.site-wrapper-archive .hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 12px rgba(0,0,0,.08);
    font-size: 20px;
    cursor: pointer;
}

.site-wrapper-archive .hero-prev {
    left: 10px;
}

.site-wrapper-archive .hero-next {
    right: 10px;
}

.site-wrapper-archive .hero-dots {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.site-wrapper-archive .hero-dots span {
    width: 30px;
    height: 3px;
    border-radius: 10px;
    background: #fff;
}

.site-wrapper-archive .hero-dots span.active {
    background: #bc601c;
}

/* CATEGORY SECTION */
.site-wrapper-archive .categories {
    display: flex;
    gap: 9px;
    overflow-x: auto;
    padding: 18px 20px 8px;
    scrollbar-width: none;
}

.site-wrapper-archive .categories::-webkit-scrollbar {
    display: none;
}

.site-wrapper-archive .category {
    white-space: nowrap;
    border: 1px solid #eadfd2;
    background: #fbf7f0;
    color: #634c44;
    padding: 7px 16px;
    border-radius: 30px;
    font-size: 11px;
    text-decoration: none;
}

.site-wrapper-archive .category.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* SECTION & HEADING */
.site-wrapper-archive .section {
    padding: 12px 20px 0;
}

.site-wrapper-archive .section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.site-wrapper-archive .section-title {
    font-family: "Noto Serif Bengali", serif;
    font-size: 22px;
    font-weight: 700;
    position: relative;
    padding-bottom: 6px;
}

.site-wrapper-archive .section-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary);
}

.site-wrapper-archive .view-controls {
    display: flex;
    gap: 5px;
}

.site-wrapper-archive .view-control {
    width: 34px;
    height: 34px;
    border: 1px solid #e7ded3;
    background: #fff;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.site-wrapper-archive .view-control.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* POST GRID & CARDS */
.site-wrapper-archive .post-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.site-wrapper-archive .post-grid.list-view {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
}

.site-wrapper-archive .post-grid.list-view .post-card {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.site-wrapper-archive .post-grid.list-view .post-image {
    width: 220px !important;
    min-width: 220px !important;
    height: 150px !important;
    flex: none !important;
}

.site-wrapper-archive .post-grid.list-view .post-body {
    flex: 1 !important;
    padding: 16px 20px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
}

@media (max-width: 600px) {
    .site-wrapper-archive .post-grid.list-view .post-card {
        flex-direction: row !important;
    }
    .site-wrapper-archive .post-grid.list-view .post-image {
        width: 120px !important;
        min-width: 120px !important;
        height: 110px !important;
    }
    .site-wrapper-archive .post-grid.list-view .post-body {
        padding: 8px 10px !important;
    }
}

@media (max-width: 768px) {
    .site-wrapper-archive .post-grid:not(.list-view) {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .site-wrapper-archive .post-grid:not(.list-view) .post-card {
        width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    .site-wrapper-archive .post-grid:not(.list-view) .post-image {
        height: 135px !important;
    }

    .site-wrapper-archive .post-grid:not(.list-view) .post-body {
        padding: 8px 10px !important;
    }

    .site-wrapper-archive .post-grid:not(.list-view) .post-title {
        font-size: 13px !important;
        line-height: 1.3 !important;
        margin: 5px 0 !important;
    }

    .site-wrapper-archive .post-grid:not(.list-view) .post-excerpt {
        font-size: 10px !important;
        height: auto !important;
        min-height: 45px !important;
        line-height: 1.5 !important;
        -webkit-line-clamp: 3 !important;
    }

    .site-wrapper-archive .post-grid:not(.list-view) .author-avatar {
        width: 22px !important;
        height: 22px !important;
    }

    .site-wrapper-archive .post-grid:not(.list-view) .author-name,
    .site-wrapper-archive .post-grid:not(.list-view) .date {
        font-size: 9px !important;
    }

    .site-wrapper-archive .post-grid:not(.list-view) .post-footer {
        margin-top: 6px !important;
        padding-top: 6px !important;
    }

    .site-wrapper-archive .post-grid:not(.list-view) .stats span,
    .site-wrapper-archive .post-grid:not(.list-view) .read-more {
        font-size: 9px !important;
    }
}

.site-wrapper-archive .post-card {
    background: #fff;
    border: 1px solid #eee5da;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    min-width: 0;
    transition: .25s ease;
}

.site-wrapper-archive .post-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(70,42,28,.11);
}

.post-image,
.site-wrapper-archive .post-image {
    height: 175px;
    width: 100% !important;
    max-width: 100% !important;
    position: relative !important;
    overflow: hidden !important;
    background: #f4eee6 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.post-image a,
.site-wrapper-archive .post-image a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    text-decoration: none !important;
    overflow: hidden !important;
}

.post-image img,
.post-image a img,
.post-card .post-image img,
.site-wrapper-archive .post-image img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
    transition: transform 0.35s ease !important;
}

.post-card:hover .post-image img,
.site-wrapper-archive .post-card:hover .post-image img {
    transform: scale(1.04) !important;
}

.site-wrapper-archive .badge {
    position: absolute;
    bottom: 9px;
    left: 9px;
    background: rgba(42,30,27,.88);
    color: #fff;
    font-size: 9px;
    padding: 4px 8px;
    border-radius: 4px;
}

.site-wrapper-archive .bookmark {
    position: absolute;
    top: 9px;
    right: 9px;
    width: 27px;
    height: 27px;
    background: rgba(40,34,31,.78);
    color: #fff;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.site-wrapper-archive .post-body {
    padding: 12px;
}

.site-wrapper-archive .author-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}

.site-wrapper-archive .author {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
}

.site-wrapper-archive .author-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    flex: none;
}

.site-wrapper-archive .author-name {
    font-size: 10px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.site-wrapper-archive .date {
    font-size: 9px;
    color: #93857e;
    white-space: nowrap;
}

.site-wrapper-archive .post-title {
    font-family: "Noto Serif Bengali", serif;
    font-size: 16px;
    font-weight: 700;
    margin: 7px 0;
    color: #332421;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
}

@media (max-width: 768px) {
    .site-wrapper-archive .post-title {
        font-size: 14px !important;
        line-height: 1.35 !important;
    }
}

.site-wrapper-archive .post-title a {
    color: #332421;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.site-wrapper-archive .post-excerpt {
    font-size: 10px;
    color: #776a64;
    line-height: 1.7;
    height: auto;
    min-height: 52px;
    overflow: hidden;
    -webkit-line-clamp: 3 !important;
}

.site-wrapper-archive .post-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid #eee6dc;
    margin-top: 11px;
    padding-top: 9px;
}

.site-wrapper-archive .stats {
    display: flex;
    gap: 12px;
    color: #756963;
    font-size: 9px;
}

.site-wrapper-archive .read-more {
    color: var(--primary);
    font-size: 10px;
    font-weight: 600;
    text-decoration: none;
}

/* PAGINATION */
.site-wrapper-archive .pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 22px 0;
}

.site-wrapper-archive .page,
.site-wrapper-archive .pagination a,
.site-wrapper-archive .pagination span {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    border: 1px solid #eee4d9;
    background: #fff;
    color: #332522;
    text-decoration: none;
}

.site-wrapper-archive .page.active,
.site-wrapper-archive .pagination span.current {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* NEWSLETTER */
.site-wrapper-archive .newsletter {
    margin: 20px 20px 22px;
    padding: 22px 28px;
    background: #f8eee0;
    border: 1px solid #eadbc7;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.site-wrapper-archive .newsletter-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.site-wrapper-archive .newsletter-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.site-wrapper-archive .newsletter h3 {
    font-family: "Noto Serif Bengali", serif;
    font-size: 16px;
}

.site-wrapper-archive .newsletter p {
    color: #81736a;
    font-size: 10px;
}

.site-wrapper-archive .newsletter-form {
    display: flex;
    width: 390px;
}

.site-wrapper-archive .newsletter-form input {
    flex: 1;
    min-width: 0;
    border: 1px solid #e3d5c7;
    border-right: 0;
    padding: 11px 14px;
    border-radius: 7px 0 0 7px;
    outline: none;
    background: #fff;
    font-size: 10px;
}

.site-wrapper-archive .newsletter-form button {
    border: 0;
    background: var(--primary);
    color: #fff;
    padding: 0 20px;
    border-radius: 0 7px 7px 0;
    font-size: 10px;
    cursor: pointer;
}

/* BOTTOM GRID */
.site-wrapper-archive .bottom-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 0 20px 25px;
}

.site-wrapper-archive .box-title {
    font-family: "Noto Serif Bengali", serif;
    font-size: 16px;
    margin-bottom: 10px;
}

.site-wrapper-archive .comment {
    display: flex;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #f1e9e0;
}

.site-wrapper-archive .comment:last-child {
    border-bottom: 0;
}

.site-wrapper-archive .comment img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.site-wrapper-archive .comment strong {
    font-size: 10px;
}

.site-wrapper-archive .comment p {
    font-size: 9px;
    color: #756a64;
}

.site-wrapper-archive .comment time {
    font-size: 8px;
    color: #a1938b;
}

.archive-banner {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    position: relative;
    left: auto !important;
    right: auto !important;
    background: transparent;
    padding: 20px 0 !important;
    border-bottom: none;
    overflow: hidden;
    box-sizing: border-box;
}

.archive-banner-flex {
    /* 50% darker/deeper overlay for readability */
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.4)),
        url('../img/illustration.webp');
    background-color: #fdf6ec;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-blend-mode: multiply;
    min-height: 320px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 12px !important;
    padding: 40px;
    box-sizing: border-box;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
}

.banner-content {
    padding: 10px 40px;
    flex: 1;
    text-align: center;
}

.breadcrumb-nav {
    margin-bottom: 18px;
    font-size: 14px;
    text-align: center;
    font-family: 'Noto Serif Bengali', serif;
}

.breadcrumb-nav a {
    color: #e2c29f;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-nav a:hover {
    color: #ffffff;
}

.breadcrumb-nav span {
    color: #f0e8d8;
}

.banner-content h1 {
    font-size: 62px;
    color: #ffffff;
    margin: 0 0 12px 0;
    font-weight: 800;
    font-family: 'Noto Serif Bengali', serif;
    letter-spacing: -1px;
    line-height: 1.15;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.banner-content .banner-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 14px;
}

.banner-content .banner-divider::before,
.banner-content .banner-divider::after {
    content: '';
    flex: 1;
    max-width: 80px;
    height: 1px;
    background: #e2c29f;
}

.banner-content .banner-divider .ornament {
    color: #e2c29f;
    font-size: 16px;
    line-height: 1;
}

.banner-content p {
    font-size: 17px;
    color: #f0e8d8;
    margin: 0;
    font-weight: 400;
    letter-spacing: 0.3px;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}

@media (max-width: 799px) {
    .archive-banner-flex {
        width: 100% !important;
        max-width: 100% !important;
        border-radius: 12px !important;
        padding: 30px 20px !important;
        min-height: 200px !important;
    }
    .banner-content h1 {
        font-size: 36px !important;
    }
}

@media (max-width: 550px) {
    .banner-content h1 {
        font-size: 28px !important;
    }
}

/* STORY ARCHIVE SPECIFIC BANNER */
.story-banner {
    padding: 20px 0;
    /* Add some space around the container */
    background: transparent;
    border-bottom: none;
}

.story-banner .container {
    /* 50% darker/deeper overlay for readability */
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.4)),
        url('../img/story-banner.webp');
    background-size: cover;
    background-position: center;
    background-blend-mode: multiply;
    min-height: 280px;
    display: flex;
    align-items: center;
    border-radius: 12px;
    padding: 0 40px;
}

.story-banner .banner-content h1 {
    color: #ffffff;
    font-size: 60px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
    margin: 0;
}

.story-banner .banner-content p {
    color: #f0e8d8;
    font-size: 24px;
    font-weight: 500;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
    margin-top: 10px;
}

.archive-controls {
    padding: 40px 0;
}

.controls-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.filter-tabs {
    display: flex;
    gap: 12px;
    background: #f4ece1;
    padding: 8px;
    border-radius: 40px;
    overflow-x: auto;
    white-space: nowrap;
    max-width: 100%;
    scrollbar-width: none; /* Firefox */
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
}

.filter-tabs::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.filter-btn {
    padding: 10px 25px;
    border: none;
    background: transparent;
    border-radius: 30px;
    font-size: 15px;
    color: #444;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
    flex-shrink: 0;
}

.filter-btn.active {
    background: #4a1c1c;
    /* Dark red/brown */
    color: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.filter-btn:hover:not(.active) {
    background: rgba(255, 255, 255, 0.5);
}

.archive-sort-controls {
    display: flex;
    gap: 20px;
}

.sort-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sort-group label {
    font-size: 14px;
    color: #666;
    font-weight: 600;
}

.sort-select {
    padding: 8px 15px;
    border-radius: 30px;
    border: 1px solid #ddd;
    outline: none;
    font-size: 14px;
    background: #fff;
    color: #333;
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
}

.sort-select:focus {
    border-color: #4a1c1c;
}

.archive-search {
    position: relative;
    width: 300px;
    margin: 0 auto;
}

.archive-search input {
    width: 100%;
    padding: 10px 20px 10px 45px;
    border-radius: 30px;
    border: 1px solid #eee;
    background: #fdfaf3;
    font-size: 15px;
    outline: none;
    transition: all 0.3s;
}

.archive-search i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
    font-size: 16px;
}

.archive-search input:focus {
    border-color: #4a1c1c;
    background: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.archive-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 60px;
}

.archive-card {
    background: #fff;
    border-radius: 15px;
    padding: 15px;
    display: flex;
    flex-direction: row;
    gap: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    align-items: center;
}

.archive-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

.card-img {
    position: relative;
    width: 140px;
    height: 140px;
    flex-shrink: 0;
    border-radius: 10px;
    overflow: hidden;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.card-category {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: rgba(0, 0, 0, 0.65);
    color: #ffffff !important;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    backdrop-filter: blur(4px);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    z-index: 2;
    pointer-events: none;
}

.card-text {
    padding: 5px 0;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    overflow: hidden;
}

.card-text h3 {
    font-size: 22px;
    color: #1a1a1a;
    margin: 0 0 10px 0;
    font-weight: 700;
    line-height: 1.2;
}

.card-text p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    font-size: 12px;
    color: #777;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-meta i {
    font-size: 13px;
    color: #888;
}

.read-more-link {
    font-size: 14px;
    color: #4a1c1c;
    /* Dark red/brown */
    text-decoration: none;
    font-weight: 700;
    margin-top: 5px;
    display: inline-block;
    transition: all 0.3s;
}

.read-more-link:hover {
    color: #2d5a27;
    transform: translateX(5px);
}

.pagination-circles {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 30px;
    margin-bottom: 80px;
}

.page-circle {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ddd;
    text-decoration: none;
    color: #333;
    font-weight: bold;
    transition: all 0.3s;
    font-size: 14px;
}

.page-circle.active {
    background: #4a1c1c;
    color: #fff;
    border-color: #4a1c1c;
}

.page-circle:hover:not(.active) {
    background: #f0e6d2;
}

@media (max-width: 1400px) {
    .archive-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .archive-grid-3 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 799px) {
    .controls-flex {
        flex-direction: column;
        gap: 20px;
    }

    .archive-search {
        width: 100%;
    }

    .banner-img {
        display: none;
    }
}

@media (max-width: 550px) {
    .banner-content h1 {
        font-size: 36px;
    }
}

/* POEM ARCHIVE LAYOUT WITH SIDEBAR & HORIZONTAL CARDS */
.archive-main-v2 {
    padding: 20px 0 60px;
}

.archive-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
    min-width: 0;
}

.archive-content-area {
    min-width: 0;
}

.archive-grid-v2,
.poem-archive-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 60px;
}

/* Sidebar Widgets for Poem Archive */
.archive-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sidebar-widget {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    margin-bottom: 30px;
}

.widget-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f0f0f0;
    position: relative;
}

.widget-title::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 40px;
    height: 2px;
    background: #8b5e3c;
}

.author-widget-card {
    text-align: center;
}

.author-widget-card img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin-bottom: 15px;
    object-fit: cover;
}

.author-widget-card h4 {
    font-size: 18px;
    margin-bottom: 10px;
}

.author-widget-card p {
    font-size: 13px;
    color: #777;
    line-height: 1.6;
    margin-bottom: 20px;
}

.sidebar-btn {
    display: inline-block;
    background: #4a1c1c;
    color: #fff;
    padding: 8px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
}

.recent-post-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.recent-post-item {
    display: flex;
    gap: 12px;
    text-decoration: none;
    color: #333;
}

.recent-post-item img {
    width: 50px;
    height: 50px;
    border-radius: 6px;
    object-fit: cover;
}

.recent-post-item .info strong {
    font-size: 14px;
    display: block;
    line-height: 1.3;
}

.recent-post-item .info span {
    font-size: 11px;
    color: #999;
}

.widget-btn-outline {
    display: block;
    border: 1px solid #eee;
    padding: 10px;
    text-decoration: none;
    color: #555;
    font-size: 13px;
    font-weight: 600;
    border-radius: 4px;
    margin-top: 15px;
    text-align: center;
}

.category-list-v2 {
    list-style: none;
    padding: 0;
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0 25px !important;
}

.category-list-v2 li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0 !important;
    border-bottom: 1px dashed #eee !important;
}

.cat-info {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #444;
}

.cat-info i {
    color: #8b5e3c;
    width: 20px;
}

.cat-count {
    font-size: 12px;
    color: #999;
    font-weight: 600;
}

.sidebar-quote-widget {
    background: #fdfaf3;
    padding: 40px 25px;
    text-align: center;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

.sidebar-quote-widget i.fa-quote-left {
    font-size: 30px;
    color: #e0d0b0;
    margin-bottom: 20px;
}

.sidebar-quote-widget p {
    font-size: 18px;
    color: #4a1c1c;
    font-weight: 600;
    line-height: 1.6;
    margin-bottom: 20px;
}

.quill-icon {
    width: 60px;
    height: auto;
    opacity: 0.3;
    margin: 10px auto 0;
    display: block;
}

/* Responsive Overrides for Sidebar Layout on Poem Archive */
@media (max-width: 1279px) {
    .archive-grid-v2,
    .poem-archive-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 991px) {
    .archive-layout {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 768px) {
    .archive-card {
        flex-direction: row !important;
        text-align: left !important;
    }
    .card-img {
        max-width: 100% !important;
    }
}

@media (max-width: 550px) {
    .archive-card {
        flex-direction: column !important;
        text-align: center !important;
    }
    .card-img {
        width: 100% !important;
        height: 200px !important;
    }
}

@media (max-width: 480px) {
    .archive-card {
        flex-direction: column !important;
        text-align: center !important;
        align-items: center !important;
    }
    .card-img {
        width: 100% !important;
        max-width: 100% !important;
        height: 180px !important;
        border-radius: 10px !important;
        overflow: hidden !important;
        margin-bottom: 15px !important;
    }
    .card-img img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }
}

/* Force Elementor section containers to center at 1280px */
.elementor-section:has(.archive-main-v2) > .elementor-container,
.e-con:has(.archive-main-v2) > .e-con-inner,
.elementor-element-poemarc > .e-con-inner,
.elementor-element-storyarc > .e-con-inner {
    width: 100% !important;
    max-width: 1280px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Force poem archive main content container to align at 1280px */
body .elementor-widget .archive-main-v2 .container,
body .elementor-widget .archive-controls .container {
    width: 100% !important;
    max-width: 1280px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* ==========================================================================
   VERSES POEM ARCHIVE REDESIGN (MATCHING SCREENSHOT 100%)
   ========================================================================== */

/* Page Background Color */
body.page-id-74,
body.page-id-80,
body.page-template-template-poem-archive,
body.page-template-template-story-archive {
    background-color: #f6f3eb !important;
}

/* Force Elementor section background transparent so it inherits body background and reset side paddings to 0 */
body.page-id-74 .elementor-section,
body.page-id-74 .elementor-container,
body.page-id-74 .e-con,
body.page-id-74 .e-con-inner,
body.page-id-80 .elementor-section,
body.page-id-80 .elementor-container,
body.page-id-80 .e-con,
body.page-id-80 .e-con-inner {
    background-color: transparent !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    width: 100% !important;
    max-width: 1280px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
}

/* Banner Redesign */
.archive-banner-flex-v2 {
    background-color: #ffffff !important;
    background-image: none !important;
    border-radius: 16px !important;
    border: 1px solid #ebdcc9 !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02) !important;
    padding: 30px 50px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 30px !important;
    margin: 0 auto !important;
    width: 100% !important;
    max-width: 1280px !important;
    box-sizing: border-box !important;
    min-height: auto !important;
    position: relative !important;
    overflow: hidden !important;
}

.banner-left-v2 {
    flex: 1;
    text-align: left;
    position: relative !important;
    z-index: 2 !important;
}

.breadcrumb-nav-v2 {
    margin-bottom: 12px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
}

.breadcrumb-nav-v2 a {
    color: #8b5e3c;
    text-decoration: none;
    font-weight: 500;
}

.breadcrumb-nav-v2 span {
    color: #aa8866;
    margin: 0 20px !important;
}

.banner-title-v2 {
    font-family: 'Noto Serif Bengali', serif;
    font-size: 38px !important;
    color: #4a1c1c !important;
    margin: 0 0 10px 40px !important;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    text-shadow: none !important;
}

.leaf-icon-v2 {
    font-size: 28px;
    color: #8b5e3c;
    margin: 0 10px !important;
    display: inline-flex !important;
    align-items: center;
}

.leaf-icon-v2 img,
.leaf-icon-v2 img.emoji {
    width: 28px !important;
    height: 28px !important;
    margin: 0 10px !important;
}

.banner-desc-v2 {
    font-size: 15px !important;
    color: #666 !important;
    margin: 0 42px !important;
    line-height: 1.6 !important;
    text-shadow: none !important;
}

.banner-right-v2 {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 50% !important;
    height: 100% !important;
    z-index: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
}

.banner-illustration-v2 {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: right center !important;
    mix-blend-mode: multiply !important;
    opacity: 0.85 !important;
    -webkit-mask-image: linear-gradient(to right, transparent 0px, black 50px) !important;
    mask-image: linear-gradient(to right, transparent 0px, black 50px) !important;
}

/* Category Filters & Controls Section */
.poem-filters-container-v2 {
    background-color: #ffffff !important;
    border: 1px solid #ebdcc9 !important;
    border-radius: 12px !important;
    padding: 25px 30px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02) !important;
    margin-bottom: 30px !important;
    box-sizing: border-box !important;
    width: 100% !important;
}

.subject-categories-v2 {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px dashed #ebdcc9; /* dashed divider line */
}

.filter-section-title-v2 {
    font-size: 15px;
    font-weight: 700;
    color: #555;
    margin: 0 0 12px 0;
    font-family: 'Noto Serif Bengali', serif;
}

.filter-tabs-v2 {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-btn-v2 {
    padding: 8px 20px !important;
    border: none !important;
    background: #f4ecd8 !important; /* light warm beige matching screenshot */
    border-radius: 30px !important; /* pill shape */
    font-size: 14px !important;
    color: #4a1c1c !important; /* dark brown/red text */
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    font-weight: 600 !important;
}

.filter-btn-v2.active {
    background: #4a1c1c !important;
    color: #ffffff !important;
}

.filter-btn-v2:hover:not(.active) {
    background: #ebdcc9 !important;
    color: #4a1c1c;
}

/* Sort, Search & Layout View Bar */
.search-sort-bar-v2 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    border-bottom: none !important;
}

.sort-select-v2 {
    padding: 8px 15px;
    border-radius: 4px;
    border: 1px solid #ebdcc9;
    outline: none;
    font-size: 14px;
    background: #ffffff;
    color: #4a1c1c;
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    min-width: 150px;
}

.sort-select-v2:focus {
    border-color: #4a1c1c;
}

.search-layout-group-v2 {
    display: flex;
    align-items: center;
    gap: 15px;
}

.archive-search-v2 {
    position: relative;
    width: 250px;
}

.archive-search-v2 input {
    width: 100%;
    padding: 8px 40px 8px 15px;
    border-radius: 4px;
    border: 1px solid #ebdcc9;
    background: #ffffff;
    font-size: 14px;
    outline: none;
    transition: all 0.3s;
}

.archive-search-v2 i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #4a1c1c;
    font-size: 15px;
}

.archive-search-v2 input:focus {
    border-color: #4a1c1c;
}

.layout-toggle-v2 {
    display: flex;
    gap: 5px;
}

.layout-btn-v2 {
    width: 36px;
    height: 36px;
    border-radius: 4px;
    border: 1px solid #ebdcc9;
    background: #ffffff;
    color: #999;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    transition: all 0.2s ease;
}

.layout-btn-v2.active {
    background: #4a1c1c;
    color: #ffffff;
    border-color: #4a1c1c;
}

.layout-btn-v2:hover:not(.active) {
    background: #fdfaf5;
    color: #4a1c1c;
}

/* 3-Column Poem Grid Redesign */
.poem-archive-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 25px !important;
}

/* Poem Card Vertical Style */
.poem-archive-grid .archive-card {
    flex-direction: column !important;
    align-items: stretch !important;
    padding: 18px !important; /* Inset padding like screenshot */
    border: 1px solid #ebdcc9 !important; /* Subtle border */
    background: #ffffff !important;
    border-radius: 20px !important; /* Rounded corners like screenshot */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02) !important;
    overflow: hidden !important;
    transform: none !important;
}

.poem-archive-grid .archive-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08) !important;
}

.poem-archive-grid .archive-card .card-img {
    width: 100% !important;
    height: 220px !important; /* Increased height for better proportions */
    position: relative !important;
    border-radius: 14px !important; /* Image rounded corners */
    overflow: hidden !important;
}

.poem-archive-grid .archive-card .card-img img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

/* Category Badge styling over image */
.poem-archive-grid .archive-card .card-category {
    position: absolute !important;
    bottom: 12px !important;
    left: 12px !important;
    background: rgba(0, 0, 0, 0.7) !important;
    color: #ffffff !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    padding: 5px 12px !important;
    border-radius: 6px !important;
    z-index: 2 !important;
}

.poem-archive-grid .archive-card .card-text {
    padding: 15px 0 0 0 !important;
    display: grid !important;
    grid-template-columns: 90px 1fr !important;
    grid-template-rows: auto auto auto !important;
    grid-template-areas:
        "author title"
        "author excerpt"
        "button button" !important;
    gap: 15px 15px !important;
    flex-grow: 1 !important;
}

.poem-archive-grid .archive-card .card-text h3 {
    grid-area: title !important;
    font-size: 22px !important;
    color: #111111 !important;
    margin: 0 !important;
    font-weight: 700 !important;
    font-family: 'Noto Serif Bengali', serif !important;
    line-height: 1.3 !important;
    padding-bottom: 8px !important;
    border-bottom: 2px solid #e0d9cc !important; /* Horizontal divider line */
}

.poem-archive-grid .archive-card .card-text h3 a {
    color: #111111 !important;
    text-decoration: none !important;
}

.poem-archive-grid .archive-card .card-text h3 a:hover {
    color: #4a1c1c !important;
}

.poem-archive-grid .archive-card .card-text p {
    grid-area: excerpt !important;
    font-size: 15px !important;
    color: #333333 !important;
    line-height: 1.8 !important;
    margin: 0 !important;
    white-space: normal !important; /* Preserves responsive wrapping */
    word-wrap: break-word !important;
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    font-family: 'Noto Serif Bengali', serif !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.poem-archive-grid .archive-card .card-meta {
    display: none !important;
}

.poem-archive-grid .archive-card .read-more-link {
    display: none !important;
}

/* Card Footer V2 using display: contents to allow grid placement of children */
.poem-archive-grid .archive-card .card-footer-v2 {
    display: contents !important;
}

.poem-archive-grid .archive-card .card-author-v2 {
    grid-area: author !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 8px !important;
}

.poem-archive-grid .archive-card .card-author-avatar-v2 {
    width: 64px !important;
    height: 64px !important;
    border-radius: 4px !important; /* Square with slight rounding like screenshot */
    object-fit: cover !important;
    border: 1px solid #ebdcc9 !important;
}

.poem-archive-grid .archive-card .card-author-info-v2 {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 4px !important;
}

.poem-archive-grid .archive-card .card-author-name-v2 {
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #1e3a5f !important; /* Deep blue/slate */
}

.poem-archive-grid .archive-card .card-date-v2 {
    font-size: 11px !important;
    color: #777 !important;
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    white-space: nowrap !important;
}

.poem-archive-grid .archive-card .card-date-v2 i {
    color: #888 !important;
    font-size: 11px !important;
}

.poem-archive-grid .archive-card .card-btn-v2 {
    grid-area: button !important;
    justify-self: center !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    background: #ffffff !important;
    color: #333333 !important;
    border: 1px solid #ccc !important;
    padding: 8px 24px !important;
    border-radius: 30px !important; /* Pill button shape */
    font-size: 14px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    margin-top: 10px !important;
}

.poem-archive-grid .archive-card .card-btn-v2:hover {
    background: #4a1c1c !important;
    color: #ffffff !important;
    border-color: #4a1c1c !important;
}

/* Grid Card List View Toggle Override */
.poem-archive-grid.list-view {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
}

.poem-archive-grid.list-view .archive-card {
    flex-direction: row !important;
    align-items: stretch !important;
    min-height: 200px;
    padding: 15px !important;
}

.poem-archive-grid.list-view .archive-card .card-img {
    width: 240px !important;
    height: auto !important;
    flex-shrink: 0;
}

.poem-archive-grid.list-view .archive-card .card-text {
    padding: 0 0 0 25px !important;
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: none !important;
    grid-template-rows: none !important;
    grid-template-areas: none !important;
    gap: 0 !important;
}

.poem-archive-grid.list-view .archive-card .card-text h3 {
    font-size: 20px !important;
    border-bottom: none !important;
    padding-bottom: 0 !important;
}

.poem-archive-grid.list-view .archive-card .card-text p {
    font-size: 14px !important;
    margin-bottom: 15px !important;
}

.poem-archive-grid.list-view .archive-card .card-footer-v2 {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-top: auto !important;
    border-top: 1px solid #f5efe6 !important;
    padding-top: 10px !important;
}

.poem-archive-grid.list-view .archive-card .card-author-v2 {
    flex-direction: row !important;
    align-items: center !important;
    gap: 8px !important;
}

.poem-archive-grid.list-view .archive-card .card-author-avatar-v2 {
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
}

.poem-archive-grid.list-view .archive-card .card-author-info-v2 {
    align-items: flex-start !important;
}

.poem-archive-grid.list-view .archive-card .card-btn-v2 {
    margin-top: 0 !important;
    padding: 6px 14px !important;
}

/* Newsletter Box Redesign */
.newsletter-box-v2 {
    background: #ffffff;
    border-radius: 12px;
    padding: 25px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 25px;
    margin-top: 40px;
    border: 1px solid #ebdcc9;
    box-sizing: border-box;
    width: 100%;
}

.newsletter-left-v2 {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.newsletter-icon-v2 {
    font-size: 32px;
    color: #4a1c1c;
    background: #fbf7ee;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
    border: 1px solid #ebdcc9;
    flex-shrink: 0;
}

.newsletter-text-v2 h3 {
    font-size: 18px;
    color: #4a1c1c;
    margin: 0 0 4px 0;
    font-weight: 700;
    font-family: 'Noto Serif Bengali', serif;
}

.newsletter-text-v2 p {
    font-size: 13px;
    color: #666;
    margin: 0;
}

.newsletter-form-v2 {
    display: flex;
    gap: 8px;
    flex: 1;
    max-width: 450px;
}

.newsletter-form-v2 input {
    flex-grow: 1;
    padding: 10px 18px;
    border: 1px solid #ebdcc9;
    border-radius: 4px;
    font-size: 14px;
    outline: none;
    background: #ffffff;
}

.newsletter-form-v2 input:focus {
    border-color: #4a1c1c;
}

.newsletter-form-v2 button {
    background: #4a1c1c;
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s ease;
    white-space: nowrap;
}

.newsletter-form-v2 button:hover {
    background: #341313;
}

/* Mailchimp for WP Form Overrides */
.newsletter-box-v2 .mc4wp-form,
.newsletter-box-v2 .mc4wp-form-fields {
    display: flex !important;
    gap: 8px !important;
    flex: 1 !important;
    max-width: 450px !important;
    width: 100% !important;
    align-items: center !important;
    margin: 0 !important;
}

.newsletter-box-v2 .mc4wp-form input[type="email"] {
    flex-grow: 1 !important;
    padding: 10px 18px !important;
    border: 1px solid #ebdcc9 !important;
    border-radius: 4px !important;
    font-size: 14px !important;
    outline: none !important;
    background: #ffffff !important;
    height: auto !important;
    box-sizing: border-box !important;
}

.newsletter-box-v2 .mc4wp-form input[type="email"]:focus {
    border-color: #4a1c1c !important;
}

.newsletter-box-v2 .mc4wp-form button,
.newsletter-box-v2 .mc4wp-form input[type="submit"] {
    background: #4a1c1c !important;
    color: #ffffff !important;
    border: none !important;
    padding: 10px 20px !important;
    border-radius: 4px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    transition: background 0.2s ease !important;
    white-space: nowrap !important;
    height: auto !important;
}

.newsletter-box-v2 .mc4wp-form button:hover,
.newsletter-box-v2 .mc4wp-form input[type="submit"]:hover {
    background: #341313 !important;
}

/* Responsive Media Queries */
@media (max-width: 1200px) {
    .poem-archive-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 991px) {
    .archive-banner-flex-v2 {
        padding: 25px 35px !important;
    }
    .banner-title-v2 {
        font-size: 32px !important;
    }
    .banner-right-v2 {
        width: 180px;
    }
    .newsletter-box-v2 {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    .newsletter-form-v2 {
        max-width: 100%;
    }
}

/* RESPONSIVE TABLET & MOBILE POEM ARCHIVE GRID (MATCHING REFERENCE SCREENSHOT 100%) */
@media (max-width: 1024px) {
    /* Safe side padding so cards sit 100% inside mobile display area without clipping screen edges */
    body .archive-main-v2,
    body .archive-main-v2 .container,
    body .archive-content-area,
    body .poem-filters-container-v2,
    body .poem-archive-grid {
        padding-left: 12px !important;
        padding-right: 12px !important;
        box-sizing: border-box !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    /* 2-Column Grid on Tablet & Mobile */
    .poem-archive-grid:not(.list-view) {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 12px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .poem-archive-grid:not(.list-view) .archive-card {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
        padding: 12px !important;
        display: flex !important;
        flex-direction: column !important;
        border-radius: 16px !important;
        overflow: hidden !important;
        margin: 0 !important;
        background: #ffffff !important;
        border: 1px solid #ebdcc9 !important;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02) !important;
    }

    .poem-archive-grid:not(.list-view) .archive-card .card-img {
        width: 100% !important;
        height: 125px !important;
        border-radius: 12px !important;
        overflow: hidden !important;
        position: relative !important;
    }

    .poem-archive-grid:not(.list-view) .archive-card .card-img img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }

    .poem-archive-grid:not(.list-view) .archive-card .card-category {
        font-size: 11px !important;
        font-weight: 600 !important;
        padding: 3px 10px !important;
        border-radius: 14px !important;
        bottom: 8px !important;
        left: 8px !important;
        background: rgba(0, 0, 0, 0.75) !important;
        color: #ffffff !important;
        max-width: 85% !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    .poem-archive-grid:not(.list-view) .archive-card .card-text {
        display: flex !important;
        flex-direction: column !important;
        padding: 8px 0 0 0 !important;
        gap: 4px !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .poem-archive-grid:not(.list-view) .archive-card .card-text h3 {
        font-size: 15px !important;
        line-height: 1.35 !important;
        margin: 6px 0 4px 0 !important;
        padding-bottom: 0 !important;
        border-bottom: none !important;
        text-align: left !important;
        white-space: normal !important;
        word-break: break-word !important;
        overflow-wrap: anywhere !important;
        width: 100% !important;
        box-sizing: border-box !important;
        font-weight: 700 !important;
        color: #111111 !important;
    }

    .poem-archive-grid:not(.list-view) .archive-card .card-text p {
        font-size: 12px !important;
        line-height: 1.45 !important;
        color: #555555 !important;
        margin: 0 0 8px 0 !important;
        text-align: left !important;
        white-space: normal !important;
        word-break: break-word !important;
        overflow-wrap: anywhere !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .poem-archive-grid:not(.list-view) .archive-card .card-footer-v2 {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        margin-top: auto !important;
        padding-top: 6px !important;
        border-top: none !important;
        width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
        gap: 4px !important;
        overflow: hidden !important;
    }

    .poem-archive-grid:not(.list-view) .archive-card .card-author-v2 {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 6px !important;
        min-width: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
    }

    .poem-archive-grid:not(.list-view) .archive-card .card-author-avatar-v2 {
        width: 22px !important;
        height: 22px !important;
        border-radius: 50% !important;
        flex-shrink: 0 !important;
    }

    .poem-archive-grid:not(.list-view) .archive-card .card-author-info-v2 {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        min-width: 0 !important;
        overflow: hidden !important;
        flex: 1 !important;
        gap: 2px !important;
    }

    .poem-archive-grid:not(.list-view) .archive-card .card-author-name-v2 {
        font-size: 11.5px !important;
        font-weight: 600 !important;
        color: #444444 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        max-width: 100% !important;
    }

    .poem-archive-grid:not(.list-view) .archive-card .card-date-v2 {
        font-size: 10px !important;
        color: #777777 !important;
        white-space: nowrap !important;
    }

    /* Hide redundant read more button in 2-column grid mode matching screenshot */
    .poem-archive-grid:not(.list-view) .archive-card .card-btn-v2 {
        display: none !important;
    }

    /* Responsive List Mode (1-column on Tablet & Mobile) */
    .poem-archive-grid.list-view {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 15px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .poem-archive-grid.list-view .archive-card {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
        padding: 14px !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 15px !important;
        border-radius: 16px !important;
        overflow: hidden !important;
        background: #ffffff !important;
        border: 1px solid #ebdcc9 !important;
    }

    .poem-archive-grid.list-view .archive-card .card-img {
        width: 120px !important;
        height: 120px !important;
        flex-shrink: 0 !important;
        border-radius: 12px !important;
        overflow: hidden !important;
    }

    .poem-archive-grid.list-view .archive-card .card-img img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }

    .poem-archive-grid.list-view .archive-card .card-text {
        display: flex !important;
        flex-direction: column !important;
        padding: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        flex: 1 !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        gap: 6px !important;
    }

    .poem-archive-grid.list-view .archive-card .card-text h3 {
        font-size: 16px !important;
        border-bottom: none !important;
        padding-bottom: 0 !important;
        margin: 0 !important;
        text-align: left !important;
    }

    .poem-archive-grid.list-view .archive-card .card-text p {
        font-size: 12.5px !important;
        margin: 0 !important;
        text-align: left !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    }

    .poem-archive-grid.list-view .archive-card .card-footer-v2 {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        margin-top: 6px !important;
        padding-top: 6px !important;
        border-top: 1px solid #ebdcc9 !important;
        width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    .poem-archive-grid.list-view .archive-card .card-btn-v2 {
        display: inline-flex !important;
        align-items: center !important;
        font-size: 11px !important;
        padding: 4px 10px !important;
        border-radius: 20px !important;
    }

    .archive-banner-flex-v2 {
        flex-direction: column !important;
        text-align: center !important;
        padding: 25px 15px !important;
    }

    .banner-left-v2 {
        text-align: center !important;
    }

    .banner-title-v2 {
        font-size: 26px !important;
        margin: 0 0 10px 0 !important;
        justify-content: center !important;
    }

    .banner-desc-v2 {
        margin: 0 auto !important;
        text-align: center !important;
        max-width: 95% !important;
    }

    .poem-filters-container-v2 {
        padding: 12px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Horizontal Swipeable Category Pills Bar for Mobile & Tablet */
    .filter-tabs-v2 {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        gap: 8px !important;
        padding-bottom: 6px !important;
        margin-bottom: 12px !important;
        scrollbar-width: none !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .filter-tabs-v2::-webkit-scrollbar {
        display: none !important;
    }

    .filter-btn-v2 {
        flex-shrink: 0 !important;
        white-space: nowrap !important;
        padding: 6px 14px !important;
        font-size: 13px !important;
        border-radius: 20px !important;
    }

    .search-sort-bar-v2 {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 12px !important;
    }

    .archive-search-v2 {
        width: 100% !important;
    }
}

@media (max-width: 576px) {
    .newsletter-left-v2 {
        flex-direction: column !important;
        text-align: center !important;
        align-items: center !important;
    }
    .newsletter-box-v2 {
        padding: 20px 15px !important;
        text-align: center !important;
    }
    .newsletter-form-v2 {
        flex-direction: column !important;
    }
    .newsletter-form-v2 button,
    .newsletter-form-v2 input {
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .newsletter-box-v2 .mc4wp-form form {
        flex-direction: column !important;
    }
    .newsletter-box-v2 .mc4wp-form input[type="email"],
    .newsletter-box-v2 .mc4wp-form button,
    .newsletter-box-v2 .mc4wp-form input[type="submit"] {
        width: 100% !important;
        box-sizing: border-box !important;
    }
}

@media (max-width: 500px) {
    .poem-archive-grid,
    .archive-grid-v2,
    .archive-grid-3 {
        grid-template-columns: 1fr !important;
    }

    .poem-archive-grid .archive-card .card-text {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
        text-align: center !important;
    }

    .poem-archive-grid .archive-card .card-text h3 {
        text-align: center !important;
        border-bottom: 1px solid #ebdcc9 !important;
        padding-bottom: 8px !important;
    }

    .poem-archive-grid .archive-card .card-author-v2 {
        flex-direction: row !important;
        justify-content: center !important;
        gap: 10px !important;
    }

    .poem-archive-grid .archive-card .card-author-info-v2 {
        align-items: flex-start !important;
        text-align: left !important;
    }

    .poem-archive-grid .archive-card .card-btn-v2 {
        width: 100% !important;
        justify-content: center !important;
        box-sizing: border-box !important;
    }
}

@media (max-width: 480px) {
    .banner-title-v2 {
        font-size: 24px !important;
    }
    .filter-tabs-v2 {
        justify-content: flex-start !important;
        gap: 8px !important;
    }
    .filter-btn-v2 {
        padding: 6px 14px !important;
        font-size: 13px !important;
    }
    .search-layout-group-v2 {
        flex-direction: column !important;
        align-items: stretch !important;
        width: 100% !important;
    }
    .archive-search-v2 {
        width: 100% !important;
    }
    .layout-toggle-v2 {
        justify-content: center !important;
    }
    .sort-select-v2 {
        width: 100% !important;
    }
}

/* Direct Elementor layout columns overrides */
.elementor-element-poemarc > .e-con-inner,
.elementor-element-storyarc > .e-con-inner {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: flex-start !important;
    gap: 30px !important;
    width: 100% !important;
    max-width: 1280px !important;
    margin: 0 auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box !important;
}

/* Fallback page template container alignment */
body.page-template-template-poem-archive .archive-main-v2 > .container {
    max-width: 1280px !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
}

.elementor-element-poemcol,
.elementor-element-storycol {
    width: 70% !important;
    max-width: 70% !important;
    flex-grow: 0 !important;
    flex-shrink: 0 !important;
}

.elementor-element-poembar,
.elementor-element-storybar {
    width: 30% !important;
    max-width: 30% !important;
    flex-grow: 0 !important;
    flex-shrink: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 30px !important;
}

/* Responsive stack for tablets and mobile */
@media (max-width: 800px) {
    .elementor-element-poemarc > .e-con-inner,
    .elementor-element-storyarc > .e-con-inner {
        flex-direction: column !important;
        gap: 30px !important;
    }
    
    .elementor-element-poemcol,
    .elementor-element-storycol,
    .elementor-element-poembar,
    .elementor-element-storybar {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        box-sizing: border-box !important;
    }
}

body.page-id-74 .elementor-widget .container, body.page-id-74 .elementor-widget .post-container, body.page-id-80 .elementor-widget .container, body.page-id-80 .elementor-widget .post-container, body.page-template-template-poem-archive .elementor-widget .container, body.page-template-template-poem-archive .elementor-widget .post-container, body.page-template-template-story-archive .elementor-widget .container, body.page-template-template-story-archive .elementor-widget .post-container {
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Container alignment for mobile viewports (100% width with 10px safe side padding) */
@media (max-width: 799px) {
    .poem-filters-container-v2,
    .poem-archive-grid,
    .archive-grid-v2,
    .newsletter-box-v2,
    .archive-sidebar,
    .archive-banner-flex-v2,
    .archive-banner-flex {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        box-sizing: border-box !important;
    }
}

/* Safety page overflow overrides */
body.page-id-74,
body.page-template-template-poem-archive {
    overflow-x: clip !important;
    overflow-y: visible !important;
}

.poem-archive-grid,
.archive-card {
    box-sizing: border-box !important;
}

/* Story Card Vertical Redesign for story-archive-grid matching the screenshot (Always vertical) */
.story-archive-grid .archive-card {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    padding: 18px !important; /* Inset padding like screenshot */
    border: 1px solid #ebdcc9 !important; /* Subtle border */
    background: #ffffff !important;
    border-radius: 20px !important; /* Rounded corners like screenshot */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02) !important;
    overflow: hidden !important;
    transform: none !important;
    box-sizing: border-box !important;
    min-width: 0 !important;
}

.story-archive-grid .archive-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08) !important;
}

.story-archive-grid .archive-card .card-img {
    width: 100% !important;
    height: 220px !important; /* Increased height for better proportions */
    position: relative !important;
    border-radius: 14px !important; /* Image rounded corners */
    overflow: hidden !important;
}

.story-archive-grid .archive-card .card-img img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

/* Category Badge styling over image */
.story-archive-grid .archive-card .card-category {
    position: absolute !important;
    bottom: 12px !important;
    left: 12px !important;
    background: rgba(0, 0, 0, 0.75) !important;
    color: #ffffff !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    padding: 5px 12px !important;
    border-radius: 6px !important;
    z-index: 2 !important;
    pointer-events: none !important;
    backdrop-filter: blur(4px) !important;
}

.story-archive-grid .archive-card .card-text {
    padding: 15px 0 0 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    flex-grow: 1 !important;
    min-width: 0 !important;
}

.story-archive-grid .archive-card .card-text h3 {
    font-size: 20px !important;
    color: #111111 !important;
    margin: 0 !important;
    font-weight: 700 !important;
    font-family: 'Noto Serif Bengali', serif !important;
    line-height: 1.4 !important;
}

.story-archive-grid .archive-card .card-text h3 a {
    color: #111111 !important;
    text-decoration: none !important;
}

.story-archive-grid .archive-card .card-text h3 a:hover {
    color: #4a1c1c !important;
}

.story-archive-grid .archive-card .card-text p {
    font-size: 14px !important;
    color: #555555 !important;
    line-height: 1.7 !important;
    margin: 0 0 10px 0 !important;
    font-family: 'Noto Serif Bengali', serif !important;
}

/* Card Footer V2 using row flex layout with top border */
.story-archive-grid .archive-card .card-footer-v2 {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 8px !important;
    border-top: 1px solid #ebdcc9 !important; /* Divider line like screenshot */
    padding-top: 15px !important;
    margin-top: auto !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.story-archive-grid .archive-card .card-author-v2 {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 10px !important;
    min-width: 0 !important;
}

.story-archive-grid .archive-card .card-author-avatar-v2 {
    width: 44px !important;
    height: 44px !important;
    border-radius: 6px !important; /* Square with slight rounding like screenshot */
    object-fit: cover !important;
    border: 1px solid #ebdcc9 !important;
    flex-shrink: 0 !important;
}

.story-archive-grid .archive-card .card-author-info-v2 {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 2px !important;
    min-width: 0 !important;
}

.story-archive-grid .archive-card .card-author-name-v2 {
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #1e3a5f !important; /* Deep blue/slate */
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.story-archive-grid .archive-card .card-date-v2 {
    font-size: 11px !important;
    color: #777777 !important;
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    white-space: nowrap !important;
}

.story-archive-grid .archive-card .card-date-v2 i {
    color: #888888 !important;
    font-size: 11px !important;
}

.story-archive-grid .archive-card .card-btn-v2 {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    background: #ffffff !important;
    color: #333333 !important;
    border: 1px solid #cccccc !important;
    padding: 8px 20px !important;
    border-radius: 30px !important; /* Pill button shape */
    font-size: 13px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    flex-shrink: 0 !important;
    white-space: nowrap !important;
}

.story-archive-grid .archive-card .card-btn-v2:hover {
    background: #4a1c1c !important;
    color: #ffffff !important;
    border-color: #4a1c1c !important;
}

.story-archive-grid .archive-card .card-meta,
.story-archive-grid .archive-card .read-more-link {
    display: none !important;
}

/* Grid Card List View Toggle Override for Story Archive */
.story-archive-grid.list-view {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
}

.story-archive-grid.list-view .archive-card {
    flex-direction: row !important;
    align-items: stretch !important;
    min-height: 200px;
    padding: 15px !important;
}

.story-archive-grid.list-view .archive-card .card-img {
    width: 240px !important;
    height: auto !important;
    flex-shrink: 0;
}

.story-archive-grid.list-view .archive-card .card-text {
    padding: 0 0 0 25px !important;
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: none !important;
    grid-template-rows: none !important;
    grid-template-areas: none !important;
    gap: 0 !important;
}

.story-archive-grid.list-view .archive-card .card-text h3 {
    font-size: 20px !important;
    border-bottom: none !important;
    padding-bottom: 0 !important;
}

.story-archive-grid.list-view .archive-card .card-text p {
    font-size: 14px !important;
    margin-bottom: 15px !important;
}

.story-archive-grid.list-view .archive-card .card-footer-v2 {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-top: auto !important;
    border-top: 1px solid #f5efe6 !important;
    padding-top: 10px !important;
}

/* =========================================
   USER SPECIFIED AUTHOR + POPULAR SECTION
========================================= */

.author-popular-section {
    width: 100%;
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 20px;
    padding: 0 20px;
    margin-bottom: 20px;
    box-sizing: border-box;
}

.author-profile-box,
.popular-posts-box {
    background: #ffffff;
    border: 1px solid #e5d9cf;
    border-radius: 15px;
    box-sizing: border-box;
}

.author-profile-box {
    min-height: 330px;
    display: flex;
    align-items: center;
    padding: 35px 25px;
}

.author-profile-inner {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 22px;
}

.author-image {
    flex: 0 0 132px;
}

.author-image img {
    display: block;
    width: 132px;
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
}

.author-info {
    min-width: 0;
}

.author-label {
    display: inline-block;
    color: #5d251d;
    font-size: 15px;
    margin-bottom: 7px;
}

.author-info h2 {
    margin: 0 0 8px;
    color: #39201c;
    font-size: 25px;
    line-height: 1.3;
    font-weight: 600;
}

.author-info p {
    margin: 0;
    color: #4f4642;
    font-size: 15px;
    line-height: 1.8;
}

.author-social {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 17px;
}

.author-social a {
    width: 36px;
    height: 36px;
    border: 1px solid #e4d7ce;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4c2822;
    text-decoration: none;
    font-size: 15px;
    transition: all 0.2s ease;
}

.author-social a:hover {
    background: #6a2b23;
    color: #ffffff;
    border-color: #6a2b23;
}

.popular-posts-box {
    min-height: 330px;
    padding: 25px;
}

.popular-title {
    margin: 0 0 22px;
    color: #39201c;
    font-size: 21px;
    line-height: 1.4;
    font-weight: 600;
}

.popular-title span {
    margin-right: 5px;
}

.popular-post {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #eadfd7;
}

.popular-post:first-of-type {
    padding-top: 0;
}

.popular-post:last-child {
    border-bottom: 0;
}

.popular-post img {
    flex: 0 0 70px;
    width: 70px;
    height: 57px;
    object-fit: cover;
    border-radius: 8px;
}

.popular-post-info {
    min-width: 0;
}

.popular-post-info h3 {
    margin: 0 0 5px;
    color: #39201c;
    font-size: 16px;
    line-height: 1.4;
    font-weight: 500;
}

.popular-post-info h3 a {
    color: #39201c;
    text-decoration: none;
}

.popular-post-info span {
    color: #81736d;
    font-size: 12px;
}

@media (max-width: 900px) {
    .author-popular-section {
        grid-template-columns: 1.2fr 1fr;
        gap: 14px;
        padding: 0 16px;
        margin-bottom: 16px;
    }

    .author-profile-box {
        padding: 25px 18px;
    }

    .author-profile-inner {
        gap: 15px;
    }

    .author-image {
        flex: 0 0 100px;
    }

    .author-image img {
        width: 100px;
        height: 115px;
    }

    .author-info h2 {
        font-size: 21px;
    }

    .author-info p {
        font-size: 13px;
    }

    .popular-posts-box {
        padding: 20px 16px;
    }
}

@media (max-width: 600px) {
    .author-popular-section {
        display: grid;
        grid-template-columns: 1.25fr 1fr;
        gap: 8px;
        width: 100%;
        padding: 0 10px;
        margin-bottom: 15px;
    }

    .author-profile-box,
    .popular-posts-box {
        min-height: 280px;
        border-radius: 10px;
    }

    .author-profile-box {
        padding: 18px 12px;
        align-items: center;
    }

    .author-profile-inner {
        display: block;
        text-align: left;
    }

    .author-image {
        width: 75px;
        margin-bottom: 10px;
    }

    .author-image img {
        width: 75px;
        height: 85px;
        border-radius: 8px;
    }

    .author-label {
        font-size: 12px;
        margin-bottom: 4px;
    }

    .author-info h2 {
        font-size: 17px;
        margin-bottom: 5px;
    }

    .author-info p {
        font-size: 11px;
        line-height: 1.6;
    }

    .author-social {
        gap: 5px;
        margin-top: 10px;
    }

    .author-social a {
        width: 27px;
        height: 27px;
        font-size: 11px;
    }

    .popular-posts-box {
        padding: 15px 10px;
    }

    .popular-title {
        font-size: 15px;
        margin-bottom: 12px;
    }

    .popular-post {
        gap: 7px;
        padding: 9px 0;
    }

    .popular-post img {
        flex: 0 0 48px;
        width: 48px;
        height: 43px;
        border-radius: 6px;
    }

    .popular-post-info h3 {
        font-size: 12px;
        line-height: 1.35;
        margin-bottom: 3px;
    }

    .popular-post-info span {
        font-size: 9px;
    }
}



/* ==========================================================================
   Verses No-Thumbnail Placeholder Card (Title & Author Fallback - Pure White)
   ========================================================================== */
.verses-no-thumb-card {
    width: 100% !important;
    height: 100% !important;
    min-height: 140px;
    background: #ffffff !important;
    background-color: #ffffff !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    padding: 18px 16px !important;
    box-sizing: border-box !important;
    position: relative !important;
    overflow: hidden !important;
    border: 1px solid #f1f3f5 !important;
    border-radius: inherit;
    transition: background-color 0.25s ease, border-color 0.25s ease;
    text-decoration: none !important;
}

/* Card corner radii match */
.post-card .verses-no-thumb-card,
.card .verses-no-thumb-card,
.post-image .verses-no-thumb-card,
.archive-card .verses-no-thumb-card {
    border-top-left-radius: 12px !important;
    border-top-right-radius: 12px !important;
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    border-bottom: none !important;
}

/* Home cards exact 200px height match */
.card .verses-no-thumb-card {
    height: 200px !important;
    min-height: 200px !important;
    max-height: 200px !important;
    border-radius: 10px 10px 0 0 !important;
}

/* Archive post-image container */
.post-image .verses-no-thumb-card {
    height: 175px !important;
    min-height: 175px !important;
    max-height: 175px !important;
}

/* Compact thumbnails (popular posts, footer, recent sidebars) */
.popular-post .verses-no-thumb-card,
.mini-post-thumb.verses-no-thumb-card,
.verses-no-thumb-card.size-thumbnail {
    min-height: 60px !important;
    height: 60px !important;
    width: 60px !important;
    padding: 4px 6px !important;
    border-radius: 8px !important;
    border: 1px solid #e2e8f0 !important;
}

/* Inner content alignment */
.verses-no-thumb-inner {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
}

/* Title typography */
.verses-no-thumb-title {
    font-family: inherit !important;
    font-size: 16.5px !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    color: #1e293b !important;
    margin: 0 !important;
    padding: 0 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    word-break: break-word !important;
}

/* Author typography */
.verses-no-thumb-author {
    font-family: inherit !important;
    font-size: 13.5px !important;
    font-weight: 500 !important;
    line-height: 1.3 !important;
    color: #64748b !important;
    margin: 0 !important;
    padding: 0 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 1 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

.verses-no-thumb-author::before {
    content: "✍ ";
    font-size: 12px;
    opacity: 0.85;
    color: #b45309;
}

/* Small thumbnail variant adjustments */
.popular-post .verses-no-thumb-card .verses-no-thumb-title,
.mini-post-thumb .verses-no-thumb-card .verses-no-thumb-title,
.verses-no-thumb-card.size-thumbnail .verses-no-thumb-title {
    font-size: 10px !important;
    -webkit-line-clamp: 2 !important;
    line-height: 1.2 !important;
    margin-bottom: 2px !important;
}

.popular-post .verses-no-thumb-card .verses-no-thumb-author,
.mini-post-thumb .verses-no-thumb-card .verses-no-thumb-author,
.verses-no-thumb-card.size-thumbnail .verses-no-thumb-author {
    font-size: 8.5px !important;
}

.popular-post .verses-no-thumb-card .verses-no-thumb-inner,
.verses-no-thumb-card.size-thumbnail .verses-no-thumb-inner {
    gap: 2px !important;
}

/* Card hover states */
.card:hover .verses-no-thumb-card,
.post-card:hover .verses-no-thumb-card,
.archive-card:hover .verses-no-thumb-card,
.verses-no-thumb-card:hover {
    background-color: #fafbfc !important;
}

.card:hover .verses-no-thumb-title,
.post-card:hover .verses-no-thumb-title,
.archive-card:hover .verses-no-thumb-title {
    color: #0f172a !important;
}

/* ==========================================================================
   Horizontal Drag-to-Scroll for Category Pills (.categories)
   ========================================================================== */
.site-wrapper-archive .categories,
.categories {
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

.site-wrapper-archive .categories.is-dragging,
.categories.is-dragging {
    cursor: grabbing !important;
    scroll-behavior: auto !important;
}

.site-wrapper-archive .categories.is-dragging *,
.categories.is-dragging * {
    cursor: grabbing !important;
    user-select: none !important;
    -webkit-user-select: none !important;
}
