/* Hero Section Base Styles (Core Slider Functionality - applies to all devices) */
#hero { 
    position: relative; /* Essential for absolute children to position relative to this */
    width: 100%; /* CRITICAL FIX: Ensure width is 100% of its parent (.container) */
    margin-left: 0; /* CRITICAL FIX: Removed negative margin trick */
    overflow: hidden; /* Hide anything outside the section */
    color: #fff;
    text-align: center;
    display: flow-root; 
    z-index: 1; 
    /* Height will be defined in desktop/mobile specific CSS */
}

.hero-slider .slider-item {
    position: absolute; 
    top: 0;
    left: 0;
    width: 100%; 
    height: 100%; 
    background-size: cover;
    background-position: center;
    display: flex; 
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-slider .slider-item.active {
    opacity: 1;
}

.hero-content {
    background-color: rgba(0, 0, 0, 0.5);
    padding: 40px;
    border-radius: 10px;
    max-width: 800px;
    box-sizing: border-box;
    width: 90%;
}

.hero-content h1 {
    font-size: 3.5rem; 
    margin-bottom: 20px;
    color: #fff;
}

.hero-content p {
    font-size: 1.5rem; 
    margin-bottom: 30px;
}

.hero-slider .slider-nav {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 50;
}

.slider-nav button {
    background-color: rgba(255, 255, 255, 0.7);
    border: none;
    color: #333;
    padding: 10px 15px;
    margin: 0 5px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 1.2rem;
    transition: background-color 0.3s ease;
}

.slider-nav button:hover {
    background-color: rgba(255, 255, 255, 1);
}