/* custom page title image */

.custom-heading-container span{
	font-family: "Arapey", serif !important;
}
.page-title-image-title{
	background: linear-gradient(90deg, rgba(155, 42, 42, 0) 20%, var(--rokka-primary-color), rgba(42, 123, 155, 0) 80%);
}
.page-title-image-wrapper .page-title-image-overlay{
	position: absolute;
	height: 100%;
	width: 100%;
	top: 0;
	left: 0;
}
.page-title-image-wrapper img{
	display: block;
}
.page-title-image-content{
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
}

/* next step list */
.rokka-next-step-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
    border-radius: 8px;
}

.rokka-step-item {
    background: #fff;
    border: 1px solid #ccc;
    padding: 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.rokka-step-item:hover {
    background: #f5f5f5;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.rokka-step-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.rokka-step-date {
    font-size: 14px;
    color: #777;
    margin-top: 5px;
}


/* service box */
/* Title Styling */
/* Title styling */
.xtreme-service-title {
    color: inherit; /* Allows color control from Elementor */
    margin: 0 0 15px 0; /* Default margin that can be overridden */
    padding: 0;
    width: 100%;
}

/* Make sure Elementor controls can override these */
.elementor-widget-xtreme_service_box .xtreme-service-title {
    color: var(--title-color, inherit);
    margin-bottom: var(--title-margin, 15px);
}

/* Main container */
.elementor-service-grid {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    gap: var(--gap, 20px); /* This will use the gap control from Elementor */
}

/* Grid item */
.xtreme-service-item {
    position: relative;
    box-sizing: border-box;
    /* Default flex basis for responsive columns */
    flex: 0 0 calc(100% - var(--gap, 20px));
}

/* Desktop columns */
.elementor-grid-1 .xtreme-service-item {
    flex: 0 0 calc(100% - var(--gap, 20px));
}

.elementor-grid-2 .xtreme-service-item {
    flex: 0 0 calc(50% - var(--gap, 20px));
}

.elementor-grid-3 .xtreme-service-item {
    flex: 0 0 calc(33.333% - var(--gap, 20px));
}

.elementor-grid-4 .xtreme-service-item {
    flex: 0 0 calc(25% - var(--gap, 20px));
}

/* Tablet columns */
@media (max-width: 1024px) {
    .elementor-grid-tablet-1 .xtreme-service-item {
        flex: 0 0 calc(100% - var(--gap, 20px)) !important;
    }
    .elementor-grid-tablet-2 .xtreme-service-item {
        flex: 0 0 calc(50% - var(--gap, 20px)) !important;
    }
    .elementor-grid-tablet-3 .xtreme-service-item {
        flex: 0 0 calc(33.333% - var(--gap, 20px)) !important;
    }
    .elementor-grid-tablet-4 .xtreme-service-item {
        flex: 0 0 calc(25% - var(--gap, 20px)) !important;
    }
}

/* Mobile columns */
@media (max-width: 767px) {
    .elementor-grid-mobile-1 .xtreme-service-item {
        flex: 0 0 calc(100% - var(--gap, 20px)) !important;
    }
    .elementor-grid-mobile-2 .xtreme-service-item {
        flex: 0 0 calc(50% - var(--gap, 20px)) !important;
    }
    .elementor-grid-mobile-3 .xtreme-service-item {
        flex: 0 0 calc(33.333% - var(--gap, 20px)) !important;
    }
}

/* Content styling */
.xtreme-service-content {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.xtreme-service-image img {
    width: 100% !important;
    display: block !important;
    object-fit: cover !important;
}

.xtreme-service-button {
    display: inline-block;
    margin-top: auto;
    text-align: center;
}

/* Justify content controls */
.xtreme-service-container.justify-content-left {
    justify-content: flex-start;
}

.xtreme-service-container.justify-content-center {
    justify-content: center;
}

.xtreme-service-container.justify-content-right {
    justify-content: flex-end;
}

.xtreme-service-container.justify-content-space-between {
    justify-content: space-between;
}

.xtreme-service-container.justify-content-space-around {
    justify-content: space-around;
}

.xtreme-service-container.justify-content-space-evenly {
    justify-content: space-evenly;
}
						