/*!
 * HomeBBD — Bibahabd-style homepage for Marriage Solution BD
 * Layout inspired by https://www.bibahabd.com/
 */
:root {
    --bbd-green: #008000;
    --bbd-green-dark: #006600;
    --bbd-red: #ec1921;
    --bbd-gold: #fab301;
    --bbd-orange: #ee4b2b;
    --bbd-dark: #1c2230;
    --bbd-muted: #777;
    --bbd-gray-bg: #f3f3f3;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body.bbd-page {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    color: #111;
    background: #fff;
}

a {
    text-decoration: none;
}

.bbd-custom-fluid {
    padding-right: 70px;
    padding-left: 70px;
}

/* Navbar */
.bbd-navbar {
    position: absolute;
    width: 100%;
    z-index: 10;
    padding: 14px 0;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.bbd-navbar .navbar-brand {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    padding: 6px 12px;
    line-height: 0;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
}

.bbd-navbar .navbar-brand img {
    height: 56px;
    width: auto;
    display: block;
}

.bbd-navbar .nav-link {
    color: #fff !important;
    margin-right: 20px;
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 0.04em;
}

.bbd-navbar .nav-link:hover {
    opacity: 0.85;
}

.bbd-login-btn {
    background: var(--bbd-green);
    color: #fff !important;
    padding: 10px 18px;
    border-radius: 5px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.bbd-login-btn i {
    color: inherit;
    font-size: 0.95em;
    line-height: 1;
}

.bbd-login-btn:hover {
    background: #000;
    color: #fff !important;
}

.bbd-dropdown {
    position: relative;
}

.bbd-dropdown-menu {
    position: absolute;
    top: 45px;
    left: 0;
    width: 240px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    padding: 10px 0;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 999;
    list-style: none;
}

.bbd-dropdown:hover .bbd-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.bbd-dropdown-menu a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 18px;
    color: #000;
    font-size: 16px;
}

.bbd-dropdown-menu a:hover {
    background: #f6f6f6;
}

.bbd-dropdown-menu .arrow {
    font-size: 20px;
}

/* Hero */
.bbd-hero {
    min-height: 100vh;
    height: 115vh;
    max-height: 920px;
    background: url('../img/homenew2/msbdhero-clear.jpg') center top / cover no-repeat;
    background-position: center 18%;
    position: relative;
    display: flex;
    align-items: center;
}

.bbd-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        rgba(0, 0, 0, 0.28) 0%,
        rgba(0, 0, 0, 0.18) 45%,
        rgba(0, 0, 0, 0.22) 100%
    );
}

.bbd-hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
    width: 100%;
    padding-top: 80px;
}

.bbd-hero-desc {
    display: inline-block;
    font-weight: 700;
    margin-top: 20px;
    color: #000;
    background: var(--bbd-gold);
    padding: 8px 15px;
    border-radius: 4px;
    margin-bottom: 16px;
}

.bbd-hero-title {
    font-size: 56px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
}

.bbd-hero-title span {
    color: var(--bbd-red);
}

.bbd-search-card {
    background: rgba(28, 28, 28, 0.8);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.bbd-search-card h4 {
    color: #fff;
    text-align: center;
    font-weight: 600;
    margin-bottom: 12px;
}

.bbd-modify-hr {
    width: 50%;
    margin: 0 auto 20px;
    border: 0;
    border-top: 1px solid #fff;
}

.bbd-search-card .form-label {
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.03em;
}

.bbd-search-card .form-select {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px 12px;
    width: 100%;
}

.bbd-search-btn {
    background: var(--bbd-green);
    border: none;
    width: 100%;
    padding: 12px;
    margin-top: 15px;
    color: #fff;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.bbd-search-btn:hover {
    background: #000;
    color: #fff;
}

/* Process */
.bbd-process {
    background: var(--bbd-gray-bg);
    padding: 80px 0;
}

.bbd-process-item {
    position: relative;
    padding: 40px 20px;
    text-align: center;
}

.bbd-bg-number {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 130px;
    font-weight: 700;
    color: transparent;
    -webkit-text-stroke: 1px #cfcfcf;
    opacity: 0.6;
    line-height: 1;
    z-index: 1;
}

.bbd-process-item h3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
    position: relative;
    z-index: 2;
}

.bbd-process-item h3 a {
    color: #000;
}

.bbd-process-item h3 a:hover {
    color: var(--bbd-green);
}

.bbd-process-item p {
    color: var(--bbd-muted);
    font-size: 15px;
    position: relative;
    z-index: 2;
    max-width: 300px;
    margin: auto;
}

/* CTA bars */
.bbd-cta {
    background: var(--bbd-gold);
    padding: 50px 0;
    color: #000;
}

.bbd-cta--red {
    background: var(--bbd-orange);
    color: #fff;
}

.bbd-cta--red .bbd-small-title {
    color: rgba(255, 255, 255, 0.9);
}

.bbd-small-title {
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #000;
    margin-bottom: 10px;
}

.bbd-cta h2 {
    font-size: 34px;
    font-weight: 700;
    margin: 0;
}

.bbd-cta-btn {
    background: var(--bbd-green);
    color: #fff;
    padding: 14px 28px;
    border-radius: 6px;
    font-weight: 600;
    display: inline-block;
    transition: 0.3s;
}

.bbd-cta-btn:hover {
    background: #000;
    color: #fff;
}

/* Testimonials */
.bbd-testimonial {
    background: var(--bbd-gray-bg);
    padding-bottom: 70px;
}

.bbd-section-title {
    padding-top: 60px;
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    color: var(--bbd-dark);
    margin-bottom: 8px;
}

.bbd-section-subtitle {
    text-align: center;
    color: var(--bbd-muted);
    margin-bottom: 12px;
}

.bbd-underline {
    width: 60px;
    height: 3px;
    background: var(--bbd-green);
    margin: 0 auto 40px;
    border-radius: 10px;
}

.bbd-slider {
    position: relative;
}

.bbd-slide {
    display: none;
}

.bbd-slide.is-active {
    display: block;
    animation: bbdFade 0.45s ease;
}

@keyframes bbdFade {
    from { opacity: 0.4; }
    to { opacity: 1; }
}

.bbd-slide-content {
    display: flex;
    align-items: center;
    position: relative;
}

.bbd-image-box {
    flex: 0 0 65%;
}

.bbd-image-box img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    object-position: center top;
    border-radius: 8px;
}

.bbd-text-box {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 45%;
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    z-index: 2;
}

.bbd-text-box h3 {
    font-size: 26px;
    margin-bottom: 10px;
}

.bbd-text-box h3 a {
    color: #000;
}

.bbd-text-box p {
    color: #555;
    line-height: 1.6;
}

.bbd-text-box span {
    display: block;
    margin-top: 15px;
    font-size: 12px;
    letter-spacing: 2px;
    color: var(--bbd-green);
    text-transform: uppercase;
}

.bbd-nav-wrapper {
    position: absolute;
    top: calc(50% + 150px);
    right: 0;
    width: 30%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 3;
}

.bbd-dots {
    display: flex;
    gap: 6px;
}

.bbd-dots button {
    width: 8px;
    height: 8px;
    background: #ccc;
    border-radius: 50%;
    border: none;
    padding: 0;
    cursor: pointer;
}

.bbd-dots button.is-active {
    background: var(--bbd-green);
}

.bbd-controls {
    display: flex;
    gap: 10px;
}

.bbd-controls button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: #e5e5e5;
    cursor: pointer;
    color: #333;
}

.bbd-controls button:hover,
.bbd-controls button:last-child {
    background: var(--bbd-green);
    color: #fff;
}

/* Tags */
.bbd-tags-sec {
    max-width: 1050px;
    margin: 0 auto;
    padding: 40px 20px 20px;
    text-align: center;
}

.bbd-tags-sec .bbd-section-title {
    padding-top: 20px;
}

.bbd-category {
    margin-bottom: 30px;
}

.bbd-category h3 {
    font-size: 16px;
    margin-bottom: 15px;
    font-weight: 600;
}

.bbd-divider {
    height: 1px;
    background: #e5e5e5;
    margin: 25px 0;
}

.bbd-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.bbd-tag {
    padding: 8px 16px;
    background: #eee;
    border-radius: 6px;
    font-size: 14px;
    color: #555;
    transition: 0.3s;
    border: 1px solid transparent;
    display: inline-block;
}

.bbd-tag:hover,
.bbd-tag.is-more {
    background: var(--bbd-green);
    color: #fff;
}

.bbd-tag.is-more {
    font-weight: 700;
}

/* Legacy */
.bbd-legacy {
    padding: 80px 0;
    background: var(--bbd-gold);
    margin-top: 70px;
}

.bbd-legacy-title {
    font-size: 34px;
    color: #000;
    margin-bottom: 20px;
    font-weight: 700;
}

.bbd-legacy-text {
    color: #000;
    text-align: justify;
    font-size: 17px;
    line-height: 1.8;
    max-width: 670px;
}

.bbd-legacy-btn {
    margin-top: 35px;
    background: var(--bbd-green);
    color: #fff;
    padding: 12px 28px;
    border-radius: 6px;
    font-size: 15px;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: inline-block;
}

.bbd-legacy-btn:hover {
    background: #000;
    color: #fff;
}

.bbd-legacy-img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    object-position: center top;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

/* Offices */
.bbd-offices {
    padding: 80px 0;
    text-align: center;
    background: var(--bbd-gray-bg);
}

.bbd-title-underline {
    width: 50px;
    height: 3px;
    background: var(--bbd-green);
    margin: 15px auto 40px;
    border-radius: 10px;
}

.bbd-office-card {
    background: #fff;
    padding: 30px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: 0.3s;
    height: 100%;
    text-align: left;
}

.bbd-office-card:hover {
    transform: translateY(-5px);
}

.bbd-office-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--bbd-dark);
    margin-bottom: 10px;
}

.bbd-office-address {
    font-size: 14px;
    color: #6f6f6f;
    line-height: 1.6;
}

.bbd-office-phone {
    margin-top: 15px;
    font-size: 14px;
    color: var(--bbd-green);
    font-weight: 500;
}

.bbd-office-phone a {
    color: inherit;
}

/* Banner */
.bbd-banner {
    background: url('../img/homenew2/opt3-muslim-red.jpg') no-repeat center top / cover;
    background-position: center 20%;
    min-height: 45vh;
    position: relative;
    color: #fff;
    display: flex;
    align-items: center;
}

.bbd-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.bbd-banner-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

.bbd-banner small {
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.85;
}

.bbd-banner h2 {
    font-size: 42px;
    margin: 20px 0;
    font-weight: 700;
}

.bbd-btn-gold {
    background-color: var(--bbd-green);
    color: #fff;
    padding: 12px 25px;
    border-radius: 6px;
    border: none;
    transition: 0.3s;
    display: inline-block;
    font-weight: 600;
}

.bbd-btn-gold:hover {
    background: #000;
    color: #fff;
}

/* Footer */
.bbd-footer {
    background-color: #000;
    color: #ccc;
    padding: 60px 0 20px;
}

.bbd-footer h6 {
    color: var(--bbd-green);
    margin-bottom: 20px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 14px;
}

.bbd-footer a {
    display: block;
    color: #aaa;
    margin-bottom: 10px;
    transition: 0.3s;
    font-size: 14px;
}

.bbd-footer a:hover {
    color: #fff;
}

.bbd-footer-bottom {
    color: #fff;
    margin-top: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #1f2a3a;
    flex-wrap: wrap;
    gap: 16px;
}

.bbd-footer-left {
    font-size: 14px;
}

.bbd-footer-right {
    display: flex;
    gap: 10px;
}

.bbd-footer-right a {
    width: 36px;
    height: 36px;
    border: 1px solid var(--bbd-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: var(--bbd-green);
    margin: 0;
}

.bbd-footer-right a:hover {
    background: transparent;
    color: #fff;
}

/* WhatsApp float */
.bbd-float-wp {
    position: fixed;
    bottom: 40px;
    left: 20px;
    z-index: 100;
    border-radius: 50px;
}

.bbd-float-wp span {
    display: flex;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.45);
}

.bbd-scroll-top {
    position: fixed;
    right: 20px;
    bottom: 40px;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: var(--bbd-green);
    color: #fff;
    cursor: pointer;
    z-index: 99;
    display: none;
}

.bbd-scroll-top.is-visible {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Responsive */
@media (max-width: 991px) {
    .bbd-custom-fluid {
        padding-right: 20px;
        padding-left: 20px;
    }

    .bbd-hero {
        height: auto;
        min-height: 100vh;
        max-height: none;
        padding: 120px 0 60px;
    }

    .bbd-hero-title {
        font-size: 36px;
        margin-bottom: 28px;
    }

    .bbd-search-card {
        margin-top: 24px;
    }

    .bbd-slide-content {
        flex-direction: column;
    }

    .bbd-image-box {
        flex: 1 1 100%;
        width: 100%;
    }

    .bbd-image-box img {
        height: 280px;
    }

    .bbd-text-box {
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        width: 100%;
        margin-top: -40px;
    }

    .bbd-nav-wrapper {
        position: relative;
        top: auto;
        right: auto;
        width: 100%;
        margin-top: 20px;
    }

    .bbd-cta h2,
    .bbd-banner h2,
    .bbd-section-title {
        font-size: 28px;
    }

    .bbd-navbar .navbar-collapse {
        background: rgba(0, 0, 0, 0.92);
        padding: 16px;
        border-radius: 8px;
        margin-top: 12px;
    }

    .bbd-dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        width: 100%;
        display: none;
        background: transparent;
    }

    .bbd-dropdown.is-open .bbd-dropdown-menu {
        display: block;
    }

    .bbd-dropdown-menu a {
        color: #fff;
    }
}

@media (max-width: 576px) {
    .bbd-custom-fluid {
        padding-right: 12px;
        padding-left: 12px;
    }

    .bbd-hero {
        padding: 100px 0 40px;
        min-height: auto;
    }

    .bbd-hero-title {
        font-size: 26px;
        margin-bottom: 18px;
    }

    .bbd-hero-title br {
        display: none;
    }

    .bbd-hero-desc {
        font-size: 13px;
        padding: 6px 10px;
    }

    .bbd-search-card {
        padding: 16px;
        margin-top: 16px;
    }

    .bbd-search-card h4 {
        font-size: 16px;
    }

    .bbd-search-btn {
        padding: 12px;
        font-size: 15px;
    }

    .bbd-process,
    .bbd-legacy,
    .bbd-cta,
    .bbd-banner,
    .bbd-testimonials {
        padding-top: 36px;
        padding-bottom: 36px;
    }

    .bbd-bg-number {
        font-size: 48px;
        opacity: 0.15;
    }

    .bbd-legacy-img {
        height: auto;
        max-height: 240px;
        object-fit: cover;
        width: 100%;
    }

    .bbd-cta .row,
    .bbd-cta {
        text-align: center;
    }

    .bbd-cta .btn,
    .bbd-cta a.btn,
    .bbd-cta .bbd-cta-btn {
        display: inline-block;
        width: 100%;
        max-width: 320px;
        margin-top: 8px;
    }

    .bbd-image-box img {
        height: 220px;
    }

    .bbd-cta h2,
    .bbd-banner h2,
    .bbd-section-title {
        font-size: 22px;
    }

    .bbd-footer .row > [class*="col-"] {
        margin-bottom: 16px;
    }
}
