.title-three-center .bg-title {
    font-size: 150px;
    position: absolute;
    top: -51px;
    left: 50%;
    transform: translateX(-50%);
    z-index: -1;
    text-transform: uppercase;
    font-family: var(--font-primary);
    font-weight: 700;

    background: linear-gradient(
        to bottom,
        rgba(102, 87, 87, 0.25) 0%,
        rgba(255, 255, 255, 0.05) 80%
    );
    background-size: 100% 100%;
    background-position: top;
    background-repeat: no-repeat;

    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-stroke: 1px rgba(119, 119, 119, 0.1);

    display: inline-block;
    line-height: 1;
    min-width: max-content;
}

/* Default tab button */
.rts-tab-three-start ul li button {
    border: 1px solid #ddd !important;
    border-radius: 8px;
    padding: 8px 16px;
    border-radius: 0px;
    background-color: #fff;
    color: #333;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Hover effect */
.rts-tab-three-start ul li button:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background-color: #f9f9f9;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Active (selected) tab */
.rts-tab-three-start ul li button[aria-selected="true"] {
    background: var(--color-primary) !important;
    color: #fff !important;
    border-color: var(--color-primary) !important;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
}

.header--sticky.sticky {
    top: 0px;
    display: block;
    backdrop-filter: blur(9px);
    width: 100%;
    box-shadow: rgba(24, 16, 16, 0.05) 0px 7px 18px;
    z-index: 999;
    position: fixed !important;
    background: #ffffff;
}

.rts-to-bottom-start {
    position: static !important;
    display: flex;
    justify-content: center;
    width: 100%;
}

@media only screen and (max-width: 767px) {
    .custom-container {
        padding-top: 150px;
        padding-bottom: 40px;
    }
}

@media only screen and (max-width: 767px) {
    .rts-section-gap {
        padding: 30px 0px;
    }
}

/* Services card */
.bg-marble1 {
    background-image: url("/assets/images/bg/bg-1.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

.rts-single-service-three {
    background: #000;
    color: #fff;
    padding: 3rem 1rem;
    border-radius: 30px;
    text-align: center;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rts-single-service-three .title {
    font-size: 3rem;
    color: #fff;
    margin: 0;
    transition: transform 0.4s ease, color 0.3s ease;
}

@media (max-width: 576px) {
    .rts-single-service-three .title {
        font-size: 1.8rem;
    }
}

.rts-single-service-three .content-area a .title {
    margin-bottom: 0px;
    padding-bottom: 0px;
    border-bottom: 0px solid #e1e1e1;
}

.rts-single-service-three .disc {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    margin-top: 1rem;
}

@media (max-width: 576px) {
    .rts-single-service-three .disc {
        font-size: 1.5rem;
    }
}

/* Hover effect */
.rts-single-service-three:hover .title {
    transform: translateY(-20px);
    color: #ffd700;
}

.rts-single-service-three .disc {
    opacity: 0;
    transform: translateY(20px); /* start slightly shifted down */
    transition: opacity 0.4s ease, transform 0.4s ease;
    max-height: 0;
    overflow: hidden;
}

.rts-single-service-three:hover .disc {
    opacity: 1;
    transform: translateY(0);
    color: #ffffff;
    max-height: 200px; /* enough to fit your text */
}

.rts-single-service-three .content-area {
    margin-left: 0px;
}

.custom-col {
    flex: 0 0 20%; /* exactly 20% width */
    max-width: 20%; /* prevent shrinking */
}

/* ✅ Tablet (4 per row) */
@media (max-width: 1200px) {
    .custom-col {
        flex: 0 0 25%; /* 4 per row */
        max-width: 25%;
    }
}

/* ✅ Small tablet (2 per row) */
@media (max-width: 991px) {
    .custom-col {
        flex: 0 0 50%; /* 2 per row */
        max-width: 50%;
    }
}

/* ✅ Mobile (1 per row) */
@media (max-width: 576px) {
    .custom-col {
        flex: 0 0 50%; /* 2 per row */
        max-width: 50%;
    }

    .row.g-5 .custom-col:last-child:nth-child(odd) {
        flex: 0 0 100%;
        max-width: 100%;
        display: flex;
        justify-content: center;
    }
}

/* experience card */
.experience-main-wrapper .right .title {
    font-size: 3rem;
    font-weight: bold;
    display: block;
    opacity: 0; 
    transform: scale(0.5);
    animation: popIn 0.6s ease-out forwards;
    padding: 2rem 0;

    background: linear-gradient(-60deg, #ffd700, #ffa500, #fffacd, #ffd700);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

@media (max-width: 576px) {
    .experience-main-wrapper .right {
        display: flex;
        justify-content: center;
    }

    .rts-experience-area .experience-main-wrapper .right {
        margin-bottom: 0px;
    }

    .experience-main-wrapper .left .title {
        text-align: center;
        padding: 0 20px;
    }

    .experience-main-wrapper .left .disc {
        text-align: justify;
        margin-top: 30px;
        padding: 0 20px;
    }

    .experience-main-wrapper .left .center-experience-button {
        display: flex;
        justify-content: center;
    }
}

@keyframes popIn {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }
    80% {
        opacity: 1;
        transform: scale(1.1); /* overshoot for sharp effect */
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slide-in {
    from {
        opacity: 1;
        transform: translateX(-100%);
    }
    to {
        opacity: 1;
        transform: translateX(0%);
    }
}

.title-three-left span.pre-title span {
    font-weight: 600;
    font-size: 20px;
    line-height: 24px;
    font-family: var(--font-primary);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #000;
    background-color: #ced4da;
    border-radius: 8px;
    padding: 5px 20px;
}

span.pre-title.custom-pre-title {
    font-weight: 600;
    font-family: var(--font-primary);
    font-size: 20px;
    background-color: #ced4da;
    border-radius: 8px;
    color: #000;
    padding: 5px 20px;
}

@media (max-width: 767px) {
    .contact-header {
        display: none !important;
    }
}

@media (max-width: 576px) {
    .header-three .header-three-wrapper .rts-button-area .rts-btn {
        display: block;
    }
}

.single-team-three .thumbnail {
    position: relative;
    width: 100%; 
    max-width: 387px;
    aspect-ratio: 387 / 401; 
    overflow: hidden;
    margin: 0 auto; 
}

.single-team-three .thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    transition: 1.3s;
}

.gradient-text {
    /* font-size: 3rem; */
    font-weight: bold;
    display: block;
    opacity: 0; 
    transform: scale(0.5);
    animation: slide-in 0.6s ease-out forwards;
    padding: 2rem 0;

    background: linear-gradient(-60deg, #ffd700, #ffa500, #fffacd, #ffd700);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* to remove the white dots */
.single-working-process-three::after {
    position: absolute;
    content: "";
    top: 0px;
    height: 0px;
    width: 0px;
    border-radius: 50%;
    background: transparent;
}

/* Ensure background slides fill the screen */
.banner-bg {
    height: 100vh;
    width: 100%;
}

/* Tablet */
@media (max-width: 991px) {
    .banner-bg {
        height: 70vh; /* shorter */
    }
}

/* Overlay stays fixed on top of swiper */
.banner-overlay {
    position: absolute;
    top: 50%;
    left: 0; 
    width: 100%; 
    transform: translateY(-50%); 
    z-index: 10;
    text-align: center;
    padding: 0 1rem;
}

/* === Banner overlay text (responsive, same as before) === */

/* Pre-title */
.banner-overlay .pre-title {
    font-family: var(--font-primary);
    font-size: 31px;
    line-height: 0%;
    margin-top: 160px;
    font-weight: 700;
    text-transform: uppercase;
}

/* Responsive pre-title */
@media (max-width: 1024px) {
    .banner-overlay .pre-title {
        font-size: 30px;
        margin-top: 10px;
    }
}
@media (max-width: 991px) {
    .banner-overlay .pre-title {
        font-size: 20px;
        margin-top: 10px;
    }
}
@media (max-width: 768px) {
    .banner-overlay .pre-title {
        font-size: 20px;
    }
}
@media (max-width: 576px) {
    .banner-overlay .pre-title {
        font-size: 16px;
    }
}

/* Title */
.banner-overlay .title {
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 90px;
    line-height: 100px;
    text-transform: uppercase;
    color: rgb(255, 255, 255);
    letter-spacing: 0.08em;
    margin-top: 0px;
}

/* Responsive title */
@media (max-width: 991px) {
    .banner-overlay .title {
        font-size: 50px;
        line-height: 60px;
        margin-top: 0px;
    }
}
@media (max-width: 768px) {
    .banner-overlay .title {
        font-size: 54px;
        line-height: 74px;
        margin-top: 0px;
    }
}
@media (max-width: 576px) {
    .banner-overlay {
        margin-top: 30px;
    }

    .banner-overlay .title {
        font-size: 42px;
        line-height: 60px;
        letter-spacing: 0.05em;
        margin-top: -10px;
    }
}

/* Bottom text */
.banner-overlay .bottom {
    font-family: var(--font-primary);
    font-size: 20px;
    font-weight: 500;
    text-transform: uppercase;
    color: #ffffff;
}
@media (max-width: 576px) {
    .banner-overlay .bottom {
        font-size: 16px;
    }
}

.banner-overlay .title span.strock {
    font-weight: 700;
    font-family: var(--font-primary);
    font-size: 90px;
    letter-spacing: 0.08em;
    line-height: 0;
    margin-top: 35px;
    position: relative;
    display: inline-block;
    z-index: 2;
    -webkit-text-stroke: 0.5px #f8f8f8; /* outline */
    color: transparent; 
    transition: all 0.4s;
    opacity: 1;
}

/* Responsive scaling */
@media (max-width: 768px) {
    .banner-overlay .title span.strock {
        font-size: 54px;
    }
}
@media (max-width: 576px) {
    .banner-overlay .title span.strock {
        font-size: 42px;
    }
}
@media (max-width: 400px) {
    .banner-overlay .title span.strock {
        font-size: 34px;
    }
}

.rts-testimonials-area-4 {
    background-image: url(../images/bg/touchcard.jpg);
    background-size: cover;
    background-position: center;
    background-attachment: fixed; 
    position: relative;
    z-index: 1;
}

.rts-testimonials-area-4::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

@media (max-width: 576px) {
    .rts-testimonials-area-4 {
        background-size: contain;
    }

    .rts-testimonials-area-4 .container .cta-main-wrapper-4 {
        display: flex;
        align-items: center;
    }

    .rts-testimonials-area-4 .container .cta-main-wrapper-4 .left {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .rts-working-process-area.home-seven
        .working-process-inner
        .working-wrapper
        .icon {
        display: none;
    }

    .rts-working-process-area.home-seven
        .working-process-inner
        .working-wrapper
        .content {
        margin-top: 0px;
    }

    .rts-working-process-area.home-seven
        .working-process-inner
        .working-wrapper
        .content
        .gradient-text {
        padding: 0px;
    }

    .rts-working-process-area.home-seven
        .working-process-inner
        .working-wrapper
        .content
        .desc {
        padding-right: 0px !important;
        text-align: justify;
    }
}

.about-image-thumbnail-3 {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-top: 0px;
}

@media (max-width: 576px) {
    .about-image-thumbnail-3 {
        margin-top: 0px;
    }
}

@media (max-width: 450px) {
    .title-three-left .bg-title {
        font-size: 68px;
        top: -30px;
        margin-left: 4%;
    }
}

.custom-project-container {
    border-radius: 12px;
    overflow: hidden;
}

.custom-project-container img {
    transition: transform 0.4s ease-in-out;
}

.custom-project-container:hover img {
    transform: scale(1.1);
}

@media (max-width: 576px) {
    .custom-project-container {
        border-radius: 6px; 
    }
}

@media (max-width: 576px) {
    .rts-service-area-three .container .custom-skill-container {
        margin-top: -20px;
    }

    .rts-service-area-three
        .container
        .custom-skill-container
        .custom-center-message {
        display: flex;
        justify-content: center;
    }

    .rts-service-area-three
        .container
        .custom-skill-container
        .about-three-wrapper
        .title-three-left
        .disc {
        text-align: justify;
    }
}

@media (max-width: 576px) {
    .working-process-inner .row {
        justify-content: center !important;
        text-align: center;
    }

    .working-process-inner .col-sm-6,
    .working-process-inner .col-12 {
        display: flex;
        justify-content: center;
    }

    .working-process-inner .working-wrapper {
        max-width: 90%; /* prevent touching edges */
    }
}

@media (max-width: 576px) {
    .rts-working-process-area.home-seven
        .working-process-inner
        .working-wrapper
        .content
        .desc {
        padding-right: 0 !important;
    }
}

@media (max-width: 576px) {
    .working-wrapper {
        align-items: center; /* makes children (icon + text) centered */
        text-align: center; /* centers text */
    }

    .working-wrapper .icon {
        margin: 0 auto; /* centers the circle icon */
    }
}

@media (max-width: 576px) {
    .about-three-wrapper {
        text-align: center;
    }

    .about-three-wrapper .center-container .disc {
        text-align: justify;
        padding: 0 20px;
    }

    .progress-wrapper-area-two {
        margin-top: 10px auto;
        text-align: center;
        padding: 0 !important;
    }

    .about-image-thumbnail-3 {
        text-align: center;
    }

    .about-image-thumbnail-3 img {
        width: 70%;
    }

    .single-tab-content-three .list-wrapper .single ul li {
        text-align: start;
    }

    .list-wrapper .single {
        padding-left: 10px;
        margin-right: 0px !important;
    }

    .rts-tab-three-start ul li {
        margin-right: 0px;
    }
}

@media (max-width: 576px) {
    .title-three-left .title {
        font-size: 3rem;
        line-height: 41px;
    }
}

@media (max-width: 576px) {
    .custom-profession-thumbnail-3 {
        display: none;
    }
}

/* All above for home page */

/* Start About Us */
.bg-breadcrumb {
    position: relative;
    background: url("../images/logo/suncity-office.jpg") no-repeat center center;
    background-size: cover;
    z-index: 1;
}

.bg-breadcrumb::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* adjust darkness */
    z-index: -1; /* stay behind content */
}

.rts-company-storyhear .timeline ul {
    background: transparent;
}

/* End about us */

/* Footer */
@media (max-width: 576px) {
    .rts-footer-two .container .row {
        padding: 0 10px;
    }

    .single-footer-wized-two.newsletter .footer-header-two {
        width: 100%;
    }
}
/* End Footer */
