.services-btn{
    font-size: 16px;
    line-height: 26px;
    font-weight: 400;
    background: var(--accent--color);
    color: #ffffff;
    border-radius: 10px;
    padding: 10px 18px;
    display: inline-block;
    text-align: center;
    transition: all 0.3s ease-in-out;
    margin-right: 4px;
    border: 1px solid transparent;
}

.services-btn:hover {
    background-color: var(--primary--color);
    color: var(--secondary--color);
    transition: ease-in-out 0.6s;
}

/* before and after section */

.before-after-container {
    width: 100%;
    margin: 40px 0;
}

.before-after-wrapper {
    position: relative;
    width: 100%;
    height: 420px;
    overflow: hidden;
    border-radius: 18px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

/* Images */
.before-after-wrapper img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.before-img {
    z-index: 1;
}

.after-img {
    z-index: 2;
    width: 50%;
    overflow: hidden;
    transition: width 0.3s ease;
}

/* Slider line */
.slider-line {
    position: absolute;
    left: 50%;
    top: 0;
    width: 3px;
    height: 100%;
    background: var(--primary--color);
    z-index: 3;
    transition: left 0.3s ease;
}

/* Range input */
.slider {
    position: absolute;
    width: 100%;
    height: 100%;
    background: none;
    appearance: none;
    outline: none;
    z-index: 4;
    cursor: ew-resize;
}

.slider::-webkit-slider-thumb {
    appearance: none;
    height: 40px;
    width: 40px;
    background: var(--primary--color);
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

/* Labels */
.label {
    position: absolute;
    top: 15px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 20px;
    background: rgba(0,0,0,0.5);
    color: white;
    z-index: 5;
}

.before-label {
    left: 15px;
}

.after-label {
    right: 15px;
}

/* Hover animation */
.before-after-wrapper:hover .slider-line {
    background: var(--accent--color);
}


/* previous , next buttons */
.singleblog-review1 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px; /* optional spacing control */
}

.singleblog-review1 img {
    width: 132px;       /* control size */
    height: 132px;      /* must match width */
    object-fit: cover;  /* prevents distortion */
    border-radius: 50%;
    border: 4px solid #e74a49; /* your primary color */
    padding: 3px;       /* optional inner spacing */
    background: #fff;   /* clean white background */
}


/* why choose us  */


/* WHY CHOOSE (PROJECTS PAGE) */
.why-choose-projects-con .why-choose-subtext{
    max-width: 780px;
    margin: 10px auto 0;
    color: var(--text--color);
    font-size: 16px;
    line-height: 1.7;
}

/* Spotlight Card */
.why-choose-spotlight{
    background: var(--secondary--color);
    border: 1px solid var(--border--color2);
    border-radius: 18px;
    padding: 26px 22px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(0,0,0,0.06);
    transform: translateZ(0);
}

.why-choose-spotlight::before{
    content:"";
    position:absolute;
    top:-120px;
    right:-120px;
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, rgba(169,55,9,0.18) 0%, rgba(169,55,9,0) 70%);
    filter: blur(2px);
    pointer-events:none;
}

.spotlight-badge{
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(32,61,99,0.08);
    color: var(--accent--color);
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 14px;
}

.spotlight-title{
    margin: 0 0 10px;
    color: var(--black--color2);
    font-size: 26px;
    line-height: 1.2;
}

.spotlight-desc{
    margin: 0 0 16px;
    color: var(--text--color);
    font-size: 15.5px;
    line-height: 1.75;
}

.spotlight-meta{
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.meta-pill{
    display: inline-flex;
    align-items: center;
    padding: 7px 11px;
    border-radius: 999px;
    border: 1px solid var(--border--color2);
    color: var(--text--color2);
    background: #fff;
    font-size: 13px;
    font-weight: 600;
}

/* Progress */
.spotlight-progress{
    margin: 18px 0 18px;
}

.progress-label{
    display: block;
    font-size: 13px;
    color: var(--text--color);
    margin-bottom: 8px;
}

.progress-bar{
    width: 100%;
    height: 10px;
    background: rgba(0,0,0,0.06);
    border-radius: 999px;
    overflow: hidden;
    position: relative;
}

.progress-fill{
    display: block;
    height: 100%;
    width: 0%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--primary--color), var(--accent--color));
}

/* Cards Grid */
.why-choose-grid{
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 10px;
}

.why-card{
    background: var(--secondary--color);
    border: 1px solid var(--border--color2);
    border-radius: 18px;
    padding: 18px 18px;
    box-shadow: 0 12px 26px rgba(0,0,0,0.05);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
    position: relative;
    overflow: hidden;
}

.why-card::after{
    content:"";
    position:absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 10%, rgba(246,164,64,0.14) 0%, rgba(246,164,64,0) 65%);
    opacity: 0;
    transition: opacity .25s ease;
    pointer-events:none;
}

.why-card:hover{
    transform: translateY(-4px);
    border-color: rgba(169,55,9,0.28);
    box-shadow: 0 18px 44px rgba(0,0,0,0.08);
}
.why-card:hover::after{
    opacity: 1;
}

.why-icon{
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(169,55,9,0.10);
    color: var(--primary--color);
    margin-bottom: 12px;
    animation: floatIcon 3.2s ease-in-out infinite;
}

.why-card:nth-child(2) .why-icon{ animation-delay: .15s; }
.why-card:nth-child(3) .why-icon{ animation-delay: .3s; }
.why-card:nth-child(4) .why-icon{ animation-delay: .45s; }
.why-card:nth-child(5) .why-icon{ animation-delay: .6s; }
.why-card:nth-child(6) .why-icon{ animation-delay: .75s; }

.why-card h5{
    margin: 0 0 8px;
    color: var(--black--color2);
    font-size: 18px;
    line-height: 1.25;
}

.why-card p{
    margin: 0;
    color: var(--text--color);
    font-size: 14.8px;
    line-height: 1.65;
}

/* Spotlight text swap animation (JS adds this class) */
.swap-in{
    animation: swapIn .55s ease both;
}

@keyframes swapIn{
    0%{ opacity: 0; transform: translateY(10px); filter: blur(2px); }
    100%{ opacity: 1; transform: translateY(0); filter: blur(0); }
}

@keyframes floatIcon{
    0%, 100%{ transform: translateY(0); }
    50%{ transform: translateY(-4px); }
}

/* Responsive */
@media (max-width: 991px){
    .why-choose-grid{
        grid-template-columns: 1fr;
    }
    .why-choose-spotlight{
        margin-bottom: 18px;
    }
}

.spotlight-cta{
    display: flex;
    flex-direction: column;
    gap: 20px;
}