/* ============================================================
   IRF INDIA — HOMEPAGE LAYOUT
   Homepage-only layout layer.
   Does not change PHP/data, sponsor markup, navigation or goal logic.
   ============================================================ */

.home-page-wrapper {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    column-gap: 24px;
    width: min(1480px, calc(100% - 48px));
    margin: 0 auto;
    padding: 18px 0 36px;
    box-sizing: border-box;
    align-items: start;
}

.home-main-content {
    width: 100%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.home-page-wrapper > * {
    min-width: 0;
}

/* Hero fills the complete left column. */
.home-main-content > .irf-home-hero-stage {
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
}

/* Sponsored begins at exactly the same top coordinate as the hero. */
.home-sponsored-column {
    width: 300px;
    min-width: 0;
    align-self: start;
    position: sticky;
    top: 16px;
    z-index: 2;
    box-sizing: border-box;
}

.home-sponsored-column > * {
    width: 100%;
    max-width: 100%;
}

/* The old hero-row is no longer part of the active hero architecture. */
.home-main-content > .home-hero-row {
    display: none !important;
}

/* Keep existing lower homepage sections full-width inside the left column. */
.home-main-content > .home-intro,
.home-main-content > .ql-section {
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 1120px) {
    .home-page-wrapper {
        grid-template-columns: minmax(0, 1fr) 280px;
        column-gap: 18px;
        width: min(100%, calc(100% - 32px));
    }

    .home-sponsored-column {
        width: 280px;
    }
}

@media (max-width: 899px) {
    .home-page-wrapper {
        display: flex;
        flex-direction: column;
        width: 100%;
        padding: 14px 12px 30px;
        gap: 30px;
    }

    .home-main-content {
        width: 100%;
        gap: 24px;
    }

    .home-sponsored-column {
        position: static;
        width: 100%;
        order: 2;
    }
}

@media (max-width: 640px) {
    .home-page-wrapper {
        padding: 10px 10px 24px;
        gap: 24px;
    }

    .home-main-content {
        gap: 22px;
    }
}