/* Container styling */
.cmp-altgrid {
    background-color: #fbf9f4; /* Match page background if needed */
    padding: 4rem 1rem;
}

.cmp-altgrid__container {
    max-width: 1140px;
    margin: 0 auto;
}

.cmp-altgrid__main-heading {
    text-align: center;
    color: #1a803c; /* IFFCO Green */
    font-size: 2.5rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 3rem;
    letter-spacing: 1px;
}

/* Row Styling (Flexbox) */
.cmp-altgrid__row {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch; /* Ensures both image and text box are equal height */
    flex-direction: row-reverse;
}

/* Magic: Reverses the layout automatically for alternating rows! */
.cmp-altgrid__row--reverse {
    flex-direction: row;
}

/* Columns */
.cmp-altgrid__col {
    flex: 1 1 50%;
    display: flex;
}

/* Image Column */
.cmp-altgrid__col--image {
    min-height: 350px;
}

.cmp-altgrid__image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the image fills the box without stretching */
    display: block;
}

/* Text Column (Green Box) */
.cmp-altgrid__col--text {
    /* background-color: #0b9347; Bright Green from your screenshot */
    color: #ffffff; /* White text */
    align-items: center; /* Vertically centers the text */
    padding: 3rem 4rem;
}

/* Background Color Modifiers */
.cmp-altgrid__col--text-green {
    background-color: #0b9347; /* IFFCO Green */
}

.cmp-altgrid__col--text-blue {
    background-color: #009bdd; /* IFFCO Blue (Approximate match to your image) */
}
.cmp-altgrid__description {
    font-size: 1.05rem;
    line-height: 1.8;
    width: 100%;
	text-align: justify;
}

.cmp-altgrid__description p {
    margin-bottom: 0;
}
.cmp-altgrid__description p b {
    color: #edf39d;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .cmp-altgrid__row, 
    .cmp-altgrid__row--reverse {
        flex-direction: column; /* Stack image and text on small screens */
    }
    
    .cmp-altgrid__col--text {
        padding: 2rem;
    }
    
    .cmp-altgrid__col--image {
        min-height: 250px;
    }
}