/* ===================================
   HOME SERVICE LOOP (3-COLUMN) STYLES
   =================================== */

.wp-block-acf-atax-home-service-loop .home-service-loop-section {
    width: 100%;
    padding: 72px 20px 72px 20px;
}

.home-service-loop-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.home-service-loop-heading {
    font-size: 48px;
    font-weight: 700;
    color: #354477; /* Primary heading color aligns with brand */
    text-align: center;
    margin: 0;
    font-family: 'Montserrat', sans-serif;
}

.home-service-loop-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0; /* No gap between columns */
}

.home-service-card {
    position: relative;
    border-radius: 0; /* No radius */
    overflow: hidden;
    min-height: 600px; /* Height as per design */
    width: 100%; /* Width as per design */
    display: flex;
    align-items: flex-end;
}

.home-service-card-media {
    position: absolute;
    inset: 0;
}

.home-service-card-image {
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    display: block;
}

/* Bottom → up gradient: primary at bottom to transparent top */
.home-service-card-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, rgba(15, 40, 105, 0) 0%, rgba(15, 40, 105, 0.85) 100%);
    height: 60%;
}

.home-service-card-content {
    position: relative;
    z-index: 2;
    color: #fff;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.home-service-card-content:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.home-service-card-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    color: inherit;
}

.home-service-card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    text-decoration: underline;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    transition: opacity 0.3s ease;
}

.home-service-card-content:hover .home-service-card-link {
    opacity: 0.9;
}

.home-service-card-link-icon {
    width: 16px;
    height: 16px;
    display: block;
}

/* Responsive */
@media (max-width: 1150px) {
    .home-service-loop-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 767px) {
    .home-service-loop-heading { font-size: 36px; }
    .home-service-loop-grid { grid-template-columns: 1fr; }
}
