#section-1 h1 {
    text-transform: uppercase;
}

#section-1, #section-2 {
    position: relative;
}

/* Portfolio Grid Styles */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.portfolio-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: white;
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.portfolio-image {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.portfolio-item:hover .portfolio-image img {
    transform: scale(1.05);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(237, 28, 36, 0.8), rgba(0, 0, 0, 0.6));
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-overlay-content h4 {
    color: white;
    font-family: "PlayfairDisplay-BoldItalic";
    font-size: 1.2rem;
    text-align: center;
    margin: 0 0 10px 0;
    padding: 0 15px;
    line-height: 1.3;
}

.portfolio-overlay-content .view-full {
    color: white;
    font-family: "Gill-Sans";
    font-size: 0.9rem;
    text-align: center;
    margin: 0;
    opacity: 0.9;
}

.portfolio-image a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    cursor: pointer;
}

.portfolio-title {
    padding: 20px 15px;
    text-align: center;
}

.portfolio-title h5 {
    color: #333;
    font-family: "Gill-Sans-Medium";
    font-size: 1rem;
    margin: 0;
    line-height: 1.4;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px 15px;
    }
    
    .portfolio-image {
        height: 200px;
    }
    
    .portfolio-overlay-content h4 {
        font-size: 1.1rem;
    }
    
    .portfolio-title h5 {
        font-size: 0.9rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
        padding: 30px 20px;
    }
    
    .portfolio-image {
        height: 220px;
    }
}

/* Legacy tab styles removed - now using portfolio grid */

h3 {
    font-family: "PlayfairDisplay-BoldItalic" !important;
    text-transform: capitalize !important;
    font-size: 2rem;
}

.btn-career {
    text-transform: uppercase;
    color: white;
    background: #a21717;
    padding: 8px 12px;
    border-radius: 8px;
    text-align: center;
    line-height: unset;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.bg-img {
    height: 60vh;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    text-align: center;
    position: relative;
}

.grid-img {
    width: 33.33%;
    position: relative;
}

.grid-img img{
    width: 100%;
    object-fit: cover;
    transition: .5s ease;
    backface-visibility: hidden;
    opacity: 1;
    display: block;
}

.middle {
    transition: .5s ease;
    opacity: 0;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    text-align: center;
    background-color: #000000B2;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.grid-img:hover .middle {
    opacity: 1;
}

.text {
    color: white;
    font-size: 18px;
    font-family: "Gill-Sans";
}

.text-desc {
    color: white;
    font-size: 24px;
    font-family: "Gill-Sans";
}

.modal-content {
    background: transparent !important;
    border: none !important;
}

.close {
    color: #fff !important;
    text-shadow: unset !important;
    font-weight: unset !important;
    background-color: #FFFFFF4D !important;
    padding: 10px 16px 4px 16px !important;
    border-radius: 32px !important;
    font-size: 18px !important;
    opacity: 1 !important;
}

.modal-header {
    border-bottom: unset !important;
}

.slick-slide {
    width: 100%;
    transition: all 0.4s;
    position: relative;
}

.overlay-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2;
    cursor: pointer;
}

.bg-top-right {
    position: absolute;
    top: 0;
    right: 0;
    transform: translate(80%, -18%);
}
.bg-top-right img {
    width: 40%;
}
/*top left*/
.bg-top-left {
    position: absolute;
    top: 0;
    left: 0;
    transform: translate(-25%, -50%);
}
.bg-top-left img {
    width: 50%;
}
.slide-container .slick-next, .slide-container .slick-prev  {
    height: 100%;
}

/*---center slick---*/

/*---end center slick---*/

/* img {
    max-width: 100%;
    width: 100%;
} */

.owl-item .item {
    width: 10vw;
}
.owl-item.active.center .item {
    width: 40vw !important;
}

.owl-item:not(.center) > div:hover {
    opacity: 0.75;
}
.owl-carousel .owl-stage-outer {
    transform: translateX(-15%) !important;
    overflow: unset;
}

.swiper-container {
    width: 100%;
    padding-top: 50px;
    padding-bottom: 50px;
}
.swiper-slide {
    background-position: center;
    background-size: cover;
    width: 50%;
    height: 500px;
}

.swiper-slide.swiper-slide-active .overlay-bg {
    opacity: 0;
}

.width-expand {
    transform: scaleX(1);
    max-width: 55vw;
    transition: all 1s;
}
.slick-track-trans {
    /* transform: translateX(-1900px)!important; */
}

/* Legacy clip-container styles removed - now using portfolio grid */

@media (max-width: 767px) {
    .bg-top-left {
        transform: translate(-41%, -49%);
    }
    .bg-top-right {
        transform: translate(71%, -1%);
    }
    .bg-top-right img {
        width: 70%;
    }
    .bg-top-left img {
        width: 100%;
    }

    .grid-img {
        width: 100%;
    }

    .bg-img {
        height: unset;
    }
}

/* Legacy clip styles removed - replaced with portfolio grid */
/* All legacy clip and slider styles removed - now using modern portfolio grid */
.width-100 {
    width: 100% !important;
}

.owl-item.active.center .overlay-bg {
    opacity: 0;
}

.margin-top-60 {
    margin-top: 60px;
}
