/* === বেসিক স্টাইল === */
body {
    font-family: 'Hind Siliguri', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f8f9fa;
    color: #333;
}

main {
    overflow-x: hidden; /* Prevent horizontal scroll */
}

/* === নেভিগেশন বার === */
header {
    background-color: #ffffff;
    color: #004d40;
    padding: 15px 5%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 24px;
    font-weight: 700;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.nav-links li a {
    text-decoration: none;
    color: #004d40;
    font-weight: 600;
    transition: color 0.3s;
    padding-bottom: 5px;
}

.nav-links li a:hover,
.nav-links li a.active {
    color: #00796b;
    border-bottom: 2px solid #00796b;
}

.mobile-menu-button {
    display: none; /* ডেস্কটপে হাইড করা থাকবে */
    cursor: pointer;
}

.mobile-menu-button .bar {
    width: 25px;
    height: 3px;
    background-color: #004d40;
    margin: 5px 0;
    transition: 0.4s;
}

/* === হিরো সেকশন (হোমপেইজ) === */
.hero {
    padding: 60px 20px;
    background: linear-gradient(to bottom, #e8f5f3, #ffffff);
    text-align: center;
}

.hero-content {
    max-width: 900px;
    margin: auto;
}

.hero h2 {
    font-size: 36px;
    color: #00695c;
    margin-bottom: 20px;
}

.hero p {
    font-size: 18px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 40px;
}

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

.feature {
    background: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    font-size: 16px;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.btn-inline {
    display: inline-block;
    background: #00796b;
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: bold;
    text-decoration: none;
    margin-top: 15px;
    align-self: flex-end; /* বাটনকে ডানে পাঠায় */
    transition: background-color 0.3s;
}

.btn-inline:hover {
    background-color: #004d40;
}

/* === How it Works সেকশন (হোমপেইজ) === */
.how-it-works {
    padding: 60px 20px;
    background: #ffffff;
}

.how-it-works h3 {
    text-align: center;
    font-size: 28px;
    margin-bottom: 40px;
    color: #004d40;
}
.how-it-works-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    max-width: 1000px;
    margin: auto;
}

.clean-box {
    background-color: #f9fdfc;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #e0f2f1;
}

.clean-box p, .clean-list li {
    font-size: 16px;
    line-height: 1.7;
    margin: 12px 0;
}

.clean-box h4 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #00796b;
}

.clean-list {
    list-style: none;
    padding-left: 0;
}

.clean-list li {
    padding: 12px 0;
    border-bottom: 1px dashed #cde2e0;
}
.clean-list li:last-child {
    border-bottom: none;
}

/* === ডাটাসেট পেইজ === */
.dataset {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
}

.dataset h2 {
    text-align: center;
    color: #00695c;
    margin-bottom: 10px;
}

.dataset p {
    text-align: center;
    color: #555;
    margin-bottom: 30px;
    font-size: 18px;
}

.table-container {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    /* overflow-x: auto; - এই লাইনটি এখন আর প্রয়োজন নেই */
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
    table-layout: fixed; /* কলামের প্রস্থ ঠিক রাখে */
}

th, td {
    border: 1px solid #e0f2f1;
    padding: 12px 15px;
    text-align: left;
    word-wrap: break-word; /* লম্বা শব্দকে ভেঙে দেয় */
    white-space: normal; /* এই লাইনটি লেখাগুলোকে একাধিক লাইনে নিয়ে আসবে */
}

th {
    background-color: #00796b;
    color: white;
    font-weight: 600;
}

/* কলামের প্রস্থ নির্ধারণ */
table th:nth-child(1) { width: 8%; } /* ID */
table th:nth-child(2) { width: 20%; } /* Claim */
table th:nth-child(3) { width: 10%; } /* Verdict */
table th:nth-child(4) { width: 42%; } /* Explanation */
table th:nth-child(5) { width: 20%; } /* Reference */

tr:nth-child(even) {
    background-color: #f9fdfc;
}

tr:hover {
    background-color: #e8f5f3;
}





/* === টিম পেইজ === */
.team {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
    text-align: center;
}

.team h2 {
    color: #00695c;
    margin-bottom: 40px;
    font-size: 28px;
}

.team-members {
    display: grid;
    /* এই কোডটি স্ক্রিনের আকারের উপর ভিত্তি করে কলাম সংখ্যা ঠিক করবে */
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    justify-content: center;
}

.member {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.member:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.member img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%; /* ছবিগুলোকে গোল করবে */
    border: 4px solid #e0f2f1;
    margin-bottom: 15px;
}

.member h3 {
    margin: 10px 0 5px;
    font-size: 20px;
    color: #00796b;
}

.member p {
    font-size: 15px;
    line-height: 1.6;
    color: #555;
    margin: 5px 0;
}



/* === মূল্যায়ন পেইজ === */
.evaluation {
    max-width: 900px;
    margin: 40px auto;
    padding: 20px;
}

.evaluation h2 {
    text-align: center;
    color: #00695c;
    margin-bottom: 40px;
    font-size: 28px;
}

.eval-section {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.07);
    border-left: 5px solid #00796b;
}

.eval-section h3 {
    color: #00796b;
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 22px;
}

.eval-section ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.eval-section ul li {
    padding: 8px 0 8px 25px;
    position: relative;
    font-size: 16px;
    line-height: 1.7;
}

/* Custom list bullet style */
.eval-section ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #00796b;
    font-weight: bold;
}

/* মূল্যায়নের টেবিলটি ডাটাসেট পেইজের টেবিলের মতোই দেখাবে */
.eval-section .table-container {
    box-shadow: none; /* Already has shadow on parent */
}






/* === তথ্য যাচাই পেইজ === */
.fact-check-section {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
    text-align: center;
}

.fact-check-section h2 {
    color: #00695c;
    margin-bottom: 10px;
}

.fact-check-section p {
    font-size: 18px;
    color: #555;
    margin-bottom: 30px;
}

#factCheckForm textarea {
    width: 100%;
    height: 120px;
    padding: 15px;
    font-size: 16px;
    font-family: 'Hind Siliguri', sans-serif;
    border: 2px solid #ddd;
    border-radius: 8px;
    margin-bottom: 20px;
    box-sizing: border-box; /* Ensures padding doesn't affect width */
    transition: border-color 0.3s;
}

#factCheckForm textarea:focus {
    outline: none;
    border-color: #00796b;
}

#factCheckForm button {
    background-color: #00796b;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: background-color 0.3s;
}

#factCheckForm button:hover {
    background-color: #004d40;
}

/* Loader and Result styles */
#loader {
    margin-top: 30px;
}
.spinner {
    margin: 0 auto 10px;
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #00796b;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

#resultContainer {
    margin-top: 30px;
    padding: 25px;
    background-color: #f9fdfc;
    border-left: 5px solid #00796b;
    border-radius: 8px;
    text-align: left;
    box-shadow: 0 4px 12px rgba(0,0,0,0.07);
}
#resultContainer h3 {
    margin-top: 0;
    font-size: 22px;
}
#resultContainer p {
    font-size: 17px;
    line-height: 1.8;
}
#resultContainer strong {
    display: block;
    margin-top: 15px;
    color: #555;
}

.hidden {
    display: none;
}








/* === কুরআন অনুসন্ধান পেইজ === */
.quran-search-section {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
    text-align: center;
}

.quran-search-section h2 {
    color: #00695c;
    margin-bottom: 10px;
}

.quran-search-section p {
    font-size: 18px;
    color: #555;
    margin-bottom: 30px;
}

#quranSearchForm .input-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

#quranSearchForm input {
    flex: 1;
    min-width: 200px; /* Ensures inputs don't get too small */
    padding: 12px;
    font-size: 16px;
    font-family: 'Hind Siliguri', sans-serif;
    border: 2px solid #ddd;
    border-radius: 8px;
    transition: border-color 0.3s;
}

#quranSearchForm input:focus {
    outline: none;
    border-color: #00796b;
}

#quranSearchForm button {
    background-color: #00796b;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: background-color 0.3s;
}

#quranSearchForm button:hover {
    background-color: #004d40;
}

#quranResult {
    margin-top: 30px;
    background-color: #f9fdfc;
    border-radius: 8px;
    text-align: left;
    box-shadow: 0 4px 12px rgba(0,0,0,0.07);
    overflow: hidden; /* Ensures child elements respect border-radius */
}

#quranResult .result-header {
    background-color: #e0f2f1;
    padding: 15px 20px;
}

#quranResult h3 {
    margin: 0;
    font-size: 22px;
    color: #004d40;
}
#quranResult .result-header p {
    margin: 5px 0 0;
    font-size: 16px;
    color: #00796b;
}

#quranResult #translation {
    font-size: 20px;
    line-height: 1.8;
    padding: 20px;
    margin: 0;
    font-weight: 500;
}

#quranResult #explanation {
    font-size: 16px;
    line-height: 1.7;
    padding: 0 20px 20px;
    margin: 0;
    color: #444;
    border-top: 1px dashed #cde2e0;
    padding-top: 20px;
}



/* === ফুটার === */
footer {
    background-color: #004d40;
    color: white;
    text-align: center; /* এই লাইনটি টেক্সটকে মাঝখানে নিয়ে আসবে */
    padding: 10px;
    width: 100%;
    box-sizing: border-box; /* Padding সহ সম্পূর্ণ প্রস্থ নিশ্চিত করে */
}





/* === রেসপন্সিভ ডিজাইন (মোবাইল এর জন্য) === */
@media (max-width: 768px) {
    /* === মোবাইল নেভিগেশন বার === */
    .mobile-menu-button {
        display: block; /* মোবাইলে হ্যামবার্গার বাটনটি দেখা যাবে */
    }

    .nav-links {
        display: none; /* ডেস্কটপের মেন্যুর লেখাগুলো আড়াল হয়ে যাবে */
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 70px; /* Header এর উচ্চতার পর থেকে শুরু হবে */
        left: 0;
        background-color: white;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        padding: 20px 0;
    }
    
    .nav-links.active {
        display: flex; /* JavaScript দিয়ে এই ক্লাস যোগ করা হলে মেন্যু দেখা যাবে */
    }

    .nav-links li {
        text-align: center;
        padding: 15px 0;
    }

    .nav-links li a:hover,
    .nav-links li a.active {
        border-bottom: none;
        color: #00796b;
    }

    /* === অন্যান্য পেইজের মোবাইল লেআউট ঠিক করা === */
    .hero h2 { font-size: 28px; }
    .hero p { font-size: 16px; }
    
    .features-grid { grid-template-columns: 1fr; }
    .how-it-works-container { grid-template-columns: 1fr; }

    .dataset { padding: 10px; }
    th, td { white-space: normal; } /* টেবিলের লেখা প্রয়োজনে একাধিক লাইনে আসবে */
}