.tsabiable-features {
    text-align: center;
    padding: 40px 20px;
}

.ts-features-heading {
    font-size: 32px;
    font-weight: 700;
    color: #0c5e37;
    margin-bottom: 30px;
	text-align: center;
}

.features-container {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
	margin-bottom: 100px;
	padding: 0 10px;
}

.feature-image-wrapper {
    height: 50%;
}

.feature-card {
    width: 300px;
    min-height: 450px;
    background: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative;
    transition: border 0.3s ease;
    border: 1px solid transparent;
    box-sizing: border-box;
	display: flex;
    flex-direction: column;
}

/* Hover background image setup */
.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: var(--hover-bg); /* Set this inline or via JS */
    background-size: contain;
    background-position: bottom center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
    pointer-events: none;
}

.feature-card:hover {
    border: 1px solid #0c5e37;
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card .feature-image {
    width: 150px;
    height: 150px;
    object-fit: contain;
    margin: 15px auto;
    display: block;
}

.feature-card .feature-content {
    height: 50%;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: start;
    text-align: center;
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0);
    transition: color 0.3s ease;
}

/* Remove white background on hover */
.feature-card:hover .feature-content {
    background: transparent;
}

@media(max-width: 768px) and (min-width: 601px){
	.feature-card .feature-content {
			margin-top: 25px;
	}
}

/* Hover text color change */
.feature-card:hover h3,
.feature-card:hover p {
    color: #ffffff;
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 10px;
    color: #000000;
    transition: color 0.3s ease;
}
 
@media(max-width: 600px){
	.feature-card h3 {
   	margin-top: 20px;
}
}

.feature-card p {
    font-size: 14px;
    font-weight: 400;
    color: #666666;
    margin: 0;
    transition: color 0.3s ease;
}

/* Responsive styles */
@media (max-width: 650px) {
    .features-container {
        flex-direction: column;
        align-items: center;
    }

    .feature-card {
        width: 100%;
        max-width: 300px;
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    

    .feature-card .feature-image {
        width: 170px;
        height: 170px;
    }
}




/* -------------------------------------- */
/* --- Layout 2 Styles (New) --- */
/* -------------------------------------- */

.tsabiable-features-layout2 {
    /* Inherits base styles from .tsabiable-features */
}

/* Layout 2 Main Title */
.ts-features-heading-layout2 {
    /* Color controlled by Bricks controls (L2 Main Title Color) */
    font-size: 32px;
    font-weight: 700;
    color: #93764e; /* Default as requested */
    margin-bottom: 40px;
    text-align: center;
}

.features-container-layout2 {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 1200px; /* Limit container width for better look */
    margin: 0 auto;
    padding: 0 10px;
}

.feature-icon-box {
    width: calc(25% - 15px); /* Max 4 in a row, accounting for gap */
    min-width: 200px; /* Ensure a decent minimum width */
    padding: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
}

.feature-icon-wrapper {
    margin-bottom: 15px;
    line-height: 1; /* Keep icon vertically centered */
}

.feature-icon {
    /* Color controlled by Bricks controls (L2 Icon Color) */
    font-size: 48px; 
    color: #0c5e37; /* Default green as requested */
    display: inline-block;
    transition: color 0.3s ease;
}

.feature-icon-content h3 {
    /* Color controlled by Bricks controls */
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 10px;
    color: #000000; 
}

.feature-icon-content p {
    font-weight: 400;
    color: #000000; 
    margin: 0;
}

@media (max-width: 1024px) {
    .feature-icon-box {
        width: calc(33.333% - 13.333px); 
    }
}

@media (max-width: 768px) {
    .feature-icon-box {
        width: calc(50% - 10px); 
    }
}

@media (max-width: 480px) {
    .feature-icon-box {
        width: 100%; 
        max-width: 300px;
    }
    .features-container-layout2 {
        gap: 10px;
    }
}
