/* =========================================================
   HERO SECTION
   ========================================================= */

.hero {
    max-width: 1240px;
    margin: 3px auto;
    padding: 0 22px;
}

.hero-content {
    position: relative;
    width: 100%;
    height: 470px;
    border-radius: 22px;
    overflow: hidden;
    background: #f3f1ec;
}

.hero-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.7s ease;
}

.hero-slide.is-active {
    opacity: 1;
    visibility: visible;
}

/* Hero-এর পুরোনো লেখা বন্ধ */
.hero-content > .eyebrow,
.hero-content h1,
.hero-content p {
    display: none;
}

/* Button — Hero-এর নিচের বাম পাশে */
.hero-content .hero-buttons {
    position: absolute;
    left: 35px;
    bottom: 30px;

    z-index: 5;

    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;

    gap: 10px;
    margin: 0;

    width: max-content;
    max-width: calc(100% - 30px);
}

.hero-content .hero-buttons .btn {
    white-space: nowrap;
}

/* Slider dots */
.hero-dots {
    position: absolute;
    left: 50%;
    bottom: 16px;
    z-index: 6;
    transform: translateX(-50%);

    display: flex;
    align-items: center;
    gap: 7px;
}

.hero-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.65);
    cursor: pointer;
    transition: width .25s ease, border-radius .25s ease, background-color .25s ease;
}

.hero-dot.is-active {
    width: 24px;
    border-radius: 10px;
    background: #fff;
}

/* =========================================================
   BENEFITS
   ========================================================= */

.benefits {
    background: #fff;

    border-bottom: 1px solid var(--line);

    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));

    padding: 18px max(22px, calc((100% - 1196px) / 2));
}


.benefits > div {
    min-height: 48px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    border-right: 1px solid var(--line);

    font-size: 12px;
    font-weight: 600;

    text-align: center;
}


.benefits > div:last-child {
    border-right: 0;
}


.benefits small {
    margin-top: 5px;

    color: var(--muted);

    font-size: 11px;
    font-weight: 400;
}


/* =========================================================
   CATEGORIES
   ========================================================= */

.categories {
    display: grid;

    grid-template-columns: repeat(6,minmax(0,1fr));

    gap: 15px;
}


.category-card {
    background: #fff;

    border: 1px solid var(--line);
    border-radius: 15px;

    overflow: hidden;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}


.category-card:hover {
    transform: translateY(-4px);

    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.07);

    border-color: #d9d9d9;
}


.category-card img {
    display: block;

    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;

    object-fit: cover;

    transition: transform 0.35s ease;
}


.category-card:hover img {
    transform: scale(1.03);
}


.category-card div {
    padding: 13px;
}


.category-card h3 {
    margin: 0 0 5px;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 15px;
    font-weight: 600;

    line-height: 1.35;
}


.category-card span {
    font-size: 10px;
    color: var(--green);

    font-weight: 600;
}


/* =========================================================
   OFFER SECTION
   ========================================================= */

.offer {
    max-width: 1196px;

    margin: auto;

    display: grid;
    grid-template-columns: minmax(0,1fr) 43%;

    min-height: 270px;

    background: #eee8db;

    border-radius: 20px;

    overflow: hidden;
}


.offer > div:first-child {
    display: flex;
    flex-direction: column;
    justify-content: center;

    padding: 50px 60px;
}


.offer h2 {
    margin: 12px 0;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 38px;
    font-weight: 500;

    line-height: 1.15;
}


.offer p {
    margin: 0;

    color: var(--muted);

    font-size: 13px;
    line-height: 1.7;
}


.offer-image {
    min-height: 270px;

    background:
        url("../img/offer-bg.svg")
        center center / cover no-repeat;
}


/* =========================================================
   STORY SECTION
   ========================================================= */

.story {
    display: grid;

    grid-template-columns: minmax(0,1fr) minmax(0,1fr);

    background: #fff;

    border-radius: 20px;

    overflow: hidden;
}


.story-image {
    min-height: 390px;

    background:
        url("../img/story-bg.svg")
        center center / cover no-repeat;
}


.story-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;

    padding: 60px;
}


.story-copy h2 {
    margin: 12px 0;

    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(28px, 4.6vw, 39px);
    font-weight: 500;

    line-height: 1.15;
}


.story-copy p {
    margin: 0;

    color: var(--muted);

    font-size: 13px;
    line-height: 1.8;
}


.story-points {
    display: grid;

    grid-template-columns: minmax(0,1fr) minmax(0,1fr);

    gap: 12px;

    margin: 25px 0;

    font-size: 12px;
    font-weight: 700;
}


.story-points > div {
    padding: 10px 0;
}

/* Tablet: stack the story so the copy is not cramped beside the image */
@media (max-width: 900px) {
    .story {
        grid-template-columns: minmax(0,1fr);
    }

    .story-image {
        min-height: 300px;
    }
}


/* =========================================================
   NEWSLETTER
   ========================================================= */

.newsletter {
    background: var(--green-dark);

    color: #fff;

    padding:
        60px
        max(22px, calc((100% - 1196px) / 2));

    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 30px;
}


.newsletter h2 {
    margin: 10px 0;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 36px;
    font-weight: 500;

    line-height: 1.15;
}


.newsletter p {
    margin: 0;

    font-size: 13px;

    color: #d7ddd3;

    line-height: 1.6;
}


.newsletter form {
    width: 450px;

    max-width: 100%;

    display: flex;

    background: #fff;

    padding: 5px;

    border-radius: 4px;
}


.newsletter input {
    flex: 1;

    min-width: 0;

    border: 0;
    outline: 0;

    padding: 11px 12px;

    font-size: 13px;

    color: #222;

    background: transparent;
}


.newsletter input::placeholder {
    color: #999;
}


.newsletter button {
    border: 0;

    background: var(--ink);
    color: #fff;

    padding: 0 20px;

    border-radius: 3px;

    font-size: 12px;
    font-weight: 700;

    cursor: pointer;

    transition: opacity 0.2s ease;
}


.newsletter button:hover {
    opacity: 0.88;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1000px) {

    .hero-content {
        padding: 60px 45px;
    }


    .hero h1 {
        font-size: clamp(40px, 6vw, 58px);
    }


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


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


    .benefits > div:nth-child(2) {
        border-right: 0;
    }


    .benefits > div:nth-child(-n + 2) {
        padding-bottom: 14px;
    }


    .benefits > div:nth-child(n + 3) {
        padding-top: 14px;
        border-top: 1px solid var(--line);
    }


    .offer {
        grid-template-columns: minmax(0,1fr) 40%;
    }


    .offer > div:first-child {
        padding: 40px;
    }


    .story-copy {
        padding: 45px;
    }


    .newsletter {
        flex-direction: column;

        align-items: flex-start;
    }


    .newsletter form {
        width: 100%;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 700px) {

    .hero h1 {
        max-width: 100%;

        font-size: clamp(35px, 10vw, 48px);

        line-height: 1.05;

        letter-spacing: -0.8px;

        margin: 10px 0 14px;
    }


    .hero p {
        max-width: 100%;

        font-size: 13px;

        line-height: 1.65;
    }


    .hero-buttons {
        margin-top: 20px;

        gap: 8px;
    }


    .benefits {
        grid-template-columns: minmax(0,1fr) minmax(0,1fr);

        padding: 14px 12px;
    }


    .benefits > div {
        font-size: 11px;
    }


    .categories {
        grid-template-columns: repeat(2,minmax(0,1fr));

        gap: 10px;
    }


    .category-card {
        border-radius: 12px;
    }


    .category-card img {
        height: auto;
    }


    .category-card div {
        padding: 11px;
    }


    .category-card h3 {
        font-size: 14px;
    }


    .offer {
        grid-template-columns: minmax(0,1fr);

        min-height: auto;

        border-radius: 16px;
    }


    .offer > div:first-child {
        padding: 35px 25px;
    }


    .offer h2 {
        font-size: 30px;
    }


    .offer-image {
        min-height: 220px;
    }


    .story {
        grid-template-columns: minmax(0,1fr);

        border-radius: 16px;
    }


    .story-image {
        min-height: 280px;
    }


    .story-copy {
        padding: 35px 25px;
    }


    .story-points {
        grid-template-columns: minmax(0,1fr) minmax(0,1fr);

        gap: 8px;

        margin: 20px 0;
    }


    .newsletter {
        padding: 45px 22px;

        gap: 22px;
    }


    .newsletter h2 {
        font-size: 30px;
    }


    .newsletter form {
        width: 100%;
    }


    .newsletter input {
        padding: 11px 9px;
    }


    .newsletter button {
        padding: 0 14px;
    }
}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 420px) {

    .hero h1 {
        font-size: 34px;
    }


    .hero p {
        font-size: 12px;
    }


    .hero-buttons {
        flex-direction: column;

        align-items: stretch;
    }


    .hero-buttons .btn {
        width: 100%;

        text-align: center;
    }


    .categories {
        grid-template-columns: minmax(0,1fr) minmax(0,1fr);

        gap: 8px;
    }


    .category-card img {
        height: auto;
    }


    .category-card h3 {
        font-size: 13px;
    }


    .offer h2 {
        font-size: 27px;
    }


    .newsletter form {
        flex-direction: column;

        background: transparent;

        padding: 0;

        gap: 8px;
    }


    .newsletter input {
        width: 100%;

        background: #fff;

        border-radius: 4px;

        padding: 12px;
    }


    .newsletter button {
        min-height: 42px;
    }
}
/* =========================================================
   FINAL MOBILE HERO FIX
   ========================================================= */

@media (max-width: 700px) {

    .hero {
        width: 100%;
        max-width: 100%;
        margin: 8px auto 0;
        padding: 0 10px;
        overflow: hidden;
    }

    .hero-content {
        width: 100%;
        height: auto;
        min-height: 210px;
        aspect-ratio: 16 / 10;

        position: relative;
        overflow: hidden;

        border-radius: 16px;
        background: #f3f1ec;
    }

    /* Mobile-এ পুরো hero image দেখা যাবে */
    .hero-slide {
        width: 100%;
        height: 100%;

        object-fit: contain;
        object-position: center;

        background: #f3f1ec;
    }

    /* দুইটি button পাশাপাশি থাকবে */
    .hero-content .hero-buttons {
        position: absolute;

        left: 12px;
        right: 12px;
        bottom: 28px;

        width: auto;
        max-width: none;

        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;

        gap: 8px;
        margin: 0;

        z-index: 10;
    }

    .hero-content .hero-buttons .btn {
        width: auto;
        min-width: 0;

        padding: 12px 15px;
        margin: 0;

        font-size: 11px;
        white-space: nowrap;
        text-align: center;
    }

    /* Slider dots সবসময় দেখা যাবে */
    .hero-content .hero-dots {
        position: absolute;

        left: 50%;
        bottom: 10px;

        transform: translateX(-50%);

        z-index: 20;

        display: flex;
        align-items: center;
        justify-content: center;

        gap: 6px;

        width: auto;
        height: 12px;
    }

    .hero-content .hero-dot {
        position: relative;
        display: block;

        width: 7px;
        height: 7px;

        padding: 0;
        margin: 0;

        border: 0;
        border-radius: 50%;

        background: rgba(255,255,255,.75);

        opacity: 1;
        visibility: visible;
    }

    /* invisible larger tap area around each dot */
    .hero-content .hero-dot::after {
        content: "";
        position: absolute;
        inset: -10px -3px;
    }

    .hero-content .hero-dot.is-active {
        width: 22px;
        height: 7px;

        background: #fff;
        border-radius: 10px;
    }
}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 420px) {

    .hero {
        padding: 0 8px;
    }

    .hero-content {
        border-radius: 14px;
    }

    .hero-content .hero-buttons {
        left: 10px;
        right: 10px;
        bottom: 27px;

        gap: 7px;
    }

    .hero-content .hero-buttons .btn {
        padding: 11px 12px;
        font-size: 11px;
    }

    .hero-content .hero-dots {
        bottom: 9px;
    }
}
/* Logo: slightly larger, crisp, optional text beside it (size from Admin → Image Sizes) */
.brand-logo{display:block;height:52px;width:auto;max-width:100%;object-fit:contain;image-rendering:auto}
.brand .brand-text b{font-family:Georgia,"Times New Roman",serif;font-size:20px;line-height:1.2}

/* Very narrow phones: hero buttons wrap instead of being cut off */
@media (max-width: 340px) {
    .hero-content .hero-buttons { flex-wrap: wrap; }
}
