/* ✅ Block-31 Section */
.block-31 {
    position: relative;
    width: 100%;
    overflow: hidden;
    z-index: 1;
}

.owl-carousel {
    width: 100%;
}

.block-30 {
    width: 100%;
    height: 100vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}

.block-30 .container {
    text-align: center;
    color: #fff;
}

.block-30 h2.heading {
    font-size: 3rem;
    font-weight: bold;
    margin: 0;
    letter-spacing: 2px;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

/* ✅ Scroll Section */
.custom-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 0;
    position: relative;
}

.scroll-section {
    display: flex;
    align-items: center;
    gap: 20px;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s ease-out, transform 1s ease-out;
    position: relative;
}

.scroll-section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ✅ Image Slide */
.image-slide {
    flex: 1;
    max-width: 300px;
    height: auto;
    border-radius: 10px;
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    box-shadow: 0 4px 10rem rgba(0, 0, 0, 0.3);
    cursor: pointer;
}

.image-slide:hover {
    transform: perspective(1000px) rotateY(10deg) rotateX(-5deg) scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

/* ✅ Content Slide */
.content-slide {
    flex: 2;
    text-align: left;
    transform: translateY(0);
    transition: color 0.5s ease;
}

.heading-slide {
    font-size: 2rem;
    font-weight: bold;
    color: rgb(10, 3, 84);
    margin-bottom: 15px;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.heading-slide:hover span {
    font-weight: bold;
    color: #fd6400;
    transition: color 0.3s ease, font-weight 0.3s ease;
}

.text-slide {
    font-size: 1.2rem;
    line-height: 1.5;
    color: #000;
    margin-bottom: 15px;
}

.button-slide {
    background: rgb(10, 3, 84);
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.button-slide:hover {
    background: #34495e;
}

/* ✅ Decorative Image */
.decorative-image {
    position: absolute;
    margin-top: 30rem;
    right: 0;
    max-width: 100vw;
    height: 100vh;
    opacity: 0.2;
    z-index: -1;
    pointer-events: none;
    object-fit: cover;
    transform: translateY(-50%);
}

/* ✅ Responsive Design */

/* 🎯 Extra Large Screens (Above 2400px) */
@media (min-width: 2400px) {
    .block-31 { height: 85vh; }
    .block-30 .heading { font-size: 3.5rem; }
    .image-slide { max-width: 400px; }
    .heading-slide { font-size: 2.5rem; }
    .decorative-image { height: 90vh; opacity: 0.2; }
}

/* 🎯 Large Screens (1920px - 2399px) */
@media (max-width: 2399px) {
    .block-31 { height: 80vh; }
    .block-30 .heading { font-size: 3.2rem; }
    .image-slide { max-width: 350px; }
    .heading-slide { font-size: 2.3rem; }
    .decorative-image { height: 85vh; opacity: 0.18; }
}

/* 🎯 Medium-Large Screens (1600px - 1919px) */
@media (max-width: 1919px) {
    .block-31 { height: 75vh; }
    .block-30 .heading { font-size: 3rem; }
    .image-slide { max-width: 300px; }
    .heading-slide { font-size: 2rem; }
    .decorative-image { height: 82vh; opacity: 0.16; }
}

/* 🎯 Standard Desktop (1200px - 1599px) */
@media (max-width: 1599px) {
    .block-31 { height: 70vh; }
    .block-30 .heading { font-size: 2.8rem; }
    .image-slide { max-width: 280px; }
    .heading-slide { font-size: 1.9rem; }
    .decorative-image { height: 80vh; opacity: 0.15; }
}

/* 🎯 Laptops & Small Desktops (992px - 1199px) */
@media (max-width: 1199px) {
    .block-31 { height: 65vh; }
    .block-30 .heading { font-size: 2.5rem; }
    .image-slide { max-width: 250px; }
    .content-slide { text-align: left; }
    .heading-slide { font-size: 1.8rem; }
    .decorative-image { height: 75vh; opacity: 0.15; }
}

/* 🎯 Tablets (768px - 991px) */
@media (max-width: 991px) {
    .block-31 { height: 50vh; }
    .scroll-section { flex-direction: column; text-align: center; }
    .image-slide { max-width: 200px; }
    .content-slide { text-align: center; }
    .heading-slide { font-size: 1.6rem; }
    .text-slide { font-size: 1rem; }
    .decorative-image { width: 90%; height: 60vh; opacity: 0.12; }
}

/* 🎯 Large Phones (480px - 575px) */
@media (max-width: 575px) {
    .block-31 { height: 40vh; }
    .image-slide { max-width: 90%; }
    .heading-slide { font-size: 1.3rem; }
    .text-slide { font-size: 0.9rem; }
    .decorative-image { width: 100%; height: 40vh; top: 5%; left: 0; opacity: 0.1; }
}

/* 🎯 Small Phones (320px - 479px) */
@media (max-width: 479px) {
    .block-31 { height: 35vh; }
    .image-slide { max-width: 100%; }
    .heading-slide { font-size: 1.1rem; }
    .text-slide { font-size: 0.8rem; }
    .decorative-image { width: 100%; height: 35vh; top: 5%; left: 0; opacity: 0.08; }
}
