/* =====================================================
   Jannatimatrimony WEBSITE
   CLEAN & FIXED STYLE.CSS
===================================================== */


/* =====================================================
   GOOGLE FONT
===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Bengali:wght@400;500;600;700;800&display=swap');


/* =====================================================
   RESET
===================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Noto Sans Bengali", sans-serif;
    color: #1f2937;
    background: #ffffff;
    line-height: 1.7;
}

a {
    text-decoration: none;
    color: inherit;
}

button,
input,
select,
textarea {
    font-family: inherit;
}

button {
    cursor: pointer;
}

img {
    max-width: 100%;
    display: block;
}


/* =====================================================
   ROOT
===================================================== */

:root {
    --primary: #147a55;
    --primary-dark: #075c3d;
    --light-green: #eaf7f0;
    --cream: #fffaf1;
    --text: #1f2937;
    --muted: #6b7280;
    --white: #ffffff;
    --border: #e5e7eb;
    --shadow: 0 10px 35px rgba(0,0,0,.08);
}


/* =====================================================
   CONTAINER
===================================================== */

.container {
    width: min(1200px, 94%);
    margin: 0 auto;
}


/* =====================================================
   HEADER
===================================================== */

.header {
    position: sticky;
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid #e8eee9;
    position: sticky;
    top: 0;
    z-index: 9999;
}

.nav {
    min-height: 70px;
    display: flex;
    align-items: center;
    gap: 20px;
}


/* LOGO */

.logo {
    color: #087443;
    font-size: 24px;
    font-weight: 800;
    white-space: nowrap;
}


/* DESKTOP MENU */

.desktop-menu {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: auto;
}

.desktop-menu a {
    color: #333333;
    font-size: 15px;
    font-weight: 600;
    transition: .2s ease;
}

.desktop-menu a:hover {
    color: #087443;
}


/* =====================================================
   AUTH BUTTONS
===================================================== */

.auth-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 5px;
}

.login-btn,
.register-btn {
    text-decoration: none;
    padding: 9px 15px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    transition: .2s ease;
}

.login-btn {
    color: #087443;
    border: 1px solid #087443;
    background: #ffffff;
}

.login-btn:hover {
    background: #087443;
    color: #ffffff;
}

.register-btn {
    color: #ffffff;
    background: #087443;
    border: 1px solid #087443;
}

.register-btn:hover {
    background: #065d36;
}


/* =====================================================
   USER MENU
===================================================== */

.user-menu {
    position: relative;
    display: none;
    margin-left: 5px;
}

.profile-btn {
    border: 1px solid #dce7df;
    background: #f7faf8;
    color: #087443;
    padding: 10px 14px;
    border-radius: 9px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;

    display: flex;
    align-items: center;
    gap: 7px;

    transition: .2s ease;
}  

.profile-btn:hover {
    background: #087443;
    color: #ffffff;
}

.arrow {
    font-size: 18px;
    line-height: 10px;
    transition: transform .2s ease;
}

.user-menu.active .arrow {
    transform: rotate(180deg);
}


/* =====================================================
   DROPDOWN
===================================================== */

.dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;

    width: 230px;

    background: #ffffff;
    border: 1px solid #e5ebe7;
    border-radius: 12px;

    box-shadow:
        0 10px 35px rgba(0,0,0,.12);

    padding: 7px;

    display: none;

    animation: dropdownShow .18s ease;
}


.user-menu.active .dropdown {
    display: block;
}

@keyframes dropdownShow {

    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}

.dropdown a,
.dropdown button {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 8px;

    padding: 11px 12px;

    border: none;
    background: transparent;

    color: #333333;
    text-decoration: none;

    border-radius: 7px;

    font-family: inherit;
    font-size: 14px;

    cursor: pointer;
    text-align: left;

    transition: .2s ease;
}

.dropdown a:hover,
.dropdown button:hover {
    background: #f0f8f3;
    color: #087443;
}

.dropdown button:last-child {
    color: #d62828;
    border-top: 1px solid #eeeeee;
    margin-top: 5px;
    padding-top: 13px;
}

.dropdown button:last-child:hover {
    background: #fff1f1;
    color: #c1121f;
}


/* =====================================================
   MOBILE MENU BUTTON
===================================================== */

.menu-btn {
    display: none;

    border: none;
    background: transparent;

    font-size: 25px;

    cursor: pointer;
    color: #087443;
}


/* =====================================================
   MOBILE MENU
===================================================== */

.mobile-menu {
    display: none;

    position: fixed;

    top: 70px;
    left: 0;

    width: 280px;
    height: calc(100vh - 70px);

    background: #ffffff;

    z-index: 999;

    box-shadow: var(--shadow);

    padding: 20px;
}

.mobile-menu.show {
    display: block;
}

.mobile-menu a {
    display: block;

    padding: 13px;

    border-bottom: 1px solid var(--border);
}


/* =====================================================
   GENERAL BUTTON
===================================================== */

.btn {
    border: none;
    cursor: pointer;

    padding: 10px 18px;

    border-radius: 9px;

    font-weight: 700;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    transition: .25s ease;
}

.btn-primary {
    background: var(--primary);
    color: #ffffff;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-outline {
    border: 1px solid var(--primary);
    color: var(--primary);
    background: #ffffff;
}

.btn-outline:hover {
    background: var(--light-green);
}

.btn-white {
    background: #ffffff;
    color: var(--primary);
}

.btn-large {
    padding: 13px 24px;
}

.full {
    width: 100%;
}


/* =====================================================
   HERO BUTTONS
===================================================== */

.hero-action-buttons {
    width: 100%;

    display: flex;
    justify-content: center;
    align-items: center;

    gap: 15px;

    margin: 30px auto 0;

    text-align: center;
}

.hero-btn {
    display: inline-flex;

    justify-content: center;
    align-items: center;

    min-width: 190px;

    padding: 14px 24px;

    border-radius: 12px;

    text-decoration: none;

    font-size: 16px;
    font-weight: 700;

    line-height: 1.4;

    transition:
        transform .25s ease,
        box-shadow .25s ease,
        background .25s ease;

    cursor: pointer;
}

.hero-btn-primary {
    color: #ffffff;
    background: #087443;
    border: 2px solid #087443;

    box-shadow:
        0 6px 18px rgba(8,116,67,.20);
}

.hero-btn-white {
    color: #ffffff;
    background: #7b076a;
    border: 2px solid #ffffff;

    box-shadow:
        0 6px 18px rgba(0,0,0,.12);
}

.hero-btn:hover {
    transform: translateY(-3px);

    box-shadow:
        0 10px 25px rgba(0,0,0,.16);
}

.hero-btn-primary:hover {
    background: #086e31;
    border-color: #ffffff;
}

.hero-btn-white:hover {
    background: #037435;
    color: #ffffff;
}


/* =====================================================
   HADIS
===================================================== */

.hadis {
    max-width: 850px;

    margin: 30px auto;

    padding: 2px 3px;

    background:
        linear-gradient(
            135deg,
            #ffffff,
            #f3faf6
        );

    border: 1px solid #d9ebe2;

    border-left: 5px solid #176b4f;

    border-radius: 18px;

    box-shadow:
        0 10px 30px rgba(23,107,79,.10);

    position: relative;

    text-align: center;

    transition: all .3s ease;
}

.hadis::before {
    content: "﷽";

    display: block;

    font-size: 25px;

    color: #176b4f;

    margin-bottom: 12px;
}

.hadis h5 {
    margin: 0;

    color: #294d3e;

    font-size: 14px;

    line-height: 2;

    font-weight: 600;
}

.hadis::after {
    content: "❖";

    display: block;

    color: #2c9a70;

    font-size: 18px;

    margin-top: 14px;
}

.hadis:hover {
    transform: translateY(-3px);

    box-shadow:
        0 15px 35px rgba(23,107,79,.15);
}


/* =====================================================
   GENERAL SECTION
===================================================== */

section {
    padding: 20px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title span {
    color: var(--primary);
    font-weight: 700;
}

.section-title h2 {
    font-size: 34px;
    margin: 4px 0;
}

.section-title p {
    color: var(--muted);
}


/* =====================================================
   HOW IT WORKS
===================================================== */

.how-section {
    position: relative;

    padding: 70px 20px;

    background:
        linear-gradient(
            135deg,
            #f0fdf4 0%,
            #ffffff 50%,
            #ecfdf5 100%
        );

    overflow: hidden;
}

.how-section::before {
    content: "";

    position: absolute;

    width: 260px;
    height: 260px;

    top: -130px;
    left: -100px;

    border-radius: 50%;

    background: rgba(34,197,94,.07);
}

.how-section::after {
    content: "";

    position: absolute;

    width: 230px;
    height: 230px;

    right: -100px;
    bottom: -120px;

    border-radius: 50%;

    background: rgba(22,163,74,.06);
}

.how-section .section-title {
    position: relative;

    z-index: 2;

    text-align: center;

    margin-bottom: 45px;
}

.how-section .section-title h2 {
    margin: 0;

    color: #14532d;

    font-size: 32px;

    font-weight: 800;

    line-height: 1.4;
}

.how-section .section-title h2::after {
    content: "";

    display: block;

    width: 65px;
    height: 4px;

    margin: 12px auto 0;

    border-radius: 20px;

    background:
        linear-gradient(
            90deg,
            #15803d,
            #4ade80
        );
}


/* STEPS */

.steps {
    position: relative;

    z-index: 2;

    max-width: 1150px;

    margin: 0 auto;

    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 22px;
}

.step {
    position: relative;

    min-height: 175px;

    padding: 32px 20px 25px;

    text-align: center;

    background: rgba(255,255,255,.95);

    border: 1px solid #d1fae5;

    border-radius: 22px;

    box-shadow:
        0 8px 25px rgba(20,83,45,.08);

    transition:
        transform .35s ease,
        box-shadow .35s ease,
        border-color .35s ease;

    overflow: hidden;
}

.step::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 4px;

    background:
        linear-gradient(
            90deg,
            #15803d,
            #22c55e,
            #4ade80
        );
}

.step:hover {
    transform: translateY(-10px);

    border-color: #86efac;

    box-shadow:
        0 18px 40px rgba(22,101,52,.16);
}

.step h3 {
    position: relative;

    z-index: 2;

    margin: 0 0 13px;

    color: #166534;

    font-size: 19px;

    font-weight: 800;

    line-height: 1.5;
}

.step p {
    position: relative;

    z-index: 2;

    margin: 0;

    color: #64748b;

    font-size: 14px;

    line-height: 1.8;
}

.step > div {
    font-size: 38px;
    margin: 15px 0;
}

.step > span {
    color: var(--primary);
    font-weight: 800;
}


/* =====================================================
   SEARCH SECTION
===================================================== */

.search-section {
    padding: 35px 15px;

    background: #f7faf8;
}

.search-section .container {
    max-width: 1200px;

    margin: auto;
}

.search-section .section-title {
    text-align: center;

    margin-bottom: 22px;
}

.search-section .section-title h2 {
    margin: 0;

    color: #166534;

    font-size: 28px;

    font-weight: 700;
}


/* SEARCH BOX */

.search-box {
    width: 100%;

    max-width: 1200px;

    margin: auto;

    display: flex;

    align-items: center;

    gap: 10px;

    padding: 15px;

    background: #ffffff;

    border: 1px solid #e5ebe7;

    border-radius: 18px;

    box-shadow:
        0 8px 30px rgba(0,0,0,.07);
}

.search-box select {
    height: 48px;

    flex: 1;

    min-width: 0;

    padding: 0 14px;

    border: 1px solid #d8e2dc;

    border-radius: 10px;

    background: #ffffff;

    color: #333333;

    font-family: inherit;

    font-size: 15px;

    outline: none;

    cursor: pointer;

    transition: all .2s ease;
}

.search-box select:hover {
    border-color: #198754;
}

.search-box select:focus {
    border-color: #198754;

    box-shadow:
        0 0 0 3px rgba(25,135,84,.10);
}

.search-box .btn {
    height: 48px;

    min-width: 115px;

    padding: 0 18px;

    border: none;

    border-radius: 10px;

    font-family: inherit;

    font-size: 15px;

    font-weight: 600;

    white-space: nowrap;

    cursor: pointer;
}


/* =====================================================
   PACKAGES
===================================================== */

.packages-section {
    padding: 40px 20px;

    background:
        linear-gradient(
            135deg,
            #f0fdf4,
            #ffffff
        );
}

.package-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 25px;

    max-width: 1100px;

    margin: auto;
}

.package-card {
    position: relative;

    text-align: center;

    padding: 35px 25px;

    border-radius: 22px;

    background: #ffffff;

    border: 1px solid #dcfce7;

    box-shadow:
        0 10px 35px rgba(0,0,0,.08);

    transition: all .3s ease;

    overflow: hidden;
}

.package-card:hover {
    transform: translateY(-10px);

    box-shadow:
        0 18px 45px rgba(22,101,52,.18);
}

.package-card::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 5px;

    background:
        linear-gradient(
            90deg,
            #16a34a,
            #22c55e,
            #15803d
        );
}

.package-card h3 {
    font-size: 25px;

    color: #166534;

    margin: 10px 0 15px;
}

.package-card .price {
    font-size: 42px;

    font-weight: 800;

    color: #15803d;

    margin: 15px 0;
}

.package-card > p {
    font-size: 16px;

    color: #475569;

    font-weight: 600;
}

.package-card ul {
    list-style: none;

    padding: 0;

    margin: 25px 0;
}

.package-card li {
    color: #334155;

    padding: 8px 0;

    font-size: 15px;
}

.package-card .btn,
.package-card .btn-outline,
.package-card .btn-primary {
    display: block;

    width: 100%;

    padding: 14px 20px;

    border-radius: 12px;

    background:
        linear-gradient(
            135deg,
            #16a34a,
            #15803d
        );

    color: #ffffff !important;

    border: none;

    text-decoration: none;

    font-weight: 700;

    box-shadow:
        0 6px 15px rgba(22,163,74,.25);
}

.package-card .btn:hover,
.package-card .btn-outline:hover,
.package-card .btn-primary:hover {
    background:
        linear-gradient(
            135deg,
            #15803d,
            #166534
        );

    transform: translateY(-2px);
}

.package-card.popular {
    border: 2px solid #22c55e;

    background:
        linear-gradient(
            180deg,
            #f0fdf4,
            #ffffff
        );

    transform: scale(1.03);
}

.package-card.popular:hover {
    transform: scale(1.03) translateY(-10px);
}

.popular-label {
    position: absolute;

    top: 15px;
    right: -35px;

    width: 140px;

    padding: 7px 0;

    background: #16a34a;

    color: #ffffff;

    font-size: 13px;

    font-weight: 700;

    transform: rotate(45deg);

    box-shadow:
        0 4px 10px rgba(0,0,0,.15);
}


/* =====================================================
   FOOTER
===================================================== */

.simple-footer {
    background: #10382d;

    color: #ffffff;

    margin-top: 50px;
}

.simple-footer-content {
    max-width: 1100px;

    margin: auto;

    padding: 35px 20px 20px;

    text-align: center;
}

.footer-logo {
    font-size: 24px;

    font-weight: 700;

    margin-bottom: 8px;
}

.simple-footer p {
    margin: 0 0 20px;

    color: #c8d9d3;

    font-size: 14px;
}

.footer-links {
    display: flex;

    justify-content: center;

    flex-wrap: wrap;

    gap: 20px;

    margin-bottom: 25px;
}

.footer-links a {
    color: #dce9e4;

    text-decoration: none;

    font-size: 14px;
}

.footer-links a:hover {
    color: #ffffff;

    text-decoration: underline;
}

.footer-copy {
    border-top: 1px solid rgba(255,255,255,.12);

    padding-top: 18px;

    color: #a9c0b8;

    font-size: 12px;
}


/* =====================================================
   TABLET
===================================================== */

@media (max-width: 950px) {

    .steps {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .pj-stats-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .package-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}


/* =====================================================
   MOBILE 768
===================================================== */

@media (max-width: 768px) {

    .nav {
        min-height: 62px;

        gap: 10px;
    }

    .menu-btn {
        display: block;

        order: 1;
    }

    .logo {
        order: 2;

        font-size: 21px;
    }

    .desktop-menu {
        display: none;
    }

    .auth-buttons,
    .user-menu {
        margin-left: auto;

        order: 3;
    }

    .login-btn,
    .register-btn {
        padding: 8px 10px;

        font-size: 13px;
    }

    .profile-btn {
        padding: 8px 11px;

        font-size: 13px;
    }


    /* SEARCH */

    .search-box {
        display: grid;

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 10px;

        padding: 12px;

        border-radius: 16px;
    }

    .search-box select {
        width: 100%;

        height: 46px;

        font-size: 14px;

        padding: 0 10px;
    }

    .search-box .btn {
        width: 100%;

        min-width: 0;

        height: 46px;

        font-size: 14px;
    }


    /* PACKAGES */

    .package-grid {
        grid-template-columns: 1fr;

        max-width: 500px;
    }

    .package-card.popular {
        transform: none;
    }

    .package-card.popular:hover {
        transform: translateY(-8px);
    }


    /* HOW IT WORKS */

    .how-section {
        padding: 50px 12px;
    }

    .how-section .section-title {
        margin-bottom: 35px;
    }

    .how-section .section-title h2 {
        font-size: 24px;
    }

    .steps {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 12px;
    }

    .step {
        min-height: 145px;

        padding: 24px 10px 20px;

        border-radius: 17px;
    }

    .step h3 {
        font-size: 14px;

        line-height: 1.5;

        margin-bottom: 8px;
    }

    .step p {
        font-size: 11px;

        line-height: 1.65;
    }

    
    /* HERO */

    .hero-action-buttons {
        flex-direction: column;

        gap: 12px;

        margin-top: 25px;
    }

    .hero-btn {
        width: min(90%, 330px);

        min-width: 0;

        padding: 13px 18px;

        font-size: 15px;
    }



    /* FOOTER */

    .simple-footer-content {
        padding: 28px 15px 18px;
    }

    .footer-logo {
        font-size: 22px;
    }

    .simple-footer p {
        font-size: 13px;

        line-height: 1.6;
    }

    .footer-links {
        gap: 10px 18px;

        margin-bottom: 20px;
    }

    .footer-links a {
        font-size: 13px;
    }

    .footer-copy {
        font-size: 11px;
    }

}


/* =====================================================
   SMALL MOBILE
===================================================== */

@media (max-width: 420px) {

    .nav {
        gap: 7px;
    }

    .logo {
        font-size: 19px;
    }

    .login-btn,
    .register-btn {
        padding: 7px 8px;

        font-size: 12px;
    }

    .profile-btn {
        padding: 7px 9px;

        font-size: 12px;
    }

    .dropdown {
        position: fixed;

        top: 65px;

        right: 8px;

        width: 220px;

        max-width: calc(100vw - 16px);
    }


    /* SEARCH */

    .search-section {
        padding-left: 8px;
        padding-right: 8px;
    }

    .search-box {
        gap: 8px;

        padding: 10px;

        border-radius: 14px;
    }

    .search-box select {
        height: 44px;

        font-size: 13px;

        padding: 0 8px;
    }

    .search-box .btn {
        height: 44px;

        font-size: 13px;
    }


    /* STEPS */

    .steps {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 9px;
    }

    .step {
        min-height: 140px;

        padding: 22px 7px 18px;
    }

    .step h3 {
        font-size: 13px;
    }

    .step p {
        font-size: 10px;
    }

}


/* =====================================================
   VERY SMALL MOBILE
===================================================== */

@media (max-width: 350px) {

    .logo {
        font-size: 18px;
    }

    .login-btn,
    .register-btn {
        padding: 6px 6px;

        font-size: 11px;
    }


}

