/* ====================================================
   ABOUT COMPRESSED BIOGAS SECTION
   ==================================================== */
.cbg-img-wrapper {
    border: 4px solid #eaeeee; /* Light border around image */
    transition: transform 0.4s ease;
}
.cbg-img-wrapper:hover {
    transform: scale(1.02);
}

/* ====================================================
   OUR PROJECT BANNER (DARK NAVY THEME)
   ==================================================== */
/* ====================================================
   OUR PROJECT BANNER (DARK NAVY THEME)
   ==================================================== */
.cbg-project-banner {
    position: relative;
    
    /* CRITICAL FIX: Increased padding from 100px to 160px to make it much taller */
    padding: 160px 0; 
    
    /* Alternatively, you can force an exact height by uncommenting the line below: */
    min-height: 350px;
    
    /* Centers the content perfectly vertically */
    display: flex;
    align-items: center;
    
    /* Uses Dark Navy Blue gradient instead of bright green */
    background: linear-gradient(135deg, rgba(26, 43, 60, 0.95) 0%, rgba(26, 43, 60, 0.85) 100%), 
                url('https://images.unsplash.com/photo-1523348837708-15d4a09cfac2?auto=format&fit=crop&q=80') center/cover fixed;
}

/* ====================================================
   COMPRESSED BIOGAS APPLICATIONS CARDS
   ==================================================== */
.cbg-app-card {
    background-color: #ffffff;
    border: 1px solid #eaeeee;
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    position: relative;
    overflow: hidden; /* Keeps the animation inside the card */
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
    z-index: 1; 
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease;
    height: 100%; /* Ensures equal height in row */
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* SLIDE-IN ANIMATION (Navy Blue from Left to Right) */
.cbg-app-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%; /* Starts invisible on the left */
    height: 100%; 
    background-color: var(--color-dark-navy); /* Dark Navy instead of green */
    z-index: -1; 
    transition: width 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.cbg-app-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(26, 43, 60, 0.15); 
    border-color: var(--color-dark-navy);
}

.cbg-app-card:hover::before {
    width: 100%; /* Fills card smoothly */
}

/* --- Icon Styling (Minimal Green) --- */
.cbg-icon {
    width: 75px;
    height: 75px;
    background-color: rgba(26, 43, 60, 0.05); /* Faint navy circle */
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 25px;
    transition: all 0.4s ease;
}

.cbg-icon i {
    font-size: 32px;
    color: var(--color-dark-navy); /* Navy icon initially */
    transition: color 0.4s ease;
}

/* --- Text Styling --- */
.cbg-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--color-dark-navy);
    margin-bottom: 15px;
    line-height: 1.4;
    transition: color 0.4s ease;
}

.cbg-desc {
    font-size: 14.5px;
    color: #6c757d;
    line-height: 1.7;
    margin: 0;
    transition: color 0.4s ease;
}

/* --- HOVER COLOR CHANGES --- */
.cbg-app-card:hover .cbg-icon {
    background-color: rgba(255, 255, 255, 0.15);
    transform: scale(1.1);
}

.cbg-app-card:hover .cbg-icon i {
    color: var(--color-primary); /* A perfect tiny pop of EVS Green against the navy background! */
}

.cbg-app-card:hover .cbg-title {
    color: var(--color-white);
}

.cbg-app-card:hover .cbg-desc {
    color: rgba(255, 255, 255, 0.85);
}

/* ====================================================
   RESPONSIVE ADJUSTMENTS
   ==================================================== */
@media (max-width: 991px) {
    .cbg-project-banner h3 { font-size: 22px !important; }
    .cbg-app-card { padding: 30px 20px; }
}

@media (max-width: 767px) {
    .cbg-project-banner { padding: 60px 0; }
    .cbg-project-banner h2 { font-size: 32px !important; }
    .cbg-project-banner h3 { font-size: 18px !important; }
    .cbg-img-wrapper img { height: 280px !important; }
}

/* ====================================================
   PURIFICATION PROCESSES SECTION
   ==================================================== */

.purification-processes-section {
    position: relative;
  
    background: linear-gradient(rgba(34, 85, 56, 0.95), rgba(24, 66, 42, 0.98)), 
                url('../image/bg3.png') center/cover no-repeat;
    padding: 100px 0;
}

/* --- Card Styling --- */
.process-card {
    background-color: var(--color-white);
    padding: 30px 35px;
    border-radius: 8px;
    margin-bottom: 24px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    border-left: 5px solid var(--color-primary); 
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    
  
    transform: translateZ(0);
    will-change: transform, box-shadow;
}

.process-card:hover {
    transform: translateY(-5px) translateZ(0); 
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}
.step-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--color-dark-navy);
    margin-bottom: 12px;
}

.process-card p {
    font-size: 14.5px;
    color: #555555;
    line-height: 1.7;
    margin-bottom: 10px;
}

/* Styling for bullet points inside cards */
.process-card ul {
    margin-bottom: 0;
    padding-left: 20px;
}

.process-card ul li {
    font-size: 14.5px;
    color: #555555;
    line-height: 1.7;
    margin-bottom: 8px;
}

.process-card ul li:last-child {
    margin-bottom: 0;
}

/* ====================================================
   RESPONSIVE ADJUSTMENTS
   ==================================================== */
@media (max-width: 991px) {
    .purification-processes-section h2 {
        font-size: 32px !important;
    }
    .process-card {
        padding: 25px 20px;
    }
}

@media (max-width: 767px) {
    .purification-processes-section {
        padding: 60px 0;
    }
    .purification-processes-section h2 {
        font-size: 28px !important;
    }
    .step-title {
        font-size: 16px;
    }
    .process-card {
        margin-bottom: 20px !important;
    }
}

/* ====================================================
   CBG PRODUCED SECTION
   ==================================================== */
.cbg-produced-section {
    background-color: #f8fafc; 
    position: relative;
}

.cbg-diagram-wrapper {
    border: 1px solid #eaeeee;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

/* Subtle hover lift effect */
.cbg-diagram-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(26, 43, 60, 0.08) !important; 
}

.cbg-diagram-wrapper img {
    max-height: 750px;
    object-fit: contain;
    display: inline-block;
}

/* ====================================================
   RESPONSIVE ADJUSTMENTS
   ==================================================== */
@media (max-width: 991px) {
    .cbg-produced-section h2 { font-size: 36px !important; }
}

@media (max-width: 767px) {
    .cbg-produced-section {
        padding: 60px 0;
        
    }
    .cbg-produced-section h2 { font-size: 30px !important; }
    
    /* Shrink the padding around the image on phones to save space */
    .cbg-diagram-wrapper {
        padding: 15px !important;
        border-radius: 12px !important;
    }
}

/* ====================================================
   RAW MATERIALS (SPLIT BLOCK) SECTION
   ==================================================== */
.raw-materials-section {
    background-color: #ffffff;
}

.split-block {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch; 
}

/* --- Image Wrapping & Animation --- */

.split-img-wrapper {
    position: relative;
    overflow: hidden; 

    transform: translateZ(0); 
    -webkit-transform: translateZ(0);
}

.split-img {
    position: absolute; /* MUST remain absolute on ALL screens */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; 
    transition: transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
    
    will-change: transform;
    transform: scale(1) translateZ(0);
    -webkit-transform: scale(1) translateZ(0);
}

/* Subtle zoom effect */
.split-block:hover .split-img {
    transform: scale(1.05) translateZ(0);
    -webkit-transform: scale(1.05) translateZ(0);
}

/* --- Text Wrapping & Backgrounds --- */
.split-text-wrapper {
    padding: 30px 4%; /* Better spacing */
    color: var(--color-white);
    display: flex;
    flex-direction: column;
    justify-content: center; /* Centers the text beautifully vertically */
}

.bg-dark-navy {
    background-color: var(--color-dark-navy);
}

.bg-evs-green {
    background-color: var(--color-primary);
}

.split-title {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 25px;
    color: var(--color-white);
    letter-spacing: 0.5px;
}

.split-content p {
    font-size: 15px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
}

/* ====================================================
   RESPONSIVE ADJUSTMENTS
   ==================================================== */
@media (max-width: 991px) {
    /* Tablet adjustments */
    .split-text-wrapper { padding: 40px 5%; }
    .split-title { font-size: 28px; }
}

@media (max-width: 767px) {
    /* Mobile Phone Adjustments */
    .split-img-wrapper {
        min-height: 350px; 
        width: 100%;
    }
    .split-text-wrapper {
        padding: 40px 25px;
        width: 100%;
    }
    .split-title {
        font-size: 26px;
    }
    .raw-materials-section h2 {
        font-size: 30px !important;
    }
}

.py-5 {
    padding-top: 0rem !important;
    padding-bottom: 0rem !important;
}
.mb-5 {
    margin-bottom: 1rem !important;
}