.hero-overlay-darker {
    background-color: rgba(0, 0, 0, 0.5); /* Increased opacity for darker overlay */
}

.hero-shadow-box {
    background-color: rgba(0, 0, 0, 0.5);
    padding: 20px 30px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    display: inline-block;
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .hero-shadow-box {
        padding: 15px 20px; /* Reduced padding for mobile */
        border-radius: 8px; /* Slightly smaller border radius */
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3); /* Lighter shadow for mobile */
        display: block; /* Change to block for better mobile layout */
        width: 100%; /* Full width on mobile */
        max-width: 300px; /* Limit max width */
        margin: 0 auto; /* Center on mobile */
    }

    /* Increase font sizes for better mobile readability only in content-8 */
    .content-8 .title {
        font-size: 2.5em; /* Larger title font on mobile */
    }

    .content-8 .text-sm {
        font-size: 1.6em; /* Larger text font on mobile */
    }

    .content-8 .btn {
        font-size: 1.4em; /* Larger button font on mobile */
        padding: 12px 24px; /* Adjust button padding */
    }

    /* Make container full-width on mobile only for content-8 to prevent centering */
    .content-8 .container {
        width: 100% !important;
        margin: 0 !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    /* Ensure left text alignment */
    .title, .text-sm {
        text-align: left !important;
    }

    /* Style button for dark background */
    .btn-primary {
        background-color: #fff !important;
        color: #000 !important;
        border: 1px solid #fff !important;
    }
}