/* ===================================
   SERVICE OTHERS (6-COLUMN) STYLES
   =================================== */

.wp-block-acf-atax-service-others .service-others-section {
    width: 100%;
    padding: 72px 20px 72px 20px;
}

.service-others-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.service-others-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;
}

.service-others-description {
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    text-align: center;
}

.service-others-description p {
    font-size: 16px;
    font-weight: 700; /* Bold */
    color: var(--primary-color, #354477); /* Primary color */
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
}

.service-others-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columns per row */
    /* Let rows auto-flow based on number of cards */
    gap: 0; /* No gap between columns */
}

.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;
}

.service-card-media {
    position: absolute;
    inset: 0;
}

.service-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Bottom → up gradient: primary at bottom to transparent top */
.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%;
}

.service-card-content {
    position: relative;
    z-index: 2;
    color: #fff;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.service-card-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    font-family: 'Montserrat', sans-serif;
}

.service-card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-weight: 600;
    font-size: 16px;
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 8px 0;
    cursor: default; /* Indicates it's not clickable */
    opacity: 0.8; /* Slightly muted to show it's not interactive */
}

/* Backface: appears on hover (no true flip, slide-in feel) */
.service-card-backface {
    position: absolute;
    inset: 0;
    background: var(--primary-color, #354477);
    color: #fff;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    transform: translateX(100%);
    opacity: 0;
    transition: transform 0.35s ease, opacity 0.35s ease;
}

.service-card:hover .service-card-backface {
    transform: translateX(0%);
    opacity: 1;
}

.service-card:hover .service-card-content {
    transform: translateX(-12px);
    opacity: 0.0;
}

.service-card-backface-paragraph {
    margin: 0;
    font-size: 16px;
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
}

.service-card-backface-link {
    align-self: flex-start;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid rgba(255,255,255,0.7);
    padding-bottom: 2px;
}

.service-card-link-icon {
    width: 16px;
    height: 16px;
    display: block;
}

/* Responsive Design */
@media (max-width: 1600px) {
    .service-others-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 columns on laptop */
    }
}

@media (max-width: 1150px) {
    .service-others-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on tablet */
    }
}

@media (max-width: 767px) {
    .service-others-heading { 
        font-size: 36px; 
    }
    .service-others-grid { 
        grid-template-columns: 1fr; /* 1 column on mobile */
    }
}
