/* Specific reset for your component to avoid global style interference */
.sc-title-container,
.sc-title-container * {
    box-sizing: border-box;
}

/* Styles specific to the title and social icons container */
.sc-title-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 5vh;
    gap: 20px; /* Space between the text and icons */
}

.sc-title {
    text-align: center;
    font-size: 40px;
    color: #333;
    font-weight: 600; /* Ensures the title is bold */
}

.social-icon {
    width: 40px;
    height: 40px;
    margin-left: 10px; /* Uniform space after the title and between icons */
    object-fit: contain;
}

.sc-main-container {
    width: 82%;
    margin-left: 9%; /* Container set to 90% of page width */
    max-width: 1400px; /* You can set a max-width if needed */
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around; /* Helps distribute space evenly */
    align-items: center;
    margin: auto; /* Centers the container horizontally */
    padding-top: 20px; /* Adds vertical spacing only */
    box-sizing: border-box;
}

.sc-media {
    width: calc(
        25% - 10px
    ); /* Slightly increased image size by reducing subtracted width */
    margin: 0 5px; /* Adjusted margin for slightly increased image size */
    padding: 8px; /* Maintains padding to keep image content well-spaced */
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

.sc-img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* Hover effects and overlays */
.sc-media:hover .sc-img {
    transform: scale(1.1); /* Enlarges the image on hover */
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.overlay-text {
    color: white;
    text-align: center;
    font-size: 16px;
    width: 80%;
}

.sc-media:hover .overlay {
    opacity: 1; /* Reveals overlay on hover */
}

/* Tablet styles */
@media (max-width: 1024px) {
    .sc-main-container {
        width: 100%; /* Allows container to take more width on tablets */
    }
    .sc-media {
        width: calc(
            25% - 10px
        ); /* Increases the image size by reducing the subtracted width */
        margin: 5px; /* Adjusting margin to ensure spacing is not too tight */
    }
}

/* Phone styles */
@media (max-width: 520px) {
    .sc-main-container {
        width: 100%; /* Full width of the viewport */
        padding: 0; /* No padding */
        margin: 0; /* No margin */
    }
    .sc-media {
        width: 50%; /* Each image takes up half the width of the viewport */
        margin: 0; /* No margin between images to ensure tight grid */
        padding: 0; /* No padding around images */
    }
    .sc-media:hover .sc-img {
        transform: none; /* No transform effect on hover */
    }
    .sc-media:hover .overlay {
        display: none; /* Disables overlay on hover */
    }
    .sc-media:nth-child(n + 5) {
        display: none; /* Hides images beyond the first four */
    }
}

@media (max-width: 1024px) {
    .sc-title {
        font-size: 30px; /* Smaller font size for tablets */
    }
    .social-icon {
        width: 35px; /* Slightly smaller icons on tablets */
        height: 35px;
    }
}

/* Responsive adjustments for mobile phones */
@media (max-width: 520px) {
    .sc-title-container {
        flex-direction: column; /* Stack items vertically */
        gap: 10px; /* Smaller gap for a tighter layout */
    }
    .sc-title {
        font-size: 26px; /* Smaller font size for mobiles */
        text-align: center; /* Ensure text is centered on small screens */
    }
    .social-icon {
        width: 30px; /* Even smaller icons for mobile */
        height: 30px;
        display: none;
    }
}




.slider-top-title {
    width: 100%;
    height: 100px;
    margin-top: 8vh;
    margin-bottom: -1vh;
}

.slider-title {
    text-align: center;
    font-size: 2.4rem;
    font-weight: 600;
}

@media screen and (max-width: 767px) {
    .slider-top-title {
        margin-top: 7vh;
        margin-bottom: -5vh;
    }
    .slider-title {
        font-size: 1.6rem;
    }
}

.slider-container {
    overflow: hidden; /* Might need to adjust this if shadows are still being cut off */
    position: relative;
    width: 80%;
    margin-left: 10%;
    padding: 20px 0; /* Adds vertical padding to allow shadow visibility */
    background-color: #fbfbfb; /* Optional: background color to enhance shadow contrast */
}

.slider {
    display: flex;
    scroll-snap-type: x mandatory;
    gap: 40px;
    overflow-x: auto;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
    padding: 0 20px; /* Adds horizontal padding to ensure shadows aren't clipped */
    cursor: grab;
}

.slider.grabbing {
    cursor: grabbing;
}

.slider::-webkit-scrollbar {
    display: none;
}

.slide {
    flex: none;
    width: calc((100% - 40px) / 3);
    height: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    box-sizing: border-box;
    background: #fff; /* Ensures shadow is visible on light backgrounds */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow */
    transition: box-shadow 0.3s ease-in-out; /* Smooth transition for hover effects */
    margin: 10px 0; /* Additional margin to avoid clipping of shadows */
}

.slide img {
    width: 100%;
    height: 60%; /* 60% of the slide's height */
    object-fit: cover;
    margin-top: 0;
    display: block;
}

.slide h3,
.slide p {
    margin: 5px 0;
}

.slider-dots {
    text-align: center;
    padding-top: 10px;
}

.dot {
    cursor: pointer;
    height: 15px;
    width: 15px;
    margin: 0 5px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
}

.dot.active {
    background-color: #034f24;
}

/* Hover effect to lift the slide */
.slide:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

h3 {
    font-family: "inter", sans-serif;
    padding-top: 10px;
    font-size: 1.6rem;
}

/* Tablet: Show 2 slides */
@media (max-width: 768px) {
    .slider-container {
        margin-left: 8%; /* Shifted more to the left */
    }
    .slide {
        width: calc((100% - 40px) / 2); /* Appropriate size for 2 slides */
    }
}

/* Phone: Show 1 slide and adjust margins */
@media (max-width: 480px) {
    .slider-container {
        width: 94%; /* Adjusted width to reduce apparent size */
        margin-left: 3%; /* Better centered */
    }

    .slide {
        width: calc(
            100% - 20px
        ); /* Adjust width to fit within the new container */
        height: 250px; /* Adjusted height for phone screens */
    }
}

.sl-image {
    width: 100%;
}

.sl-route {
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: #000;
}




/* Reset specific styles for about us section */
.about-us-section *,
.about-us-section *::before,
.about-us-section *::after {
    box-sizing: border-box; /* Includes padding and border in the element's total width and height */
    margin: 0; /* Removes default margins */
    padding: 0; /* Removes default padding */
}

.about-us-section {
    height: 100vh;
    width: 100%;
    margin-top: 10vh;
}

.ab-main-div {
    height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.ab-main-image {
    width: 100%;
    height: 47vh;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.ab-image {
    object-fit: cover;
    height: 100%;
    min-width: 100%;
}

.ab-main-text-container {
    width: 100%;
    height: auto;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    background-color: #fff;
}

.ab-text-container {
    width: 80%;
    margin-left: 10%;
    margin-top: 10vh;
}

.ab-title {
    font-size: 40px;
    color: #a57023;
}

.ab-text {
    margin-top: 2vh;
    font-size: 20px;
    margin-bottom: 15vh;
}

@media screen and (max-width: 520px) {
    .ab-text-container {
        margin-top: 5vh;
        margin-bottom: 3vh;
    }
    .ab-title {
        font-size: 32px;
    }
    .ab-text {
        font-size: 18px;
        margin-bottom: 3vh;
    }
}

@media screen and (min-width: 521px) and (max-width: 1025px) {
    .ab-text-container {
        margin-top: 7vh;
    }
    .ab-title {
        font-size: 40px;
    }
    .ab-text {
        font-size: 22px;
        margin-bottom: 7vh;
    }
}





/* ========== Desktop ========== */
.abu-main-section {
    width: 100%;
    height: 420px;
}

.abu-main-container {
    width: 85%;
    height: 380px;
    background-color: #fff;
    margin-left: 15%;
    margin-top: 10vh;
    box-shadow: -8px 8px 5px -5px rgba(0, 0, 0, 0.5);
}

.abu-image-container {
    width: 40%;
    height: 100%;
    float: left;
}

.abu-image {
    width: 100%;
    height: 100%;
    overflow: hidden;
    object-fit: cover;
}

.abu-text-container {
    width: 60%;
    height: 100%;
    float: left;
}

.abu-title {
    width: 70%;
    margin-left: 5%;
    font-size: 36px;
    color: #a3660a;
    font-weight: 600;
    margin-top: 3%;
}

.abu-text {
    width: 70%;
    margin-left: 5%;
    font-size: 20px;
    margin-top: -2%;
}

.abu-title3 {
    width: 70%;
    margin-left: 5%;
    font-size: 36px;
    color: #a3660a;
    font-weight: 600;
    margin-top: 10%;
}

.abu-text3 {
    width: 70%;
    margin-left: 5%;
    font-size: 20px;
    margin-top: -2%;
}

.abu-main-section2 {
    width: 100%;
    height: 420px;
}

.abu-main-container2 {
    width: 85%;
    height: 380px;
    background-color: #fff;
    margin-top: 10vh;
    box-shadow: 8px 8px 5px -5px rgba(0, 0, 0, 0.5);
}

.abu-image-container2 {
    width: 40%;
    height: 100%;
    float: left;
    overflow: hidden;
}

.abu-image2 {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media screen and (max-width: 700px){
    .abu-image2{
        max-height: 300px;
    }
}

.abu-text-container2 {
    width: 60%;
    height: 100%;
    float: left;
}

.abu-title2 {
    width: 70%;
    margin-left: 25%;
    text-align: left;
    font-size: 36px;
    color: #a3660a;
    font-weight: 600;
    margin-top: 3%;
}

.abu-text2 {
    width: 65%;
    margin-left: 25%;
    text-align: left;
    font-size: 20px;
    margin-top: -2%;
}
.abu-text21 {
    width: 65%;
    margin-left: 25%;
    text-align: left;
    font-size: 20px;
    margin-top: -2%;
}
.abu-title21 {
    width: 70%;
    margin-left: 25%;
    text-align: left;
    font-size: 36px;
    color: #a3660a;
    font-weight: 600;
    margin-top: 10%;
}

/* ========== iPad (min-width:520px and max-width:1025px) ========== */
@media screen and (min-width: 520px) and (max-width: 1025px) {
    /* For About Us sections with image on the left (e.g. "Rreth Nesh") */
    .abu-main-section {
        width: 100%;
        height: 450px;
    }
    .abu-main-container {
        width: 90%;
        height: 450px;
        background-color: #fff;
        margin-left: 10%;
        margin-top: 10vh;
        box-shadow: -8px 8px 5px -5px rgba(0, 0, 0, 0.5);
        overflow: hidden;
    }
    .abu-image-container {
        width: 45%;
        height: 100%;
        float: left;
        overflow: hidden;
    }
    .abu-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    .abu-text-container {
        width: 55%;
        height: 100%;
        float: left;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 0 1rem;
        box-sizing: border-box;
    }
    .abu-title {
        font-size: 28px;
        color: #a3660a;
        font-weight: 600;
        margin-top: 1rem;
        text-align: left;
        width: 100%;
    }
    .abu-text {
        font-size: 18px;
        margin-top: 0.5rem;
        line-height: 1.4;
        text-align: left;
        width: 98%;
    }

    /* For About Us sections with image on the right (First & Third sections) */
    .abu-main-section2 {
        width: 100%;
        height: 450px;
    }
    .abu-main-container2 {
        width: 90%;
        height: 450px;
        background-color: #fff;
        margin-left: 0%;
        margin-top: 10vh;
        box-shadow: 8px 8px 5px -5px rgba(0, 0, 0, 0.5);
        overflow: hidden;
    }
    .abu-image-container2 {
        width: 45%;
        height: 100%;
        float: left;
        overflow: hidden;
    }
    .abu-image2 {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    .abu-text-container2 {
        width: 55%;
        height: 100%;
        float: left;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 0 1rem;
        box-sizing: border-box;
    }
    .abu-title2,
    .abu-title21 {
        font-size: 28px;
        text-align: left;
        width: 100%;
        margin-top: 1rem;
    }
    .abu-text2,
    .abu-text21 {
        font-size: 18px;
        margin-top: 0.5rem;
        line-height: 1.4;
        text-align: left;
        width: 90%;
        margin-left: -0%;
    }
}

/* ========== Mobile (max-width: 519px) ========== */
@media screen and (max-width: 519px) {
    /* For sections with image on the left (Second section: Rreth Nesh) */
    .abu-main-section {
        width: 100%;
        height: auto;
    }
    .abu-main-container {
        width: 92%;
        height: auto;
        margin-left: 8%;
        background-color: #fff;
        margin-top: 10vh;
        border-radius: 10px 0 0 10px;
        padding-bottom: 2rem;
    }
    .abu-image-container {
        float: none;
        width: 100%;
        height: auto;
        border-radius: 10px 10px 0 0;
    }
    .abu-image {
        width: 100%;
        height: auto;
        border-radius: 10px 10px 0 0;
    }
    .abu-text-container {
        width: 100%;
        float: none;
        padding: 2rem 5%;
        box-sizing: border-box;
    }
    .abu-title {
        width: 100%;
        margin: 0 auto;
        margin-top: 1rem;
        font-size: 28px;
        text-align: center;
    }
    .abu-text {
        width: 90%;
        margin: 0 auto;
        font-size: 20px;
        margin-top: 1rem;
        line-height: 1.4;
    }

    /* For sections with image on the right (First & Third sections) */
    .abu-main-section2 {
        width: 100%;
        height: auto;
    }
    .abu-main-container2 {
        display: flex;
        flex-direction: column;
        width: 92%;
        height: auto;
        background-color: #fff;
        margin-top: 10vh;
        border-radius: 0 10px 10px 0;
        overflow: hidden;
        padding-bottom: 2rem;
    }
    .abu-image-container2 {
        order: -1;
        width: 100%;
        height: auto;
        border-radius: 0 10px 0 0;
    }
    .abu-image2 {
        width: 100%;
        height: auto;
        border-radius: 0 10px 0 0;
    }
    .abu-text-container2 {
        order: 0;
        width: 100%;
        padding: 2rem 5%;
        box-sizing: border-box;
    }
    .abu-title21,
    .abu-title2 {
        width: 100%;
        margin: 0 auto;
        margin-top: 1rem;
        font-size: 28px;
        text-align: center;
    }
    .abu-text21,
    .abu-text2 {
        width: 90%;
        margin: 0 auto;
        font-size: 20px;
        margin-top: 1rem;
        line-height: 1.4;
    }
}




.cf-container {
    margin-top: 10vh;
    width: 100%;
    height: 100vh;
    background: linear-gradient(
            to bottom,
            #fbfbfb 0%,
            rgba(251, 251, 251, 0.7) 30%,
            rgba(251, 251, 251, 0.25) 60%,
            rgba(251, 251, 251, 0) 100%
        ),
        url("{{ asset('images/homepage/fushe-kosove-5.png') }}");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    border: none; /* Ensure there's no border */
}

.cf-wrapper {
    width: 80%;
    background-color: rgba(255, 255, 255, 0.3); /* Light background */
    backdrop-filter: blur(5px); /* Light blur for a subtle effect */
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Optional shadow */
    position: relative;
    z-index: 1; /* Make sure this stays above the background */
}

/* Disable backdrop-filter blur on tablets and mobile devices */
@media screen and (max-width: 1024px) {
    .cf-wrapper {
        backdrop-filter: none; /* Remove blur effect on tablets */
        background-color: rgba(
            255,
            255,
            255,
            0.3
        ); /* Increase opacity for clarity on tablets */
        width: 90%;
    }
}

.contact-form-intro {
    margin-bottom: 20px;
    width: 100%;
    text-align: center;
}

.cf-title {
    font-size: 40px;
    font-weight: 600;
    color: #6c4c24;
}

.cf-text {
    font-size: 22px;
    margin: 15px;
    text-align: center;
    color: #2c2c2c;
}

.contact-form-container {
    width: 96%;
    margin-left: 2%;
}

.contact-form-container form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.input-row {
    display: flex;
    justify-content: space-between;
}

.cf-input-name,
.cf-input-lastname,
.cf-input-email,
.cf-input-message {
    background-color: transparent; /* Fully transparent background */
    border: none; /* No full borders */
    border-bottom: 2px solid #004e03; /* Bottom border only */
    padding: 10px;
    font-size: 16px;
    outline: none; /* Remove default focus outline */
    transition: background-color 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

/* Hover and Focus Effect */
.cf-input-name:focus,
.cf-input-lastname:focus,
.cf-input-email:focus,
.cf-input-message:focus {
    background-color: rgba(
        255,
        255,
        255,
        0.2
    ); /* Slight background color on focus */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Add shadow effect */
    border-bottom: 2px solid #034f24; /* Darker bottom border when focused */
    border-radius: 5px;
}

/* Input specific styles */
.cf-input-name,
.cf-input-lastname {
    width: 48%; /* Name and Lastname inputs should share the same row */
}

.cf-input-email,
.cf-input-message {
    width: 100%; /* Full width for email and message inputs */
    margin-bottom: 10px;
}

.cf-input-message {
    height: 25vh;
    border: 2px solid #004e03; /* Only message input has a full border */
    border-radius: 5px;
    padding: 10px;
}

/* Submit Button */
.cf-submit {
    width: 30%;
    padding: 10px 15px;
    background-color: #fbfbfb00;
    color: #004e03;
    border: none;
    cursor: pointer;
    font-size: 16px;
    border: 2px solid #004e03;
    border-radius: 10px;
    font-weight: 600;
    transition: ease 0.4s;
    margin: 25px auto;
}

.cf-submit:hover {
    background-color: #004e03;
    color: #fffffff7;
}

/* Mobile-specific styles */
@media screen and (max-width: 767px) {
    .cf-title {
        font-size: 26px;
    }

    .cf-text {
        font-size: 14px;
    }

    .cf-input-name,
    .cf-input-lastname {
        width: 100%; /* Full width on mobile */
    }

    .input-row {
        flex-direction: column; /* Stack inputs vertically on mobile */
    }

    .cf-submit {
        width: 100%; /* Full width on mobile */
    }
}

@media screen and (max-width: 520px) {
    .cf-input-lastname {
        margin-top: 12px;
    }
}
