.hero-section {
    display: flex;
    align-items: flex-end;
    min-height: calc(100vh - 180px);
    color: white;
    box-sizing: border-box;
    padding: 90px 0 140px;
}

.hero-section .container {
    align-items: flex-end;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 30px;
}

.hero-section h1 {
    font-size: 48px;
    max-width: 60%;
    text-align: left;
    margin: 0; /* Ensures gap works correctly */
}

/* Button Styling for Hero */
.btn-hero-discover {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    background-color: white;
    color: black;
    text-decoration: none;
    font-size: 16px;
    border-radius: 50px;
    font-weight: 500;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.btn-hero-discover:hover {
    background-color: #f0f0f0;
    transform: translateY(-3px);
}

/* Responsive home.css */
@media (max-width: 1024px) {
    .hero-section {
        align-items: center;
        padding-bottom: 90px;
    }
    .hero-section h1 {
        font-size: 40px;
        max-width: 80%;
    }
}
@media (max-width: 768px) {
    .btn-hero-discover {
        margin-bottom: 90px;
        align-self: flex-start;
    }
    .hero-section h1 {
        font-size: 32px;
        max-width: 100%;
        margin-bottom: 10px; /* Reduced to prioritize button margin */
    }
    .hero-section {
        padding-top: 120px;
        padding-bottom: 80px;
        min-height: auto;
    }
    .hero-content {
        gap: 20px;
        align-items: center;
        text-align: center;
        width: 100%;
    }
}

/* Specific fixes for iPad landscape (between phone and desktop widths) */
@media (min-width: 769px) and (max-width: 1024px) and (orientation: landscape) {
    .hero-section {
        align-items: center;
        min-height: calc(100vh - 140px);
        padding: 60px 0 120px;
    }
    .hero-section h1 {
        font-size: 36px;
        max-width: 85%;
        line-height: 1.08;
    }
    .hero-content { align-items: center; text-align: center; }
    .container { width: 92%; }
}

/* FOUC Home Prevention - ensure visible if JS fails */
.home-page header,
.home-page footer,
.home-page .hero-content h1,
.home-page .hero-content .btn-hero-discover {
    opacity: 1;
}
