/* --- Reset & Base Styles --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --primary-green: #006837;
    --light-green: #00a651;
    --dark-green: #004b28;
    --pure-white: #ffffff;
    --off-white: #f8f9fa;
    --orange-color: #f7931e;
    --text-dark: #333333;
    --text-light: #777777;
}

.container {
    width: 85%;
    max-width: 1200px;
    margin: 0 auto;
}

/* --- Top Bar --- */
.top-bar {
    background-color: var(--primary-green);
    color: var(--pure-white);
    padding: 10px 0;
    font-size: 14px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-info span {
    margin-right: 20px;
}

.top-links {
    display: flex;
    gap: 10px;
}

.btn-top {
    background-color: var(--pure-white);
    color: var(--primary-green);
    text-decoration: none;
    padding: 5px 15px;
    border-radius: 4px;
    font-weight: bold;
}

.btn-top.outline {
    background-color: transparent;
    color: var(--pure-white);
    border: 1px solid var(--pure-white);
}

/* --- Header --- */
.main-header {
    background-color: var(--pure-white);
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-placeholder {
    background-color: #8c1d1d;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    border: 2px solid var(--orange-color);
}

.logo-text h1 {
    color: var(--primary-green);
    font-size: 22px;
    line-height: 1;
}

.logo-text p {
    color: var(--text-dark);
    font-size: 14px;
    letter-spacing: 1px;
}

.nav-links a {
    text-decoration: none;
    color: var(--primary-green);
    margin: 0 15px;
    font-weight: 600;
}

.nav-links a.active {
    color: var(--orange-color);
}

.btn-donate-header {
    background-color: var(--primary-green);
    color: var(--pure-white);
    text-decoration: none;
    padding: 10px 25px;
    border-radius: 4px;
    font-weight: bold;
}

/* --- Hero Section --- */
.hero-section {
    background-color: var(--dark-green);
    color: var(--pure-white);
    padding: 60px 0;
}

.hero-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.hero-text {
    flex: 1;
}

.hero-text h2 {
    font-size: 42px;
    font-weight: bold;
}

.hero-text h3 {
    font-size: 32px;
    color: var(--orange-color);
    margin-bottom: 20px;
}

.hero-text p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-btns {
    display: flex;
    gap: 15px;
}

.btn-orange {
    background-color: var(--orange-color);
    color: var(--pure-white);
    text-decoration: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: bold;
    font-size: 16px;
}

.btn-watch {
    background-color: rgba(255,255,255,0.1);
    color: var(--pure-white);
    text-decoration: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: bold;
    border: 1px solid rgba(255,255,255,0.3);
}

/* --- Quick Donation Box --- */
.donation-box {
    background-color: var(--pure-white);
    color: var(--text-dark);
    padding: 25px;
    border-radius: 10px;
    width: 380px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.donation-box h4 {
    text-align: center;
    color: var(--primary-green);
    font-size: 18px;
}

.donation-box .sub-tag {
    text-align: center;
    font-size: 11px;
    color: var(--text-light);
    margin-bottom: 15px;
}

.toggle-buttons {
    display: flex;
    background-color: #f1f3f5;
    border-radius: 5px;
    padding: 3px;
    margin-bottom: 15px;
}

.toggle-btn {
    flex: 1;
    border: none;
    background: transparent;
    padding: 8px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 5px;
}

.toggle-btn.active {
    background-color: var(--primary-green);
    color: var(--pure-white);
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    font-size: 11px;
    font-weight: bold;
    color: var(--text-light);
    margin-bottom: 5px;
}

.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.amount-grid {
    display: grid;
    grid-template-columns: repeat(3, 1xl);
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
}

.amount-btn {
    border: 1px solid #ddd;
    background: #fff;
    padding: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 4px;
}

.amount-btn.active {
    border: 2px solid var(--primary-green);
    color: var(--primary-green);
    background-color: rgba(0, 104, 55, 0.05);
}

.btn-submit-donation {
    width: 100%;
    background-color: #ff4500;
    color: white;
    border: none;
    padding: 12px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 25px;
    cursor: pointer;
    margin-top: 10px;
}

.secure-text {
    text-align: center;
    font-size: 11px;
    color: var(--text-light);
    margin-top: 10px;
}

/* --- Impact Section --- */
.impact-section {
    background-color: var(--light-green);
    color: var(--pure-white);
    padding: 40px 0;
    text-align: center;
}

.section-title {
    font-size: 32px;
    margin-bottom: 10px;
}

.section-subtitle {
    font-size: 16px;
    margin-bottom: 40px;
    opacity: 0.9;
}

.impact-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.impact-item {
    display: flex;
    align-items: center;
    background-color: rgba(255,255,255,0.1);
    padding: 20px;
    border-radius: 8px;
    gap: 15px;
    text-align: left;
}

.impact-icon {
    font-size: 30px;
    background: rgba(255,255,255,0.2);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.impact-data h3 {
    font-size: 24px;
    color: var(--orange-color);
}

/* --- Services Grid Section (Alkhidmat "Who we are" style) --- */
.services-section {
    background-color: var(--off-white);
    padding: 60px 0;
    text-align: center;
}

.section-subtitle-dark {
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto 40px auto;
    font-size: 15px;
    line-height: 1.6;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

/* House shaped border effect */
.service-card {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
    text-align: center;
    border-top: 5px solid var(--primary-green);
    position: relative;
    transition: transform 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
}

/* Border colors matching Alkhidmat layout */
.card-orange { border-top-color: #f7931e; }
.card-red { border-top-color: #d9534f; }
.card-pink { border-top-color: #b92b27; }
.card-blue { border-top-color: #0056b3; }

.card-image-placeholder {
    height: 140px;
    background-color: #eaeaea;
    margin-bottom: 15px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: #999;
}

.service-card h3 {
    font-size: 16px;
    color: var(--primary-green);
    margin-top: 10px;
}


/* --- 1. Empowering Education Intro --- */
.edu-intro-section {
    background-color: #fafbf9;
    padding: 70px 0;
}

.edu-intro-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.edu-intro-text {
    flex: 1.2;
}

.edu-intro-text h2 {
    color: var(--primary-green);
    font-size: 36px;
    margin-bottom: 20px;
    font-weight: 700;
}

.edu-intro-text p {
    color: var(--text-dark);
    line-height: 1.7;
    margin-bottom: 30px;
    font-size: 15px;
}

.edu-stats-box {
    display: flex;
    align-items: center;
    gap: 30px;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    margin-bottom: 30px;
}

.edu-stat-number h3 {
    font-size: 32px;
    color: var(--light-green);
}

.edu-stat-number p {
    margin-bottom: 0;
    font-size: 13px;
    color: var(--text-light);
}

.edu-progress-wrapper {
    flex: 1;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 5px;
}

.progress-bar-container {
    background-color: #e9ecef;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar-fill {
    background-color: var(--light-green);
    height: 100%;
    border-radius: 4px;
}

.btn-explore-more {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: var(--light-green);
    color: white;
    text-decoration: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: 600;
}

.btn-explore-more .fas {
    background: white;
    color: var(--light-green);
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
}

.edu-intro-image {
    flex: 1;
}

.edu-intro-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* --- 2. Creating Impact Through Education (Cards Slider) --- */
/* --- Global Variables Setup --- */
:root {
    --rawal-dark-green: #004b28;
    --rawal-accent-green: #00a651;
    --rawal-orange: #f7931e;
    --card-white: #ffffff;
    --text-heading: #004b28;
    --text-body: #666666;
    --border-light: #eaedea;
}

/* --- Timeline Visual Element --- */
.timeline-indicator-line {
    width: 75%;
    margin: 0 auto 40px auto;
    border-top: 2px dashed #cde3d7;
    display: flex;
    justify-content: space-between;
    padding: 0 50px;
}
.timeline-indicator-line .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    position: relative;
    top: -7px;
}
.dot-green { background-color: var(--rawal-accent-green); }
.dot-orange { background-color: var(--rawal-orange); }

/* --- Slider Core Layout --- */
.slider-outer-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}
.edu-cards-slider {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 15px 5px;
    width: 100%;
}
.edu-cards-slider::-webkit-scrollbar {
    display: none; /* Scrollbar tracking strip invisible keeping UI clean */
}

/* --- Default State: Pure White Cards --- */
.edu-pure-white-card {
    min-width: 270px;
    flex: 1;
    background-color: var(--card-white);
    border: 1px solid var(--border-light);
    padding: 40px 25px;
    border-radius: 14px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Default State Inner Icon Properties */
.card-icon-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 1px solid var(--rawal-accent-green);
    color: var(--rawal-accent-green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin: 0 auto 25px auto;
    background-color: transparent;
    transition: all 0.3s ease;
}

.edu-pure-white-card h3 {
    font-size: 18px;
    color: var(--text-heading);
    margin-bottom: 12px;
    font-weight: 700;
    transition: color 0.3s ease;
}

.edu-pure-white-card p {
    font-size: 14px;
    color: var(--text-body);
    line-height: 1.6;
    transition: color 0.3s ease;
}

/* ===================================================
   CRITICAL UPDATE: PURE GREEN HOVER LOGIC FOR ALL CARDS
   =================================================== */
.edu-pure-white-card:hover {
    background-color: var(--rawal-dark-green); /* Saare cards hover par uniform dark green honge */
    border-color: var(--rawal-dark-green);
    transform: translateY(-6px);
    box-shadow: 0 10px 25px rgba(0, 75, 40, 0.2);
}

/* Hover par inner elements ki typography changes */
.edu-pure-white-card:hover h3 {
    color: var(--card-white); /* Heading white ho jayegi readibility ke liye */
}

.edu-pure-white-card:hover p {
    color: #e2f3e8; /* Soft readable light green/white tone for body text */
}

/* Hover par Icon color transitions */
.edu-pure-white-card:hover .card-icon-circle {
    background-color: var(--rawal-orange); /* Icons center orange circle fill honge */
    border-color: var(--rawal-orange);
    color: var(--card-white); /* Icon emblem sharp white */
}

/* --- Navigation Side Controls --- */
.slider-control-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--card-white);
    border: 1px solid #e5e9e6;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: var(--rawal-dark-green);
    z-index: 5;
    transition: all 0.2s ease;
}
.slider-control-btn:hover {
    background-color: var(--rawal-accent-green);
    color: white;
    border-color: var(--rawal-accent-green);
}
.prev-btn { left: -15px; }
.next-btn { right: -15px; }

/* Highlighted background matching screenshot orange shadow styling */
.card-dark-highlight {
    background-color: #002316;
    color: white;
}

.card-dark-highlight::before {
    content: '';
    position: absolute;
    top: -5px; left: -5px; right: -5px; bottom: -5px;
    background: var(--orange-color);
    z-index: -1;
    border-radius: 16px;
    transform: rotate(-1deg);
}

.edu-card-icon {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin: 0 auto 20px auto;
}

.icon-green {
    border: 1px solid var(--light-green);
    color: var(--light-green);
}

.icon-orange-bg {
    background: var(--orange-color);
    color: white;
}

.edu-card h3 {
    font-size: 18px;
    margin-bottom: 12px;
}

.card-white h3 { color: var(--primary-green); }
.card-white p { color: var(--text-light); font-size: 14px; line-height: 1.5; }
.card-dark-highlight p { color: #cfded9; font-size: 14px; line-height: 1.5; }

.slider-arrow {
    background: #fff;
    border: 1px solid #e0e0e0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: absolute;
    z-index: 10;
}

.arrow-left { left: -20px; }
.arrow-right { right: -20px; }

/* --- 3. State Of The Art Projects Carousel --- */
.state-projects-section {
    padding: 60px 0;
    background-color: #fcfcfc;
}

.section-header-inline {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 35px;
}

.header-left h2 {
    color: var(--primary-green);
    font-size: 32px;
    margin-bottom: 8px;
}

.header-left p {
    color: var(--text-light);
    max-width: 700px;
    font-size: 14px;
}

.carousel-arrows {
    display: flex;
    gap: 10px;
}

.c-arrow {
    background: #e1e7e4;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 4px;
    cursor: pointer;
    color: var(--primary-green);
}

.projects-carousel {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 15px;
}

.project-item-card {
    min-width: 280px;
    height: 380px;
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    display: flex;
    align-items: flex-end;
    padding: 20px;
    color: white;
    transition: transform 0.3s;
}

.project-item-card:hover {
    transform: scale(1.02);
}

.project-card-content h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.project-card-content p {
    font-size: 13px;
    line-height: 1.4;
    opacity: 0.9;
}

/* --- 4. News, Events & Social Stream Grid --- */
/* --- Portal Section Design System --- */
.portal-grid-section {
    background-color: #002316; /* Pure Deep Dark Green Page Context from Screenshot */
    padding: 60px 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.portal-three-col-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1.1fr; /* Custom spacing weights */
    gap: 25px;
    align-items: start;
}

/* --- Column Container & Scroller Mechanics --- */
.portal-column {
    background: transparent;
    display: flex;
    flex-direction: column;
}

.portal-column-header {
    background-color: #051a15;
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    padding: 14px 18px;
    border-left: 4px solid #f7931e; /* Crisp Orange Tag from Rawal identity */
    margin-bottom: 15px;
    letter-spacing: 0.3px;
}

/* Independent Dynamic Scroll Box Engine */
.portal-scroll-box {
    max-height: 520px; /* Locked Height so elements wrap beautifully */
    overflow-y: auto;
    padding-right: 12px;
}

/* --- Custom Sleek Orange Scrollbar Formatting --- */
.portal-scroll-box::-webkit-scrollbar {
    width: 6px; /* Ultra thin clean line */
}

.portal-scroll-box::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
}

.portal-scroll-box::-webkit-scrollbar-thumb {
    background: #f7931e; /* Rawal signature Orange scroll block */
    border-radius: 10px;
}

.portal-scroll-box::-webkit-scrollbar-thumb:hover {
    background: #e08214;
}

/* --- Column 1: News Card Styling --- */
.news-inner-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    transition: background 0.2s;
}

.news-inner-card:hover {
    background: rgba(255, 255, 255, 0.08);
}

.news-cover-img {
    width: 100%;
    height: 155px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 12px;
}

.news-date-tag {
    font-size: 12px;
    color: #f7931e;
    display: block;
    margin-bottom: 6px;
}

.news-inner-card h4 {
    font-size: 14px;
    color: #ffffff;
    line-height: 1.5;
    margin-bottom: 12px;
    font-weight: 600;
}

.portal-readmore {
    color: #f7931e;
    text-decoration: none;
    font-size: 13px;
    font-weight: bold;
}

/* --- Column 2: Events Cards Styling --- */
.event-inner-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.event-banner-thumb {
    background: #004b28;
    height: 90px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 15px;
    text-align: center;
    padding: 0 10px;
}

.event-time-meta {
    display: flex;
    gap: 8px;
    align-items: center;
    margin: 12px 0;
    font-size: 11px;
}

.ev-status {
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: bold;
    color: white;
}
.status-closed { background-color: #d9534f; }
.status-upcoming { background-color: #00a651; }

.ev-date, .ev-hours {
    color: #b3cbd2;
}

.event-inner-card h3 {
    font-size: 15px;
    color: white;
    margin-bottom: 8px;
}

.ev-location {
    font-size: 12px;
    color: #a0b0aa;
    line-height: 1.4;
}

/* Live Block Context */
.live-stream-sticky-header {
    background-color: #051a15;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    padding: 10px 15px;
    border-left: 4px solid #f7931e;
    margin: 10px 0 15px 0;
}

.live-video-embed-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    overflow: hidden;
}

.video-ratio-box {
    background: #222;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.youtube-center-icon {
    font-size: 50px;
    color: #ff0000;
    transition: transform 0.2s;
}

.video-ratio-box:hover .youtube-center-icon {
    transform: scale(1.1);
}

.video-channel-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
}

.channel-badge {
    background: #00a651;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
    color: white;
}

.channel-title h5 {
    color: white;
    font-size: 13px;
}

.channel-title i {
    color: #1da1f2;
    font-size: 11px;
    margin-left: 3px;
}

/* --- Column 3: Social Stream Card Styling --- */
/* --- Social Stream Column Structure --- */
.portal-column {
    display: flex;
    flex-direction: column;
}

.portal-column-header {
    background-color: #051a15;
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    padding: 14px 18px;
    border-left: 4px solid #f7931e; /* Rawal Identity Orange Line */
    margin-bottom: 15px;
}

/* --- THE SCROLLER ENGINE FOR SOCIAL COLUMN --- */
.custom-social-scroller {
    max-height: 520px;          /* Card Column ki locked height fixed ki hai */
    overflow-y: auto;          /* Vertical scroll automatically trigger hoga */
    padding-right: 8px;        /* Scrollbar aur card ke darmiyan space */
}

/* --- Custom Sleek Orange Scrollbar Formatting --- */
.custom-social-scroller::-webkit-scrollbar {
    width: 6px;                /* Scrollbar track thickness */
}

.custom-social-scroller::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
}

.custom-social-scroller::-webkit-scrollbar-thumb {
    background-color: #f7931e;  /* Rawal Orange Thumb Theme */
    border-radius: 10px;
}

.custom-social-scroller::-webkit-scrollbar-thumb:hover {
    background-color: #e08214;
}

/* --- Card White Body Details --- */
.social-feed-card {
    background: #ffffff;        /* Pure white container base as requested */
    color: #333333;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.feed-profile-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.feed-avatar {
    background: #004b28;       /* Theme Green badge icon */
    color: white;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 13px;
}

.feed-user-meta h5 {
    font-size: 13px;
    color: #004b28;
    font-weight: 700;
    margin: 0;
}

.feed-user-meta span {
    font-size: 11px;
    color: #777777;
}

.feed-urdu-text {
    direction: rtl;
    text-align: right;
    font-size: 14px;
    line-height: 1.6;
    color: #222222;
    margin-bottom: 12px;
}

.feed-attached-photo img {
    width: 100%;
    border-radius: 6px;
    margin-bottom: 12px;
    object-fit: cover;
}

.feed-action-bar {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #eeeeee;
    padding-top: 10px;
    font-size: 12px;
    color: #666666;
}




    /* Founder Section Container - Large spacing & centered max-width */
    .founder-section {
      max-width: 1500px;
      margin: 0 auto;
      padding: 100px 24px;
    }

    @media (max-width: 768px) {
      .founder-section {
        padding: 70px 20px;
      }
    }

    @media (max-width: 576px) {
      .founder-section {
        padding: 50px 16px;
      }
    }

    /* ---------- SECTION HEADING (Fade-up animation) ---------- */
    .section-heading {
      text-align: center;
      margin-bottom: 64px;
    }

    .section-heading h2 {
      font-family: 'Manrope', sans-serif;
      font-weight: 800;
      font-size: 48px;
      color: var(--black);
      letter-spacing: -0.02em;
      margin-bottom: 16px;
      position: relative;
      display: inline-block;
    }

    .section-heading h2::after {
      content: '';
      position: absolute;
      bottom: -12px;
      left: 50%;
      transform: translateX(-50%);
      width: 70px;
      height: 4px;
      background: linear-gradient(90deg, var(--gradient-start), var(--primary-green), var(--gradient-end));
      border-radius: 4px;
    }

    /* Responsive heading */
    @media (max-width: 992px) {
      .section-heading h2 {
        font-size: 38px;
      }
    }
    @media (max-width: 768px) {
      .section-heading h2 {
        font-size: 32px;
      }
    }
    @media (max-width: 480px) {
      .section-heading h2 {
        font-size: 26px;
      }
    }

   /* ========== TEAM SECTION ========== */
    .team-section {
      padding: 5rem 0;
      background: linear-gradient(135deg, #ffffff 0%, #fefeff 100%);
    }

    .section-container {
      max-width: 1440px;
      margin: 0 auto;
      padding: 0 1.5rem;
    }

    /* Section Header */
    .section-titles {
      text-align: center;
      margin-bottom: 3rem;
    }

    .section-titles h2 {
      font-size: 2.8rem;
      font-weight: 800;
      letter-spacing: -0.02em;
      background: linear-gradient(135deg, #0a2b3e 0%, #004b28 100%);
      background-clip: text;
      -webkit-background-clip: text;
      color: transparent;
      margin-bottom: 0.75rem;
      display: inline-block;
    }

    .title-underline {
      width: 80px;
      height: 4px;
      background: linear-gradient(90deg, #006837, #198754);
      border-radius: 4px;
      margin: 0.75rem auto 0;
      transition: width 0.3s ease;
    }

    .section-titles:hover .title-underline {
      width: 120px;
    }

    .section-titles p {
      font-size: 1rem;
      color: #5c6f87;
      max-width: 620px;
      margin: 0.8rem auto 0;
    }

    /* ========== FLEXIBLE SINGLE ROW LAYOUT (NO BOOTSTRAP GRID OVERRIDE) ========== */
    /* We'll use a custom flex row that forces cards into one horizontal row,
       wraps gracefully on smaller screens, and stays responsive.
       All 4 cards will appear side-by-side on large screens (≥1200px),
       and adapt to 2 or 1 columns on smaller breakpoints without breaking. */
    .team-flex-row {
      display: flex;
      flex-wrap: wrap;
      gap: 1.8rem;
      justify-content: center;
      margin-bottom: 2rem;
    }

    /* Each card takes equal width in the row: flex-grow & min-width to create consistent cards */
    .team-card {
      flex: 1 1 240px;          /* base width ~240px, but grows to fill space */
      min-width: 240px;
      max-width: 320px;         /* prevents cards from becoming too wide on ultra-wide, keeping design tight */
      background: #ffffff;
      border-radius: 24px;
      overflow: hidden;
      box-shadow: 0 12px 28px -8px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.02);
      transition: all 0.35s cubic-bezier(0.2, 0, 0, 1);
      border: 1px solid rgba(13, 110, 253, 0.08);
    }

    /* On very large desktops we allow slightly bigger max-width, but keep row consistent */
    @media (min-width: 1400px) {
      .team-card {
        max-width: 350px;
        flex-basis: 280px;
      }
    }

    /* For screens where all 4 cannot fit in one row nicely, Flexbox wraps into 2 rows */
    /* but the goal is "one row that fits in screen" on typical desktop/laptop (≥1100px) */
    /* We'll ensure that on screens 1200px+, cards are side by side in a single row */
    @media (min-width: 1200px) {
      .team-flex-row {
        flex-wrap: nowrap;   /* force single row on desktop/large screens */
        gap: 1.5rem;
        justify-content: space-between;
      }
      .team-card {
        max-width: 100%;     /* allow equal distribution within flex container */
        min-width: 0;        /* prevents overflow */
        flex: 1 1 0px;       /* All cards share equal width inside the nowrap row */
      }
    }

    /* Between 992px and 1199px we keep a flexible wrap but typically two rows (2+2) */
    /* but we maintain responsiveness to fit screen nicely, no scroll overflow */
    @media (min-width: 768px) and (max-width: 1199px) {
      .team-flex-row {
        flex-wrap: wrap;
        justify-content: center;
      }
      .team-card {
        flex: 1 1 280px;
        max-width: 320px;
      }
    }

    /* For mobile: single column */
    @media (max-width: 767px) {
      .team-flex-row {
        flex-wrap: wrap;
        gap: 1.5rem;
      }
      .team-card {
        flex: 1 1 100%;
        max-width: 360px;
        margin: 0 auto;
      }
    }

    /* Card inner styling */
    .team-card:hover {
      transform: translateY(-8px);
      box-shadow: 0 24px 40px -12px rgba(13, 110, 253, 0.2);
      border-color: rgba(13, 110, 253, 0.2);
    }

    /* Image wrapper square with fixed height for consistency */
    .card-image-wrapper {
      width: 100%;
      aspect-ratio: 1 / 1;
      overflow: hidden;
      background: linear-gradient(145deg, #eef2ff, #e6edf6);
      position: relative;
    }

    .card-image {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform 0.5s cubic-bezier(0.2, 0.9, 0.4, 1.1);
      display: block;
    }

    .team-card:hover .card-image {
      transform: scale(1.05);
    }

    /* Card text content */
    .card-content {
      padding: 1.4rem 1rem 1.6rem;
      text-align: center;
    }

    .person-name {
      font-size: 1.3rem;
      font-weight: 700;
      color: #1a2c3e;
      margin-bottom: 0.5rem;
      letter-spacing: -0.2px;
    }

    .person-designation {
      font-size: 0.85rem;
      font-weight: 600;
      color: #0d6efd;
      background: rgba(13, 110, 253, 0.1);
      display: inline-block;
      padding: 0.3rem 1rem;
      border-radius: 40px;
      margin-top: 0.2rem;
    }

    /* Social icons - subtle appear on hover */
    .card-social {
      margin-top: 1rem;
      display: flex;
      justify-content: center;
      gap: 1rem;
      opacity: 0;
      transition: opacity 0.25s ease;
    }

    .team-card:hover .card-social {
      opacity: 1;
    }

    .card-social a {
      color: #8ba0b5;
      font-size: 0.9rem;
      transition: color 0.2s;
      text-decoration: none;
    }

    .card-social a:hover {
      color: #0d6efd;
    }

    /* ========== MISSION STATEMENT (BENEATH CARDS) ========== */
    .mission-statement {
      margin-top: 4rem;
      padding: 2.5rem 2rem;
      background: #eef5ff;
      border-radius: 32px;
      box-shadow: 0 8px 20px rgba(0, 0, 0, 0.02);
      border: 1px solid rgba(13, 110, 253, 0.15);
    }

    .statement-container {
      max-width: 880px;
      margin: 0 auto;
    }

    .statement-quote-icon {
      text-align: center;
      margin-bottom: 1rem;
    }

    .statement-quote-icon i {
      font-size: 2rem;
      color: #198754;
      opacity: 0.35;
    }

    .statement-text {
      font-size: 1.05rem;
      line-height: 1.7;
      color: #004b28;
      text-align: center;
      font-weight: 450;
      max-width: 800px;
      margin: 0 auto;
    }

    /* Responsive mission statement */
    @media (max-width: 768px) {
      .team-section {
        padding: 3.5rem 0;
      }
      .section-titles h2 {
        font-size: 2rem;
      }
      .person-name {
        font-size: 1.2rem;
      }
      .statement-text {
        font-size: 0.96rem;
        text-align: center;
        padding: 0 0.5rem;
      }
      .mission-statement {
        padding: 1.8rem 1rem;
        margin-top: 2.5rem;
      }
    }

    @media (max-width: 480px) {
      .card-content {
        padding: 1.2rem 0.8rem 1.4rem;
      }
      .person-name {
        font-size: 1.1rem;
      }
    }

    /* Utility for overflow & smoothness */
    html, body {
      overflow-x: hidden;
    }




