/* =======================
    1. General Reset & Base
======================= */
* {
    box-sizing: border-box; 
}

body {
    font-family: 'kalpurush', sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    width: 100%;
    overflow-x: hidden; /* Prevents horizontal scrolling on mobile */
}

/* কন্টেন্টকে ১৯৫০ পিক্সেল পর্যন্ত বড় করার জন্য */
.container-wide {
    width: 100%;
    max-width: 1350px; 
    margin: 0 auto;
    display: block;
    padding: 0 15px; /* Adds safe space on mobile edges */
}

.slider-container img {
    width: 100%;
    height: auto;
}

/* =======================
    2. Navigation Menu
======================= */
/* Dropdown */
.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #1b5e20; 
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    border-radius: 0 0 6px 6px;
    z-index: 10;
}

/* =======================
    3. Slider Section
======================= */
.slider-section {
    position: relative;
    overflow: hidden;
    margin-bottom: 30px;
    width: 100%;
}

.slider-container {
    position: relative;
    max-width: 1650px; 
    width: 100%;
    margin: 0 auto;
    overflow: hidden;
    height: 550px; /* Desktop Height */
}

.slide {
    display: none;
    animation: fade 0.8s ease-in-out;
}

.slide.active {
    display: block;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    display: block;
    transition: transform 0.6s ease;
}

.slider-container:hover img {
    transform: scale(1.03);
}

.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(8px);
    color: #fff;
    border: none;
    font-size: 30px;
    width: 50px;
    height: 50px;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.prev:hover, .next:hover {
    background: #1b5e20;
    transform: translateY(-50%) scale(1.1);
}

.prev { left: 25px; }
.next { right: 25px; }

@keyframes fade {
    from { opacity: 0.5; }
    to { opacity: 1; }
}

/* =======================
    4. Notice Bar
======================= */
.notice-bar {
    display: flex;
    background: #fff3cd;
    border-bottom: 1px solid #ffeeba;
    flex-wrap: wrap; /* Allows wrapping on very small screens */
}

.notice-label {
    background: linear-gradient(135deg, #ff3b3b, #c62828);
    color: #fff;
    padding: 10px 18px;
    font-weight: 600;
    white-space: nowrap;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
    /* modern UI */
    border-radius: 10px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.12);
    letter-spacing: 0.3px;
    /* smooth look */
    position: relative;
    overflow: hidden;
}

/* subtle shine animation */
.notice-label::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: rgba(255,255,255,0.15);
    transform: skewX(-20deg);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { left: -100%; }
    50% { left: 120%; }
    100% { left: 120%; }
}

marquee {
    padding: 10px;
    font-size: 20px; /* Reduced for better scaling */
    color: #2e2817;
    width: 100%;
}

/* =======================
    5. Services & Sidebar
======================= */
.services-section {
    padding: 50px 20px;
}

.services-wrapper {
    display: flex;
    gap: 30px;
    max-width: 90%;
    margin: 0 auto;
    align-items: flex-start;
}

.services-main-content {
    flex: 2;
    min-width: 0;
}

.sidebar {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: sticky;
    top: 100px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 45px 20px; 
    margin-bottom: 30px;
}

.service-card {
    position: relative;
    border-radius: 12px;
    padding: 55px 20px 25px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    border-top: 4px solid #344735; 
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    background: #fff; /* Ensure background is white */
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.1);
}

.service-card h3 {
    font-size: 28px;
    color: #1b5e20;
    margin: 15px 0 10px;
    font-weight: 700;
}

.service-card p {
    color: #555;
    line-height: 1.6;
    font-size: 18px; /* Adjusted slightly */
    flex: 1;
    max-height: 130px;
    overflow-y: auto;
    padding: 10px;
    line-height: 1.5;
}

.service-card p::-webkit-scrollbar {
    width: 5px;
}

.service-card p::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}

.service-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    margin-top: 15px;
}

.icon-circle {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    position: absolute;
    top: -28px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    z-index: 2;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.service-card.green { border-top-color: #2e7d32; }
.service-card.green .icon-circle { background: #2e7d32; }

.service-card.red { border-top-color: #d32f2f; }
.service-card.red .icon-circle { background: #d32f2f; }

.service-card.teal { border-top-color: #00897b; }
.service-card.teal .icon-circle { background: #00897b; }

.service-card.orange { border-top-color: #f4511e; }
.service-card.orange .icon-circle { background: #f4511e; }

/* =======================
    6. Stats Section
======================= */
/* =======================
   STATS SECTION - MODERN UI
======================= */
/* TITLE */
.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    font-size: 32px;
    margin: 10px 0;
    color: #1b5e20;
}

.title-line {
    width: 70px;
    height: 3px;
    background: #4caf50;
    margin: 0 auto;
    border-radius: 10px;
}

/* GRID */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
}

/* CARD */
.stat-item {
    background: rgba(255,255,255,0.75);
    backdrop-filter: blur(10px);
    padding: 30px 15px;
    border-radius: 18px;
    text-align: center;
    border: 1px solid #e6e6e6;
    transition: 0.3s ease;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

/* HOVER */
.stat-item:hover {
    transform: translateY(-8px);
    background: #fff;
    box-shadow: 0 15px 30px rgba(0,0,0,0.12);
}

/* ICON */
.stat-icon {
    font-size: 26px;
}

/* NUMBER */
.stat-number {
    font-size: 52px;
    font-weight: 800;
    color: #1b5e20;
    line-height: 1;
    font-family: 'kalpurush', sans-serif;
}

/* + SIGN */
.stat-number::after {
    content: "+";
    font-size: 20px;
    color: #a59930;
    margin-left: 2px;
}

/* TEXT */
.stat-text {
    font-size: 14px;
    font-weight: 600;
    color: #444;
}

/* COLOR ACCENTS (by position) */
.stat-item:nth-child(1) { border-bottom: 4px solid #4caf50; }
.stat-item:nth-child(2) { border-bottom: 4px solid #ff9800; }
.stat-item:nth-child(3) { border-bottom: 4px solid #f44336; }
.stat-item:nth-child(4) { border-bottom: 4px solid #00bcd4; }

/* =======================
   RESPONSIVE DESIGN
======================= */

/* TABLET */
@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* MOBILE */
@media (max-width: 768px) {
    .stats-section {
        padding: 40px 10px;
    }

    .section-title h2 {
        font-size: 24px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .stat-item {
        padding: 20px 10px;
    }

    .stat-number {
        font-size: 38px;
    }

    .stat-text {
        font-size: 12px;
    }

    .stat-icon {
        font-size: 22px;
    }
}

/* SMALL MOBILE */
@media (max-width: 420px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* =======================
    7. Leadership Section
======================= */
.about-leadership-section {
    padding: 60px 20px;
    padding-bottom: 10px;
}

.container-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 60px;
    align-items: center;
}

.leadership-text-area {
    flex: 1.2;
}

.badge-text {
    background: #e8f5e9;
    color: #2e7d32;
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
}

.section-heading {
    font-size: 36px;
    color: #1b5e20;
    margin: 20px 0;
    line-height: 1.3;
}

.heading-underline {
    width: 80px;
    height: 5px;
    background: #4caf50;
    border-radius: 10px;
    margin-bottom: 30px;
}

.main-desc {
    font-size: 20px;
    color: #555;
    line-height: 1.8;
    margin-bottom: 30px;
}

.features-box {
    margin-bottom: 40px;
}

/* CARD STYLE IMPROVED */
.feature-item {
    display: flex;
    gap: 16px;
    margin-bottom: 22px;
    padding: 18px 16px;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
    transition: all 0.25s ease;
    align-items: flex-start;
}

.feature-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.10);
}

/* ICON */
.f-icon {
    font-size: 26px;
    background: linear-gradient(135deg, #e8f5e9, #f1f8e9);
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    flex-shrink: 0;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.03);
}

/* TITLE */
.feature-item h4 {
    margin: 0 0 6px 0;
    color: #1b5e20;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 0.2px;
}

/* DESCRIPTION */
.feature-item p {
    margin: 0;
    color: #555;
    font-size: 16px;
    line-height: 1.7;
}

.cta-button {
    display: inline-block;
    padding: 15px 35px;
    background: #1b5e20;
    color: white;
    text-decoration: none;
    font-weight: 600;
    border-radius: 8px;
    transition: 0.3s;
}

.cta-button:hover {
    background: #2e7d32;
    box-shadow: 0 10px 20px rgba(46, 125, 50, 0.2);
    transform: translateY(-3px);
}

/* --- Right Column (Leadership Cards Area) --- */
.leadership-cards-area{
    flex: 1;
    background: #f9fbf9;
    border-radius: 40px;
    border: 1px solid #eee;
    text-align: center;
    position: relative;
    z-index: 1;
    padding-top: 20px; 
}

.sidebar-title{
    font-size: 28px;
    color: #45994a;
    margin-bottom: 100px;
    font-weight: 700;
    position: relative;
    z-index: 10;
}

.admin-grid { 
    display: flex; 
    flex-direction: column; 
    gap: 120px; /* Large gap for overlapping cards on desktop */
    margin-top: 20px;
}

.modern-official-card {
    background: #ffffff;
    padding: 100px 15px 30px; 
    border-radius: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.4s ease;
    position: relative; 
    width: 95%; 
    margin: 0 auto;
}

.img-holder {
    position: absolute;
    top: -90px; 
    left: 50%;
    transform: translateX(-50%);
    width: 180px;
    height: 180px;
    z-index: 5;
}

.img-holder img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 8px solid #ffffff; 
    box-shadow: 0 12px 25px rgba(0,0,0,0.1);
}

.info-holder {
    position: relative;
    z-index: 1;
}

.info-holder h5 { 
    font-size: 18px; 
    color: #1b5e20; 
    margin: 10px 0 8px;
    font-weight: 800;
    line-height: 1.2;
}

.info-holder p.role, 
.info-holder p { 
    color: #2e7d32; 
    font-weight: 700; 
    background: #f1f8e9; 
    padding: 5px 20px; 
    border-radius: 50px; 
    font-size: 14px;
    display: inline-block;
    margin-bottom: 10px;
}

.social-mini {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

/* =======================
    8. Roadmap Section
======================= */
.roadmap-section {
    padding: 50px 20px;
}

.roadmap-wrapper {
    max-width: 90%;
    margin: 0 auto;
    display: flex;
    gap: 80px;
    align-items: center;
}

.roadmap-content { flex: 1.2; }
.roadmap-visual { flex: 0.8; }

.section-tag {
    color: #2e7d32;
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 2px;
    background: #e8f5e9;
    padding: 5px 15px;
    border-radius: 50px;
}

.roadmap-title {
    font-size: 34px;
    color: #1b5e20;
    margin: 20px 0;
    font-weight: 800;
}

.steps-container {
    margin-top: 40px;
}

.step-card {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    transition: 0.3s;
    border-left: 4px solid #2e7d32;
}

.step-card:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.step-no {
    font-size: 24px;
    font-weight: 900;
    color: #4caf50;
    opacity: 0.5;
}

.step-info h4 {
    margin: 0 0 5px 0;
    color: #1b5e20;
    font-size: 25px;
}

.step-info p {
    margin: 0;
    color: #666;
    font-size: 20px;
    line-height: 20px;
}

/* Visual Box Styling - Preserved your 3D effects */
.visual-box {
    position: relative;
    padding: 70px 20px 20px;
    background: #f8fffe8f;
    border-radius: 20px;
    height: 700px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    transition: all 0.45s cubic-bezier(.21,1,.21,1);
    will-change: transform;
    isolation: isolate;
}

.visual-box::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 5px;
    width: 100%;
    background: linear-gradient(90deg, #1b5e20, #4caf50, #8bc34a);
    border-radius: 20px 20px 0 0;
}

.visual-box:hover {
    transform: perspective(1100px) rotateX(1.5deg) rotateY(-1.5deg);
    box-shadow: 0 25px 60px rgba(0,0,0,0.15), 0 2px 10px rgba(76,175,80,0.2);
}

.visual-box:hover > * {
    transform: translateY(-2px);
    transition: 0.4s ease;
}

.visual-box::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 20px;
    background: linear-gradient(150deg, transparent 30%, rgba(76,175,80,0.08), transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
    pointer-events: none;
}

.visual-box:hover::after {
    transform: translateX(100%);
}

.experience-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #1b5e20, #4caf50);
    color: white;
    padding: 14px;
    border-radius: 14px;
    text-align: center;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    z-index: 2;
}

.experience-badge .years {
    font-size: 28px;
    font-weight: 800;
    display: block;
}

.experience-badge .exp-text {
    font-size: 12px;
}

.quote-box {
    margin-top: 10px;
    background: linear-gradient(135deg, #ffffff, #f7f7f7);
    padding: 14px 16px;
    border-radius: 12px;
    border-left: 4px solid #ff9800;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

.quote-box p {
    margin: 0;
    font-style: italic;
    font-weight: 600;
    color: #333;
}

.identity-strip {
    font-size: 12px;
    color: #555;
    background: #f1f8f1;
    padding: 6px 10px;
    border-radius: 8px;
}

.live-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #444;
}

.live-indicator .dot {
    width: 8px;
    height: 8px;
    background: #1b5e20;
    border-radius: 50%;
    animation: blink 1.2s infinite;
}

@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0.3; }
    100% { opacity: 1; }
}

.quick-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.quick-highlights span {
    font-size: 11px;
    background: #e8f5e9;
    padding: 4px 8px;
    border-radius: 6px;
    color: #1b5e20;
}

.stats-box {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    text-align: center;
    flex-wrap: wrap;
}

.stats-box div {
    flex: 1;
    min-width: 70px;
}

.stats-box h4 {
    margin: 0;
    color: #1b5e20;
}

.stats-box p {
    margin: 0;
    font-size: 11px;
    color: #666;
}

.status-info {
    font-size: 12px;
    color: #444;
}

.status-info strong {
    color: #1b5e20;
}

.motto-line {
    font-size: 12px;
    font-style: italic;
    color: #333;
}

.footer-note {
    font-size: 11px;
    color: #777;
    text-align: center;
    margin-top: 5px;
}

/* =======================
    9. Mission & Vision
======================= */
/* =======================
   MV SECTION (DESKTOP BASE)
======================= */

.mv-section {
    padding: 40px 20px;
}

.mv-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* GRID */
.mv-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

/* CARD */
.mv-card {
    background: #ffffff;
    padding: 25px 20px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid #eee;
    transition: 0.3s ease;
}

.mv-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
}

/* ICON */
.mv-icon {
    font-size: 42px;
    margin-bottom: 15px;
}

/* TITLE */
.mv-content h3 {
    font-size: 26px;
    color: #1b5e20;
    margin-bottom: 10px;
}

/* LINE */
.mv-line {
    width: 50px;
    height: 3px;
    background: #4caf50;
    margin: 0 auto 15px;
    border-radius: 10px;
}

/* TEXT */
.mv-content p {
    color: #666;
    font-size: 17px;
    line-height: 1.6;
}

/* LIST */
.values-list {
    list-style: none;
    padding: 0;
    text-align: left;
    display: inline-block;
}

.values-list li {
    margin-bottom: 6px;
    font-size: 15px;
    font-weight: 500;
}

/* =======================
   TABLET
======================= */
@media (max-width: 1024px) {
    .mv-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

/* =======================
   MOBILE
======================= */
@media (max-width: 768px) {

    .mv-section {
        padding: 30px 10px;
    }

    .mv-grid {
        grid-template-columns: 1fr; /* single column */
        gap: 15px;
    }

    .mv-card {
        padding: 20px 15px;
    }

    .mv-icon {
        font-size: 36px;
    }

    .mv-content h3 {
        font-size: 22px;
    }

    .mv-content p {
        font-size: 15px;
    }
}

/* =======================
   SMALL MOBILE
======================= */
@media (max-width: 420px) {
    .mv-card {
        padding: 18px 12px;
    }

    .mv-content h3 {
        font-size: 20px;
    }

    .mv-content p {
        font-size: 14px;
    }
}
/* =======================
    10. Why Join Section
======================= */
.why-join-section {
    padding: 100px 20px;
}

.why-join-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header-center {
    text-align: center;
    margin-bottom: 60px;
}

.top-label {
    background: #fff3e0;
    color: #e65100;
    padding: 6px 18px;
    border-radius: 30px;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
}

.modern-title {
    font-size: 36px;
    color: #1b5e20;
    margin: 15px 0;
}

.sub-text {
    color: #3d2424;
    max-width: 600px;
    margin: 0 auto;
    font-size: 20px;
}

.roadmap-desc{
    color: #555;
    font-size: 20px;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

.benefit-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 25px;
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    text-align: center;
}

.benefit-card:hover {
    box-shadow: 0 20px 40px rgba(0,0,0,0.06);
    transform: translateY(-10px);
}

.b-icon-box {
    width: 70px;
    height: 70px;
    border-radius: 20px;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
}

.blue { background: #e3f2fd; color: #1976d2; }
.purple { background: #f3e5f5; color: #7b1fa2; }
.gold { background: #fffde7; color: #fbc02d; }

.benefit-card h3 {
    font-size: 30px;
    color: #333;
    margin-bottom: 15px;
}

.benefit-card p {
    color: #777;
    line-height: 1.6;
    font-size: 18px;
}

.join-action-box {
    background: linear-gradient(135deg, #1b5e20 0%, #2e7d32 100%);
    padding: 40px;
    border-radius: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
}

.action-text h3 { font-size: 26px; margin: 0; }
.action-text p { opacity: 0.9; margin: 10px 0 0 0; }

.pulse-button {
    background: #fff;
    color: #1b5e20;
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 20px rgba(255, 255, 255, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

/* =======================
    11. Gallery Sections
======================= */
.photo-gallery-section, 
.video-gallery-section {
    max-width: 90%;
    margin: 0 auto;
}

.gallery-title {
    text-align: center;
    font-size: 32px;
    margin-bottom: 40px;
    font-weight: 700;
}

.photo-gallery-grid, 
.video-gallery-grid {
    padding: 20px 0px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 25px;
}

.gallery-card, .video-card {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    background: #fff;
    transition: 0.4s ease;
}

.gallery-card img, .video-card img {
    width: 100%;
    height: 230px;
    object-fit: cover;
    display: block;
    transition: 0.5s;
}

.photo-gallery-section .gallery-title { color: #1b5e20; }

.gallery-card:hover img {
    transform: scale(1.1);
}

.gallery-card::after {
    content: ' View Full Image';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: rgba(27, 94, 32, 0.85);
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 14px;
    opacity: 0;
    transition: 0.3s;
    pointer-events: none; 
    z-index: 2;
}

.gallery-card:hover::after {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.video-gallery-section .gallery-title { color: #c62828; }

.video-card {
    background: #000;
}

.video-card img {
    opacity: 0.85;
}

.video-card::before {
    content: '▶'; 
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 65px;
    height: 65px;
    background: #f44336;
    color: white;
    font-size: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    z-index: 3;
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 0 20px rgba(0,0,0,0.4);
    pointer-events: none;
}

.video-card:hover::before {
    background: #ff0000;
    transform: translate(-50%, -50%) scale(1.15);
}

.video-card:hover img {
    opacity: 1;
}

.gallery-caption, .video-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    color: white;
    font-size: 15px;
    text-align: center;
    font-weight: 500;
    z-index: 4;
}

.gallery-caption {
    background: linear-gradient(transparent, rgba(27, 94, 32, 0.95));
}

.video-caption {
    background: linear-gradient(transparent, rgba(198, 40, 40, 0.95));
}

/* =======================
    12. Committee Section
======================= */
.committee-section h3 {
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    color: #1b5e20;
    padding: 30px 0;
}

.committee-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 30px;
}

.member-box {
    width: 100%;
    max-width: 190px;
    background: #e3e3e5;
    padding: 10px;
    border-radius: 10px;
    text-align: center;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    height: 260px; 
    margin: 0 auto;
}

.member-box img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ddd;
    margin: 0 auto 10px;
}

.member-info {
    display: grid;
    grid-template-rows: 45px auto; 
    height: 100%;
    gap: 2px; 
}

.member-name {
    font-weight: 600;
    font-size: 16px;
    color: #1b5e20;
    overflow: hidden;
    line-height: 1.3;
}

.member-designation {
    font-size: 14px;
    color: #3f3e3e;
    transform: translateY(-10px);
    align-self: end;
}

.member-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(63, 63, 63, 0.356);
}

/* =======================
    13. RESPONSIVE MEDIA QUERIES
    (The "App-like" feel adjustments)
======================= */

/* Tablet & Small Laptops (1024px and down) */
@media (max-width: 1024px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .mv-grid { grid-template-columns: 1fr; }
    .benefits-grid { grid-template-columns: repeat(2, 1fr); }
    .photo-gallery-grid, .video-gallery-grid { grid-template-columns: repeat(2, 1fr); }
    
    .container-wrapper, .roadmap-wrapper {
        flex-direction: column;
        text-align: center;
    }
    
    .sidebar {
        width: 100%;
        position: static; /* Disable sticky */
        margin-top: 40px;
    }
    
    .leadership-cards-area { width: 100%; }
    .admin-grid { gap: 60px; }
    
    .roadmap-visual { width: 100%; margin-top: 30px; }
}

/* Mobile Devices (768px and down) */
@media (max-width: 768px) {
    /* ১. স্পেসিং এবং টাইপোগ্রাফি (Size Reduced) */
    .section-heading, .modern-title, .roadmap-title { font-size: 20px; margin: 8px 0; }
    .main-desc { font-size: 14px; line-height: 1.5; margin-bottom: 15px; }
    section { padding: 20px 0 !important; } /* সেকশনের টপ-বটম গ্যাপ কমানো */

    /* ২. স্লাইডার (More Compact) */
    .slider-container { height: 180px !important; }
    .prev, .next { width: 28px; height: 28px; font-size: 14px; }

    /* ৩. সার্ভিস গ্রিড (2 Columns + More Gap) */
    .services-grid { 
        display: grid;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important; /* গ্যাপ বাড়ানো হয়েছে */
    }
    .service-card { 
        padding: 30px 8px 12px !important; 
        border-radius: 8px;
    }
    .service-card h3 { font-size: 15px !important; margin: 8px 0; }
    .service-card p { font-size: 12px !important; line-height: 1.4; max-height: 60px; }
    .icon-circle { width: 35px; height: 35px; top: -18px; font-size: 16px; }

    /* ৪. স্ট্যাটস গ্রিড (Smaller & Clean) */
    .stats-grid { 
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
    }
    .stat-item { padding: 12px 5px !important; border-radius: 12px; }
    .stat-item .stat-number { font-size: 26px !important; }
    .stat-text { font-size: 10px !important; letter-spacing: 0; }

    /* ৫. লিডারশিপ কার্ড (More Compact & Stable) */
    .leadership-cards-area { padding-top: 20px; }
    .sidebar-title { margin-bottom: 20px; font-size: 22px; }
    .modern-official-card { padding: 20px 10px; }

    /* Move image from floating absolute to relative for mobile stability */
    .img-holder {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        margin: 0 auto 10px;
        width: 100px;
        height: 100px;
    }
    .img-holder img { width: 100px; height: 100px; }
    .admin-grid { gap: 20px; }

    /* ৬. গ্যালারি (2 Columns + Better Gap) */
    .photo-gallery-grid, .video-gallery-grid { 
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }
    .gallery-card img, .video-card img { height: 120px !important; }
    .gallery-caption, .video-caption { font-size: 11px; padding: 5px; }

    /* ৭. কমিটি সেকশন (Compact 2 Columns) */
    .committee-grid { 
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }
   .member-info {
        display: flex !important;
        flex-direction: column !important; /* 🔥 main fix */
        align-items: center !important;
        justify-content: center !important;
        gap: 4px !important;
        text-align: center;
    }

    .member-name {
        display: block !important;
        width: 100%;
        margin: 0 !important;
        font-size: 13px;
        line-height: 1.2;
    }

    .member-designation {
        display: block !important;
        width: 100%;
        margin: 0 !important;
        font-size: 11px;
        line-height: 1.2;
        transform: none !important;
    }

    /* extra safety */
    .member-box {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    /* ৮. বেনিফিটস এবং রোডম্যাপ (Cleaning) */
    .step-card { padding: 12px; gap: 10px; }
    .step-info h4 { font-size: 18px; }
    .step-info p { font-size: 14px; }
    .benefit-card h3 { font-size: 18px; }
    .benefit-card p { font-size: 14px; }
}

/* Extra Small Mobile (480px and down) */
@media (max-width: 480px) {
    .services-grid { grid-template-columns: 1fr; } /* 1 column on very small screens */
    .stats-grid { grid-template-columns: 1fr; }
    .committee-grid { grid-template-columns: 1fr; }
    .member-box { max-width: 100%; }
}