/* ==========================================================================
   ১. Root, Reset & Basic Globals
   ========================================================================== */

   :root {
    --primary-green: #2e7d32;
    --dark-accent: #1a1a1a;
    --donate-orange: #ff9800;
    --light-bg: #f8f9fa;
}

/* এটি style.css এর একবারে প্রথমে দিন */
html, body {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    outline: 0 !important;
    vertical-align: baseline !important;
    position: relative !important;
    top: 0 !important;
}

/* যদি ব্রাউজার ডিফল্ট কোনো এলিমেন্টকে পুশ করে */
* {
    margin-top: 0 !important;
}

/* ==========================================================================
   ২. Header, Navigation & Footer
   ========================================================================== */
.top-bar { background-color: var(--primary-green); }
.navbar-brand { font-size: 1.5rem; letter-spacing: -0.5px; }

footer {
    position: relative;
    z-index: 1;
    background: #f8f9fa;
    border-top: 5px solid var(--primary-green);
    margin-top: 50px;
}

/* ==========================================================================
   ৩. Home Page Components & Hero
   ========================================================================== */
.hero {
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
    min-height: 400px;
}

.section-title { font-weight: 700; margin-bottom: 25px; position: relative; padding-bottom: 10px; }
.section-title::after { content: ''; position: absolute; width: 60px; height: 4px; background: var(--primary-green); bottom: 0; left: 0; }

.comp-card { transition: 0.3s; border-radius: 10px; border: 1px solid #f0f0f0; }
.comp-card:hover { background: var(--primary-green) !important; color: white !important; transform: translateY(-5px); }
.comp-card:hover i { color: white !important; }

.custom-list { padding-left: 25px; list-style: none; }
.custom-list li { margin-bottom: 10px; position: relative; }
.custom-list li::before { content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900; color: var(--primary-green); position: absolute; left: -25px; }

.legal-card { background: var(--dark-accent); color: white; }

/* ==========================================================================
   ৪. Floating Buttons (Call & Scroll Top)
   ========================================================================== */
.call-now-fixed {
    position: fixed; bottom: 25px; left: 20px; background: #007bff; color: white; padding: 12px 20px;
    border-radius: 50px; z-index: 1000; font-weight: bold; display: flex; align-items: center; gap: 10px; transition: 0.3s; text-decoration: none !important;
}
.call-now-fixed:hover { background: #0056b3; color: white; transform: scale(1.05); }

.scroll-top-fixed {
    position: fixed; bottom: 30px; right: 30px; background: var(--primary-green); color: white;
    width: 50px; height: 50px; border-radius: 50%; border: none; z-index: 1000; display: none; box-shadow: 0 5px 15px rgba(0,0,0,0.2); transition: 0.3s;
}
.scroll-top-fixed:hover { background: #1b5e20; transform: translateY(-3px); }

/* ==========================================================================
   ৫. Luxury Gallery & Lightbox Modal
   ========================================================================== */
.gallery-program-wrapper { background: #fff; border-radius: 25px; padding: 40px; margin-bottom: 60px; box-shadow: 0 15px 40px rgba(0,0,0,0.04); border: 1px solid #f0f0f0; }
.gallery-program-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
.gallery-program-header .title-link { text-decoration: none; color: var(--dark-accent); font-size: 1.75rem; font-weight: 800; transition: 0.3s; display: flex; align-items: center; }
.gallery-program-header .title-link:hover { color: var(--primary-green); transform: translateX(8px); }

.gallery-card { position: relative; border-radius: 18px; overflow: hidden; height: 260px; cursor: pointer; box-shadow: 0 8px 20px rgba(0,0,0,0.06); }
.gallery-card img { width: 100%; height: 100%; object-fit: cover; transition: 0.8s; }
.gallery-card:hover img { transform: scale(1.1) rotate(1deg); }
.card-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(46, 125, 50, 0.9), transparent); display: flex; align-items: center; justify-content: center; opacity: 0; transition: 0.4s; }
.gallery-card:hover .card-overlay { opacity: 1; }
.card-overlay i { color: #fff; font-size: 2.2rem; transform: translateY(30px); transition: 0.4s; }
.gallery-card:hover .card-overlay i { transform: translateY(0); }

/* Modal Design */
#galleryModal .modal-content { border-radius: 30px; border: none; box-shadow: 0 30px 60px rgba(0,0,0,0.4); background-color: #fff; overflow: hidden; }
.modal-img-side { background: #0a0a0a; display: flex; align-items: center; justify-content: center; min-height: 550px; position: relative; }
#modalMainImage { max-width: 100%; max-height: 85vh; object-fit: contain; }
.modern-modal-info { padding: 45px; background: #fff; border-left: 1px solid #f0f0f0; }

.nav-control { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255, 255, 255, 0.1); backdrop-filter: blur(10px); color: #fff; border: none; width: 50px; height: 80px; display: flex; align-items: center; justify-content: center; font-size: 20px; transition: 0.3s; z-index: 10; }
.nav-control:hover { background: rgba(255, 255, 255, 0.3); color: #fff; }
.nav-prev { left: 0; border-radius: 0 15px 15px 0; }
.nav-next { right: 0; border-radius: 15px 0 0 15px; }

/* Modal Info Items */
.info-label { font-size: 10px; font-weight: 800; color: #b0b0b0; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 2px; display: block; }
.info-value { font-size: 14px; font-weight: 700; color: #333; display: block; }
.summary-text { font-size: 0.92rem; line-height: 1.7; color: #555; background: #fdfdfd; padding: 20px; border-radius: 15px; border: 1px dashed #e0e0e0; }

.btn-donate-luxury { background: linear-gradient(45deg, var(--donate-orange), #ffb74d); color: white; border: none; box-shadow: 0 4px 15px rgba(255, 152, 0, 0.3); transition: 0.3s; font-weight: 700; padding: 12px 25px; border-radius: 50px;}
.btn-donate-luxury:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(255, 152, 0, 0.4); color: white; }

/* ==========================================================================
   ৬. Single Program Details Page
   ========================================================================== */
.program-feature-img { width: 100%; height: 450px; object-fit: cover; border-radius: 25px; box-shadow: 0 15px 35px rgba(0,0,0,0.1); }
.donation-card { background: #fff; border-radius: 20px; padding: 30px; position: sticky; top: 100px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); border: 1px solid #eee; }
.progress-custom { height: 12px; background-color: #e9ecef; border-radius: 10px; margin: 20px 0; }
.progress-custom .progress-bar { background: linear-gradient(45deg, #2e7d32, #66bb6a); border-radius: 10px; }
.team-member-card { text-align: center; background: #f8f9fa; padding: 20px; border-radius: 15px; transition: 0.3s; }
.team-member-card:hover { transform: translateY(-8px); background: #fff !important; box-shadow: 0 10px 20px rgba(0,0,0,0.05); }
.donor-item { display: flex; align-items: center; padding: 10px 0; border-bottom: 1px dashed #eee; }

/* ==========================================================================
   ৭. Team Profile Page (Optimized, Stable Layout)
   ========================================================================== */
.profile-page-wrapper { min-height: 100vh; }
.profile-header-card {
    background: linear-gradient(135deg, #2e7d32 0%, #1b5e20 100%);
    padding: 80px 0 150px 0;
    color: white;
    text-align: center;
    border-radius: 0 0 50px 50px;
    position: relative;
    z-index: 1;
}

.profile-main-card {
    background: #ffffff;
    border-radius: 35px;
    padding: 100px 40px 50px 40px;
    margin-top: -100px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.08);
    position: relative;
    z-index: 5;
    margin-bottom: 40px;
    border: 1px solid #f0f0f0;
}

.profile-img-wrapper {
    position: absolute;
    top: -90px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.profile-img-wrapper img {
    width: 180px; height: 180px; border: 8px solid #fff; border-radius: 50%; object-fit: cover; box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.social-pill {
    width: 45px; height: 45px; display: inline-flex; align-items: center; justify-content: center;
    background: #f8f9fa; color: var(--primary-green); border-radius: 50%; margin: 0 8px; transition: 0.3s; box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
.social-pill:hover { background: var(--primary-green); color: #fff; transform: translateY(-5px); box-shadow: 0 8px 15px rgba(46, 125, 50, 0.2); }

.contact-sidebar-luxury {
    background: #fff; padding: 30px; border-radius: 25px; border: 1px solid #f0f0f0; box-shadow: 0 5px 20px rgba(0,0,0,0.03);
}

.map-card-wrapper {
    border-radius: 20px; overflow: hidden; margin-top: 20px; border: 4px solid #f8f9fa; line-height: 0; box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.hover-shadow:hover { box-shadow: 0 8px 25px rgba(0,0,0,0.08); transform: translateY(-3px); border-color: var(--primary-green) !important; }
.transition-all { transition: all 0.3s ease; }

/* --- Responsive Adjustments --- */
@media (max-width: 991px) {
    .modern-modal-info { padding: 30px; }
    .modal-img-side { min-height: 350px; }
    .gallery-program-wrapper { padding: 20px; }
    .profile-main-card { padding: 80px 20px 30px 20px; }
    .profile-img-wrapper img { width: 140px; height: 140px; }
    .profile-img-wrapper { top: -70px; }
    .profile-header-card { padding: 60px 0 120px 0; }
}
/* --- Office Section Styles --- */
.office-card {
    background: #fff;
    border-radius: 20px;
    padding: 30px;
    border: 1px solid #f0f0f0;
    transition: 0.4s;
    height: 100%;
}

.office-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    border-color: var(--primary-green);
}

.office-badge {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 5px 12px;
    border-radius: 50px;
    margin-bottom: 15px;
    display: inline-block;
}

.office-icon-box {
    width: 50px;
    height: 50px;
    background: #e8f5e9;
    color: var(--primary-green);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    font-size: 1.5rem;
    margin-bottom: 20px;
}
.office-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark-accent);
    margin-bottom: 5px;
}
.office-address {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 15px;
}
.office-contact {
    font-size: 0.9rem;
    color: #777;
    display: flex;
    align-items: center;
    gap: 10px;
}
.office-contact i {
    color: var(--primary-green);
}

/* --- Modern Team Page Card --- */
/* --- Ultra Modern Team Card --- */
.team-grid-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid #eee;
    transition: 0.4s;
    display: flex;
    flex-direction: column;
    height: 100%; /* সব কার্ডের সাইজ সমান রাখবে */
}

.team-grid-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    border-color: var(--primary-green);
}

.member-img-wrapper {
    width: 100%;
    height: 300px; /* ছবির ফিক্সড উচ্চতা */
    overflow: hidden;
    position: relative;
}

.member-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* ছবি চারকোনা বক্সে ফিট করবে */
    transition: 0.5s;
}

.team-grid-card:hover .member-img-wrapper img {
    transform: scale(1.1);
}

.member-details {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* কন্টেন্ট এরিয়াকে বড় করবে যাতে বাটন নিচে যায় */
    text-align: center;
}

.member-details h5 {
    font-weight: 800;
    color: var(--dark-accent);
    margin-bottom: 5px;
}

.member-details .designation {
    color: var(--primary-green);
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 15px;
    display: block;
}

.member-details .bio-short {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* টেক্সট ৩ লাইনের বেশি হলে ডট ডট দেখাবে */
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* বাটনকে একদম নিচে ফিক্স করার ম্যাজিক কোড */
.member-footer {
    margin-top: auto; 
    padding-top: 15px;
}

.head-office-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(46, 125, 50, 0.9);
    color: white;
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 10px;
    font-weight: 700;
    backdrop-filter: blur(5px);
}
/* --- Office-wise Team Layout --- */
.office-group-section {
    margin-bottom: 80px;
}

.office-header {
    background: #fff;
    border-radius: 15px;
    padding: 20px 40px;
    margin-bottom: 40px;
    border-left: 8px solid var(--primary-green);
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
}

.office-header h2 {
    font-weight: 800;
    margin-bottom: 0;
    color: var(--dark-accent);
}

.office-header .office-type {
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--primary-green);
    background: #e8f5e9;
    padding: 5px 15px;
    border-radius: 50px;
}
/* --- News & Notice Styles --- */
.news-card {
    border-radius: 15px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #eee;
    height: 100%;
    transition: 0.3s;
}
.news-card:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0,0,0,0.08); }

.notice-list-item {
    background: #fff;
    border-left: 5px solid var(--primary-green);
    padding: 15px 25px;
    border-radius: 8px;
    margin-bottom: 15px;
    transition: 0.3s;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}
.notice-list-item:hover { background: #f0f7f0; transform: scale(1.01); }

.post-content img { max-width: 100%; height: auto; border-radius: 10px; margin: 20px 0; }
.post-content { line-height: 1.8; font-size: 1.1rem; color: #444; text-align: justify; }

.mention-pill {
    background: #e8f5e9;
    color: var(--primary-green);
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    margin-right: 10px;
}
/* --- Post Details Style --- */
.post-detail-content {
    line-height: 1.9;
    color: #444;
    font-size: 1.1rem;
}
.post-detail-content p { margin-bottom: 25px; }
.post-detail-content img { 
    max-width: 100%; 
    height: auto; 
    border-radius: 15px; 
    margin: 30px 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.sidebar-card {
    background: #fff;
    border-radius: 20px;
    padding: 25px;
    border: 1px solid #eee;
    margin-bottom: 30px;
}

.mention-card {
    display: flex;
    align-items: center;
    padding: 12px;
    background: #f8fdf9;
    border: 1px solid #e8f5e9;
    border-radius: 12px;
    margin-bottom: 12px;
    transition: 0.3s;
    text-decoration: none;
}
.mention-card:hover { transform: translateX(5px); background: #fff; box-shadow: 0 5px 15px rgba(0,0,0,0.05); }

/* --- Contact Page Styles --- */
.contact-info-card {
    background: #fff;
    border-radius: 20px;
    padding: 30px;
    border: 1px solid #f0f0f0;
    transition: 0.3s;
    height: 100%;
}
.contact-info-card:hover { border-color: var(--primary-green); box-shadow: 0 10px 30px rgba(0,0,0,0.05); }

.contact-icon {
    width: 60px; height: 60px;
    background: #e8f5e9;
    color: var(--primary-green);
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.contact-form-wrapper {
    background: #fff;
    padding: 40px;
    border-radius: 25px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.05);
}

.form-control-luxury {
    border: 1px solid #eee;
    padding: 15px 20px;
    border-radius: 12px;
    background: #fdfdfd;
    transition: 0.3s;
}
.form-control-luxury:focus {
    background: #fff;
    border-color: var(--primary-green);
    box-shadow: 0 0 15px rgba(46, 125, 50, 0.1);
    outline: none;
}

/* --- Donation Page Luxury UI --- */
.donation-header-box {
    background: linear-gradient(135deg, #2e7d32 0%, #1b5e20 100%);
    padding: 40px;
    border-radius: 20px 20px 0 0;
}

.payment-method-card {
    cursor: pointer;
    border: 2px solid #f0f0f0;
    border-radius: 15px;
    padding: 20px;
    transition: 0.3s;
    text-align: center;
}

.btn-check:checked + .payment-method-card {
    border-color: var(--primary-green);
    background: #e8f5e9;
    transform: scale(1.05);
}

.dynamic-field-wrapper {
    background: #fdfdfd;
    border: 2px dashed #e0e0e0;
    border-radius: 20px;
    padding: 25px;
}

.donation-input {
    border: 2px solid #eee;
    padding: 12px 20px;
    border-radius: 12px;
    font-weight: 600;
}
.donation-input:focus { border-color: var(--primary-green); box-shadow: none; }
body { 
    font-family: 'Inter', sans-serif;
     margin-top: -8px !important; 
 }
h1, h2, h3, h4, h5, h6 { font-family: 'Poppins', sans-serif; }

/* Background & Identity Section */
.section-heading-line { width: 60px; height: 4px; background: var(--primary-green); margin-top: 10px; }
.legal-card-dark { background: #212529; color: #fff; border-radius: 15px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.custom-check-list { list-style: none; padding-left: 0; }
.custom-check-list li { position: relative; padding-left: 30px; margin-bottom: 12px; font-weight: 500; color: #444; }
.custom-check-list li::before { content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900; position: absolute; left: 0; color: var(--primary-green); }

/* Core Component Card */
.comp-card-luxury {
    background: #fff; border-radius: 12px; padding: 30px 20px; text-align: center;
    border: 1px solid #f0f0f0; transition: 0.3s; height: 100%; box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}
.comp-card-luxury:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0,0,0,0.08); border-color: var(--primary-green); }
.comp-card-luxury i { font-size: 2.5rem; color: var(--primary-green); margin-bottom: 15px; }
.comp-card-luxury h6 { font-weight: 700; color: #333; font-size: 0.95rem; }

/* Program Card Overlay */
.program-logo-overlap { width: 70px; height: 70px; background: #fff; border-radius: 50%; padding: 5px; position: absolute; bottom: -35px; left: 25px; box-shadow: 0 5px 15px rgba(0,0,0,0.1); border: 3px solid #fff; }
