/* --- Global Styles --- */
* { box-sizing: border-box; }
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0; padding: 0;
    background-color: #f9f9f9;
    line-height: 1.6; color: #333;
}
.container {
    width: 90%; max-width: 1100px;
    margin: auto; overflow: hidden;
}

/* --- Header Styles --- */
header {
    background: #35424a; color: #ffffff;
    padding: 15px 0; min-height: 70px;
    border-bottom: #e8491d 3px solid;
    position: relative; /* ড্রয়ার মেনুর জন্য জরুরি */
}
header .container {
    display: flex; justify-content: space-between; align-items: center;
}
header h1 { margin: 0; font-size: 24px; z-index: 1001; } /* লোগো উপরে থাকবে */

/* --- Desktop Menu --- */
header nav ul {
    margin: 0; padding: 0; list-style: none;
    display: flex; gap: 20px;
}
header nav ul li a {
    color: #ffffff; text-decoration: none;
    font-size: 16px; font-weight: 500; transition: color 0.3s;
}
header nav ul li a:hover { color: #e8491d; }

/* মেনু আইকন (ডেস্কটপে লুকানো থাকবে) */
.menu-icon {
    display: none; font-size: 30px;
    cursor: pointer; color: white;
    z-index: 1002; /* মেনুর চেয়ে উপরে থাকবে */
}

/* --- Mobile View (Drawer System) --- */
@media (max-width: 768px) {
    .menu-icon { display: block; } /* মোবাইলে আইকন দেখাবে */

    header nav ul {
        position: fixed; /* ফিক্সড পজিশন */
        top: 0; left: -250px; /* স্ক্রিনের বাইরে লুকিয়ে রাখা */
        width: 250px; height: 100%; /* ফুল হাইট */
        background: #2c3e50; /* মেনুর ব্যাকগ্রাউন্ড কালার */
        flex-direction: column; /* নিচে নিচে আইটেম */
        padding-top: 80px; /* লোগোর জন্য জায়গা ছাড়া */
        transition: left 0.3s ease; /* স্মুথ স্লাইড এফেক্ট */
        z-index: 1000;
        box-shadow: 2px 0 5px rgba(0,0,0,0.5);
    }

    /* জাভাস্ক্রিপ্ট দিয়ে এই ক্লাস যোগ করলে মেনু বের হবে */
    header nav ul.active { left: 0; }

    header nav ul li {
        width: 100%; text-align: center;
        padding: 15px 0; border-bottom: 1px solid #34495e;
    }
    header nav ul li a { display: block; font-size: 18px; }
}

/* --- Main Content & Others --- */
main { padding: 20px 0; background: #ffffff; min-height: 400px; }
.hero-section { background-color: #e9ecef; text-align: center; padding: 60px 20px; border-radius: 8px; margin-bottom: 30px; }
.cta-button { background-color: #e8491d; color: #ffffff; padding: 12px 30px; text-decoration: none; font-size: 18px; font-weight: bold; border-radius: 5px; display: inline-block; margin-top: 20px; }
.home-features { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px; margin-top: 20px; }
.feature-card { flex: 1; min-width: 300px; background: #ffffff; border: 1px solid #ddd; border-radius: 8px; padding: 25px; text-align: center; box-shadow: 0 4px 6px rgba(0,0,0,0.1); }
.button-secondary { background-color: #35424a; color: #ffffff; padding: 10px 20px; text-decoration: none; border-radius: 5px; display: inline-block; margin-top: 15px; }

/* Member Grid */
.member-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; padding: 20px 0; }
.member-card { background: #fff; border-radius: 10px; box-shadow: 0 5px 15px rgba(0,0,0,0.1); overflow: hidden; text-align: center; border: 1px solid #eee; }
.card-image { height: 220px; overflow: hidden; background: #f4f4f4; }
.card-image img { width: 100%; height: 100%; object-fit: cover; }
.card-info { padding: 20px; }
.donation-badge { background-color: #e8f5e9; color: #2e7d32; padding: 10px; border-radius: 5px; margin-top: 10px; display: block; }

/* Form Elements */
input[type="text"], input[type="email"], input[type="number"], input[type="file"], textarea, select { width: 100%; padding: 12px; margin: 8px 0; border: 1px solid #ccc; border-radius: 4px; font-size: 16px; }
input[type="submit"], button { width: 100%; padding: 12px; font-size: 18px; background-color: #35424a; color: white; border: none; cursor: pointer; border-radius: 5px; }
input[type="submit"]:hover, button:hover { background-color: #e8491d; }

/* Table Wrapper for Mobile */
.table-wrapper { overflow-x: auto; margin-bottom: 30px; border: 1px solid #ddd; }
table { width: 100%; border-collapse: collapse; }
th, td { border: 1px solid #ddd; padding: 8px; text-align: left; white-space: nowrap; }
th { background-color: #35424a; color: white; }

footer { background: #35424a; color: #ffffff; text-align: center; padding: 20px; margin-top: 40px; }

/* --- Member List Table Styles --- */
.member-list-table {
    width: 100%;
    border-collapse: separate; /* বর্ডার কোলাপ্স বন্ধ, যাতে রাউন্ড বর্ডার দেওয়া যায় */
    border-spacing: 0 10px; /* প্রতিটি সারির মাঝখানে ফাঁকা জায়গা */
}

.member-list-table thead th {
    background-color: transparent;
    color: #888;
    font-size: 14px;
    border: none;
    padding-bottom: 10px;
}

.member-list-table tbody tr {
    background-color: #ffffff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05); /* হালকা ছায়া */
    transition: transform 0.2s;
}

.member-list-table tbody tr:hover {
    transform: scale(1.01); /* মাউস নিলে একটু বড় হবে */
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.member-list-table td {
    padding: 15px;
    vertical-align: middle;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

/* প্রথম ও শেষ কলামের কোণাগুলো গোল করার জন্য */
.member-list-table td:first-child {
    border-left: 1px solid #eee;
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
}
.member-list-table td:last-child {
    border-right: 1px solid #eee;
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
}

/* ছোট গোল ছবি */
.small-user-photo {
    width: 50px;
    height: 50px;
    border-radius: 50%; /* পুরোপুরি গোল */
    object-fit: cover;
    border: 2px solid #e8491d; /* ছবির চারপাশে বর্ডার */
}

/* বয়সের ব্যাজ */
.age-badge {
    background: #f0f0f0;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: bold;
    color: #555;
}

/* --- Initial Avatar Styles (নামের অক্ষর দিয়ে ছবি) --- */
.initial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%; /* গোল করার জন্য */
    background-color: #e8491d; /* ব্যাকগ্রাউন্ড কালার (আপনার ব্র্যান্ড কালার) */
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: bold;
    margin: 0 auto; /* মাঝখানে রাখার জন্য */
    border: 2px solid #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}