/* Buy Stock Banner Styles */

.emere-buy-stock-section {
    padding: 80px 0;
    font-family: 'Outfit', sans-serif;
    background-color: #fafafa; /* Light background to match hero section surroundings */
}

.buy-stock-wrapper {
    display: flex;
    flex-wrap: wrap;
    background: #0f172a; /* Deep navy blue to match the hero cards */
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    min-height: 450px;
}

/* Left Side: Images Slider */
.buy-stock-images-col {
    flex: 1 1 50%;
    position: relative;
    min-height: 450px;
    overflow: hidden;
}

.buy-stock-slider-wrapper {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.buy-stock-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out, transform 8s linear;
    transform: scale(1);
    z-index: 1;
}

.buy-stock-slide.active {
    opacity: 1;
    transform: scale(1.05); /* Slight zoom effect while active */
    z-index: 2;
}

.buy-stock-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Gradient fading from transparent to the deep navy blue */
    background: linear-gradient(to right, rgba(15, 23, 42, 0) 0%, rgba(15, 23, 42, 1) 100%);
    z-index: 3;
}

.buy-stock-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1e293b;
    color: #475569;
    font-size: 48px;
}

/* Right Side: Content */
.buy-stock-content-col {
    flex: 1 1 50%;
    display: flex;
    align-items: center;
    padding: 60px 80px 60px 40px;
    position: relative;
    z-index: 4;
}

.buy-stock-content-inner {
    max-width: 500px;
    width: 100%;
}

.buy-stock-heading {
    display: flex;
    align-items: center;
    color: #f59e0b; /* Bright Gold/Yellow from hero */
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.buy-stock-icon {
    margin-right: 12px;
    width: 22px;
    height: 22px;
    background: rgba(245, 158, 11, 0.1);
    padding: 4px;
    border-radius: 50%;
    color: #f59e0b;
}

.buy-stock-subheading {
    color: #ffffff;
    font-size: 42px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 25px;
    letter-spacing: -0.5px;
}

/* Text Slider */
.buy-stock-text-slider-wrapper {
    margin-bottom: 45px;
    height: 30px; /* Fixed height for the slider area */
    position: relative;
    overflow: hidden;
}

.buy-stock-text-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.text-slide {
    position: absolute;
    top: 100%; /* Start below */
    left: 0;
    width: 100%;
    color: #cbd5e1; /* Light gray for readability */
    font-size: 18px;
    font-weight: 400;
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
}

.text-slide::before {
    content: '';
    display: inline-block;
    width: 24px;
    height: 2px;
    background-color: #f59e0b; /* Gold accent */
    margin-right: 12px;
}

.text-slide.active {
    top: 0;
    opacity: 1;
}

.text-slide.exit {
    top: -100%;
    opacity: 0;
}

/* Action Button */
.buy-stock-action {
    margin-top: 20px;
}

.buy-stock-btn {
    display: inline-flex;
    align-items: center;
    background: #f59e0b; /* Bright gold background */
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    padding: 16px 36px;
    border-radius: 30px; /* Pill shape like hero */
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid #f59e0b;
}

.buy-stock-btn:hover {
    background: transparent;
    color: #f59e0b;
}

.buy-stock-btn::after {
    content: '→';
    margin-left: 10px;
    font-size: 18px;
    transition: transform 0.3s ease;
}

.buy-stock-btn:hover::after {
    transform: translateX(5px);
}

/* Responsive */
@media (max-width: 991px) {
    .buy-stock-images-col,
    .buy-stock-content-col {
        flex: 1 1 100%;
    }
    
    .buy-stock-image-overlay {
        background: linear-gradient(to top, rgba(15, 23, 42, 0) 0%, rgba(15, 23, 42, 1) 100%);
    }
    
    .buy-stock-images-col {
        min-height: 300px;
    }
    
    .buy-stock-content-col {
        padding: 40px 30px;
    }
    
    .buy-stock-subheading {
        font-size: 32px;
    }
}
