/* =========================================================
   PROJECTS PAGE
   ========================================================= */


/* =========================================================
   HERO
   ========================================================= */

.projects-hero {
    position: relative;
    min-height: 500px;

    display: flex;
    align-items: center;

    background:
        linear-gradient(
            90deg,
            rgba(8, 43, 78, 0.90),
            rgba(8, 43, 78, 0.58),
            rgba(8, 43, 78, 0.15)
        ),
        url("../images/projects-hero.jpg")
        center / cover no-repeat;
}

.projects-hero-content {
    max-width: 760px;
    padding: 90px 0;
}

.projects-hero-tag {
    display: inline-block;

    margin-bottom: 22px;
    padding: 8px 15px;

    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 30px;

    color: #ffffff;

    font-size: 12px;
    font-weight: 700;

    letter-spacing: 1.5px;
}

.projects-hero h1 {
    margin: 0 0 22px;

    color: #ffffff;

    font-family: "Playfair Display", serif;

    font-size: clamp(44px, 6vw, 68px);

    line-height: 1.08;
}

.projects-hero p {
    max-width: 650px;

    margin: 0;

    color: rgba(255,255,255,0.9);

    font-size: 17px;
    line-height: 1.8;
}


/* =========================================================
   INTRO
   ========================================================= */

.projects-intro {
    background: #ffffff;
}

.projects-intro-grid {
    display: grid;

    grid-template-columns: 0.9fr 1.1fr;

    gap: 100px;

    align-items: center;
}

.projects-intro-grid p {
    margin: 0 0 18px;

    color: #687b90;

    font-size: 15px;

    line-height: 1.85;
}

.projects-intro-grid p:last-child {
    margin-bottom: 0;
}


/* =========================================================
   PROJECT SECTIONS
   ========================================================= */

.projects-section {
    padding: 95px 0;
}

.ongoing-projects {
    background: #f5f8fc;
}

.completed-projects {
    background: #ffffff;
}

.projects-heading {
    display: flex;

    justify-content: space-between;
    align-items: flex-end;

    gap: 60px;

    margin-bottom: 50px;
}

.projects-heading > p {
    max-width: 430px;

    margin: 0;

    color: #718196;

    font-size: 14px;

    line-height: 1.8;
}


/* =========================================================
   PROJECT GRID
   ========================================================= */

.project-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 25px;
}


/* =========================================================
   PROJECT CARD
   ========================================================= */

.project-card {
    overflow: hidden;

    border: 1px solid #e1e9f1;

    border-radius: 20px;

    background: #ffffff;

    box-shadow:
        0 8px 25px rgba(20,55,90,0.05);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-7px);

    box-shadow:
        0 20px 45px rgba(20,55,90,0.11);
}


/* IMAGE */

.project-image {
    position: relative;

    height: 245px;

    overflow: hidden;

    background: #eaf1f7;
}

.project-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    transition: transform 0.5s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}


/* STATUS */

.project-status {
    position: absolute;

    top: 18px;
    right: 18px;

    padding: 7px 12px;

    border-radius: 20px;

    font-size: 11px;

    font-weight: 700;
}

.project-status.ongoing {
    background: #ffffff;
    color: #1763ad;
}

.project-status.completed {
    background: #eef7f1;
    color: #2b8150;
}


/* CONTENT */

.project-content {
    padding: 27px;
}


/* CATEGORY */

.project-category {
    display: flex;

    align-items: center;

    gap: 8px;

    margin-bottom: 13px;

    color: #1763ad;

    font-size: 11px;

    font-weight: 700;

    letter-spacing: 0.5px;

    text-transform: uppercase;
}

.project-category.education {
    color: #d18708;
}


/* TITLE */

.project-content h3 {
    margin: 0 0 12px;

    color: #1e2e41;

    font-family: "Playfair Display", serif;

    font-size: 23px;

    line-height: 1.25;
}


/* DESCRIPTION */

.project-content > p {
    min-height: 75px;

    margin: 0 0 20px;

    color: #6d7f93;

    font-size: 14px;

    line-height: 1.75;
}


/* META */

.project-meta {
    display: flex;

    flex-direction: column;

    gap: 9px;

    padding: 15px 0;

    margin-bottom: 16px;

    border-top: 1px solid #edf1f5;
    border-bottom: 1px solid #edf1f5;
}

.project-meta span {
    display: flex;

    align-items: center;

    gap: 9px;

    color: #7a8a9b;

    font-size: 12px;
}

.project-meta i {
    width: 15px;

    color: #1763ad;

    text-align: center;
}


/* BUTTON */

.project-details-btn {
    display: inline-flex;

    align-items: center;

    gap: 9px;

    padding: 0;

    border: none;

    background: transparent;

    color: #1763ad;

    font-family: "DM Sans", sans-serif;

    font-size: 13px;

    font-weight: 700;

    cursor: pointer;
}

.project-details-btn i {
    transition: transform 0.25s ease;
}

.project-details-btn:hover i {
    transform: translateX(5px);
}


/* =========================================================
   FEATURE SECTION
   ========================================================= */

.project-feature {
    padding: 105px 0;

    background: #ffffff;
}

.project-feature-grid {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 80px;

    align-items: center;
}

.project-feature-image {
    height: 540px;

    overflow: hidden;

    border-radius: 25px;

    box-shadow:
        0 20px 50px rgba(20,55,90,0.10);
}

.project-feature-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
}

.project-feature-content > p {
    max-width: 600px;

    margin: 0 0 30px;

    color: #687b90;

    font-size: 15px;

    line-height: 1.85;
}


/* FEATURE POINTS */

.feature-points {
    display: flex;

    flex-direction: column;

    gap: 22px;

    margin-top: 30px;
}

.feature-point {
    display: flex;

    align-items: flex-start;

    gap: 15px;
}

.feature-icon {
    width: 45px;
    height: 45px;

    flex-shrink: 0;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 12px;

    background: #eaf3fc;

    color: #1763ad;
}

.feature-point h3 {
    margin: 0 0 5px;

    color: #24364a;

    font-family: "Playfair Display", serif;

    font-size: 18px;
}

.feature-point p {
    margin: 0;

    color: #718196;

    font-size: 13px;

    line-height: 1.6;
}


/* =========================================================
   CTA
   ========================================================= */

.projects-cta {
    padding: 95px 0;

    background:
        linear-gradient(
            90deg,
            #1763ad,
            #12548f
        );

    text-align: center;
}

.projects-cta-content {
    max-width: 750px;

    margin: auto;
}

.projects-cta-content > span {
    display: block;

    margin-bottom: 15px;

    color: #f5b248;

    font-size: 11px;

    font-weight: 700;

    letter-spacing: 1.5px;
}

.projects-cta h2 {
    margin: 0 0 18px;

    color: #ffffff;

    font-family: "Playfair Display", serif;

    font-size: clamp(34px, 4vw, 50px);

    line-height: 1.15;
}

.projects-cta p {
    max-width: 580px;

    margin: 0 auto 30px;

    color: rgba(255,255,255,0.82);

    font-size: 15px;

    line-height: 1.8;
}


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

@media (max-width: 1050px) {

    .project-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .projects-intro-grid,
    .project-feature-grid {
        grid-template-columns: 1fr;

        gap: 50px;
    }

}


@media (max-width: 800px) {

    .projects-heading {
        flex-direction: column;

        align-items: flex-start;

        gap: 20px;
    }

    .project-grid {
        grid-template-columns: 1fr;
    }

    .projects-section,
    .project-feature {
        padding: 70px 0;
    }

    .project-feature-image {
        height: 400px;
    }

}


@media (max-width: 600px) {

    .projects-hero {
        min-height: 430px;
    }

    .projects-hero-content {
        padding: 65px 0;
    }

    .projects-hero h1 {
        font-size: 40px;
    }

    .projects-hero p {
        font-size: 15px;
    }

    .project-image {
        height: 220px;
    }

    .project-feature-image {
        height: 330px;
    }

    .projects-cta {
        padding: 70px 0;
    }

}














/* =========================================================
   PROJECT DETAILS MODAL
   ========================================================= */

.project-modal {
    position: fixed;
    inset: 0;

    z-index: 9999;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 30px;

    opacity: 0;
    visibility: hidden;

    transition:
        opacity 0.3s ease,
        visibility 0.3s ease;
}


/* OPEN STATE */

.project-modal.active {
    opacity: 1;
    visibility: visible;
}


/* BACKGROUND */

.project-modal-overlay {
    position: absolute;
    inset: 0;

    background: rgba(8, 32, 55, 0.72);

    backdrop-filter: blur(5px);
}


/* MODAL BOX */

.project-modal-box {
    position: relative;

    width: 100%;
    max-width: 950px;
    max-height: 90vh;

    overflow-y: auto;

    border-radius: 24px;

    background: #ffffff;

    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.25);

    transform: translateY(25px) scale(0.98);

    transition: transform 0.3s ease;

    z-index: 1;
}


.project-modal.active .project-modal-box {
    transform: translateY(0) scale(1);
}


/* CLOSE */

.project-modal-close {
    position: absolute;

    top: 18px;
    right: 18px;

    z-index: 5;

    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: none;
    border-radius: 50%;

    background: rgba(255, 255, 255, 0.95);

    color: #24364a;

    font-size: 28px;

    cursor: pointer;

    box-shadow:
        0 5px 20px rgba(0, 0, 0, 0.12);

    transition:
        transform 0.2s ease,
        background 0.2s ease;
}


.project-modal-close:hover {
    transform: rotate(90deg);

    background: #eaf3fc;
}


/* HERO IMAGE */

.project-modal-image {
    width: 100%;
    height: 360px;

    overflow: hidden;

    background: #eaf1f7;
}


.project-modal-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
}


/* CONTENT */

.project-modal-content {
    padding: 45px 50px 55px;
}


/* CATEGORY */

.project-modal-category {
    display: inline-block;

    margin-bottom: 13px;

    color: #d18708;

    font-size: 12px;
    font-weight: 700;

    letter-spacing: 1.4px;

    text-transform: uppercase;
}


/* TITLE */

.project-modal-content h2 {
    margin: 0 0 18px;

    color: #1e2e41;

    font-family: "Playfair Display", serif;

    font-size: clamp(32px, 4vw, 48px);

    line-height: 1.15;
}


/* INTRO */

.project-modal-intro {
    max-width: 760px;

    margin: 0 0 35px;

    color: #687b90;

    font-size: 17px;

    line-height: 1.8;
}


/* SECTION */

.project-modal-section {
    padding-top: 30px;
    margin-top: 30px;

    border-top: 1px solid #edf1f5;
}


.project-modal-section h3 {
    margin: 0 0 15px;

    color: #24364a;

    font-family: "Playfair Display", serif;

    font-size: 23px;
}


.project-modal-section p {
    margin: 0;

    color: #6d7f93;

    font-size: 14px;

    line-height: 1.85;
}


/* OBJECTIVES */

.project-modal-section ul {
    margin: 0;
    padding-left: 20px;

    color: #6d7f93;

    font-size: 14px;

    line-height: 1.9;
}


.project-modal-section li {
    margin-bottom: 7px;
}


/* IMPACT */

.project-modal-impact {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 18px;
}


.project-modal-impact div {
    padding: 25px 20px;

    border-radius: 15px;

    background: #f5f8fc;

    text-align: center;
}


.project-modal-impact strong {
    display: block;

    margin-bottom: 5px;

    color: #1763ad;

    font-family: "Playfair Display", serif;

    font-size: 30px;
}


.project-modal-impact span {
    color: #718196;

    font-size: 12px;
    font-weight: 600;
}


/* GALLERY */

.project-modal-gallery {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 15px;
}


.project-modal-gallery img {
    width: 100%;
    height: 180px;

    display: block;

    object-fit: cover;

    border-radius: 14px;
}


/* =========================================================
   MODAL RESPONSIVE
   ========================================================= */

@media (max-width: 700px) {

    .project-modal {
        padding: 15px;
    }

    .project-modal-box {
        max-height: 92vh;

        border-radius: 18px;
    }

    .project-modal-image {
        height: 250px;
    }

    .project-modal-content {
        padding: 30px 25px 40px;
    }

    .project-modal-impact {
        grid-template-columns: 1fr;
    }

    .project-modal-gallery {
        grid-template-columns: 1fr;
    }

    .project-modal-gallery img {
        height: 200px;
    }

}















/* =========================================================
   PROJECTS PAGE - REFINED VISUAL STYLING
   Add this at the VERY BOTTOM of projects.css
   ========================================================= */

/* ---------------------------------------------------------
   GENERAL PROJECT PAGE SPACING
   --------------------------------------------------------- */

.projects-intro {
    padding-top: 90px;
    padding-bottom: 90px;
}

.projects-section {
    padding-top: 100px;
    padding-bottom: 110px;
}

/* Give sections more breathing room */
.projects-heading {
    margin-bottom: 55px;
}

/* ---------------------------------------------------------
   SECTION HEADING
   --------------------------------------------------------- */

.projects-heading .section-tag,
.projects-intro .section-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    padding: 8px 15px;
    margin-bottom: 18px;

    border-radius: 30px;

    background: #eef6fd;
    border: 1px solid #d8e9f8;

    color: #1763ad;

    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

.projects-heading .section-tag::before,
.projects-intro .section-tag::before {
    content: "";
    width: 7px;
    height: 7px;

    border-radius: 50%;
    background: #f3ad27;
}

/* ---------------------------------------------------------
   PROJECT GRID
   --------------------------------------------------------- */

.project-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
    align-items: stretch;
}

/* ---------------------------------------------------------
   PROJECT CARD
   --------------------------------------------------------- */

.project-card {
    display: flex;
    flex-direction: column;

    border: 1px solid #e3ebf3;
    border-radius: 22px;

    background: #ffffff;

    box-shadow:
        0 8px 30px rgba(22, 58, 91, 0.055);

    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease,
        border-color 0.35s ease;
}

.project-card:hover {
    transform: translateY(-8px);

    border-color: #d4e5f4;

    box-shadow:
        0 22px 50px rgba(22, 58, 91, 0.12);
}

/* ---------------------------------------------------------
   PROJECT IMAGE
   --------------------------------------------------------- */

.project-image {
    height: 255px;
    border-radius: 22px 22px 0 0;
}

.project-image::after {
    content: "";

    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            to bottom,
            rgba(8, 43, 78, 0.02),
            rgba(8, 43, 78, 0.12)
        );

    pointer-events: none;
}

.project-image img {
    transition:
        transform 0.6s ease,
        filter 0.4s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.06);
}

/* ---------------------------------------------------------
   STATUS BADGE
   --------------------------------------------------------- */

.project-status {
    top: 18px;
    right: 18px;

    padding: 8px 14px;

    border: 1px solid rgba(255,255,255,0.7);
    border-radius: 30px;

    font-size: 10px;
    letter-spacing: 0.5px;

    box-shadow:
        0 5px 15px rgba(0,0,0,0.08);

    backdrop-filter: blur(5px);
}

.project-status.ongoing {
    background: rgba(255,255,255,0.94);
    color: #1763ad;
}

/* ---------------------------------------------------------
   PROJECT CONTENT
   --------------------------------------------------------- */

.project-content {
    display: flex;
    flex-direction: column;
    flex: 1;

    padding: 30px 30px 28px;
}

/* Category */
.project-category {
    margin-bottom: 14px;

    color: #1763ad;

    font-size: 10px;
    font-weight: 700;

    letter-spacing: 1.2px;
}

.project-category.education {
    color: #c7810b;
}

/* Title */
.project-content h3 {
    margin-bottom: 13px;

    color: #193b61;

    font-size: 24px;
    line-height: 1.25;
}

/* Description */
.project-content > p {
    min-height: auto;

    margin-bottom: 24px;

    color: #6c7e91;

    font-size: 14px;
    line-height: 1.8;
}

/* ---------------------------------------------------------
   META INFORMATION
   --------------------------------------------------------- */

.project-meta {
    margin-top: auto;
    margin-bottom: 20px;

    padding: 16px 0;

    border-top: 1px solid #edf2f6;
    border-bottom: 1px solid #edf2f6;

    gap: 10px;
}

.project-meta span {
    color: #778899;

    font-size: 11px;
}

.project-meta i {
    color: #1763ad;
}

/* ---------------------------------------------------------
   VIEW PROJECT BUTTON
   --------------------------------------------------------- */

.project-details-btn {
    width: fit-content;

    padding: 9px 0;

    color: #1763ad;

    font-size: 13px;
    font-weight: 700;

    transition:
        color 0.25s ease,
        transform 0.25s ease;
}

.project-details-btn:hover {
    color: #0d4d86;
    transform: translateX(3px);
}

/* ---------------------------------------------------------
   INTRO SECTION
   --------------------------------------------------------- */

.projects-intro-grid {
    max-width: 1120px;
    margin: 0 auto;

    gap: 90px;
}

.projects-intro-grid > div:first-child {
    padding-right: 20px;
}

.projects-intro-grid p {
    max-width: 650px;

    color: #687b90;

    font-size: 15px;
    line-height: 1.9;
}

/* ---------------------------------------------------------
   CURRENT / COMPLETED SECTION DIFFERENCE
   --------------------------------------------------------- */

.ongoing-projects {
    background:
        linear-gradient(
            180deg,
            #f5f9fc 0%,
            #f8fafc 100%
        );
}

.completed-projects {
    background: #ffffff;
}

/* ---------------------------------------------------------
   COMPLETED PROJECTS - SPECIAL FIRST CARD
   --------------------------------------------------------- */

.completed-projects .project-card:first-child {
    border-color: #d8e8f5;

    box-shadow:
        0 12px 35px rgba(22, 58, 91, 0.08);
}

/* ---------------------------------------------------------
   FEATURE SECTION
   --------------------------------------------------------- */

.project-feature {
    padding-top: 115px;
    padding-bottom: 115px;
}

.project-feature-image {
    border-radius: 28px;

    box-shadow:
        0 25px 60px rgba(20,55,90,0.12);
}

.project-feature-content {
    padding-left: 10px;
}

.feature-point {
    padding: 15px;

    border-radius: 15px;

    transition:
        background 0.25s ease,
        transform 0.25s ease;
}

.feature-point:hover {
    background: #f7fafc;
    transform: translateX(4px);
}

/* ---------------------------------------------------------
   CTA
   --------------------------------------------------------- */

.projects-cta {
    position: relative;
    overflow: hidden;

    padding-top: 105px;
    padding-bottom: 105px;
}

.projects-cta::before {
    content: "";

    position: absolute;

    width: 350px;
    height: 350px;

    top: -180px;
    left: -100px;

    border-radius: 50%;

    background: rgba(255,255,255,0.05);
}

.projects-cta::after {
    content: "";

    position: absolute;

    width: 300px;
    height: 300px;

    right: -100px;
    bottom: -160px;

    border-radius: 50%;

    background: rgba(255,255,255,0.05);
}

.projects-cta-content {
    position: relative;
    z-index: 1;
}

/* ---------------------------------------------------------
   MODAL IMPROVEMENT
   --------------------------------------------------------- */

.project-modal-content {
    padding: 48px 55px 60px;
}

.project-modal-section {
    padding-top: 34px;
    margin-top: 34px;
}

.project-modal-impact div {
    border: 1px solid #e5edf4;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.project-modal-impact div:hover {
    transform: translateY(-4px);

    box-shadow:
        0 10px 25px rgba(20,55,90,0.07);
}

/* ---------------------------------------------------------
   RESPONSIVE
   --------------------------------------------------------- */

@media (max-width: 1100px) {

    .project-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 28px;
    }

    .projects-intro-grid {
        gap: 55px;
    }
}

@media (max-width: 800px) {

    .projects-intro {
        padding-top: 70px;
        padding-bottom: 70px;
    }

    .projects-section {
        padding-top: 75px;
        padding-bottom: 80px;
    }

    .project-grid {
        grid-template-columns: 1fr;
        max-width: 650px;
        margin-left: auto;
        margin-right: auto;
    }

    .projects-heading {
        margin-bottom: 40px;
    }

    .project-feature {
        padding-top: 80px;
        padding-bottom: 80px;
    }

    .project-feature-content {
        padding-left: 0;
    }
}

@media (max-width: 600px) {

    .projects-intro {
        padding-top: 55px;
        padding-bottom: 55px;
    }

    .projects-section {
        padding-top: 60px;
        padding-bottom: 65px;
    }

    .project-grid {
        gap: 22px;
    }

    .project-image {
        height: 230px;
    }

    .project-content {
        padding: 25px 23px 24px;
    }

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

    .project-feature {
        padding-top: 65px;
        padding-bottom: 65px;
    }

    .project-modal-content {
        padding: 30px 24px 40px;
    }
}















/* =========================================================
   PROJECT SECTION SPACING
   Reduce the large gap between Healthcare, Education
   and Community sections
========================================================= */

.projects-section {
    padding-top: 55px;
    padding-bottom: 55px;
}

.education-projects,
.community-projects {
    margin-top: 0;
}


/* =========================================================
   COMMUNITY PROJECT
   Make the NGO card similar in size to the other cards
========================================================= */

.community-project-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 28px;
    align-items: stretch;
}


/* Prevent the community card from becoming full width */

.community-card {
    width: 100%;
    max-width: none;
    margin: 0;
}


/* =========================================================
   STRONGER TOGETHER
   Style the content beside the community card
========================================================= */

.community-message {
    background: #f5f8fc;
    border: 1px solid #dce7f2;
    border-radius: 22px;
    padding: 34px 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100%;
    box-sizing: border-box;
}

.community-message-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #e8f1fa;
    color: #145da0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 18px;
}

.community-message .community-tag {
    width: fit-content;
    margin-bottom: 14px;
}

.community-message h3 {
    font-family: "Playfair Display", serif;
    font-size: 28px;
    line-height: 1.2;
    color: #12395b;
    margin: 0 0 12px;
}

.community-message p {
    font-family: "DM Sans", sans-serif;
    font-size: 16px;
    line-height: 1.75;
    color: #58718a;
    margin: 0;
    max-width: 600px;
}


/* =========================================================
   COMMUNITY CARD - SAME FEEL AS OTHER PROJECT CARDS
========================================================= */

.community-card .project-content {
    padding: 26px 28px 28px;
}

.community-card .project-category {
    margin-bottom: 12px;
}

.community-card h3 {
    margin-bottom: 10px;
}

.community-card p {
    line-height: 1.65;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 768px) {

    .projects-section {
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .community-project-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .community-message {
        min-height: auto;
        padding: 28px 24px;
    }

    .community-message h3 {
        font-size: 25px;
    }
}










/* =========================================================
   PROJECT MODAL
========================================================= */

.project-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

.project-modal.active {
    display: flex;
}

.project-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(20, 25, 22, 0.72);
    backdrop-filter: blur(5px);
}


/* =========================================================
   MODAL BOX
========================================================= */

.project-modal-box {
    position: relative;
    z-index: 2;
    width: min(1000px, 100%);
    max-height: 92vh;
    overflow-y: auto;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.2);
}


/* =========================================================
   MODAL IMAGE
========================================================= */

.project-modal-image {
    width: 100%;
    height: 280px;
    overflow: hidden;
}

.project-modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}


/* =========================================================
   CLOSE BUTTON
========================================================= */

.project-modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 5;

    width: 42px;
    height: 42px;

    border: none;
    border-radius: 50%;

    background: rgba(255, 255, 255, 0.95);
    color: #333;

    font-size: 25px;
    line-height: 1;

    cursor: pointer;

    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);

    transition: 0.2s ease;
}

.project-modal-close:hover {
    transform: scale(1.05);
}


/* =========================================================
   MODAL CONTENT
========================================================= */

.project-modal-content {
    padding: 38px 42px 45px;
}

.project-modal-category {
    display: inline-block;

    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;

    color: #718f65;

    margin-bottom: 10px;
}

.project-modal-content h2 {
    margin: 0 0 12px;

    font-family: "Playfair Display", serif;
    font-size: 38px;
    line-height: 1.2;

    color: #263329;
}

.project-modal-intro {
    max-width: 800px;

    margin: 0 0 30px;

    font-size: 16px;
    line-height: 1.75;

    color: #666;
}


/* =========================================================
   STAT BOX GRID
========================================================= */

.project-modal-stats {
    display: grid;

    grid-template-columns:
        repeat(5, minmax(0, 1fr));

    gap: 14px;

    margin: 0 0 38px;
}


/* EACH STAT HAS ITS OWN BOX */

.modal-stat-box {
    min-height: 135px;

    padding: 20px 16px;

    background: #f7f8f5;

    border: 1px solid #e6e9e3;
    border-radius: 12px;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    text-align: center;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

.modal-stat-box:hover {
    transform: translateY(-2px);

    border-color: #d5ddd0;

    box-shadow: 0 8px 22px rgba(40, 55, 42, 0.08);
}


/* STAT ICON */

.modal-stat-icon {
    width: 36px;
    height: 36px;

    margin-bottom: 10px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #e9efe6;
    color: #718f65;

    font-size: 15px;
}


/* STAT VALUE */

.modal-stat-value {
    width: 100%;

    font-size: 18px;
    font-weight: 700;

    line-height: 1.25;

    color: #29362c;

    word-break: break-word;
}


/* STAT LABEL */

.modal-stat-label {
    margin-top: 6px;

    font-size: 11px;
    font-weight: 600;

    line-height: 1.35;

    text-transform: uppercase;
    letter-spacing: 0.7px;

    color: #858b85;
}


/* =========================================================
   MODAL SECTIONS
========================================================= */

.project-modal-section {
    margin-top: 30px;

    padding-top: 28px;

    border-top: 1px solid #e8ebe6;
}


/* HEADING WITH ICON IN ONE LINE */

.modal-section-heading {
    display: flex;
    align-items: center;

    gap: 10px;

    margin-bottom: 13px;
}

.modal-section-heading h3 {
    margin: 0;

    font-size: 19px;
    font-weight: 700;

    color: #29362c;
}


/* SECTION ICON */

.modal-section-icon {
    flex-shrink: 0;

    width: 34px;
    height: 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #edf2ea;
    color: #718f65;

    font-size: 14px;
}


/* SECTION TEXT */

.project-modal-section > p {
    margin: 0;

    font-size: 15px;
    line-height: 1.8;

    color: #626862;
}


/* =========================================================
   MESSAGE FROM THIS ACT
========================================================= */

.modal-message-section {
    border-top: none;

    margin-top: 30px;
    padding: 24px;

    border-radius: 12px;

    background: #f7f8f5;
}

.modal-message-section .modal-section-heading {
    margin-bottom: 15px;
}

.modal-message-box {
    position: relative;

    padding: 5px 5px 5px 38px;
}

.modal-message-box > i {
    position: absolute;

    left: 0;
    top: 4px;

    font-size: 20px;

    color: #a4b29e;
}

.modal-message-box p {
    margin: 0;

    font-size: 15px;
    line-height: 1.8;

    color: #555e57;
}


/* =========================================================
   LOCATION
========================================================= */

.modal-location-box {
    display: flex;
    align-items: flex-start;

    gap: 13px;

    padding: 18px 20px;

    background: #fafbf9;

    border: 1px solid #e8ebe6;
    border-radius: 10px;
}

.modal-location-box > i {
    flex-shrink: 0;

    margin-top: 3px;

    color: #718f65;
    font-size: 18px;
}

.modal-location-box p {
    margin: 0;

    font-size: 14px;
    line-height: 1.7;

    color: #606760;
}


/* =========================================================
   BODY WHEN MODAL IS OPEN
========================================================= */

body.modal-open {
    overflow: hidden;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 900px) {

    .project-modal-stats {
        grid-template-columns: repeat(3, 1fr);
    }

}


@media (max-width: 650px) {

    .project-modal {
        padding: 15px;
    }

    .project-modal-box {
        max-height: 95vh;
        border-radius: 14px;
    }

    .project-modal-image {
        height: 210px;
    }

    .project-modal-content {
        padding: 28px 22px 32px;
    }

    .project-modal-content h2 {
        font-size: 30px;
    }

    .project-modal-intro {
        font-size: 14px;
    }

    /* 2 boxes per row on mobile */

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

    .modal-stat-box {
        min-height: 125px;
        padding: 16px 10px;
    }

    .modal-stat-value {
        font-size: 16px;
    }

    .modal-stat-label {
        font-size: 10px;
    }

}


@media (max-width: 400px) {

    .project-modal-stats {
        grid-template-columns: 1fr;
    }

}










/* Focus value - wrap only between complete words */
.modal-stat-box:last-child .modal-stat-value {
    white-space: normal;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
    line-height: 1.35;
}










/* =========================================================
   PROJECT CATEGORY COLORS
   Healthcare = Green
   Education  = Brown
   Community  = Blue
========================================================= */


/* ---------------------------------------------------------
   HEALTHCARE — GREEN
--------------------------------------------------------- */

.project-card[data-category="Healthcare"] .project-category,
.project-card[data-category="Healthcare"] .project-details-btn {
    color: #5f7f65;
}

.project-card[data-category="Healthcare"] .project-details-btn:hover {
    background: transparent;
    color: #5f7f65;
}


/* ---------------------------------------------------------
   EDUCATION — BROWN
--------------------------------------------------------- */

.project-card[data-category="Education"] .project-category,
.project-card[data-category="Education"] .project-details-btn {
    color: #8b6f47;
}

.project-card[data-category="Education"] .project-details-btn:hover {
    background: transparent;
    color: #8b6f47;
}

.education-tag {
    color: #8b6f47;
}


/* ---------------------------------------------------------
   COMMUNITY — BLUE
--------------------------------------------------------- */

.project-card[data-category="Community"] .project-category,
.project-card[data-category="Community"] .project-details-btn {
    color: #4f7188;
}

.project-card[data-category="Community"] .project-details-btn:hover {
    background: transparent;
    color: #4f7188;
}

.community-tag {
    color: #4f7188;
}


/* =========================================================
   MODAL CATEGORY COLORS
========================================================= */

.project-modal-category.healthcare {
    color: #5f7f65;
}

.project-modal-category.education {
    color: #8b6f47;
}

.project-modal-category.community {
    color: #4f7188;
}


/* =========================================================
   MODAL ICON COLORS
========================================================= */

.project-modal-content.healthcare .modal-section-icon,
.project-modal-content.healthcare .modal-stat-icon {
    color: #5f7f65;
}

.project-modal-content.education .modal-section-icon,
.project-modal-content.education .modal-stat-icon {
    color: #8b6f47;
}

.project-modal-content.community .modal-section-icon,
.project-modal-content.community .modal-stat-icon {
    color: #4f7188;
}



















/* =========================================================
   POPUP CATEGORY COLOR COMBINATION
========================================================= */

/* ---------- HEALTHCARE : GREEN ---------- */

.project-modal-box.category-healthcare {
    border-top: 6px solid #5f7f65;
}

.project-modal-box.category-healthcare .project-modal-category {
    color: #5f7f65;
}

.project-modal-box.category-healthcare .modal-stat-box {
    background: rgba(95, 127, 101, 0.07);
    border: 1px solid rgba(95, 127, 101, 0.25);
}

.project-modal-box.category-healthcare .modal-stat-icon {
    color: #5f7f65;
}

.project-modal-box.category-healthcare .modal-section-heading {
    color: #5f7f65;
}

.project-modal-box.category-healthcare .modal-section-icon {
    color: #5f7f65;
}

.project-modal-box.category-healthcare .modal-message-box {
    background: rgba(95, 127, 101, 0.07);
    border-left: 4px solid #5f7f65;
}

.project-modal-box.category-healthcare .modal-location-box {
    background: rgba(95, 127, 101, 0.07);
}

.project-modal-box.category-healthcare .modal-location-box i {
    color: #5f7f65;
}


/* ---------- EDUCATION : BROWN ---------- */

.project-modal-box.category-education {
    border-top: 6px solid #8b6f47;
}

.project-modal-box.category-education .project-modal-category {
    color: #8b6f47;
}

.project-modal-box.category-education .modal-stat-box {
    background: rgba(139, 111, 71, 0.07);
    border: 1px solid rgba(139, 111, 71, 0.25);
}

.project-modal-box.category-education .modal-stat-icon {
    color: #8b6f47;
}

.project-modal-box.category-education .modal-section-heading {
    color: #8b6f47;
}

.project-modal-box.category-education .modal-section-icon {
    color: #8b6f47;
}

.project-modal-box.category-education .modal-message-box {
    background: rgba(139, 111, 71, 0.07);
    border-left: 4px solid #8b6f47;
}

.project-modal-box.category-education .modal-location-box {
    background: rgba(139, 111, 71, 0.07);
}

.project-modal-box.category-education .modal-location-box i {
    color: #8b6f47;
}


/* ---------- COMMUNITY : BLUE ---------- */

.project-modal-box.category-community {
    border-top: 6px solid #4f7188;
}

.project-modal-box.category-community .project-modal-category {
    color: #4f7188;
}

.project-modal-box.category-community .modal-stat-box {
    background: rgba(79, 113, 136, 0.07);
    border: 1px solid rgba(79, 113, 136, 0.25);
}

.project-modal-box.category-community .modal-stat-icon {
    color: #4f7188;
}

.project-modal-box.category-community .modal-section-heading {
    color: #4f7188;
}

.project-modal-box.category-community .modal-section-icon {
    color: #4f7188;
}

.project-modal-box.category-community .modal-message-box {
    background: rgba(79, 113, 136, 0.07);
    border-left: 4px solid #4f7188;
}

.project-modal-box.category-community .modal-location-box {
    background: rgba(79, 113, 136, 0.07);
}

.project-modal-box.category-community .modal-location-box i {
    color: #4f7188;
}





/* =========================================================
   PROJECT MODAL PHOTO CAROUSEL
========================================================= */

.carousel-container {
    position: relative;
    overflow: hidden;
}


/* MAIN IMAGE */

.carousel-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}


/* =========================================================
   CAROUSEL BUTTONS
========================================================= */

.carousel-btn {
    position: absolute;

    top: 50%;
    transform: translateY(-50%);

    width: 42px;
    height: 42px;

    border: none;
    border-radius: 50%;

    background: rgba(255, 255, 255, 0.92);

    color: #333;

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;

    z-index: 5;

    transition:
        background 0.2s ease,
        transform 0.2s ease,
        opacity 0.2s ease;
}


.carousel-btn:hover {
    background: #ffffff;

    transform:
        translateY(-50%)
        scale(1.05);
}


.carousel-prev {
    left: 18px;
}


.carousel-next {
    right: 18px;
}


/* =========================================================
   DOTS
========================================================= */

.carousel-dots {
    position: absolute;

    bottom: 15px;

    left: 50%;

    transform: translateX(-50%);

    display: flex;

    gap: 7px;

    z-index: 5;
}


.carousel-dot {
    width: 8px;
    height: 8px;

    padding: 0;

    border: none;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.6);

    cursor: pointer;

    transition:
        width 0.2s ease,
        background 0.2s ease;
}


.carousel-dot.active {
    width: 22px;

    border-radius: 10px;

    background: #ffffff;
}


/* =========================================================
   WHEN ONLY ONE PHOTO EXISTS
========================================================= */

.carousel-container.single-image .carousel-btn,
.carousel-container.single-image .carousel-dots {
    display: none;
}


/* =========================================================
   IMAGE TRANSITION
========================================================= */

.carousel-container img {
    transition: opacity 0.25s ease;
}


/* =========================================================
   PROJECT STATUS + IMAGE FALLBACK
   Added for the updated project list
========================================================= */

.project-status {
    z-index: 3;
}

.project-image.no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        linear-gradient(
            135deg,
            #eef4f1 0%,
            #f7f8f5 100%
        );
}

.project-image.no-image::after {
    content: "Karuna Prem";
    color: #6b7f72;
    font-family: "Playfair Display", serif;
    font-size: 20px;
    letter-spacing: 0.3px;
}

.project-image.no-image .project-number,
.project-image.no-image .project-status {
    z-index: 4;
}




.project-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    margin-top: 10px;

    font-size: 12px;
    font-weight: 600;
}

.project-status::before {
    content: "";

    width: 6px;
    height: 6px;

    border-radius: 50%;

    display: inline-block;
}

/* Ongoing */
.project-status.ongoing {
    color: #1763ad;
}

.project-status.ongoing::before {
    background: #1763ad;
}

/* Completed */
.project-status.completed {
    color: #3f7d58;
}

.project-status.completed::before {
    background: #3f7d58;
}




/* =========================================================
           PHOTO CAROUSEL
        ========================================================= */

        .carousel-container {
            position: relative;
            width: 100%;
            height: 100%;
            min-height: 420px;
            overflow: hidden;
            background: #eef3f5;
        }

        .carousel-container img {
            width: 100%;
            height: 100%;
            min-height: 420px;
            object-fit: cover;
            display: block;
            transition: opacity 0.25s ease;
        }

        .carousel-btn {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            width: 52px;
            height: 52px;
            border: none;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.94);
            color: #263c32;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            z-index: 10;
            box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
            transition: all 0.25s ease;
        }

        .carousel-btn:hover {
            background: #ffffff;
            transform: translateY(-50%) scale(1.08);
        }

        .carousel-btn i {
            font-size: 18px;
        }

        .carousel-prev {
            left: 22px;
        }

        .carousel-next {
            right: 22px;
        }

        .carousel-dots {
            position: absolute;
            left: 50%;
            bottom: 20px;
            transform: translateX(-50%);
            display: flex;
            gap: 8px;
            align-items: center;
            justify-content: center;
            z-index: 10;
        }

        .carousel-dot {
            width: 9px;
            height: 9px;
            padding: 0;
            border: none;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.55);
            cursor: pointer;
            transition: all 0.25s ease;
        }

        .carousel-dot.active {
            width: 25px;
            border-radius: 10px;
            background: #ffffff;
        }

        .carousel-loading {
            position: absolute;
            inset: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            background: #eef3f5;
            color: #53645b;
            z-index: 2;
        }

        .carousel-loading i {
            font-size: 25px;
            animation: carouselSpin 1s linear infinite;
        }

        @keyframes carouselSpin {
            from {
                transform: rotate(0deg);
            }

            to {
                transform: rotate(360deg);
            }
        }

        /* Hide carousel controls when there is only one image */
        .carousel-container.single-image .carousel-btn,
        .carousel-container.single-image .carousel-dots {
            display: none;
        }

        /* =========================================================
           MOBILE CAROUSEL
        ========================================================= */

        @media (max-width: 768px) {

            .carousel-container {
                min-height: 280px;
            }

            .carousel-container img {
                min-height: 280px;
            }

            .carousel-btn {
                width: 42px;
                height: 42px;
            }

            .carousel-prev {
                left: 12px;
            }

            .carousel-next {
                right: 12px;
            }

            .carousel-dots {
                bottom: 12px;
            }
        }