/* ================== Universal Box Sizing ================== */
/* ✔️✔️ এই অংশটি হরিজন্টাল স্ক্রলবার সমস্যার সমাধান করবে */
*, *::before, *::after {
    box-sizing: border-box;
}

/* ================== General Styles ================== */
body {
    font-family: 'SolaimanLipi', Arial, sans-serif;
    margin: 0;
    background-color: #f9f9f9;
    color: #333;
    overflow-x: hidden; /* অতিরিক্ত নিরাপত্তা হিসেবে স্ক্রলবার হাইড করা হলো */
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ================== Header Styles ================== */
header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 50px;
    background-color: #f0f0f0;
    font-size: 14px;
}
.header-top a {
    text-decoration: none;
    color: #333;
    background-color: #fff;
    padding: 4px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
}
.header-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 50px;
}
.logo { height: 60px; }
nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}
nav ul li a {
    text-decoration: none;
    color: #333;
    padding: 10px 15px;
    font-weight: bold;
    display: block;
}
nav ul li a:hover { color: #28a745; }
.login-btn {
    background-color: #28a745;
    color: white !important;
    border-radius: 5px;
}

/* ================== Hero Section ================== */
.hero-section {
    display: flex;
    gap: 20px;
    padding: 30px 50px;
    background: url('https://land.gov.bd/themes/land-gov/images/bg_top.png') no-repeat center center/cover;
}
.banner {
    width: 65%;
    position: relative;
}
.banner img {
    width: 100%;
    border-radius: 8px;
    min-height: 100%;
    object-fit: cover;
}
.slider-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
}
.dot {
    display: inline-block;
    height: 12px;
    width: 12px;
    margin: 0 5px;
    background-color: #bbb;
    border-radius: 50%;
    cursor: pointer;
}
.dot.active { background-color: #717171; }

.helpline {
    width: 35%;
    text-align: center;
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.helpline h2 {
    font-size: 48px;
    color: #28a745;
    margin: 5px 0;
}
.helpline img {
    height: 100px;
    margin-top: 15px;
}

/* ================== Services Section ================== */
.services-section {
    text-align: center;
    padding: 40px 50px;
}
.services-section h2 { font-size: 28px; }
.service-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 30px;
}
.service-box {
    padding: 30px 15px;
    border-radius: 8px;
    color: white;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s;
}
.service-box:hover {
    transform: translateY(-5px);
}
.service-box.color-1 { background-color: #2E90A8; }
.service-box.color-2 { background-color: #2953A5; }
.service-box.color-3 { background-color: #39A9B6; }
.service-box.color-4 { background-color: #D24263; }
.service-box.color-5 { background-color: #CA4E4A; }
.service-box.color-6 { background-color: #7D51A0; }
.service-box.color-7 { background-color: #C3783F; }
.service-box.color-8 { background-color: #933E4D; }
.mouja-map-btn {
    margin-top: 30px;
    padding: 12px 25px;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
}

/* ================== FAQ Section ================== */
.faq-section {
    padding: 40px 50px;
    background: url('https://land.gov.bd/themes/land-gov/images/faq-bg.png') no-repeat center center/cover;
}
.faq-section h2 {
    text-align: center;
    font-size: 28px;
    margin-bottom: 30px;
}
.faq-container {
    display: flex;
    gap: 30px;
    align-items: center;
}
.faq-left { width: 60%; }
.faq-right { width: 40%; text-align: center;}
.faq-right img { max-width: 80%; }
.faq-item {
    margin-bottom: 10px;
}
.faq-question {
    width: 100%;
    background-color: #fff;
    border: 1px solid #ddd;
    padding: 15px;
    text-align: left;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 5px;
}
.faq-icon { font-size: 20px; font-weight: bold; }
.faq-answer {
    padding: 15px;
    background-color: #f9f9f9;
    display: none; /* Hidden by default */
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 5px 5px;
}
.more-btn {
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

/* ================== Footer ================== */
footer {
    background-color: #EAF3EB;
}
.footer-main {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap; 
    padding: 30px 50px;
    gap: 20px;
}
.footer-column {
    width: 22%;
}
.footer-column h4 {
    margin-top: 0;
    color: #006837;
}
.footer-column ul {
    list-style: none;
    padding: 0;
}
.footer-column ul li a {
    text-decoration: none;
    color: #333;
    line-height: 2;
}
.app-store-img {
    height: 40px;
    margin-bottom: 10px;
}
.social-icons {
    display: flex;
    gap: 15px;
}
.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #006837;
    color: white;
    border-radius: 50%;
    text-decoration: none;
    font-size: 18px;
}
.footer-bottom {
    text-align: center;
    padding: 15px;
    background-color: #DFEBDF;
    font-size: 14px;
}

/* Footer Implementation Section Fix */
.implementation-section {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 10px;
}
.implementation-section img {
    height: 55px;
    width: auto;
}
.implementation-text p {
    margin: 4px 0;
    font-size: 14px;
    background-color: #006837;
    color: white;
    padding: 5px 10px;
    text-align: center;
    border-radius: 4px;
}


/* ========================================================== */
/* ================== RESPONSIVE STYLES ===================== */
/* ========================================================== */

/* For Tablets and larger phones (up to 992px) */
@media (max-width: 992px) {
    .header-main, .hero-section, .services-section, .faq-section, .footer-main {
        padding-left: 20px;
        padding-right: 20px;
    }
    .header-main {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    .hero-section {
        flex-direction: column;
    }
    .banner, .helpline {
        width: 100%;
    }
    .service-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .faq-container {
        flex-direction: column-reverse; 
    }
    .faq-left, .faq-right {
        width: 100%;
    }
    .footer-column {
        width: 47%;
    }
}


/* For Mobile phones (up to 600px) */
@media (max-width: 600px) {
    .header-top {
        flex-direction: column;
        align-items: center;
        gap: 5px;
        padding: 10px;
    }
    nav ul {
        flex-direction: column;
        width: 100%;
        text-align: center;
    }
    nav ul li {
        width: 100%;
        border-bottom: 1px solid #f0f0f0;
    }
    nav ul li:last-child {
        border-bottom: none;
    }
    .service-grid {
        grid-template-columns: 1fr;
    }
    .footer-column {
        width: 100%;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .implementation-section, .social-icons {
        justify-content: center;
    }
    .footer-column ul {
        padding: 0;
    }
}

/* ========================================================== */
/* ================== LOGIN PAGE STYLES ===================== */
/* ========================================================== */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #f0f4f8;
    padding: 20px;
}

.login-box {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.login-logo {
    height: 60px;
    margin-bottom: 20px;
}

.login-box h2 {
    margin-bottom: 25px;
    color: #333;
}

.login-box .input-group {
    text-align: left;
    margin-bottom: 20px;
}

.login-box label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #555;
}

.login-box input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.login-page-btn {
    width: 100%;
    padding: 12px;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.login-page-btn:hover {
    background-color: #218838;
}

.login-links {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
}

.login-links a, .back-to-home a {
    color: #007bff;
    text-decoration: none;
    font-size: 14px;
}
.back-to-home {
    margin-top: 15px;
}


/* ========================================================== */
/* ================== DASHBOARD PAGE STYLES ================= */
/* ========================================================== */

.dashboard-header {
    background-color: #fff;
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.dashboard-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logout-btn {
    background-color: #dc3545;
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
}

.dashboard-container {
    padding: 40px 20px;
    background-color: #f9f9f9;
}

.tax-form-card {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.tax-form-card h3 {
    text-align: center;
    margin-bottom: 25px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.tax-form-card .input-group {
    text-align: left;
}

.tax-form-card label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.tax-form-card input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.input-group.full-width {
    grid-column: 1 / -1; /* Makes the element span the full width */
}

.tax-info {
    margin: 30px 0;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
}
.tax-amount {
    color: #28a745;
}

.payment-btn {
    display: block; /* Ensures it takes the full width */
    width: 100%;
    padding: 15px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    text-align: center; /* Centers the text */
    text-decoration: none; /* Removes the underline from the link */
}

/* Responsive adjustments for the form */
@media (max-width: 600px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
}

/* Style for Forgot Password description text */
.form-description {
    margin-bottom: 20px;
    font-size: 15px;
    color: #555;
    line-height: 1.5;
}

/* ========================================================== */
/* ========= DASHBOARD PAYMENT DETAILS STYLES ========= */
/* ========================================================== */

.payment-details {
    margin-top: 25px;
    border-top: 1px solid #eee;
    padding-top: 25px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    font-size: 16px;
    border-bottom: 1px solid #eee;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-row strong {
    color: #555;
}

.detail-row span {
    color: #333;
    font-weight: 500;
}

/* Dashboard Header Logo Adjustment */
.dashboard-header .login-logo {
    height: 50px; /* Adjust height for the dashboard header */
    margin-bottom: 0; /* Remove bottom margin */
}

/* Responsive adjustment for dashboard header */
@media (max-width: 600px) {
    .dashboard-header .container {
        flex-direction: column;
        gap: 15px;
    }
}

/* ========================================================== */
/* =========== DASHBOARD MOBILE VIEW FINAL FIXES ============ */
/* ========================================================== */

@media (max-width: 600px) {
    /* হেডার শিরোনামের ফন্ট সাইজ কমানো হয়েছে */
    .dashboard-header h1 {
        font-size: 22px; 
    }

    /* পেমেন্টের বিবরণীগুলোকে পুরো প্রস্থ দেওয়া হয়েছে */
    .detail-row {
        width: 100%;
    }
}

/* Dashboard Header Mobile Alignment Fix */
@media (max-width: 600px) {
    .dashboard-header .container {
        align-items: center; /* এই লাইনটি লোগো, শিরোনাম এবং বাটনকে মাঝখানে আনবে */
    }
}

/* ========================================================== */
/* ================== MINOR FIXES ========================== */ 
/* ========================================================== */
/* ======== PAYMENT STATUS PAGE STYLES (THANK YOU/FAIL) ======== */
/* ========================================================== */

.status-page-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #f0f4f8;
    padding: 20px;
    text-align: center;
}

.status-box {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px S15px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 500px;
}

.status-icon {
    font-size: 60px;
    margin-bottom: 20px;
}

.status-icon.success {
    color: #28a745; /* Green color for success */
}

.status-icon.fail {
    color: #dc3545; /* Red color for failure */
}

.status-box h2 {
    margin-bottom: 15px;
    color: #333;
}

.status-box p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 30px;
}

.status-btn {
    display: inline-block;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    background-color: #007bff;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s;
}

.status-btn:hover {
    background-color: #0056b3;
}