.hero-wrapper {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    background-color: transparent;
    box-sizing: border-box;
}

@media (max-width: 1024px) {
    .hero-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        left: 0 !important;
        right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

.hero-wrapper .hero {
    /* 50% darker/deeper overlay for readability */
    background-image:
        linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.0)),
        var(--hero-bg, url('../img/illustration.webp'));
    background-color: #fcf4e8;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-blend-mode: normal;
    padding: 40px;
    position: relative;
    overflow: hidden;
    min-height: 450px;
    display: flex;
    align-items: center;
    width: 90%;
    max-width: 1280px;
    margin: 0 auto;
    border-radius: 12px;
    box-sizing: border-box;
}

/* HERO WATERMARK BACKGROUND WORDS */
.hero-watermark-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
    user-select: none;
}

.hero-watermark-bg .watermark-word {
    position: absolute;
    font-family: 'Noto Serif Bengali', 'Bangla UI', 'Noto Sans Bengali', 'SolaimanLipi', 'Vrinda', 'Hind Siliguri', serif !important;
    font-weight: 700 !important;
    color: #fdf5ea !important;
    line-height: 1 !important;
    white-space: nowrap;
    letter-spacing: normal !important;
    opacity: 0.5 !important;
    text-shadow: 0 3px 18px rgba(160, 110, 80, 0.12), 0 2px 6px rgba(0, 0, 0, 0.04);
    pointer-events: none;
    text-transform: none;
}

/* Top-Left: বাংলা */
.hero-watermark-bg .word-bangla {
    top: 2px;
    left: 160px;
    font-size: 147px;
    animation: watermarkFloatLeft 9s ease-in-out infinite;
}

/* Top-Right: কবিতা */
.hero-watermark-bg .word-kobita {
    top: 43px;
    right: 13px;
    font-size: 150px;
    animation: watermarkFloatRight 11s ease-in-out infinite 1.2s;
}

/* Center-Bottom: সাহিত্য */
.hero-watermark-bg .word-sahitya {
    bottom: 15px;
    left: 19%;
    font-size: 165px;
    animation: watermarkFloatCenter 10s ease-in-out infinite 0.5s;
}

/* Smooth Gentle Floating Keyframes */
@keyframes watermarkFloatLeft {
    0%, 100% {
        transform: translateY(0px) translateX(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-12px) translateX(8px) rotate(-1deg);
    }
}

@keyframes watermarkFloatRight {
    0%, 100% {
        transform: translateY(0px) translateX(0px) rotate(0deg);
    }
    50% {
        transform: translateY(10px) translateX(-10px) rotate(1.2deg);
    }
}

@keyframes watermarkFloatCenter {
    0%, 100% {
        transform: translateY(0px) translateX(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-9px) translateX(-6px) rotate(-0.8deg);
    }
}

@media (max-width: 1200px) {
    .hero-watermark-bg .word-bangla { font-size: 102px !important; top: -10px; left: 40px; }
    .hero-watermark-bg .word-kobita { font-size: 105px !important; top: -15px; right: 10px; }
    .hero-watermark-bg .word-sahitya { font-size: 112px !important; bottom: -20px; left: 14%; }
}

@media (max-width: 992px) {
    .hero-watermark-bg .word-bangla { font-size: 77px !important; top: -5px; left: 20px; }
    .hero-watermark-bg .word-kobita { font-size: 80px !important; top: -10px; right: 5px; }
    .hero-watermark-bg .word-sahitya { font-size: 88px !important; bottom: -15px; left: 12%; }
}

@media (max-width: 768px) {
    .hero-watermark-bg .word-bangla { font-size: 56px !important; top: -5px; left: 5px; }
    .hero-watermark-bg .word-kobita { font-size: 60px !important; top: -10px; right: 2px; }
    .hero-watermark-bg .word-sahitya { font-size: 63px !important; bottom: -10px; left: 8%; }
}

@media (max-width: 480px) {
    .hero-watermark-bg .word-bangla { font-size: 39px !important; top: -2px; left: 2px; }
    .hero-watermark-bg .word-kobita { font-size: 41px !important; top: -5px; right: 0px; }
    .hero-watermark-bg .word-sahitya { font-size: 43px !important; bottom: -5px; left: 5%; }
}

.hero .container {
    width: 100%;
    max-width: none;
    padding: 0;
}

.hero-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
    gap: 40px;
    width: 100%;
    padding: 0;
}

.hero-text {
    flex: 1;
    margin-left: 0;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
    animation-delay: 0.5s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-text h1 {
    font-size: 65px;
    font-weight: 700;
    line-height: 1.3;
    color: #ffffff;
    margin-bottom: 20px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.hero-text p {
    font-size: 20px;
    color: #f0e8d8;
    line-height: 1.6;
    margin-bottom: 30px;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}

.hero-btns {
    display: flex;
    gap: 10px;
    flex-wrap: nowrap;
    margin-top: 25px;
}

.hero-btns .btn {
    padding: 12px 20px;
    font-size: 15px;
    white-space: nowrap;
    text-align: center;
    flex: 0 1 auto;
}

@media (max-width: 768px) {
    .hero-btns {
        display: flex !important;
        flex-wrap: nowrap !important;
        justify-content: center !important;
        gap: 6px !important;
        width: 100% !important;
    }
    
    .hero-btns .btn {
        flex: 1 1 auto !important;
        max-width: none !important;
        padding: 9px 8px !important;
        font-size: clamp(11px, 2.8vw, 14px) !important;
        white-space: nowrap !important;
        text-align: center !important;
    }
}

.btn {
    background: var(--btn-bg);
    color: #fff;
    padding: 12px 32px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 4px;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.btn:hover {
    background: #4a1515;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.hero-graphics {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    min-height: 380px;
}

/* .illustration-img removed as it's now a CSS background */

.poet-card {
    background: #fcf9f2;
    padding: 25px;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 450px;
    margin-top: 120px;
    margin-right: 0;
    border: 1px solid #e9e1d5;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
    animation-delay: 0.5s;
}

.poet-card-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.poet-card-header h3 {
    margin: 0;
    font-size: 24px;
    color: #222;
    white-space: nowrap;
}

.poet-card-header .line {
    flex-grow: 1;
    height: 1px;
    background: #dcd4c6;
    margin: 0 15px;
}

.poet-card-header a {
    color: #777;
    text-decoration: none;
    font-size: 13px;
    white-space: nowrap;
}

.poet-card-header a:hover {
    color: #333;
}

.poet-list {
    display: flex !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    gap: 12px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.poet {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
}

.poet a {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    width: 100% !important;
    text-decoration: none !important;
    color: inherit !important;
}

.poet img,
.poet a img,
.poet-list .poet img {
    width: 70px !important;
    height: 70px !important;
    min-width: 70px !important;
    min-height: 70px !important;
    max-width: 70px !important;
    max-height: 70px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    border: 3px solid #eae1d3 !important;
    margin: 0 auto 8px auto !important;
    display: block !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.3s ease !important;
}

.poet img:hover,
.poet a img:hover {
    transform: scale(1.08) translateY(-3px) !important;
    border-color: var(--text-accent, #8b4a4a) !important;
}

.poet span,
.poet a span,
.poet-list .poet span {
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    font-size: 13px !important;
    line-height: 1.4 !important;
    color: #4a4a4a !important;
    font-weight: 600 !important;
    text-align: center !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    min-height: 36px !important;
    max-height: 36px !important;
}

/* BLOG */
.magazine-section {
    padding: 60px 0;
    background: #fff;
}

@import url('https://fonts.googleapis.com/css2?family=Great+Vibes&display=swap');

.magazine-title-wrapper {
    margin-bottom: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.magazine-section-title {
    font-family: 'Hind Siliguri', 'Noto Serif Bengali', serif;
    color: var(--text-primary, #2a241f);
    font-size: 30px;
    margin: 0;
    font-weight: 700;
    line-height: 1.2;
}
.magazine-section-title a {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
}
.magazine-section-title a:hover {
    color: inherit;
    opacity: 0.8;
}

.magazine-title-separator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
    width: 100%;
}

.magazine-title-separator .separator-line {
    width: 80px;
    height: 1px;
    background-color: var(--text-accent, #8b4a4a);
    display: inline-block;
}

.magazine-title-separator i {
    color: var(--text-accent, #8b4a4a);
    font-size: 14px;
}

.magazine-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 30px;
}

/* Feature Post (Left) */
.magazine-feature {
    padding: 20px;
    border-right: 1px solid #eaeaea;
    border-radius: 12px;
    background: #fff;
    transition: all 0.3s ease;
}

.magazine-feature:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    transform: translateY(-5px);
}

.magazine-feature img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px;
}

/* Meta Data */
.meta {
    display: flex;
    overflow: hidden;
    align-items: center;
    height: 15px;
    gap: 8px;
    font-size: 13px;
    margin-bottom: 8px;
    font-family: 'Inter', 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.magazine-section .meta {
    display: flex;
    overflow: hidden;
    align-items: center;
    height: 60px !important;
    gap: 8px;
    font-size: 18px !important;
    margin-bottom: 8px;
    font-family: 'Inter', 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    justify-content: flex-start !important;
    max-width: 100% !important;
}

.magazine-section .meta .category {
    color: #ff0055 !important;
    text-transform: uppercase !important;
    font-weight: 800 !important;
    letter-spacing: 0.2px !important;
    background: none !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    box-shadow: none !important;
    display: inline-block !important;
    float: left !important;
    text-align: left !important;
}

.magazine-section .meta .category a {
    color: #938a7b !important;
    background: none !important;
    padding: 5px !important;
    margin: 0 !important;
    border: none !important;
    display: inline-block !important;
    text-decoration: none !important;
    float: left !important;
    text-align: left !important;
}

.magazine-section .meta .category a:hover {
    color: #cc0044 !important;
    text-decoration: underline !important;
    background: none !important;
}

.magazine-section .meta .dot {
    color: #aaa;
    font-weight: 400;
    font-size: 14px;
    line-height: 1;
    font-style: italic;
}

.magazine-section .meta .date {
    color: #666;
    font-weight: 300;
    font-size: 12px;
    font-family: 'Inter', 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    white-space: nowrap !important;
}

/* Typography for Feature */
.magazine-feature h3 {
    font-size: 28px;
    font-weight: 800;
    line-height: 1.25;
    color: #000;
    margin: 0 0 12px 0;
    font-family: 'Inter', 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    letter-spacing: -0.5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
}

.magazine-feature p {
    font-size: 16px;
    color: #555;
    line-height: 1.6;
    margin: 0;
}

/* Small Columns */
.magazine-small-col {
    display: flex;
    flex-direction: column;
}

/* Middle Column Border */
.magazine-small-col:not(.right-most) {
    padding-right: 30px;
    border-right: 1px solid #eaeaea;
}

.magazine-small-post {
    padding: 10px;
    border-radius: 10px;
    transition: all 0.3s ease;
    background: #fff;
}

.magazine-small-post:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
    transform: translateY(-3px);
}

.magazine-small-post img {
    width: 100%;
    height: 250px !important;
    max-height: 250px !important;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 16px;
}

.magazine-small-post h4 {
    font-size: 14px;
    color: #2b2a2a;
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

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

.img-wrapper {
    position: relative;
}

.save-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #e60023;
    color: #fff;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    display: flex;
    align-items: center;
    z-index: 10;
}

@media (max-width: 799px) {
    .magazine-grid {
        grid-template-columns: 1fr;
    }

    .magazine-feature,
    .magazine-small-col:not(.right-most) {
        padding-right: 0;
        border-right: none;
    }

    .magazine-feature {
        border-bottom: 1px solid #eaeaea;
        padding-bottom: 30px;
    }
}

/* CATEGORY */
.category {
    text-align: center;
    padding: 60px 0;
    background: #fcfaf3;
}

.category h2 {
    font-size: 28px;
    font-weight: bold;
    color: #222;
    margin-bottom: 15px;
}

.category .divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
}

.category .divider .line {
    width: 60px;
    height: 1px;
    background: var(--text-accent);
}

.category .divider .icon {
    color: var(--text-accent);
    font-size: 14px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

.cat {
    background: #f8f1e5;
    padding: 30px 15px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.cat:hover, .cat.active {
    transform: translateY(-5px);
}

.cat.active {
    border-color: var(--text-accent, #8b4a4a);
    box-shadow: 0 8px 20px rgba(139, 74, 74, 0.15);
}

.category-posts-loading {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(252, 250, 243, 0.75);
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    z-index: 10;
}

.cat .icon-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
    font-size: 24px;
}

.cat-1 {
    background: #fdf4ec;
}

.cat-1 .icon-circle {
    background: #fce1e5;
    color: #e65c7b;
}

.cat-2 {
    background: #fdf5ea;
}

.cat-2 .icon-circle {
    background: #fae6d3;
    color: #d67a36;
}

.cat-3 {
    background: #f6f3f5;
}

.cat-3 .icon-circle {
    background: #ebe6f2;
    color: #6b6db3;
}

.cat-4 {
    background: #f4f8f1;
}

.cat-4 .icon-circle {
    background: #e3efe3;
    color: #438a6a;
}

.cat-5 {
    background: #fdf6e9;
}

.cat-5 .icon-circle {
    background: #f4e8cf;
    color: #8a642e;
}

.cat-6 {
    background: #f6f8ec;
}

.cat-6 .icon-circle {
    background: #e5ecd6;
    color: #5c8b36;
}

/* POPULAR */
.popular {
    padding: 60px 0;
    text-align: center;
    background: #fdf5ea;
}

.popular h2 {
    font-size: 28px;
    font-weight: bold;
    color: #222;
    margin-bottom: 15px;
}

.popular .divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
}

.popular .divider .line {
    width: 60px;
    height: 1px;
    background: var(--text-accent);
}

.popular .divider .icon {
    color: var(--text-accent);
    font-size: 14px;
}

.cards,
.popular .cards,
.elementor-widget-verses-home-poems .cards,
.elementor-widget-verses-home-stories .cards {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 25px !important;
}

.card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.card img {
    width: 100%;
    height: 200px !important;
    max-height: 200px !important;
    object-fit: cover;
    display: block;
}

.card-content {
    padding: 20px;
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
}

.card h4 {
    font-size: 18px;
    font-weight: bold;
    color: #222;
    line-height: 1.45 !important;
    margin: 0 0 10px 0;
    word-break: break-word;
}

.card .meta {
    font-size: 12.5px;
    color: #777;
    line-height: 1.65 !important;
    margin-bottom: 12px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 8px;
}

.card .meta .meta-date,
.card .meta .meta-author {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.card .meta .meta-author i {
    color: var(--text-accent, #c9933f);
}

.card .meta .meta-sep {
    color: #bbb;
}

.card-content p,
.card p {
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    line-height: 1.65 !important;
    margin: 0 0 14px 0 !important;
    color: #666;
    font-size: 14px;
}

.card .read-more {
    margin-top: auto;
    display: inline-block;
    color: var(--text-accent, #8b5a2b);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
}

.card .read-more:hover {
    color: #4a2d1c;
    transform: translateX(3px);
}
/* TESTIMONIAL */
.testimonial {
    background-color: #f6f4ee;
    padding: 60px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.testimonial .watermark {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 140px;
    font-weight: 800;
    color: rgba(230, 225, 215, 0.4);
    white-space: nowrap;
    z-index: 1;
    pointer-events: none;
}

.testimonial-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 2;
    width: 90% !important;
    max-width: 1280px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box !important;
}

.nav-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid #e0d8c3;
    background: transparent;
    color: var(--text-accent);
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-btn:hover {
    background: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.testimonial-content {
    flex: 1;
    padding: 0 40px;
}

.quote-icon {
    font-size: 30px;
    color: #dcd6c8;
    margin-bottom: 20px;
}

.testimonial-content h3 {
    font-size: 22px;
    font-weight: bold;
    color: #222;
    margin-bottom: 15px;
}

.testimonial-content p {
    font-size: 16px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 25px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.avatars {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.avatar {
    width: 50px;
    height: 50px;
    border-radius: 50% !important;
    object-fit: cover !important;
    opacity: 0.65;
    transition: opacity 0.3s ease, width 0.3s ease, height 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
    cursor: pointer;
}

.avatar.active {
    width: 70px;
    height: 70px;
    opacity: 1;
    border: 3px solid #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.12);
}

@media (max-width: 1024px) {
    .cards {
        grid-template-columns: repeat(2, 1fr) !important;
        padding: 0;
    }

    .category-grid {
        grid-template-columns: repeat(3, 1fr);
        padding: 0;
    }
}

@media (max-width: 799px) {
    .cards {
        grid-template-columns: 1fr !important;
        padding: 0;
    }

    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 0;
    }

    /* Mobile Hero Top Gap Lock: Exactly 8px between Date/Search Bar and <h1> */
    .date-search-bar {
        margin-bottom: 0 !important;
    }

    .hero-wrapper,
    .elementor-widget-verses-hero .hero-wrapper {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    .hero,
    .hero-wrapper .hero,
    .elementor-widget-verses-hero .hero {
        margin-top: 8px !important;
        margin-bottom: 20px !important;
        padding: 24px 16px 22px 16px !important;
        min-height: auto !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        text-align: center !important;
        box-sizing: border-box !important;
    }

    .popular,
    .magazine-section,
    .category,
    .testimonial {
        padding: 30px 0 !important;
    }

    .hero-flex {
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        gap: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .hero-text {
        margin-left: 0;
        margin-top: 0 !important;
        padding-top: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        text-align: center !important;
        box-sizing: border-box !important;
    }

    .hero-text h1 br,
    .elementor-widget-verses-hero .hero-text h1 br {
        display: block !important;
    }

    .hero-text p br,
    .elementor-widget-verses-hero .hero-text p br {
        display: block !important;
    }

    .hero-text h1,
    .elementor-widget-verses-hero .hero-text h1 {
        margin: 0 0 12px 0 !important;
        font-size: clamp(26px, 5.8vw, 40px) !important;
        line-height: 1.35 !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        text-align: center !important;
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6) !important;
    }

    .hero-text p,
    .elementor-widget-verses-hero .hero-text p {
        margin: 0 auto 18px auto !important;
        max-width: 320px !important;
        font-size: clamp(13px, 3.6vw, 15px) !important;
        line-height: 1.6 !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        text-align: center !important;
        color: #550355 !important;
        text-shadow: 0 1px 6px rgba(0, 0, 0, 0.72) !important;
    }

    .hero-text h1 span {
        display: inline !important;
        white-space: normal !important;
    }

    .hero-btns,
    .elementor-widget-verses-hero .hero-btns {
        display: flex !important;
        flex-wrap: nowrap !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 6px !important;
        width: 100% !important;
        max-width: 340px !important;
        margin: 0 auto !important;
        box-sizing: border-box !important;
    }

    .hero-btns .btn,
    .elementor-widget-verses-hero .hero-btns .btn {
        flex: 1 1 0 !important;
        min-width: 0 !important;
        max-width: none !important;
        padding: 8px 4px !important;
        font-size: clamp(11.5px, 2.9vw, 13.5px) !important;
        font-weight: 600 !important;
        white-space: nowrap !important;
        text-align: center !important;
        border-radius: 6px !important;
        box-sizing: border-box !important;
    }

    /* Mobile: Hide Poet Card completely to keep hero compact and elegant */
    .hero-graphics,
    .elementor-widget-verses-hero .hero-graphics,
    .poet-card,
    .elementor-widget-verses-hero .poet-card {
        display: none !important;
    }

    .poet-card-header h3 {
        font-size: 18px;
    }

    .poet img {
        width: 55px;
        height: 55px;
        border-width: 3px;
    }

    .poet span {
        font-size: 11px;
    }

    .magazine-feature img {
        height: 220px;
    }

    .testimonial-container {
        flex-direction: column;
        gap: 20px;
    }

    .testimonial-content {
        padding: 0 15px;
    }

    .nav-btn {
        display: none;
    }
}

/* --- Elementor Layout & Margin Alignment Fixes --- */

/* 1. Make all Elementor containers on the homepage full-width to prevent double-boxing */
.elementor-115 .e-con-boxed {
    width: 100% !important;
    max-width: none !important;
}
.elementor-115 .e-con-boxed > .e-con-inner {
    width: 100% !important;
    max-width: none !important;
}

/* 2. Align Hero, Poems, Stories, Magazine, Category, Popular, and Testimonial cards as boxed containers */
.elementor-widget-verses-hero .hero,
.elementor-115 .popular,
.elementor-115 .magazine-section,
.elementor-115 .category,
.elementor-115 .testimonial {
    width: 90% !important;
    max-width: 1280px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    margin-bottom: 30px !important;
    border-radius: 12px !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}

/* 3. Align all homepage body section containers exactly with the header/footer container bounds */
.elementor-115 .elementor-widget .container {
    width: 100% !important;
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* 4. Remove testimonial inner padding as it is handled by the outer card container */
.elementor-115 .testimonial-content {
    padding: 0 !important;
}

/* POPULAR/POEMS/MAGAZINE/CATEGORY SECTION WATERMARK BACKGROUND & ORGANIC WAVE ANIMATION */
section.popular,
section.magazine-section,
section.category {
    position: relative !important;
    overflow: hidden !important;
}

section.popular .container,
section.magazine-section .container,
section.category .container {
    position: relative !important;
    z-index: 2 !important;
}

.popular-watermark-bg {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    text-align: center;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
    user-select: none;
}

.popular-watermark-bg .section-watermark-word {
    display: inline-block;
    font-family: 'Noto Serif Bengali', 'Hind Siliguri', serif !important;
    font-weight: 900 !important;
    margin-top: 56px;
    font-size: 180px !important;
    color: #fdf5ea !important;
    line-height: 0.9 !important;
    white-space: nowrap;
    letter-spacing: normal !important;
    opacity: 0.95;
    text-shadow: 0 3px 18px rgba(160, 110, 80, 0.12), 0 2px 6px rgba(0, 0, 0, 0.04);
    animation: watermarkOrganicWave 10s ease-in-out infinite;
}

body.dark-mode .popular-watermark-bg .section-watermark-word {
    color: rgba(255, 255, 255, 0.04) !important;
}

@keyframes watermarkOrganicWave {
    0%, 100% {
        transform: translateY(0px) translateX(0px) rotate(0deg) scale(1);
    }
    33% {
        transform: translateY(-10px) translateX(12px) rotate(-1deg) scale(1.02);
    }
    66% {
        transform: translateY(8px) translateX(-8px) rotate(1.2deg) scale(0.98);
    }
}

@media (max-width: 1200px) {
    .popular-watermark-bg .section-watermark-word {
        font-size: 130px !important;
        margin-top: 42px !important;
    }
}

@media (max-width: 992px) {
    .popular-watermark-bg .section-watermark-word {
        font-size: 95px !important;
        margin-top: 32px !important;
    }
}

@media (max-width: 768px) {
    .popular-watermark-bg .section-watermark-word {
        font-size: 65px !important;
        margin-top: 22px !important;
        top: 0px !important;
    }
}

@media (max-width: 480px) {
    .popular-watermark-bg .section-watermark-word {
        font-size: 42px !important;
        margin-top: 15px !important;
    }
}

/* ==========================================================================
   Verses Poets Directory (Three-Column International Standard)
   ========================================================================== */
.verses-poets-two-col-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px 18px;
}

.verses-poet-item {
    margin: 0;
    padding: 0;
    list-style: none;
}

.verses-poet-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #ffffff;
    border: 1px solid #ebdfd0;
    border-radius: 8px;
    text-decoration: none;
    color: #2b221d;
    font-size: 15px;
    line-height: 1.4;
    transition: all 0.2s ease;
}

.verses-poet-link:hover {
    background: #fbf5ed;
    border-color: #d1a590;
    color: #7c251f;
    transform: translateX(3px);
    box-shadow: 0 4px 12px rgba(124, 37, 31, 0.08);
}

.poet-bullet-symbol {
    color: #7c251f;
    font-size: 16px;
    line-height: 1;
    display: inline-block;
}

.poet-display-name {
    font-weight: 600;
    flex-grow: 1;
    color: inherit;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.poet-hyphen {
    color: #9c8e86;
    font-weight: 500;
}

.poet-writings-count {
    color: #7c251f;
    font-weight: 700;
    font-size: 14px;
    background: rgba(124, 37, 31, 0.07);
    padding: 2px 8px;
    border-radius: 12px;
    white-space: nowrap;
}

@media (max-width: 991px) {
    .verses-poets-two-col-list {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px 16px !important;
    }
}

@media (max-width: 640px) {
    .verses-poets-two-col-list {
        grid-template-columns: 1fr !important;
        gap: 8px !important;
    }
}


