/* Projects Section Styles */
.projects-section {
    position: relative;
    width: 100%;
    margin-bottom: 50px;
    padding-top: 50px;
    /* Align spacing */
}

.projects-header {
    text-align: center;
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Match Product Categories Title Style */


.projects-header .section-description {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.6;
}

/* Custom Container Width for Desktop (Matching Global Layout) */
@media (min-width: 1500px) {
    .projects-section .container {
        max-width: 1450px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
}

.projects-slider-wrapper {
    position: relative;
    width: 100%;
    /* Keep slider itself responsive/full within container */
    height: 60vh;
    min-height: 400px;
}

@media (min-width: 1024px) {
    .projects-slider-wrapper {
        height: 700px;
        /* Slightly reduced height as it's boxed now */
    }
}

.projects-swiper {
    width: 100%;
    height: 100%;
    border-radius: 4px;
    /* Optional: slight rounding if boxed */
}

.project-slide {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.project-slide__image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.project-slide__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Overlay Styles - Centered Box */
.project-slide__overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 85%;
    /* Responsive width */
    height: 80%;
    /* Responsive height */
    max-width: 1000px;
    background-color: rgba(0, 0, 0, 0.4);
    /* Lighter opacity default */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 1;
    /* Always visible */
    transition: background-color 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.projects-slider-wrapper:hover .project-slide__overlay {
    background-color: rgba(0, 0, 0, 0.6);
    /* Darker on hover */
}

/* Project Title inside Overlay */
.project-slide__title {
    position: absolute;
    bottom: 30px;
    left: 40px;
    font-size: 1.5rem;
    color: #fff;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
    z-index: 3;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.project-slide__button {
    font-family: 'Roboto', sans-serif;
    font-size: 18px;
    font-weight: 500;
    color: #fff;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.8);
    padding: 12px 40px;
    border-radius: 30px;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    background-color: transparent;
}

@media (min-width: 768px) {
    .project-slide__button {
        font-size: 24px;
        padding: 15px 50px;
    }
}

.project-slide__button:hover {
    background-color: #fff;
    color: #000;
    border-color: #fff;
}

/* Navigation - Outside or Inside? Usually inside for full width */
.projects-button-prev,
.projects-button-next {
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.projects-button-prev:after,
.projects-button-next:after {
    font-size: 30px;
}