﻿/* Home Content Section */
.home-content {
    display: flex;
    width: 90%; /* 90% width by default on smaller screens */
    max-width: 1236px; /* Keep a max width on larger screens */
    padding: 24px;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    border-radius: 25px;
    border: 2.5px solid #EAEAEA;
    background: #FFF;
    box-shadow: 0px 0px 14px 0px rgba(0, 0, 0, 0.15);
    margin: -60px auto 0 auto; /* Negative top margin in portrait */
    position: relative;
    box-sizing: border-box; /* Ensure padding fits properly */
}

/* Larger desktop screens (≥1024px): fix content width to 1236px */
@media (min-width: 1024px) {
    .home-content {
        width: 1236px;
    }
}

/* Landscape mode on mobile/tablets (orientation: landscape + smaller than 1024px) */
@media (orientation: landscape) and (max-width: 1024px) {
    .home-content {
        width: 100%; /* Expand to full width */
        max-width: 100%; /* Remove the 1236px cap in landscape */
        margin: 20px auto 0 auto; /* Remove negative margin so it doesn't force overflow */
        padding: 16px;
        border-radius: 10px;
    }
}

/* Home Heading */
.home-heading {
    align-self: stretch;
    color: #4DC24D;
    font-family: "Inter Tight";
    font-size: 28px;
    font-style: normal;
    font-weight: 600;
    line-height: 31px;
}

/* Content Section Divider */
.home-divider {
    height: 1px;
    align-self: stretch;
    background: #EAEAEA;
    width: 100%;
}

/* Overview Section */
.home-overview {
    width: 100%;
}

.overview-title {
    align-self: stretch;
    color: #000;
    font-family: "Inter Tight";
    font-size: 24px;
    font-style: normal;
    font-weight: 600;
    line-height: 36px;
}

.overview-text {
    width: 100%;
    color: #000;
    font-family: Inter, sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 24px;
    word-wrap: break-word; /* wrap long words */
    overflow-wrap: break-word;
    word-break: break-word; /* additional fallback for older browsers */
}

/* Responsive adjustments for mobile portrait (≤768px) */
@media (max-width: 768px) {
    .home-content {
        width: 100%;
        padding: 16px;
        margin: 20px auto 0 auto;
        border-radius: 10px;
    }

    .home-heading {
        font-size: 24px;
    }

    .overview-title {
        font-size: 20px;
    }
}

/* (Optional) Slightly reduce text size in landscape if needed */
@media (orientation: landscape) and (max-width: 768px) {
    .overview-text {
        font-size: 15px; /* Slightly smaller font in landscape */
        line-height: 22px;
    }
}

.hero-banner {
    width: 100%;
    overflow: hidden;
    position: relative;
    z-index: 0;
}

    .hero-banner img {
        width: 100%;
        object-fit: cover;
        display: block;
    }