
/* Hero section styling (Slider) */
.hero {
    position: relative;
    overflow: hidden;
    background-color: #333;
    height: auto;
    max-height: 88vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
/* Hero slider */
.hero-slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.hero-slide {
    min-width: 100%;
    box-sizing: border-box;
    position: relative;
}

.hero-slide img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.hero-slide .slide-content {
    position: absolute;
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
    color: #fff;
    max-width: 50vw;
    flex-direction: column;  /* Arrange buttons below text */
    align-items: center;     /* Center align buttons */
}

.slide-content h1 {
    font-size: 4vw;
    color: #FFF;
}

.slide-content p {
    font-size: 2vw;
}

/* Hero navigation dots */
.hero-navigation {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.nav-dot {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background-color: #919191;
    cursor: pointer;
}

.nav-dot.active {
    background-color: #F20505;
}

/* Arrow buttons for navigation */
.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    padding: 15px;
    cursor: pointer;
    font-size: 24px;
    z-index: 10;
}

.left-arrow {
    left: 20px;
}

.right-arrow {
    right: 20px;
}

.arrow:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* Real-time block section */
.real-time-block {
    background: url('../img/bgContUs.jpg') no-repeat center center/cover;
    padding: 50px;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    color: #ffffff;
    width: 100vw;
    margin: 0;
}

.real-time-content {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-left: 10%;
    width: 80%;
}

.real-time-text {
    max-width: 50%;
}

.real-time-text h1 {
    color: #F20505;
    font-size: 48px;
    margin-bottom: 20px;
    white-space: nowrap;
}

.real-time-buttons {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    max-width: 100%;
    gap: 20px;
}
.real-time-buttons .cta-btn {
    background-color: #F20505;
    color: #fff;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.real-time-buttons .cta-btn:hover {
    background-color: #BF0404;
}
/* Adjusting the second button container */
.second-button {
    display: flex;
    justify-content: center; /* Center the button horizontally */
    align-items: center;
    margin-top: 20px; /* Add space from the text */
    width: 60%; /* Set the width of the button container to 60% of the text area */
    text-align: center;  /* Center the button text inside */
    margin-left: 20%;
}

/* Styling for the button */
.second-button .cta-btn {
    font-size: 18px;
    padding: 12px 30px;
    background-color: #F20505;
    color: white;
    border-radius: 25px;
    text-decoration: none;
    width: 100%; /* Make the button fill the container */
    transition: background-color 0.3s ease;
}

.second-button .cta-btn:hover {
    background-color: #BF0404;
}
/* Main content below Slider*/
.consultants {
    padding: 50px;
    border-bottom: 4px solid #333;
}

.consultants-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}
.consultants:last-of-type {
    border-bottom: none;
}
.consultants-text {
    flex: 1;
    padding-right: 50px;
    z-index: 1;
    position: relative;
}

.consultants-text h1 {
    font-size: 36px;
    color: #333;
}

.consultants-text h2 {
    font-size: 28px;
    color: #666;
    margin-bottom: 20px;
    border-bottom: 2px solid #666;
    display: inline-block;
}

.consultants-text p {
    font-size: 18px;
    color: #555;
}

.consultants-image {
    flex: 1;
    width: 50%;
    position: relative;
}

.consultants-image img {
    max-width: 70%;
    height: auto;
    object-fit: cover;
    margin-left: 0;
    border-radius: 10px;
}

.reverse .consultants-text {
    padding-right: 0;
    padding-left: 50px;
}

.reverse {
    flex-direction: row-reverse;
}

@media (max-width: 768px) {
    .hero {
        height: auto;
    }

    .hero-slide img {
        height: auto;
    }

    .slide-content h1 {
        font-size: 6vw;
    }

    .slide-content p {
        font-size: 3vw;
    }

    .real-time-buttons .cta-btn,
    .second-button .cta-btn {
        font-size: 3vw;
        padding: 3vw 5vw;
        border-radius: 5vw;
    }
    .consultants-content {
        flex-direction: column !important;
        
    }

    .consultants-text {
        order: 1;
        padding: 0;
    }

    .consultants-text h1 {
        font-size: 7vw;
    }

    .consultants-text h2 {
        font-size: 5vw;
    }

    .consultants-text p {
        font-size: 4vw;
    }
    .reverse .consultants-text {
        padding-left: 0;
    }

    .consultants-image {
        order: 2;
        margin-top: 20px;
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .consultants-image img {
        max-width: 90%;
        height: auto;
    }
}
