.consulting-image-wrapper {
    position: relative;
    background-color: #f0f0f0;
}
.consulting-image-wrapper::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin-top: -20px;
    margin-left: -20px;
    border: 3px solid rgba(0, 105, 200, 0.1);
    border-top: 3px solid #0069C8;
    border-radius: 50%;
    animation: imageLoaderSpin 1s linear infinite;
    z-index: 0;
}
.consulting-image-wrapper img {
    width: 250%;
    height: 80vh;
    border-radius: 5px;
    object-fit: cover;
    background: linear-gradient(to top,
            rgba(0, 0, 0, 0.95),
            rgba(0, 0, 0, 0.85));
    position: relative;
    z-index: 1;
}



.consulting-projects-section {
    overflow: hidden;
    background: #fff;
}

.consulting-projects-section .header {
    text-align: center;
    padding: 0 20px;
    margin-bottom: 60px;
}

.consulting-projects-section .header h2 {
    font-size: 38px;
    font-weight: 700 !important;
    margin-bottom: 10px;
}

.consulting-projects-section .carousel-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 0 0 50px 0;
}

.consulting-projects-section .slider-wrapper {
    display: flex;
    will-change: transform;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.consulting-projects-section .slide-2 {
    flex: 0 0 var(--card-width);
    padding: 0 15px;
    box-sizing: border-box;
}

/* Zig-Zag Effect */
.consulting-projects-section .slide-2:nth-child(odd) .card {
    margin-top: 0;
}

.consulting-projects-section .slide-2:nth-child(even) .card {
    margin-top: 70px;
}

/* CARD BASE */
.consulting-projects-section .card {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    height: 500px;
    background-color: #f9f9f9;
}

.consulting-projects-section .card::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin-top: -20px;
    margin-left: -20px;
    border: 3px solid rgba(0, 105, 200, 0.1);
    border-top: 3px solid #0069C8;
    border-radius: 50%;
    animation: imageLoaderSpin 1s linear infinite;
    z-index: 0;
}

.consulting-projects-section .card::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, rgba(0.9, 0.9, 0.9, 0.9), transparent);
    pointer-events: none;
    z-index: 1;
}

/* IMAGE */
.consulting-projects-section .card img {
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1),
        filter 0.6s ease;
    position: relative;
    z-index: 1;
}

/* OVERLAY */
.card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
            rgba(0, 0, 0, 0.75),
            rgba(0, 0, 0, 0.2),
            rgba(0, 0, 0, 0));

    display: flex;
    flex-direction: column;
    justify-content: flex-end;

    padding: 14px;
    color: #fff;

    opacity: 0;
    z-index: 2;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

@keyframes imageLoaderSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* TEXT */
.card-overlay h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 8px;
}

.card-overlay p {
    font-size: 14px;
    line-height: 1.6;
    opacity: 0.9;
}

/* HOVER EFFECT */
.card:hover img {
    transform: scale(1.05);
    filter: brightness(0.85);
}

.card:hover .card-overlay {
    opacity: 1;
    transform: translateY(0);
}

.container {
    width: 100%;
    max-width: 1100px;
}

.form-wrapper {
    background: white;
    border-radius: 12px;
    display: flex;
    overflow: hidden;
}

/* Left Content Side */
.content-side {
    flex: 1;
    padding: 50px;
    background-color: #fff;
}

.subtitle {
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 15px;
}

.content-side h1 {
    font-size: 36px;
    color: #1a1a1a;
    line-height: 1.2;
    margin-bottom: 20px;
}

.content-side p {
    color: var(--text-gray);
    line-height: 1.6;
    font-size: 15px;
}

/* Right Form Side */
.form-side {
    flex: 1.5;
    padding: 50px;
    border-left: 1px dashed #ccc;
}

.input-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 8px;
    color: #333;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper input, 
.input-group select, 
.input-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s;
}

.input-wrapper i {
    position: absolute;
    right: 15px;
    color: #aaa;
    font-size: 16px;
}

.input-group textarea {
    height: 100px;
    resize: none;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
    font-size: 13px;
    color: var(--text-gray);
}

.submit-btn {
    background-color: var(--primary-blue);
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.submit-btn:hover {
    background-color: #0056b3;
}

/* ===============================
   TABLET RESPONSIVE (≤ 1024px)
   =============================== */
@media (max-width: 1024px) {

    .consulting-projects-section .header h2 {
        font-size: 35px;
    }

    .consulting-projects-section .header p {
        font-size: 18px;
    }

    .consulting-projects-section .slide-2 {
        flex: 0 -2 75vw;
        /* cards a bit narrower */
    }

    .consulting-projects-section .slide-2:nth-child(even) .card {
        margin-top: 40px;
        /* reduce zig-zag */
    }

    .consulting-projects-section .card img {
        height: 100% !important;
    }
    .consulting-projects-section .card {
        height: 400px !important;
    }

    .card-overlay h3 {
        font-size: 20px;
    }

    .card-overlay p {
        font-size: 13px;
    }
}

/* Laptop & 150% Scaling Fix */
@media (min-width: 1025px) and (max-width: 1600px) {
    .consulting-projects-section .card {
        height: 450px !important;
    }
}


/* ===============================
   MOBILE ONLY (≤768px)
   =============================== */
@media (max-width: 768px) {

    .consulting-projects-section .carousel-container {
        overflow: hidden;
    }

    .consulting-projects-section .slider-wrapper {
        display: flex;
        gap: 0;
        padding: 0;
        margin-left: 0;
    }

    .consulting-projects-section .slide-2 {
        padding: 0 15px;
        margin-bottom: 30px;
    }

    .consulting-projects-section .slide-2:nth-child(even) .card {
        margin-top: 0;
    }

    .consulting-projects-section .card {
        height: 350px !important;
    }

    .consulting-projects-section .card img {
        height: 100% !important;
        object-fit: cover !important;
        object-position: top;
    }

    .card-overlay {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 992px) {
    .form-wrapper {
        flex-direction: column;
    }
    .form-side {
        border-left: none;
        border-top: 1px dashed #ccc;
        padding: 30px;
    }
    .content-side {
        padding: 30px;
    }
}

@media (max-width: 600px) {
    .input-grid {
        grid-template-columns: 1fr;
    }
    .content-side h1 {
        font-size: 28px;
    }
}