:root {
    --primary-color: #04699D;
    --secondary-color: #EF8635;
    --accent-color: #7EB5EE;
    --dark-color: #52482C;
    --light-bg: #f9f7f2;
}

 * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; */
}

.bivouac-cnt {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}
        
        .overlapping-cards-section {
            background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.7)), 
                        url('https://images.unsplash.com/photo-1505228395891-9a51e7e86bf6?ixlib=rb-4.0.3&auto=format&fit=crop&w=1350&q=80');
            position: relative;
            overflow: hidden;
            color: white;
            background-size: cover;
            background-position: center;
            padding: 5rem 0;
            min-height: 100vh;
            display: flex;
            align-items: center;
        }
        
        .section-intro {
            margin-bottom: 3rem;
            text-align: center;
        }
        
        .section-intro h2 {
            font-size: 2.5rem;
            font-weight: 700;
            margin-bottom: 1rem;
            position: relative;
            display: inline-block;
            text-transform: uppercase;
            letter-spacing: 1px;
        }
        
        .section-intro h2::after {
            content: '';
            display: block;
            width: 80px;
            height: 4px;
            background: var(--secondary-color);
            margin: 10px auto;
            border-radius: 2px;
        }
        
        .section-intro p {
            font-size: 1.1rem;
            max-width: 600px;
            margin: 0 auto;
            opacity: 0.9;
        }
        
        .cards-container {
            position: relative;
            height: 70vh;
            max-width: 1200px;
            margin: 0 auto;
        }
        
        .card-wrapper {
            position: absolute;
            width: 35vh;
            max-width: 320px;
            transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
            z-index: 1;
            border-radius: 15px;
            overflow: hidden;
            box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
        }
        
        .card-wrapper:nth-child(1) {
            left: 5%;
            top: 10%;
            transform: rotate(-4deg);
        }
        
        .card-wrapper:nth-child(2) {
            left: 20%;
            top: 15%;
            transform: rotate(2deg);
        }
        
        .card-wrapper:nth-child(3) {
            left: 35%;
            top: 5%;
            transform: rotate(-1deg);
        }
        
        .card-wrapper:nth-child(4) {
            left: 50%;
            top: 10%;
            transform: rotate(3deg);
        }
        
        .card-wrapper:nth-child(5) {
            left: 65%;
            top: 15%;
            transform: rotate(-2deg);
        }
        
        .overlap-card {
            height: 100%;
            display: flex;
            flex-direction: column;
        }
        
        .card-img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: all 0.5s ease;
        }
        
        .card-content {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            padding: 1.5rem;
            color: white;
            background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
            transition: all 0.4s ease;
        }
        
        .card-content h4 {
            font-size: 1.5rem;
            font-weight: 600;
            margin-bottom: 0.5rem;
            text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
        }
        
        .card-content .card-badge {
            position: absolute;
            top: -20px;
            right: 20px;
            background: var(--secondary-color);
            color: white;
            padding: 8px 15px;
            border-radius: 30px;
            font-size: 0.9rem;
            font-weight: 600;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
        }
        
        .card-content .card-description {
            font-size: 0.9rem;
            opacity: 0;
            max-height: 0;
            overflow: hidden;
            transition: all 0.4s ease;
        }
        
        /* Hover Effects */
        .card-wrapper:hover {
            z-index: 10 !important;
            transform: scale(1.05) rotate(0deg) !important;
            box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
        }
        
        .card-wrapper:hover .card-img {
            transform: scale(1.05);
        }
        
        .card-wrapper:hover .card-content {
            padding-top: 2.5rem;
        }
        
        .card-wrapper:hover .card-description {
            opacity: 0.9;
            max-height: 100px;
            margin-top: 0.5rem;
        }
        
        .btn-hero {
            display: inline-block;
            padding: 12px 35px;
            background: var(--secondary-color);
            color: white;
            font-weight: 600;
            text-decoration: none;
            border-radius: 50px;
            transition: all 0.3s ease;
            box-shadow: 0 4px 15px rgba(239, 134, 53, 0.4);
            border: none;
            text-transform: uppercase;
            letter-spacing: 1px;
            font-size: 1rem;
            position: relative;
            overflow: hidden;
            z-index: 1;
        }
        
        .btn-hero::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
            transition: 0.5s;
            z-index: -1;
        }
        
        .btn-hero:hover::before {
            left: 100%;
        }
        
        .btn-hero:hover {
            background: #e0772b;
            transform: translateY(-3px);
            box-shadow: 0 8px 20px rgba(239, 134, 53, 0.6);
        }
        
        /* Responsive Styles */
        @media (max-width: 1199px) {
            .cards-container {
                height: 65vh;
            }
            
            .card-wrapper:nth-child(1) {
                left: 2%;
            }
            
            .card-wrapper:nth-child(2) {
                left: 18%;
            }
            
            .card-wrapper:nth-child(5) {
                left: 70%;
            }
        }
        
        @media (max-width: 992px) {
            .cards-container {
                height: auto;
                min-height: 600px;
                display: flex;
                flex-wrap: wrap;
                justify-content: center;
                gap: 25px;
                padding: 0 15px;
            }
            
            .card-wrapper {
                position: relative !important;
                left: auto !important;
                top: auto !important;
                transform: rotate(0deg) !important;
                width: 45%;
                max-width: none;
                margin: 0;
                height: 300px;
            }
            
            .card-wrapper:hover {
                transform: scale(1.03) !important;
            }
        }
        
        @media (max-width: 768px) {
            .overlapping-cards-section {
                padding: 3rem 0;
            }
            
            .section-intro h2 {
                font-size: 2rem;
            }
            
            .cards-container {
                min-height: auto;
                gap: 20px;
            }
            
            .card-wrapper {
                width: 100%;
                max-width: 400px;
                height: 280px;
            }
            
            .card-content {
                padding: 1.2rem;
            }
            
            .card-content h4 {
                font-size: 1.3rem;
            }
        }
        
        @media (max-width: 576px) {
            .section-intro h2 {
                font-size: 1.8rem;
            }
            
            .section-intro p {
                font-size: 1rem;
                padding: 0 15px;
            }
            
            .card-wrapper {
                height: 250px;
            }
        }


/* bivouac  */


.bivouac-section {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 60px;
    background: var(--light-bg);
    border-radius: 24px;
    padding: 60px 40px;
    max-width: 1200px;
    width: 100%;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.bivouac-section::before {
    content: "";
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: var(--accent-color);
    opacity: 0.15;
    border-radius: 50%;
    z-index: 0;
}

.bivouac-images {
    position: relative;
    width: 450px;
    height: 450px;
    flex-shrink: 0;
}

.orange-bg {
    background: var(--secondary-color);
    position: absolute;
    width: 80%;
    height: 80%;
    bottom: 0;
    left: 0;
    border-radius: 16px;
    transform: rotate(-4deg);
    z-index: 1;
    box-shadow: 15px 15px 40px rgba(239, 134, 53, 0.3);
    transition: transform 0.5s ease;
}

.image-container {
    position: absolute;
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    z-index: 2;
}

.img-back,
.img-front {
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    border: 6px solid white;
    object-fit: cover;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.img-back {
    position: absolute;
    width: 70%;
    height: 70%;
    top: 0;
    right: 0;
    transform: rotate(5deg);
    z-index: 2;
}

.img-front {
    position: absolute;
    width: 75%;
    height: 75%;
    bottom: 0;
    left: 0;
    transform: rotate(-3deg);
    z-index: 3;
}

.bivouac-images:hover .img-back {
    transform: rotate(7deg) translate(10px, -10px);
    z-index: 4;
}

.bivouac-images:hover .img-front {
    transform: rotate(-5deg) translate(-10px, 10px);
}

.bivouac-images:hover .orange-bg {
    transform: rotate(-6deg);
}

.bivouac-text {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    max-width: 480px;
    position: relative;
    z-index: 5;
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.bivouac-text:hover {
    transform: translateY(-10px);
}

.bivouac-text::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary-color), var(--accent-color));
    border-radius: 10px 0 0 10px;
}

.bivouac-text h2 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 15px;
}

.bivouac-text h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--secondary-color);
    border-radius: 2px;
}

.bivouac-text p {
    color: var(--dark-color);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 30px;
}

.features {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
}

.feature {
    display: flex;
    align-items: center;
    background: rgba(126, 181, 238, 0.15);
    padding: 8px 15px;
    border-radius: 30px;
    font-size: 0.9rem;
    color: var(--primary-color);
}

.feature i {
    margin-right: 8px;
    color: var(--secondary-color);
}

.bivouac-btn {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-color), #03507a);
    color: white;
    padding: 14px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(4, 105, 157, 0.35);
    position: relative;
    overflow: hidden;
}

.bivouac-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(4, 105, 157, 0.45);
}

.bivouac-btn:active {
    transform: translateY(1px);
}

.bivouac-btn::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.bivouac-btn:hover::after {
    transform: translateX(100%);
}

.bivouac-btn i {
    margin-left: 10px;
    transition: transform 0.3s ease;
}

.bivouac-btn:hover i {
    transform: translateX(5px);
}

/* Responsive design */
@media (max-width: 1100px) {
    .bivouac-section {
        gap: 40px;
    }

    .bivouac-images {
        width: 400px;
        height: 400px;
    }
}

@media (max-width: 480px) {
     .bivouac-cnt {
        padding: 0px;
        margin-top: 2rem;
    }

     .bivouac-section {
        flex-direction: column;
        text-align: center;
        width: 100%;
        padding: 1px;
    }
}

@media (max-width: 900px) {
    .bivouac-section {
        flex-direction: column;
        text-align: center;
        width: 100%;
        /* background-color: red; */
    }

    .bivouac-text::before {
        width: 100%;
        height: 6px;
        top: 0;
        left: 0;
        border-radius: 10px 10px 0 0;
    }

    .bivouac-text h2::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .features {
        justify-content: center;
    }
}

@media (max-width: 500px) {
    .bivouac-images {
        width: 100%;
        height: 350px;
    }

    .bivouac-text {
        padding: 30px 20px;
    }

    .bivouac-text h2 {
        font-size: 2rem;
    }

    .img-back,
    .img-front {
        border-width: 4px;
    }
}