/* ================= VARIABLES (Premium Theme) ================= */
:root {
    --primary: #046b46; 
    --primary-light: #059669;
    --primary-dark: #02472e;
    --accent: #d4af37; 
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --bg-light: #f8fafc;
    --white: #ffffff;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 30px -5px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 40px -5px rgba(0, 0, 0, 0.15);
    --radius: 16px;
    --transition: all 0.3s ease-in-out;
}

/* ================= RESET & BASIC ================= */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Hind Siliguri', sans-serif; -webkit-tap-highlight-color: transparent; }
html, body { overflow-x: hidden; width: 100%; height: 100%; background-color: var(--bg-light); color: var(--text-dark); line-height: 1.7; scroll-behavior: smooth; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; border-radius: 8px; }

/* ================= UTILITIES ================= */
.container { width: 90%; max-width: 1200px; margin: 0 auto; }
.section-padding { padding: 80px 0; }
.section-title { text-align: center; margin-bottom: 40px; }
.section-title h2 { font-size: 2.2rem; color: var(--text-dark); margin-bottom: 10px; font-weight: 700; position: relative; display: inline-block; }
.section-title h2::after { content: ''; position: absolute; bottom: -5px; left: 50%; transform: translateX(-50%); width: 50px; height: 4px; background: var(--accent); border-radius: 2px; }
.section-title p { font-size: 1rem; color: var(--text-muted); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 32px; border-radius: 50px; font-weight: 600; cursor: pointer; transition: var(--transition); border: none; font-size: 1.1rem; }
.btn-primary { background: var(--primary); color: var(--white); box-shadow: 0 8px 20px rgba(4, 107, 70, 0.25); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-3px); box-shadow: 0 12px 25px rgba(4, 107, 70, 0.35); }
.btn-accent { background: var(--accent); color: var(--text-dark); box-shadow: 0 8px 20px rgba(212, 175, 55, 0.3); }
.btn-accent:hover { background: #b5952f; transform: translateY(-3px); color: var(--white); }

/* ================= HEADER (Top Bar) ================= */
header { background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(0, 0, 0, 0.05); box-shadow: var(--shadow-sm); position: fixed; width: 100%; top: 0; z-index: 1000; }
.navbar { display: flex; justify-content: space-between; align-items: center; padding: 15px 0; }
.logo { font-size: 1.6rem; font-weight: 700; color: var(--primary); display: flex; align-items: center; gap: 8px; cursor: pointer; }
.logo i { color: var(--accent); }

.nav-links { display: flex; gap: 25px; }
.nav-links li button { background: none; border: none; font-size: 1.05rem; font-weight: 600; color: var(--text-dark); padding: 5px 0; cursor: pointer; position: relative; font-family: inherit; }
.nav-links li button::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background: var(--primary); transition: var(--transition); }
.nav-links li button:hover, .nav-links li button.active { color: var(--primary); }
.nav-links li button.active::after { width: 100%; }

/* ================= APP BOTTOM NAVIGATION ================= */
.bottom-nav { display: none; position: fixed; bottom: 0; left: 0; width: 100%; background: rgba(255, 255, 255, 0.98); backdrop-filter: blur(15px); box-shadow: 0 -4px 20px rgba(0,0,0,0.1); z-index: 9999; border-top-left-radius: 20px; border-top-right-radius: 20px; padding: 10px 15px 15px; }
.bottom-nav-inner { display: flex; justify-content: space-between; align-items: center; width: 100%; max-width: 600px; margin: 0 auto; }
.b-nav-item { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 5px; color: #94a3b8; font-size: 0.75rem; font-weight: 600; cursor: pointer; transition: var(--transition); border: none; background: transparent; }
.b-nav-item i { font-size: 1.3rem; transition: var(--transition); }
.b-nav-item.active { color: var(--primary); transform: translateY(-4px); }
.b-nav-item.active i { color: var(--accent); transform: scale(1.15); }

/* ================= APP VIEWS ================= */
main { padding-top: 70px; padding-bottom: 20px; min-height: 100vh; }
.view-section { display: none; animation: fadeInTab 0.4s ease forwards; }
.view-section.active { display: block; }
@keyframes fadeInTab {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero { min-height: auto; padding: 0; background: transparent; margin-bottom: 20px; display: flex; align-items: center; }
.hero-content { text-align: center; width: 100%; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 15px; justify-content: center; }

/* Counters */
.counter-section { background: var(--white); border-radius: var(--radius); padding: 25px; box-shadow: var(--shadow-md); display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; text-align: center; margin-top: 10px; position: relative; z-index: 10; border: 1px solid #f1f5f9; }
.counter-item { padding: 15px 10px; border-radius: 12px; transition: var(--transition); position: relative; }
.counter-item.clickable { cursor: pointer; }
.counter-item.clickable:hover { background: var(--bg-light); transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.counter-item.clickable::after { content: '\f0a4'; font-family: "Font Awesome 6 Free"; font-weight: 900; position: absolute; top: 10px; right: 10px; color: var(--primary); opacity: 0; transition: var(--transition); font-size: 0.8rem; }
.counter-item.clickable:hover::after { opacity: 1; }

.counter-item:nth-child(1), .counter-item:nth-child(2) { border-bottom: 1px solid #e2e8f0; }
.counter-item:nth-child(odd) { border-right: 1px solid #e2e8f0; }
.icon-box { font-size: 2rem; color: var(--accent); margin-bottom: 8px; }
.counter-item h3 { font-size: 1.8rem; font-weight: 700; color: var(--primary); }
.counter-item p { font-size: 0.9rem; color: var(--text-muted); font-weight: 600; }

/* Notice Board */
.notice-board { background: var(--white); padding: 30px 20px; border-radius: var(--radius); box-shadow: var(--shadow-sm); border-top: 5px solid var(--accent); margin-top: 40px; }
.notice-board h3 { font-size: 1.4rem; margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }
.notice-list li { margin-bottom: 15px; padding-bottom: 15px; border-bottom: 1px solid #f1f5f9; display: flex; gap: 15px; }
.notice-list li:last-child { border: none; margin: 0; padding: 0; }
.notice-date { background: rgba(212, 175, 55, 0.1); color: #b5952f; padding: 8px; border-radius: 8px; text-align: center; min-width: 60px; font-weight: 700; line-height: 1.2; display: flex; flex-direction: column; justify-content: center; align-items: center; }
.notice-date span { display: block; font-size: 0.75rem; font-weight: 400; }
.notice-text h4 { font-size: 1rem; margin-bottom: 3px; color: var(--text-dark); }
.notice-text p { font-size: 0.85rem; color: var(--text-muted); }

/* Activities, Gallery, Donate Box, About */
.activity-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 15px; }
/* ================= ACTIVITIES SECTION ================= */
.activity-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }

.activity-card { 
    background: var(--white); 
    border-radius: var(--radius); 
    text-align: center; 
    box-shadow: var(--shadow-sm); 
    border-bottom: 3px solid transparent; 
    overflow: hidden; /* ছবির কোণা গোল করার জন্য */
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}
.activity-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.activity-card.active-card { border-bottom: 3px solid var(--primary); box-shadow: var(--shadow-md); }

/* নতুন ছবির ডিজাইন */
.activity-thumb {
    width: 100%;
    height: 180px; /* সবগুলো ছবি সমান সাইজের রাখার জন্য */
    object-fit: cover; /* ছবি যেন চ্যাপ্টা না হয় */
    border-bottom: 2px solid #f1f5f9;
}

.activity-info { padding: 20px 15px; }
.activity-info h3 { 
    font-size: 1.2rem; 
    margin-bottom: 8px; 
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.activity-info h3 i { color: var(--primary-light); font-size: 1.3rem; }
.activity-info p { font-size: 0.9rem; color: var(--text-muted); }

.gallery-grid { display: grid; grid-template-columns: 1fr; gap: 15px; }
.gallery-item { position: relative; overflow: hidden; border-radius: var(--radius); height: 220px; box-shadow: var(--shadow-sm); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s;}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-overlay { position: absolute; bottom: 0; width: 100%; background: linear-gradient(to top, rgba(4,107,70,0.95), transparent); color: var(--white); padding: 20px; }
.gallery-overlay h4 { font-size: 1.1rem; margin-bottom: 3px; }
.gallery-overlay p { font-size: 0.85rem; }

.donate-box { background: var(--white); border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-md); display: flex; flex-direction: column; }
.payment-info-side { background: var(--bg-light); padding: 30px 20px; border-bottom: 1px solid #e2e8f0; }
.pay-method { display: flex; align-items: center; gap: 15px; background: var(--white); padding: 12px 15px; border-radius: 12px; margin-bottom: 12px; border: 1px solid #f1f5f9; }
.pay-method img { width: 40px; border-radius: 5px; }
.pay-method-icon { font-size: 1.8rem; color: var(--accent); width: 40px; text-align: center; }
.pay-text h4 { font-size: 1rem; color: var(--text-dark); margin-bottom: 2px; }
.pay-text p { font-size: 1.1rem; font-weight: 700; color: var(--primary); letter-spacing: 1px; }

.form-side { padding: 30px 20px; }
.form-control { width: 100%; padding: 12px 15px; margin-bottom: 15px; border: 2px solid #e2e8f0; border-radius: 10px; outline: none; font-size: 0.95rem; background: #f8fafc; }
.form-control:focus { border-color: var(--primary); background: var(--white); }

.about-image img { border-radius: 20px; box-shadow: var(--shadow-sm); margin-bottom: 20px; }
.about-text h3 { font-size: 1.6rem; color: var(--primary); margin-bottom: 15px; }
.about-text p { margin-bottom: 15px; font-size: 1rem; color: var(--text-muted); text-align: justify; }
.reg-box { background: var(--white); padding: 30px 20px; border-radius: var(--radius); box-shadow: var(--shadow-sm); margin-top: 30px; border-top: 5px solid var(--primary); }

footer { background: #0f172a; color: #94a3b8; padding: 40px 20px 20px; margin-top: 40px; border-radius: 20px; text-align: center; }
footer h3 { color: var(--accent); margin-bottom: 15px; }
.social-links { display: flex; justify-content: center; gap: 15px; margin: 20px 0; }
.social-links a { color: var(--white); background: rgba(255,255,255,0.05); width: 40px; height: 40px; display: flex; justify-content: center; align-items: center; border-radius: 50%; }

/* ================= MODAL STYLES ================= */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); backdrop-filter: blur(5px); z-index: 10000; display: flex; justify-content: center; align-items: center; opacity: 0; visibility: hidden; transition: var(--transition); }
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal-container { background: var(--bg-light); width: 90%; max-width: 600px; max-height: 85vh; border-radius: 20px; display: flex; flex-direction: column; transform: translateY(30px); transition: var(--transition); box-shadow: var(--shadow-lg); overflow: hidden; }
.modal-overlay.active .modal-container { transform: translateY(0); }
.modal-header { padding: 20px; background: var(--white); border-bottom: 1px solid #e2e8f0; display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; z-index: 10; }
.modal-header h3 { color: var(--primary); font-size: 1.3rem; display: flex; align-items: center; gap: 10px; }
.close-btn { background: #fee2e2; color: #ef4444; border: none; width: 35px; height: 35px; border-radius: 50%; cursor: pointer; display: flex; justify-content: center; align-items: center; font-size: 1.1rem; transition: var(--transition); }
.close-btn:hover { background: #ef4444; color: var(--white); }
.modal-body { padding: 20px; overflow-y: auto; flex: 1; }

.history-card { background: var(--white); padding: 15px; border-radius: 12px; margin-bottom: 15px; box-shadow: var(--shadow-sm); border-left: 4px solid var(--primary); display: flex; justify-content: space-between; align-items: center; }
.history-info h4 { font-size: 1.1rem; color: var(--text-dark); margin-bottom: 5px; }
.history-info p { font-size: 0.85rem; color: var(--text-muted); display: flex; align-items: center; gap: 5px; margin-bottom: 3px; }
.history-amount { text-align: right; }
.history-amount h3 { color: var(--primary); font-size: 1.3rem; }
.history-amount span { font-size: 0.75rem; color: var(--accent); font-weight: 600; background: rgba(212, 175, 55, 0.1); padding: 3px 8px; border-radius: 5px; }

.vol-card { background: var(--white); padding: 15px; border-radius: 12px; margin-bottom: 15px; box-shadow: var(--shadow-sm); display: flex; gap: 15px; align-items: center; border: 1px solid #e2e8f0; }
.vol-card img { width: 70px; height: 70px; border-radius: 50%; object-fit: cover; border: 2px solid var(--primary-light); }
.vol-info h4 { font-size: 1.1rem; color: var(--primary-dark); }
.vol-info p { font-size: 0.85rem; color: var(--text-muted); margin-top: 3px; }
.vol-info i { color: var(--accent); width: 15px; }

.proj-card { background: var(--white); border-radius: 16px; margin-bottom: 25px; box-shadow: var(--shadow-md); overflow: hidden; border: 1px solid #e2e8f0; }
.proj-card img { width: 100%; height: 200px; object-fit: cover; border-radius: 0; }
.proj-details { padding: 20px; }
.proj-details h3 { color: var(--primary); margin-bottom: 10px; font-size: 1.3rem; }
.proj-details p { font-size: 0.95rem; color: var(--text-muted); margin-bottom: 15px; }
.proj-meta { background: var(--bg-light); padding: 15px; border-radius: 12px; margin-bottom: 10px; border: 1px dashed #cbd5e1; }
.proj-meta h5 { font-size: 0.95rem; color: var(--text-dark); margin-bottom: 5px; display: flex; align-items: center; gap: 8px; }
.proj-meta h5 i { color: var(--accent); }
.proj-meta p { font-size: 0.85rem; margin-bottom: 0; color: #475569; }

@media (min-width: 768px) {
    .hero-content h1 { font-size: 3.5rem; }
    .counter-section { grid-template-columns: repeat(4, 1fr); margin-top: 10px; padding: 30px; }
    .counter-item:nth-child(1), .counter-item:nth-child(2) { border-bottom: none; }
    .counter-item:not(:last-child) { border-right: 1px solid #e2e8f0; }
    .counter-item.clickable:hover { transform: translateY(-5px); }
    .activity-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
    .gallery-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
    .donate-box { flex-direction: row; }
    .payment-info-side { flex: 1; border-right: 1px solid #e2e8f0; border-bottom: none; padding: 50px; }
    .form-side { flex: 1; padding: 50px; }
    .about-container { display: flex; gap: 40px; align-items: center; }
    .about-image { flex: 1; } .about-text { flex: 1; }
    footer { text-align: left; display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
    .social-links { justify-content: flex-start; }
}

@media (max-width: 767px) {
    .nav-links { display: none; } 
    .bottom-nav { display: block; } 
    main { padding-bottom: 90px; } 
    .container { width: 92%; }
}