/**
 * KIAN Services Grid Component Styles
 */

.kian-services-wrapper {
    width: 100%;
    padding: 40px 0;
}

.kian-services-header {
    text-align: center;
    margin-bottom: 60px;
}

.kian-services-main-title {
    margin: 0;
    font-size: 48px;
    font-weight: 400;
    color: #aa755f;
    font-family: 'Delmon Delicate Font', serif;
    text-transform: uppercase;
    line-height: 1.2;
}

.kian-services-subtitle {
    margin: 0;
    font-size: 18px;
    color: #111216;
    font-family: 'GeoSansLight', sans-serif;
    line-height: 1.5;
    font-weight: 700;
    letter-spacing: 0.13em;
}

.kian-services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    width: 100%;
}

.kian-service-box {
    position: relative;
    min-height: 268px;
    border: 1px solid #ffffff;
    background-color: #a7a19b;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 30px;
    transition: transform 0.3s ease;
}

.kian-service-box:hover {
    transform: translateY(-2px);
}

.kian-service-box:hover::before {
    border-width: 0 0 120px 120px;
    border-color: transparent transparent rgba(0, 0, 0, 0.15) transparent;
}

.kian-service-box-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

.kian-service-box-title {
    position: absolute;
    bottom: 30px;
    left: 0;
    right: 0;
    z-index: 3;
    font-size: 30px;
    font-weight: 400;
    color: #ffffff;
    font-family: 'Delmon Delicate Font', serif;
    text-align: center;
    width: 100%;
    line-height: 1.2;
    transition: opacity 0.3s ease;
}

/* All boxes have the same styling - no special box styles */

.kian-service-box-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: transparent;
    z-index: 2;
    transition: background-color 0.3s ease;
}

/* Hover effects for all boxes */
.kian-service-box:hover .kian-service-box-overlay {
    background-color: #82817e;
}

.kian-service-box-description {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    max-width: 500px;
    z-index: 4;
    color: #ffffff;
    font-size: 16px;
    font-family: 'GeoSansLight', sans-serif;
    line-height: 1.6;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 20px;
    font-weight: 700;
}

/* Show description on hover for all boxes */
.kian-service-box:hover .kian-service-box-description {
    opacity: 1;
    visibility: visible;
}

/* Fade title when description is shown on hover */
.kian-service-box:hover .kian-service-box-title {
    opacity: 0.8;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .kian-services-wrapper {
        padding: 35px 20px;
    }

    .kian-services-header {
        margin-bottom: 50px;
    }

    .kian-services-main-title {
        font-size: 40px;
    }

    .kian-services-subtitle {
        font-size: 16px;
    }

    .kian-services-grid {
        gap: 18px;
    }

    .kian-service-box {
        min-height: 350px;
        padding: 25px;
    }

    .kian-service-box-title {
        font-size: 25px;
        bottom: 25px;
    }

    .kian-service-box-description {
        font-size: 15px;
        width: 85%;
        padding: 18px;
    }
}

@media (max-width: 768px) {
    .kian-services-wrapper {
        padding: 30px 15px;
    }

    .kian-services-header {
        margin-bottom: 40px;
    }

    .kian-services-main-title {
        font-size: 20px;
        margin-bottom: 12px;
    }

    .kian-services-subtitle {
        font-size: 14px;
    }

    .kian-services-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .kian-service-box {
        min-height: 300px;
        padding: 20px;
    }

    .kian-service-box-title {
        font-size: 20px;
        bottom: 20px;
    }

    .kian-service-box-description {
        font-size: 14px;
        width: 90%;
        max-width: 100%;
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .kian-services-wrapper {
        padding: 25px 10px;
    }

    .kian-services-header {
        margin-bottom: 30px;
    }

    .kian-services-main-title {
        font-size: 18px;
        margin-bottom: 10px;
    }

    .kian-services-subtitle {
        font-size: 13px;
    }

    .kian-services-grid {
        gap: 12px;
    }

    .kian-service-box {
        min-height: 280px;
        padding: 15px;
    }

    .kian-service-box-title {
        font-size: 15px;
        bottom: 15px;
        letter-spacing: 0.03em;
    }

    .kian-service-box-description {
        font-size: 13px;
        width: 95%;
        padding: 12px;
        line-height: 1.5;
    }
}

