/* Case Study Container */
.case-study-container {
    padding: 60px 0;
    background-color: #f7f9fa; /* Light grey/green tint background */
}

/* Card Wrapper */
.case-study-card {
    background: #fff;
    border-radius: 40px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    margin-bottom: 50px;
    overflow: hidden;
    
}

/* Green Header Strip */
.case-card-header {
    background-color: #1a9c46; /* Matching the green in image */
    padding: 15px 30px;
    position: relative;
    border-top-left-radius: 20px; /* Ensure radius matches card */
    border-top-right-radius: 20px;
    min-height: 60px;
}

.case-header-bage {
    display: flex;
    align-items: center;
    justify-content: center;
}

.circle-number {
    background-color: #fff;
    color: #1a9c46;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
    margin-right: 15px;
}

.header-cat-name {
    color: #fff;
    font-weight: bold;
    font-size: 24px;
}

/* Card Body */
.case-card-body {
    padding: 30px 40px;
}

/* Main Title */
.case-main-title {
    color: #1a9c46;
    font-size: 22px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 30px;
    line-height: 1.4;
    padding: 0 10%;
    white-space: pre-line;
}

/* Metadata Row */
/* Metadata Row */
.case-meta-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start; /* Align columns to the left */
    gap: 15px 30px; /* Row gap 15px, Column gap 30px */
    margin-bottom: 25px;
}

.meta-item {
    display: flex; 
    align-items: stretch;
    width: auto; /* Natural width */
}
.meta-label {
    background-color: #6fb942;
    color: #fff;
    padding: 6px 20px;
    border-radius: 14px; /* Less rounded than full pill */
    font-size: 14px;
    line-height: 1.2;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #406F38;
    min-width: 100px;
}
.meta-value {
    background-color: #fff; /* or transparent */
    font-weight: bold;
    padding: 6px 10px;
    display: flex;
    align-items: center;
    font-size: 16px;
    border: none;
}


/* Reduction Table Container */
.case-reduction-container {
    display: flex;
    border: 1px solid #000;
    overflow: hidden;
    margin-bottom: 30px;
}

.reduction-col {
    flex: 1;
    text-align: center;
}

.reduction-col.border-left-white {
    border-left: 1px solid #000; /* Separator between cols */
}

.red-header {
    background-color: #6fb942; /* Green header bg */
    color: #fff;
    font-weight: bold;
    padding: 8px;
    font-size: 16px;
}

.red-value {
    background-color: #fff;
    color: #333;
    font-size: 24px;
    font-weight: bold;
    padding: 15px;
    border-top: 1px solid #000;
}


/* Trigger & Comment Row Sections */
.case-row-section {
    display: flex;
    align-items: stretch;
    margin-bottom: 20px;
    gap: 20px;
}

.section-label-box {
    width: 110px;
    flex-shrink: 0;
    border-radius: 12px;
    color: #fff;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px;
    line-height: 1.3;
    font-size: 16px;
    border: 1px solid #406F38;
}

.green-box {
    background-color: #6fb942;
}

.section-content-text {
    flex-grow: 1;
    font-size: 16px;
    line-height: 1.6;
    display: flex;
    align-items: center;
    color: #333;
}


/* Complex Content Boxes (Yellow/Blue) */
.complex-box {
    display: flex;
    border-radius: 12px;
    padding: 15px; /* Inner padding */
    align-items: center; /* Align center */
    margin-bottom: 0;
}

.yellow-bg {
    background-color: #fff9c4; /* Light yellow */
    border: 1px solid #8CB84E;
}

.blue-bg {
    background-color: #03a9f4; /* Bright blue */
    color: #fff;
    border: 1px solid #595959;
}

.c-label {
    width: 85px;
    flex-shrink: 0;
    font-weight: bold;
    font-size: 16px;
    line-height: 1.3;
    margin-right: 10px;
    text-align: center;
}

.text-green { color: #388e3c; }
.text-white { color: #fff; }

.c-content {
    flex-grow: 1;
    font-size: 16px;
    line-height: 1.6;
}

/* Bullet Points for Effect List */
.effect-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.effect-list li {
    position: relative;
    padding-left: 28px; /* Indent for the icon */
    margin-bottom: 8px;
    line-height: 1.5;
}

.effect-list li:last-child {
    margin-bottom: 0;
}

/* Double Circle Icon (Bullseye style) */
.effect-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 3px; /* Align with text */
    width: 18px;
    height: 18px;
    border: 1px solid rgba(255,255,255,0.7); /* Outer thin ring */
    border-radius: 50%;
    box-sizing: border-box;
    /* Create inner circle using background + double border trick or pseudo element.
       Let's use box-shadow or another pseudo element. Actually, nested circle is easier with ::after */
}

.effect-list li::after {
    content: '';
    position: absolute;
    left: 4px; /* (18 - 10) / 2 */
    top: 7px;  /* (18 - 10) / 2 + 3px top offset = 7 */
    width: 10px;
    height: 10px;
    border: 1px solid #fff; /* Inner ring border */
    border-radius: 50%;
    box-sizing: border-box;
    /* Image shows filled inner circle? Actually looks like concentric circles.
       Let's make outer border, inner border empty. 
       Wait, the image icon looks like ◎ (double circle).
       Outer: thin white line. Inner: thin white line clearly separated. 
       Let's do: ::before is outer ring. ::after is inner ring.
    */
}


/* Arrow Separator */
.arrow-separator {
    text-align: center;
    color: #ff7043; /* Orange arrow color */
    font-size: 24px;
    margin: -10px 0 -5px 0; /* Tight spacing */
    position: relative;
    z-index: 2;
}


/* Right Image Container */
.case-right-image {
    width: 100%; /* Default to full width on mobile */
}

@media (min-width: 992px) {
    .case-right-image {
        width: 40%;
        max-width: 500px;
    }
}

/* Right Image */
.case-right-image img {
    width: 100%;
    /* border-radius: 8px; */
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.case-right-image .caption {
    margin-top: 10px;
    line-height: 1.4;
    font-size: 16px;
    margin-bottom: 0;
}


/* Subsidy Box */
.subsidy-box {
    background-color: #fff3e0; /* Light orange/yellow */
    border: 1px solid #ffe0b2;
    border-radius: 30px; /* Pill shape */
    padding: 15px 30px;
    font-size: 15px;
    color: #333;
    margin-top: 20px;
}

.subsidy-title {
    font-weight: bold;
    color: #558b2f;
    margin-right: 10px;
}


/* Responsive adjustments */
@media (max-width: 768px) {
    .case-row-section {
        flex-direction: column;
        gap: 10px;
    }
    .section-label-box {
        width: 100%;
    }
    .complex-box {
        flex-direction: column;
    }
    .c-label {
        width: 100%;
        margin-bottom: 10px;
    }
    .reduction-value {
        font-size: 18px;
    }
    .case-main-title {
        display: none;
    }
    .case-card-body{
        padding: 15px 20px;
    }
    .red-value{
        font-size: 20px;
        font-weight: bold;
        padding: 10px;
    }

    
}

@media (max-width: 991px) {
    .case-right-image {
        margin-top: 20px;
    }
}

/* Initiative Content Inline Numbering */
.initiative-item {
    display: inline-block;
    margin-right: 15px;
    font-weight: bold;
    color: #4CAF50; /* Green text matching theme */
    line-height: 1.7;
}

.init-num {
    display: inline-block;
    width: 22px;
    height: 22px;
    background-color: #4CAF50;
    color: #fff;
    border-radius: 50%;
    text-align: center;
    line-height: 22px;
    font-size: 13px;
    margin-right: 6px;
    font-weight: bold;
}

/* Sidebar Menu */
.case-study-sidebar {
    position: sticky;
    top: 20px;
    padding-right: 20px;
}

.case-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.case-menu-list li {
    margin-bottom: 10px;
    position: relative;
}

/* Bullet for menu: white or green? Image seems to have bullet or line */
.case-menu-list li::before {
    content: '▶'; /* Simple arrow as placeholder, can check image if detailed */
    position: absolute;
    left: 0;
    font-size: 10px;
    color: #fff; /* Assuming green bg from user description, text white */
    top: 5px;
}

/* Text style: white text because mostly green background */
.case-menu-link {
    color: #fff; 
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    display: block;
    line-height: 1.4;
    transition: opacity 0.3s;
}

.case-menu-link:hover {
    color: #ffeb3b; /* Yellow hover */
    text-decoration: none;
    opacity: 0.9;
}

/* Ensure background is green */
.case-study-container {
    background-color: #5da035; /* Fallback color matching the green theme */
    background-image: url('../images/case_study_bg.png');
    background-repeat: repeat-y;
    background-position: top center;
    background-size: 100% auto; /* Stretch to full width, maintain aspect ratio */
    min-height: 100vh;
}

/* Overwrite spacing for sidebar layout */
.case-study-card {
    margin-bottom: 40px;
}

/* Ensure sidebar visibility on mobile */
@media (max-width: 991px) {
    .case-study-sidebar {
        display: none; /* Hide on mobile? Or show on top? */
    }
}
