
/* Hero Section Styles */
main.hero {
    background-image: linear-gradient(89.04deg, rgba(0, 0, 0, 0) 5.58%, #000000 103.19%), url('../../images/landing-bg.webp'); 
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
    color: white;
    padding-top: 90px;
}

.hero {
    height: 90vh; /* Full viewport height */
    display: flex;
    align-items: center;
    position: relative; 
    overflow: hidden; /* Prevents graphic overflow issues */
}

.hero-inner-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative; /* Ensure content is above overlay */
    z-index: 2;
    width: 100%;
}

.hero-content {
    flex-basis: 55%; /* Take up slightly more than half */
    padding-right: 40px; /* Space between text and graphic area */
}

.hero-content h1 {
    font-size: 2.8rem; /* Adjust size as needed */
    font-weight: bold;
    line-height: 1.3;
    margin-bottom: 25px;
    text-transform: uppercase;
    color: #fff;
}

.hero-content h1 span {
    color: #f1c40f; /* Yellow/Gold */
}

.discover-button {
    background-color: #3498db; /* Blue */
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}

.discover-button:hover {
    background-color: #2980b9; /* Darker blue */
}

.hero-graphic {
    flex-basis: 40%; /* Adjust size as needed */
    display: flex;
    justify-content: center;
    align-items: center;
    /* Using relative positioning within the flex container is often easier than absolute */
}

.hero-graphic img {
    max-width: 75%; /* Control the size relative to its container */
    height: auto;
    display: block;
    margin-right: 60px;
    margin-bottom: 20px;
    margin-top: -20px;
    /* Assuming the provided graphic is white. If not, you might need filters: */
    /* filter: brightness(0) invert(1); */
}


/* Vertical Slider Bar */
.vertical-slider {
    position: absolute;
    right: 2%;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    z-index: 3; /* Above hero content and overlay */
    margin: 8px 0;
}

.slider-bar {
    height: 100%;
    border-radius: 5px;
}

.slider-bar.blue {
    background-color: #3498db;
    width: 40px; /* Wider bar */
    margin-right: 10px;
}


.slider-bar.yellow {
    background-color: #f1c40f;
    width: 6px; /* Thinner bar */
    margin-left: 4px; /* Space between bars */
}

/* ============================
   Tablet & Mobile Breakpoints
   ============================ */

/* Medium Screens / Tablets (e.g., 992px and below) */
@media (max-width: 991.98px) {
    .hero {
        min-height: 70vh; /* Slightly reduce height */
        padding-top: 30px;
        padding-bottom: 80px; /* Adjust bottom padding */
    }

    .hero-content {
        flex-basis: 50%; /* Adjust flex basis */
        max-width: 50%;
        padding-right: 20px; /* Reduce spacing */
    }
    
    .hero-content h1{
        font-size: 2.5rem;
    }

    .hero-graphic {
        flex-basis: 45%; /* Adjust flex basis */
        max-width: 50%;
    }

    .hero-graphic img {
        max-width: 70%; /* Allow image to be slightly larger relative to its container */
        margin-right: 0px;
    }

    .vertical-slider {
        right: 3%;
        height: 40vh;
        max-height: 250px;
    }
    .slider-bar.blue { width: 30px; }
    .slider-bar.yellow { margin-left: 6px;}

}

@media (max-width: 769px) {
    .hero-content h1 {
        font-size: 2rem;
    }
}

/* Small Screens / Tablets & Large Phones (e.g., 768px and below) */
@media (max-width: 767.98px) {
    .hero {
        min-height: auto; /* Let content dictate height */
        padding-top: 80px; /* Increased padding for potentially taller stacked header */
        padding-bottom: 100px; /* Ensure space below content before controls */
        text-align: center; /* Center text on smaller screens */
    }

    .hero-inner-container {
        flex-direction: row; 
    }

    /* Order reversed from original example: Text first, then graphic */
    .hero-content {
        order: 1; /* Show text first */
        flex-basis: auto;
        width: 100%; /* Take full width */
        max-width: 600px; /* Limit max width for readability */
        padding-right: 0;
        text-align: left;
        margin-left: 20px;
    }
    
    .hero-content h1{
        font-size: 1.5rem;
    }


    .hero-graphic {
        order: 2; 
        flex-basis: auto; 
        width: 100%; 
        max-width: 60%; 
        margin-left: auto;
        margin-right: auto;
        justify-content: center; 
    }
}

/* Extra Small Screens / Phones (e.g., 576px and below) */
@media (max-width: 575.98px) {
    .hero {
        height: 50vh;
        margin: 0;
        padding-top: 0px;
        padding-bottom: 0px;
    }

    .hero-content {
         margin-left: 0px;
    }
    .hero-content h1 {
         /* Further adjust font size if needed, clamp handles some of this */
         margin-bottom: 20px;
    }

    .discover-button {
         padding: 10px 25px; /* Slightly smaller button */
         /* Font size managed by clamp */
    }

    .hero-graphic {
        max-width: 75%; /* Allow graphic to be a bit larger */
    }

}

@media (max-width: 426px) {
    .hero{
        padding-bottom: 30px;
        height: 70vh;
    }
    .hero-graphic img {
        max-width: 90%;
    }
    
    /* Hide vertical slider on small screens */
    .vertical-slider {
       display: none;
    }
}

/* Very Small Screens (Optional, e.g., 400px and below) */
@media (max-width: 376px) {
     .hero {
        padding-bottom: 0px;
        height: 60vh;
    }
    .hero-content h1 {
        font-size: 1.3rem;
    }
    .hero-graphic {
        max-width: 80%;
    }
    
    .discover-button {
        padding: 5px 20px;
        font-size: 0.7rem;
    }
    
    .slider-bar.blue {
        width: 20px;
    }
}