/* ==========================================================================
   BASD (basdbd.org) - Eco-Friendly NGO Theme
   Inspired by JYDO (jydo.org) visual architecture & color palette
   ========================================================================== */

:root {
    --forest-green: #2c7744;
    --dark-green: #1b5e20;
    --deep-green: #0d3c1a;
    --lime-green: #4caf50;
    --moss-green: #5d8c5a;
    --sage-green: #87a96b;
    --olive-green: #6b8e23;
    --accent-yellow: #f8b739;
    --light-green: #e8f5e9;
    --medium-green: #c8e6c9;
    --soft-bg-start: #f1f8e9;
    --soft-bg-end: #e8f5e9;
    --light-color: #f9f9f9;
    --dark-color: #333333;
    --font-body: 'Inter', 'Hind Siliguri', 'Segoe UI', system-ui, -apple-system, Roboto, Arial, sans-serif;
    --font-head: 'Poppins', 'Hind Siliguri', 'Segoe UI', system-ui, -apple-system, Roboto, Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--dark-color);
    background: linear-gradient(180deg, var(--soft-bg-start) 0%, var(--soft-bg-end) 100%);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.65;
}

h1, h2, h3, h4, h5, h6, .navbar, .btn, .badge {
    font-family: var(--font-head);
    letter-spacing: -0.01em;
}

/* Subtle SVG Leaf & Tree Watermark Patterns */
.bg-leaf-pattern {
    background-color: #f1f8e9;
    background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M40 12c10 8 16 20 12 34-8 2-20-4-24-16 4-8 8-14 12-18z' fill='%232c7744' fill-opacity='0.045'/%3E%3C/svg%3E");
}

.bg-tree-pattern {
    background-color: #e8f5e9;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M50 15l18 28h-8l12 22h-16v18h-12v-18h-16l12-22h-8z' fill='%231b5e20' fill-opacity='0.04'/%3E%3C/svg%3E");
}

/* ==========================================================================
   1. Two-Tier Header (Top Utility Bar + Main Sticky Navbar)
   ========================================================================== */
.top-header {
    background: linear-gradient(90deg, var(--forest-green) 0%, var(--moss-green) 100%);
    color: #ffffff;
    font-size: 0.85rem;
    padding: 7px 0;
    border-bottom: 2px solid var(--accent-yellow);
}

.top-header a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.2s ease;
}

.top-header a:hover {
    color: var(--accent-yellow);
}

.top-marquee-wrap {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}

.top-marquee-text {
    display: inline-block;
    color: var(--accent-yellow);
    font-weight: 600;
    padding-left: 100%;
    animation: basd-marquee 28s linear infinite;
}

.top-marquee-wrap:hover .top-marquee-text {
    animation-play-state: paused;
}

@keyframes basd-marquee {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

.main-header {
    background: linear-gradient(90deg, #a5d6a7 0%, #81c784 100%);
    border-bottom: 3px solid var(--forest-green);
    box-shadow: 0 4px 12px rgba(27, 94, 32, 0.12);
    padding: 8px 0;
    z-index: 1030;
}

.brand-logo-img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #ffffff;
    background: #ffffff;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.18);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.navbar-brand:hover .brand-logo-img {
    transform: scale(1.05);
}

.brand-org-title {
    color: #0d3c78;
    font-weight: 700;
    font-size: 0.98rem;
    line-height: 1.18;
    margin-bottom: 2px;
}

.brand-org-sub {
    color: var(--dark-green);
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.main-header .nav-link {
    color: #103b19 !important;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 7px 13px !important;
    border-radius: 20px;
    transition: all 0.25s ease;
    margin: 2px 2px;
    white-space: nowrap;
}

.main-header .nav-link:hover,
.main-header .nav-link.active,
.main-header .show > .nav-link {
    background-color: var(--forest-green);
    color: #ffffff !important;
    box-shadow: 0 3px 8px rgba(44, 119, 68, 0.25);
}

.main-header .dropdown-menu {
    border: 1px solid var(--medium-green);
    border-top: 3px solid var(--accent-yellow);
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    padding: 8px;
}

.main-header .dropdown-item {
    border-radius: 6px;
    font-weight: 500;
    padding: 8px 14px;
    color: var(--dark-color);
}

.main-header .dropdown-item:hover {
    background-color: var(--light-green);
    color: var(--forest-green);
}

/* ==========================================================================
   2. Hero Carousel / Slider (Centered Framed Slider like jydo.org)
   ========================================================================== */
.hero-slider-wrapper {
    padding: 24px 0 12px;
}

.hero-slider {
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 12px;
    border: 4px solid var(--forest-green);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(27, 94, 32, 0.18);
    background: var(--dark-green);
}

.hero-slider .carousel-item {
    height: 500px;
    position: relative;
}

.hero-slider .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.86);
}

.hero-slider .carousel-caption {
    background: rgba(44, 119, 68, 0.87);
    border-left: 5px solid var(--accent-yellow);
    border-radius: 8px;
    padding: 22px 26px;
    text-align: left;
    left: 5%;
    right: auto;
    bottom: 36px;
    max-width: 640px;
    backdrop-filter: blur(4px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22);
}

.hero-slider .carousel-caption h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
}

.hero-slider .carousel-caption p {
    font-size: 0.96rem;
    color: #f1f8e9;
    margin-bottom: 14px;
}

.btn-basd {
    background: linear-gradient(135deg, var(--forest-green) 0%, var(--lime-green) 100%);
    color: #ffffff;
    border: none;
    border-radius: 25px;
    padding: 9px 22px;
    font-weight: 600;
    font-size: 0.92rem;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(44, 119, 68, 0.25);
}

.btn-basd:hover {
    background: linear-gradient(135deg, var(--dark-green) 0%, var(--forest-green) 100%);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(27, 94, 32, 0.35);
}

.btn-basd-yellow {
    background: var(--accent-yellow);
    color: #1b3b1e;
    border: none;
    border-radius: 25px;
    padding: 9px 22px;
    font-weight: 700;
    font-size: 0.92rem;
    transition: all 0.25s ease;
}

.btn-basd-yellow:hover {
    background: #e5a324;
    color: #0d2b10;
    transform: translateY(-2px);
}

/* ==========================================================================
   3. Section Titles & Yellow Underline Accent
   ========================================================================== */
.section-title {
    color: var(--forest-green);
    font-weight: 700;
    font-size: 1.85rem;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
    margin-bottom: 14px;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 64px;
    height: 4px;
    background: var(--accent-yellow);
    border-radius: 2px;
}

.text-center .section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

/* ==========================================================================
   4. Executive Director Message & Quick Access Cards
   ========================================================================== */
.director-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 28px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border-top: 5px solid var(--forest-green);
    height: 100%;
}

.director-portrait {
    width: 170px;
    height: 170px;
    border-radius: 50%;
    border: 5px solid var(--accent-yellow);
    box-shadow: 0 6px 18px rgba(44, 119, 68, 0.2);
    background: linear-gradient(135deg, var(--forest-green), var(--moss-green));
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    overflow: hidden;
}

.director-portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.quick-access-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 125px;
    padding: 16px 12px;
    border-radius: 12px;
    background: linear-gradient(180deg, #ffffff 0%, #e8f5e9 100%);
    border: 1px solid var(--medium-green);
    border-top: 5px solid var(--forest-green);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.07);
    text-decoration: none;
    color: var(--dark-green);
    transition: all 0.28s ease;
}

.quick-access-card i {
    font-size: 2rem;
    color: var(--forest-green);
    margin-bottom: 10px;
    transition: transform 0.28s ease, color 0.28s ease;
}

.quick-access-card span {
    font-weight: 600;
    font-size: 0.92rem;
    line-height: 1.25;
}

.quick-access-card:hover {
    transform: translateY(-5px);
    background: linear-gradient(135deg, var(--forest-green) 0%, var(--lime-green) 100%);
    color: #ffffff;
    border-top-color: var(--accent-yellow);
    box-shadow: 0 10px 22px rgba(44, 119, 68, 0.24);
}

.quick-access-card:hover i {
    color: var(--accent-yellow);
    transform: scale(1.12);
}

/* ==========================================================================
   5. Vision, Mission & About Section
   ========================================================================== */
.vision-mission-section {
    background: linear-gradient(135deg, #f1f8e9 0%, #dcedc8 100%);
    position: relative;
    overflow: hidden;
}

.vm-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 26px;
    height: 100%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border-left: 5px solid var(--forest-green);
    transition: transform 0.25s ease;
}

.vm-card:hover {
    transform: translateY(-5px);
}

.vm-card .vm-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--light-green);
    color: var(--forest-green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 14px;
}

/* ==========================================================================
   6. Impact / Stats Counter Banner
   ========================================================================== */
.impact-banner {
    background: linear-gradient(135deg, var(--forest-green) 0%, var(--moss-green) 100%);
    color: #ffffff;
    position: relative;
    overflow: hidden;
    border-top: 3px solid var(--accent-yellow);
    border-bottom: 3px solid var(--accent-yellow);
}

.impact-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='70' height='70' viewBox='0 0 70 70' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M35 10c9 7 14 18 10 30-7 2-17-3-20-14 3-7 7-12 10-16z' fill='%23ffffff' fill-opacity='0.07'/%3E%3C/svg%3E");
    pointer-events: none;
}

.stat-box {
    position: relative;
    z-index: 1;
    padding: 16px;
}

.stat-box i {
    font-size: 2.2rem;
    color: var(--accent-yellow);
    margin-bottom: 10px;
}

.stat-number {
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.92rem;
    color: #e8f5e9;
    font-weight: 500;
}

/* ==========================================================================
   7. Eco Tips Cards
   ========================================================================== */
.eco-tip-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 24px;
    border-top: 4px solid var(--lime-green);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.07);
    height: 100%;
    transition: transform 0.25s ease;
}

.eco-tip-card:hover {
    transform: translateY(-5px);
}

.eco-tip-card i {
    font-size: 2rem;
    color: var(--forest-green);
    margin-bottom: 12px;
}

/* ==========================================================================
   8. Activity Cards
   ========================================================================== */
.activity-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--medium-green);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.activity-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 26px rgba(44, 119, 68, 0.16);
}

.activity-img-wrap {
    height: 205px;
    overflow: hidden;
    position: relative;
    background: var(--light-green);
}

.activity-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.activity-card:hover .activity-img-wrap img {
    transform: scale(1.08);
}

.activity-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(44, 119, 68, 0.92);
    color: #ffffff;
    font-size: 0.74rem;
    font-weight: 600;
    padding: 4px 11px;
    border-radius: 20px;
}

.activity-body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.activity-body h5 {
    color: var(--dark-green);
    font-weight: 700;
    font-size: 1.04rem;
    margin-bottom: 8px;
}

.activity-body p {
    font-size: 0.89rem;
    color: #555555;
    flex-grow: 1;
}

/* ==========================================================================
   9. Gallery / Achievements Thumbnails
   ========================================================================== */
.gallery-thumb {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    border: 3px solid var(--medium-green);
    height: 200px;
    cursor: pointer;
    box-shadow: 0 5px 14px rgba(0, 0, 0, 0.08);
    transition: transform 0.28s ease, border-color 0.28s ease;
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-thumb:hover {
    transform: translateY(-4px);
    border-color: var(--forest-green);
}

.gallery-thumb:hover img {
    transform: scale(1.08);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(27, 94, 32, 0.86) 0%, transparent 60%);
    opacity: 0;
    display: flex;
    align-items: flex-end;
    padding: 12px;
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 600;
    transition: opacity 0.25s ease;
}

.gallery-thumb:hover .gallery-overlay {
    opacity: 1;
}

/* ==========================================================================
   10. Upcoming Training & Events (Notice Board Cards)
   ========================================================================== */
.notice-board {
    background: var(--light-green);
    border-left: 5px solid var(--forest-green);
    border-radius: 10px;
    padding: 18px;
    margin-bottom: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    transition: transform 0.25s ease;
}

.notice-board:hover {
    transform: translateX(4px);
}

.event-date {
    min-width: 64px;
    height: 64px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--forest-green) 0%, var(--lime-green) 100%);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    line-height: 1.1;
    box-shadow: 0 3px 10px rgba(44, 119, 68, 0.25);
}

.event-date .day {
    font-size: 1.35rem;
}

.event-date .month {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent-yellow);
}

/* ==========================================================================
   11. Contact / Feedback Form & Working Districts / Team
   ========================================================================== */
.contact-form-box {
    background: var(--light-green);
    border: 1px solid var(--medium-green);
    border-top: 5px solid var(--forest-green);
    border-radius: 12px;
    padding: 28px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.07);
}

.district-card {
    background: #ffffff;
    border: 1px solid var(--medium-green);
    border-left: 4px solid var(--accent-yellow);
    border-radius: 10px;
    padding: 16px;
    height: 100%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
    transition: transform 0.25s ease;
}

.district-card:hover {
    transform: translateY(-4px);
    border-left-color: var(--forest-green);
}

/* ==========================================================================
   12. Partners Strip
   ========================================================================== */
.partner-pill {
    background: var(--soft-bg-start);
    border: 1px solid var(--medium-green);
    border-radius: 10px;
    padding: 14px 16px;
    text-align: center;
    height: 100%;
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.partner-pill:hover {
    transform: translateY(-3px);
    border-color: var(--forest-green);
}

.partner-pill i {
    font-size: 1.6rem;
    color: var(--forest-green);
    margin-bottom: 6px;
}

/* ==========================================================================
   13. Internal Page Hero Banners & Contact Info Cards
   ========================================================================== */
.page-hero {
    background: linear-gradient(135deg, var(--dark-green) 0%, var(--forest-green) 60%, var(--moss-green) 100%);
    color: #ffffff;
    padding: 58px 0 48px;
    text-align: center;
    border-bottom: 4px solid var(--accent-yellow);
    position: relative;
}

.page-hero h1 {
    font-weight: 700;
    font-size: 2.3rem;
    margin-bottom: 10px;
}

.page-hero p {
    color: #e8f5e9;
    max-width: 720px;
    margin: 0 auto;
    font-size: 1.04rem;
}

.contact-info-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 28px 22px;
    text-align: center;
    border-top: 4px solid var(--dark-green);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    height: 100%;
    transition: transform 0.25s ease;
}

.contact-info-card:hover {
    transform: translateY(-5px);
}

.contact-info-card .icon-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--light-green);
    color: var(--forest-green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 14px;
}

/* ==========================================================================
   14. Footer (Dark Green Gradient + Yellow Top Border)
   ========================================================================== */
footer.site-footer {
    background: linear-gradient(180deg, var(--dark-green) 0%, var(--deep-green) 100%);
    color: #e8f5e9;
    border-top: 5px solid var(--accent-yellow);
    padding-top: 50px;
    margin-top: 40px;
}

.footer-title {
    color: var(--accent-yellow);
    font-weight: 700;
    font-size: 1.12rem;
    position: relative;
    padding-bottom: 10px;
    margin-bottom: 18px;
}

.footer-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background: var(--accent-yellow);
    border-radius: 2px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 9px;
}

.footer-links a {
    color: #dcedc8;
    text-decoration: none;
    font-size: 0.92rem;
    transition: all 0.2s ease;
}

.footer-links a:hover {
    color: var(--accent-yellow);
    padding-left: 5px;
}

.map-container {
    border: 3px solid var(--medium-green);
    border-radius: 10px;
    overflow: hidden;
    height: 200px;
}

.fb-page-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(200, 230, 201, 0.25);
    border-radius: 10px;
    padding: 16px;
}

.social-circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    margin-right: 6px;
    transition: all 0.25s ease;
}

.social-circle:hover {
    background: var(--accent-yellow);
    color: var(--deep-green);
    transform: translateY(-3px);
}

.copyright-bar {
    background: rgba(0, 0, 0, 0.28);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #b9d3bc;
    font-size: 0.85rem;
    padding: 16px 0;
    margin-top: 36px;
}

/* ==========================================================================
   Responsive Adjustments
   ========================================================================== */
@media (max-width: 991.98px) {
    .brand-org-title {
        font-size: 0.98rem;
    }
    .brand-logo-img {
        width: 52px;
        height: 52px;
    }
}

@media (max-width: 767.98px) {
    .hero-slider .carousel-item {
        height: 310px;
    }
    .hero-slider .carousel-caption {
        padding: 14px 16px;
        bottom: 16px;
        left: 4%;
        right: 4%;
    }
    .hero-slider .carousel-caption h2 {
        font-size: 1.2rem;
    }
    .hero-slider .carousel-caption p {
        font-size: 0.82rem;
        margin-bottom: 8px;
    }
    .page-hero h1 {
        font-size: 1.75rem;
    }
}
