/* -----------------------------------------------
   MAIN CONTENT + HERO SECTION 
   ----------------------------------------------- */
.main-content {
    background-color: #ffffff;
}

.slide-image-block{
    max-height: 500px;
    object-fit: cover;
    object-position: center;
}

.slide-image-block img{
    object-fit: cover;
}

.overlay-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    padding: 10px 20px;
    max-width: 90%;
}

.overlay-text h1 {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.2;
}

.project-title {
    text-align: center;
    color: #008000;
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 15px;
    line-height: 1.2;
    padding-left: 150px;
}

.gain-hero {
    display: grid;
    grid-template-columns: 1.9fr 1fr;
    gap: 16px;
    align-items: stretch;
}

.gain-hero-text {
    border: 2px solid #4a6fa5;
    padding: 34px 30px;
    text-align: center;
    background: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.gain-hero-text h1 {
    color: var(--teal);
    font-size: clamp(1.6rem,3vw,2.2rem);
    font-weight: 500;
    margin: 0 0 20px;
    line-height: 1.2;
}

.gain-hero-text p {
    font-size: 1.2rem;
    line-height: 1.5;
    margin: 0 auto;
    max-width: 650px;
    color: var(--purple);
}

.gain-hero-img {
    overflow: hidden;
    min-height:180px;
}
.gain-hero-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* -----------------------------------------------
   STATS
   ----------------------------------------------- */
.gain-stats {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 14px;
    margin: 40px 0 28px;
    padding: 20px 0;
}

.gain-stat {
    display: flex;
    flex-direction: column;
    text-align: center;
}

.gain-stat img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    margin: 0 auto 6px;
}

.gain-stat-box {
    flex:1;
    display:flex;
    flex-direction:column;
    justify-content:center;
    padding: 14px 8px 12px;
    min-height: 96px;
}

.gain-stat-box b {
    display: block;
    font-size: 2rem; 
    font-weight: 400;
    color: #3f4c5e;
    line-height: 1.1;
}

.gain-stat-box span {
    font-size:.78rem;
    font-weight:700;
    color:#3f4c5e;
}

.c1{background:#8fd0d8}.c2{background:#f6f28f}.c3{background:#88a8d6}.c4{background:#94d3d9}.c5{background:#8fd0d8}

/* -----------------------------------------------
   PANEL
   ----------------------------------------------- */
.gain-panel {
    border: 2px solid #4a6fa5;
    padding: 30px 28px 34px;
    background: #fff;
}

.gain-panel h2 {
    color: var(--teal);
    text-align: center;
    font-size: clamp(1.7rem,3.4vw,2.4rem);
    font-weight: 500;
    line-height: 1.2; margin:0 0 20px;
}

.gain-panel p {
    font-size: .9rem;
    line-height: 1.5;
    color: var(--purple);
    margin:0 0 14px;
}

/* -----------------------------------------------
   CARDS
   ----------------------------------------------- */
.gain-cards {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 16px;margin-top:22px;
}

.gain-card {
    border: 4px solid;
    border-radius: 14px;
    padding: 22px 14px 18px;
    text-align: center;
    background: #fff;
    text-decoration: none;
    color: var(--ink);
    display:block;
}

.gain-card img {
    width: 84px;
    height: 84px;
    object-fit: contain;
    margin: 0 auto 12px;
}

.gain-card h3 {
    margin: 0 0 4px; 
    font-size: .95rem;
    font-weight: 700;
    color: var(--navy);
}

.gain-card p {
    margin: 0;
    font-size: .88rem;
    line-height: 1.35;
    color: var(--purple);
}

.gain-card:hover,
.gain-card:focus-visible {
    box-shadow: 0 4px 14px rgba(30,79,156,.25);
    outline: none;
}

.k1{border-color:#8aa4d6}.k2{border-color:#8fd0d8}.k3{border-color:#a9dcf5}.k4{border-color:#b5b9f2}

/* -----------------------------------------------
   RESPONSIVE 
   ----------------------------------------------- */
@media (max-width: 768px) {
    .overlay-text {
        padding: 10px 16px;
    }

    .overlay-text h1 {
        font-size: 1.6rem;
    }

    .project-title {
        font-size: 1.1rem;
        padding-left: 0;
        margin-bottom: 60px;
    }

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

    .gain-cards {
        grid-template-columns:repeat(1,1fr);
    }

    .gain-hero{
        grid-template-columns: 1fr;
    }
}