/* ===========================================================
   Bunbury Experiment — home.css
   Full-width, full-height welcome section
   =========================================================== */

#welcome {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    width: 100%;
    max-width: 100%;
    flex: 1;                        /* let it expand naturally inside body flex */
    margin: 0 auto;
    padding: 2rem 5%;
    box-sizing: border-box;
    overflow-x: hidden;
}

/* Left section: 2/3 width */
#welcome .welcome-left {
    flex: 0 0 66%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    text-align: left;
    padding: 0;               /* remove its padding */
    margin: 0;                /* ensure it hugs top/left of section */
    box-sizing: border-box;
}

/* Right section: 1/3 width */
#welcome .welcome-right {
    flex: 0 0 30%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: stretch;
    height: 100%;          /* fill the whole section vertically */
    min-height: 70vh;      /* ensures a visible baseline on smaller screens */
}

/* First box (News) sits at top naturally */
.news-box {
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    background-color: var(--bg-secondary);
    box-shadow: var(--shadow-soft);
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    box-sizing: border-box;
}

.news-box h3 {
    margin-top: 0;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
    color: var(--text-color);
}

.news-box + .news-box {
    margin-top: 1rem;
}

/* Bottom box anchored near footer */
.news-box.secondary {
    margin-top: auto;          /* pushes it to the bottom */
    align-self: flex-end;      /* aligns with the right edge */
    width: 100%;
    margin-bottom: 1.5rem;     /* spacing above footer */
}

/* Responsive fallback */
@media (max-width: 900px) {
    #welcome {
        flex-direction: column;
        width: 100%;
        padding: 1rem;
        min-height: auto;
    }

    #welcome .welcome-left,
    #welcome .welcome-right {
        flex: 1 1 100%;
        padding: 1rem 0;
    }
}

h2 {
    margin-top: 0;
}
