/* ==========================================================================
   PAGE SECTION STYLES (Desktop First)
   ========================================================================== */

/* --- Features Section (Progress Bar) --- */
.feature_3r .progress-bar {
    background: #F9F9F9;
    border-radius: 0;
}

.feature_3r .progress {
    background-color: #a5799c;
    height: 6px;
    overflow: hidden;
    border-radius: 0;
}

/* --- Team Section --- */
.team_1im1i1,
.team_1im1i2 {
    /* These are overlay elements, hidden by default */
    background: #000000c4;
    display: none;
}

.team_1im1i1 {
    /* Percentage padding is a trick to maintain aspect ratio */
    padding-top: 60%;
}

/* Combined hover rule for efficiency */
.team_1im:hover .team_1im1i1,
.team_1im:hover .team_1im1i2 {
    display: block;
}

.team_1im1i2 ul li a {
    background: #fff;
    border-radius: 0;
}

.team_1im1i2 ul li a i {
    color: #b6702a;
}

/* --- Testimonials Section --- */
.testim_1i1 img {
    width: 100px;
    height: 100px;
    object-fit: cover; /* Ensures image covers the area nicely */
}


/* ==========================================================================
   MEDIA QUERIES (Responsive Overrides)
   ========================================================================== */

/* --- Mobile Screens (up to 767px) --- */
@media screen and (max-width: 767px) {
    .feature_3ril {
        text-align: center;
    }
    .feature_3rir {
        margin-top: 15px;
    }
    .feature_3rir h4 {
        text-align: center;
    }
    .feature_3l {
        margin-top: 15px;
    }

    .proj_h1l {
        text-align: center;
    }
    .proj_h1r {
        text-align: center !important; /* Note: !important was in original file */
    }

    .team_1im,
    .testim_1i,
    .pricing_1i {
        margin-top: 8px;
        margin-bottom: 8px;
    }

    .work_2r {
        text-align: center;
        margin-top: 15px;
    }
    .work_2r ul {
        text-align: left;
    }
    .about_pgir {
        margin-top: 15px;
    }
}

/* --- Larger Mobiles (576px - 767px) --- */
@media (min-width: 576px) and (max-width: 767px) {
    .feature_3rir {
        margin-top: 0;
    }
    .feature_3rir h4 {
        text-align: left;
    }
}

/* --- Tablets (768px - 991px) --- */
@media (min-width: 768px) and (max-width: 991px) {
    .feature_3ril span {
        font-size: 18px !important; /* Note: !important was in original file */
    }
    .feature_3rir p {
        font-size: 14px;
    }

    .team_1im1i2 ul li a {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }
    .team_1im1i2 ul li a i {
        line-height: 30px;
    }
    .team_1im2 h5 {
        font-size: 15px;
    }
    .team_1im2 h6 {
        font-size: 13px;
    }

    .testim_1i2 span {
        padding: 10px !important;
        font-size: 18px !important;
    }

    .pricing_1i h5 {
        font-size: 16px;
    }
    .pricing_1i .button_1 {
        padding-left: 12px;
        padding-right: 12px;
        font-size: 13px;
    }
}

/* --- Small Desktops (992px - 1200px) --- */
@media (min-width: 992px) and (max-width: 1200px) {
    .pricing_1i .button_1 {
        padding-left: 20px;
        padding-right: 20px;
        font-size: 14px;
    }
}

/* ==========================================================================
   ELEGANT TEAM SECTION STYLES
   ========================================================================== */

/* Wrapper for the team member image to position the decorative shape */
.team-image-wrapper {
    position: relative;
    display: inline-block; /* Fits the wrapper to the image size */
}

/* The decorative shape behind the image */
.team-image-wrapper::before {
    content: '';
    position: absolute;
    bottom: -20px; /* Position down */
    right: -20px;  /* Position to the right */
    width: 100%;
    height: 100%;
    /* Use a light, subtle background. Change as needed. */
    background-color: #f8f9fa; 
    border-radius: 1rem; /* Same as .rounded-4 */
    z-index: -1; /* Place it behind the image */
    transition: all 0.3s ease;
}

/* On the light background section, make the shape white for contrast */
.bg-light .team-image-wrapper::before {
    background-color: #ffffff;
}

/* Subtle hover effect for the decorative shape */
.team-image-wrapper:hover::before {
    transform: translate(10px, 10px);
}


/* Stylized blockquote */
.team-quote {
    border-left: 4px solid var(--brand-primary); 
    padding-left: 1.5rem;
    font-style: italic;
    color: #495057;
}