/* service grid */
.ttm_serviceimgbox_heading.Minemo-box-heading-wrapper {
    z-index: 1;
    position: relative;
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.ttm_serviceimgbox_wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    min-height: 800px;
}

.ttm_serviceimgbox_wrapper .ttm-content-header h2 {
    font-size: 64px;
    line-height: 74px;
    font-weight: 400;
    color: #fff;
    margin-bottom: 6px;
}

.ttm_serviceimgbox_wrapper .Minemo-box-desc {
    font-size: 64px;
    line-height: 1;
    color: #fff;
}

.ttm_serviceimgbox_wrapper .ttm-box-title {
    position: relative;
}

.ttm_serviceimgbox_wrapper.four_cols .ttm_servicegridbox_contents {
    -webkit-box-flex: 0;
    -ms-flex: 0 0 25%;
    flex: 0 0 25%;
    max-width: 25%;
}

.ttm_serviceimgbox_wrapper .ttm_servicebox_img {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    z-index: 0;
    overflow: hidden;
}

.ttm_serviceimgbox_wrapper .ttm_servicebox_img {
    visibility: hidden;
    opacity: 0;
    transition-duration: 1500ms;
    transition: all 1s;
}

.ttm_serviceimgbox_wrapper .ttm_servicebox_img, 
.ttm_serviceimgbox_wrapper .tm_box_overlay {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    z-index: 0;
    overflow: hidden;
}

.ttm_serviceimgbox_wrapper .tm_box_overlay {
    z-index: 1;
    background: rgba(0, 0, 0, 0.3);
}

.ttm_serviceimgbox_wrapper .ttm_servicebox_img img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
}

.ttm_serviceimgbox_wrapper .ttm_servicebox_img.active {
    opacity: 1;
    visibility: visible;
    -ms-transform: scale(1.05);
    -moz-transform: scale(1.05);
    -o-transform: scale(1.05);
    -webkit-transform: scale(1.05);
    transform: scale(1.05);
}

.ttm_servicegridbox_contents {
    min-height: 44vh;
}

.ttm_serviceimgbox_wrapper .ttm_servicegridbox_contents {
    position: relative;
    z-index: 2;
    padding: 0px;
    height: 100%;
    width: 24.31%;
    float: right;
    min-height: unset;
}

.ttm_serviceimgbox_wrapper .ttm_servicegridbox_contents .ttm-bottom-contentbox {
    opacity: 1;
    transform: translateY(0);
}

.ttm_serviceimgbox_wrapper .ttm-bottom-contentbox {
    padding: 54px 30px 15px;
    position: relative;
    backdrop-filter: blur(15px);
    border-radius: var(--border-radius-image);
    border: 1px solid rgba(255, 255, 255, 0.15);
    width: 100%;
    height: 240px;
    text-align: center;
}

.ttm_serviceimgbox_wrapper .ttm-box-title h4 {
    margin-bottom: 18px;
    position: relative;
    color: #fff;
}

.ttm_serviceimgbox_wrapper .ttm-staticbox-more-link {
    position: relative;
    padding: 10px 30px;
    border: 1px solid #fff;
}

.ttm_serviceimgbox_wrapper .ttm-box-title h4 a {
    color: #fff;
}

.ttm_serviceimgbox_wrapper .ttm_servicegridbox_contents .coverbox-img-reposive {
    display: none;
    background-size: cover;
    background-repeat: no-repeat;
}

.ttm_serviceimgbox_wrapper .ttm-box-icon i {
    font-size: 55px;
    line-height: 30px;
    position: relative;
}

.ttm_serviceimgbox_wrapper .ttm_servicegridbox_contents:nth-child(even) .ttm-bottom-contentbox {
    border-left: 0;
}

.ttm_serviceimgbox_wrapper .ttm_servicegridbox_contents:nth-child(even) .ttm-bottom-contentbox {
    border: 1px solid #fff;
}

.ttm_serviceimgbox_wrapper .ttm-bottom-contentbox {
    border-right: none;
    border-bottom: none;
}

.ttm_serviceimgbox_wrapper .preyantechnosys-static-box-desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.80);
    padding-top: 20px;
}

.ttm_serviceimgbox_wrapper .ttm-bottom-contentbox:hover .ttm-box-icon i {
    color: #fff;
}

.ttm_serviceimgbox_wrapper .ttm-column-four {
    padding: 0px 250px 0px 212px;
    margin-top: -125px;
}

.ttm_serviceimgbox_wrapper .ttm_servicegridbox_contents:nth-child(5) {
    clear: both;
}

.ttm_serviceimgbox_wrapper .ttm_servicegridbox_contents:nth-child(5) .ttm-bottom-contentbox {
    border-right: 1px solid rgba(255, 255, 255, 0.15);
}

.ttm_serviceimgbox_wrapper .ttm_servicegridbox_contents:nth-child(3) .ttm-bottom-contentbox {
    border-bottom: none;
}

.ttm_serviceimgbox_wrapper .ttm_servicegridbox_contents:first-child .ttm-bottom-contentbox {
    border-right: 1px solid rgba(255, 255, 255, 0.15);
    border-bottom: none;
}

.ttm_serviceimgbox_wrapper .ttm-servicebox-shortdesc {
    color: #fff;
    font-style: italic;
    background-color: rgba(255, 255, 255, 0.20);
    display: inline-block;
    padding: 4px 11px 4px 5px;
    margin-bottom: 25px;
}

.ttm-servicebox-shortdesc h3 {
    font-size: 15px;
    color: #fff;
    line-height: 25px;
    margin-bottom: 0;
    font-weight: 400;
}

.ttm_serviceimgbox_wrapper .ttm-servicebox-btn {
    display: grid;
    transition: all 0.3s ease 0s;
}

.ttm_serviceimgbox_wrapper .ttm-servicebox-btn a:hover {
    background-color: #fff;
    border-color: #fff;
    color: var(--ttm-secondarycolor);
}

.ttm_serviceimgbox_wrapper .ttm-servicebox-btn a {
    color: #fff;
    padding: 11px 24px;
    border: 1px solid;
    border-radius: 30px;
    font-size: 13px;
    text-transform: uppercase;
    font-weight: 600;
}

/* Main container styling */
.ttm-servicegrid-container {
    position: relative;
    min-height: 800px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: background-image 0.5s ease;
    margin-top: 0;
    transition: opacity 0.5s ease-in-out;
    opacity: 1;
    height: 800px;
}

/* Central image container */

.ttm-servicegrid-center img {
    max-width: 100%;
    height: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 5px solid #fff;
}

/* Boxes grid layout */
.ttm-servicegrid-boxes {
    position: absolute;
    bottom: 50px;
    left: 0;
    right: 0;
    display: flex;
    z-index: 1;
    gap: 30px;
    justify-content: space-between;
    margin: 0 50px;
}



/* Individual box styling */
.ttm-servicegrid-box {
    display: flex;
    gap: 30px;
    cursor: pointer;
    padding: 14px 25px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
    position: relative;
    backdrop-filter: blur(15px);
    border-radius: 10px;
    width: 25%;
    position: relative;
    z-index: 2;
    height: 100%;
    align-self: end;
}

.ttm-servicegrid-box.active {
   padding: 25px 25px 20px; 
}

.ttm-servicegrid-box .ttm-box-title-one {
    margin-bottom: 0px;
}

.ttm-servicegrid-center img {
    border: 1px solid;
    border-radius: var(--border-radius-image);
}

.ttm-servicegrid-box.active, .ttm-servicegrid-box.active:hover {
  background-color: var(--ttm-secondarycolor);
}

.ttm-servicegrid-box:hover {
    background-color: var(--ttm-skincolor);
}

/* Box content styling */
.ttm-servicegrid-boxes .ttm-box-number {
    font-size: 64px;
    line-height: 74px;
    color: #fff;
    font-family: var(--special-element-fontfamily);
}

.ttm-servicegrid-boxes .ttm-box-title {
    font-size: 24px;
    line-height: 34px;
    text-align: left;
    color: #fff;
    font-family: var(--special-element-fontfamily);
    overflow: hidden;
    -o-text-overflow: ellipsis;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    margin-bottom: 20px;
}

.ttm_serviceimgbox_wrapper .ttm-center-image-bg {
    height: 170px;
    width: 100%;
    background-size: cover;
    background-position: center;
    border-radius: 10px;
    margin-bottom: 30px;
}

.ttm-servicegrid-box .ttm-servicegrid-boxes-content .ttm-box-description {
    margin-bottom: 65px;
    color: rgb(255 255 255 / 80%);
}

.ttm-servicegrid-center a {
    cursor: pointer;
    z-index: 999;
    position: absolute;
    color: var(--ttm-secondarycolor);
    top: 40%;
    bottom: 0;
    left: 43%;
    right: auto;
    text-align: center;
    height: 100px;
    width: 100px;
    font-size: 14px;
    line-height: 20px;
    background-color: #fff;
    border-radius: 50%;
    padding: 31px 20px 0;
    text-transform: uppercase;
    font-weight: 600;
    opacity: 0;
}

.ttm-servicegrid-center a:hover {
    color: #fff;
    background-color: var(--ttm-skincolor);
}

.ttm-servicegrid-center:hover a {
    opacity: 1;
}

.ttm-servicegrid-boxes-content {
    opacity: 0;
    display: none;
}


.ttm-servicegrid-box.active .ttm-servicegrid-boxes-content {
    opacity: 1;
    display: block;
}


.ttm-servicegrid-box.active .ttm-box-title-one {
    opacity: 0;
    display: none;
}

.ttm-servicegrid-box .ttm-servicegrid-boxes-content .ttm-servicebox-img-btn a span {
    text-transform: uppercase;
    text-decoration: underline;
}

@media (max-width:1200px) { 
    .ttm-servicegrid-boxes {
        margin: 0 15px;
    }


}


@media (max-width:1024px) {

    .ttm-servicegrid-boxes {
        
        display: inline-block;
        margin: 0 30px;
        top: 50px;
        bottom: 30px;
    }

    .ttm-servicegrid-box {

        display: inline-block;
        width: 100%;
        margin-bottom: 30px;
        height: auto;
        align-self: start;
        backdrop-filter: blur(0px);
        background-color: var(--ttm-blackishcolor);
    }
}

@media (max-width:480px) {

    .ttm-servicegrid-container {
        min-height: 850px;
        height: 850px;
    }
    .ttm-servicegrid-boxes {
        display: inline-block;
        margin: 0 15px;
    }
}


@media (max-width:365px) { 
    .ttm-servicegrid-container {
            min-height: 900px;
            height: 900px;
        }

    .ttm-servicegrid-boxes {
        display: inline-block;
        margin: 0 15px;
    }

}