/* --- বেসিক রিসেট এবং গ্লোবাল স্টাইল (ডার্ক মোড) --- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap'); /* Google Font */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #bdc3c7; /* হালকা ধূসর টেক্সট */
    background-color: #181a1b; /* প্রধান ডার্ক ব্যাকগ্রাউন্ড */
}

a {
    text-decoration: none;
    color: #e74c3c; /* হালকা লাল */
}

ul {
    list-style: none;
}

/* --- হেডার এবং নেভিগেশন বার --- */
/* (এটি আগের মতোই থাকবে, কারণ লাল রঙ ডার্ক থিমের সাথে ভালো যায়) */
header {
    background-color: #c0392b; /* গাঢ় লাল */
    color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky; /* স্ক্রল করার সময় মেনুবার উপরে থাকবে */
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
}

.navbar .logo a {
    color: #fff;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 1px;
}

.navbar .nav-links {
    display: flex;
    gap: 30px;
}

.navbar .nav-links a {
    color: #fff;
    font-weight: 600;
    padding: 5px 0;
    transition: color 0.3s ease, border-bottom 0.3s ease;
}

.navbar .nav-links a:hover,
.navbar .nav-links a.active { 
    color: #ffd700; /* হালকা সোনালী রঙ হোভারে */
    border-bottom: 2px solid #ffd700;
}

/* --- হিরো সেকশন (index.html) --- */
/* (এটিও প্রায় একই থাকবে, কারণ এটিতে একটি ডার্ক ওভারলে আছে) */
.hero-section {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url(/images/Gimage03.png) no-repeat center center/cover;
    position: relative;
    color: #fff;
    text-align: center;
    padding: 100px 20px;
    min-height: 500px; 
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.hero-section h1 {
    font-size: 4em;
    margin-bottom: 20px;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.hero-section p {
    font-size: 1.5em;
    margin-bottom: 40px;
    max-width: 700px;
    opacity: 0.9;
}

/* --- সাধারণ বাটন স্টাইল --- */
.btn {
    display: inline-block;
    padding: 15px 30px;
    border: none;
    border-radius: 50px; 
    font-size: 1.1em;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.btn-primary {
    background-color: #c0392b; 
    color: #fff;
}

.btn-primary:hover {
    background-color: #e74c3c; 
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.btn-secondary {
    background-color: #374151; /* ডার্ক বাটন ব্যাকগ্রাউন্ড */
    color: #f0f0f0;
    border: 1px solid #555;
}

.btn-secondary:hover {
    background-color: #4a5568;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* --- ডার্ক থিম কন্টেন্ট বক্স (ইনফো, ফর্ম, সার্চ) --- */
.info-section,
.form-container, 
.search-container, 
.results-container {
    max-width: 1000px; /* ইনফো সেকশনের জন্য চওড়া */
    margin: 60px auto;
    padding: 40px;
    background-color: #2a2e34; /* কন্টেন্ট বক্সের ডার্ক ব্যাকগ্রাউন্ড */
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

/* ফর্ম ও সার্চ বক্সকে ছোট রাখা */
.form-container, 
.search-container {
    max-width: 700px;
}

.info-section h2,
.form-container h2, 
.search-container h2 {
    font-size: 2.5em;
    color: #ffffff; /* সাদা শিরোনাম */
    margin-bottom: 20px;
    text-align: center;
}

.info-section p,
.form-container p {
    font-size: 1.1em;
    line-height: 1.8;
    color: #bdc3c7; /* হালকা ধূসর টেক্সট */
    text-align: center;
    margin-bottom: 30px;
}

/* --- ডার্ক থিম ফর্ম স্টাইল --- */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #e0e0e0; /* উজ্জ্বল লেবেল টেক্সট */
    font-size: 1.05em;
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group select {
    width: 100%;
    padding: 12px 15px;
    background-color: #374151; /* ইনপুট ফিল্ডের ডার্ক ব্যাকগ্রাউন্ড */
    border: 1px solid #555;
    border-radius: 8px;
    color: #f0f0f0; /* ইনপুটের টেক্সট কালার */
    font-size: 1em;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input[type="text"]:focus,
.form-group input[type="tel"]:focus,
.form-group select:focus {
    border-color: #c0392b; /* ফোকাস করলে লাল বর্ডার */
    box-shadow: 0 0 8px rgba(192, 57, 43, 0.3);
    outline: none;
}

/* সাবমিট বাটন */
.form-container button[type="submit"],
.search-container button[type="submit"] {
    width: 100%;
    padding: 15px;
    background-color: #27ae60; /* সবুজ রঙ ডার্ক থিমে ভালো দেখায় */
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1.2em;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.form-container button[type="submit"]:hover,
.search-container button[type="submit"]:hover {
    background-color: #2ecc71; /* হালকা সবুজ */
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}


/* --- ডোনার রেজাল্টস কন্টেইনার (find_donor.html) --- */
.results-container h3 {
    font-size: 1.8em;
    color: #ffffff;
    margin-bottom: 25px;
    text-align: center;
}

#donor-results {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.donor-card {
    background-color: #2a2e34; /* কার্ডের ব্যাকগ্রাউন্ড */
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 25px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #374151; /* হালকা বর্ডার */
}

.donor-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.donor-card h4 {
    font-size: 1.5em;
    color: #e74c3c; /* হালকা লাল */
    margin-bottom: 10px;
}

.donor-card p {
    font-size: 1em;
    color: #bdc3c7;
    margin-bottom: 8px;
}

.donor-card .blood-group {
    font-size: 1.2em;
    font-weight: 700;
    color: #2ecc71; /* সবুজ */
    background-color: #374151; /* হালকা ডার্ক ব্যাকগ্রাউন্ড */
    padding: 5px 10px;
    border-radius: 5px;
    display: inline-block;
    margin-top: 10px;
}

/* --- ফুটার --- */
footer {
    text-align: center;
    padding: 30px;
    background-color: #2a2e34; /* কন্টেন্ট বক্সের মতো */
    color: #ecf0f1;
    margin-top: 60px;
    font-size: 0.95em;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

/* --- রেসপন্সিভনেস --- */
/* (এগুলো অপরিবর্তিত থাকবে) */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        align-items: flex-start;
        padding: 15px 20px;
    }

    .navbar .logo {
        margin-bottom: 15px;
    }

    .navbar .nav-links {
        flex-direction: column;
        width: 100%;
        text-align: left;
        gap: 10px;
    }

    .navbar .nav-links a {
        display: block;
        padding: 10px 0;
    }

    .hero-section {
        padding: 80px 15px;
        min-height: 400px;
    }

    .hero-section h1 {
        font-size: 2.8em;
    }

    .hero-section p {
        font-size: 1.2em;
        margin-bottom: 30px;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }

    .btn {
        width: 100%;
        padding: 12px 20px;
        font-size: 1em;
    }

    .info-section, .form-container, .search-container, .results-container {
        margin: 40px 15px;
        padding: 30px 20px;
    }

    .info-section h2, .form-container h2, .search-container h2, .results-container h3 {
        font-size: 2em;
    }

    #donor-results {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-section h1 {
        font-size: 2.2em;
    }
    .hero-section p {
        font-size: 1em;
    }
    .form-container h2, .search-container h2, .results-container h3 {
        font-size: 1.8em;
    }
}

/* --- টপ ডোনার সেকশন (Homepage) --- */

.top-donors-section {
    max-width: 1200px; /* এই সেকশনটিকে একটু চওড়া করছি */
    margin: 60px auto;
    padding: 0 20px; /* ডানে-বামে প্যাডিং */
    text-align: center;
}

.top-donors-section h2 {
    font-size: 2.5em;
    color: #ffffff;
    margin-bottom: 15px;
}

.top-donors-section .section-subtitle {
    font-size: 1.1em;
    color: #bdc3c7;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.donor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}
/* --- ইনফো সেকশন - উপকারিতা গ্রিড --- */
.info-section .section-subtitle {
    font-size: 1.1em;
    color: #bdc3c7;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.benefit-card {
    background-color: #181a1b; /* বডির ব্যাকগ্রাউন্ডের মতো */
    border: 1px solid #374151; /* হালকা বর্ডার */
    padding: 30px 25px;
    border-radius: 10px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-5px);
    border-color: #c0392b; /* হোভারে লাল বর্ডার */
}

.benefit-card h3 {
    color: #e74c3c; /* হালকা লাল */
    font-size: 1.5em;
    margin-bottom: 15px;   
}

.benefit-card p {
    color: #bdc3c7;
    font-size: 1em;
    line-height: 1.7;
}