/* Index Page Styles */

:root {
    --index-color-primary: #581E8E;
    --index-color-dark: #290D47;
}

html,
body {
    height: 100vh;
    max-height: 100vh;
    overflow: hidden;
}

html,
body,
.ui.pushable {
    background: var(--index-color-primary);
    background: linear-gradient(10deg, var(--index-color-primary) 0%, var(--index-color-primary) 20%, var(--index-color-dark) 50%, var(--index-color-dark) 100%) !important;
    background-attachment: fixed !important;
}

/* Allow sidebar overlay to render correctly */
.ui.pushable {
    overflow: hidden !important;
}

.pusher {
    overflow: hidden !important;
    height: 100vh;
    max-height: 100vh;
}

.pusher,
.ui.vertical.segment,
.ui.inverted.vertical.masthead.segment {
    background: transparent !important;
}

/* Hero layout */
.masthead {
    padding: 1.5em 0 2em !important;
    height: 100vh;
    display: flex !important;
    flex-direction: column;
    justify-content: flex-start;
}

.hero-content {
    padding: 2em 0;
    flex: 1;
    display: flex;
    align-items: center;
}

.hero-headline {
    font-size: 2.4em !important;
}

.hero-image {
    max-width: 100%;
    max-height: 55vh;
    width: auto;
}

/* Navbar hover */
#index-nav .item:hover {
    background: transparent !important;
    color: var(--index-color-primary) !important;
}


#index-nav .brand-name {
    color: #fff !important;
}

/* View Plans button */
.hero-content .ui.primary.button {
    background-color: #7D4AAD !important;
}

.hero-content .ui.primary.button:hover {
    background-color: #8e66b4 !important;
}

/* Index Sidebar */
#index-sidebar {
    background: linear-gradient(180deg, var(--index-color-primary) 0%, var(--index-color-dark) 100%) !important;
    border-right: 1px solid rgba(255, 255, 255, 0.1) !important;
}

#index-sidebar .sidebar-header {
    padding: 1.2em 1.4em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    margin-bottom: 0.5em;
}

#index-sidebar .sidebar-header .brand-name {
    color: #fff !important;
    font-size: 1.4em;
}

#index-sidebar .item {
    color: rgba(255, 255, 255, 0.85) !important;
    border-radius: 6px !important;
    margin: 2px 8px !important;
}

#index-sidebar .item:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
}

#index-sidebar .active.item {
    background: rgba(255, 255, 255, 0.15) !important;
    color: #fff !important;
}

/* Mobile: invert column order (image first, text second) */
@media only screen and (max-width: 767px) {
    .hero-content .ui.stackable.grid {
        display: flex !important;
        flex-direction: column !important;
    }

    .hero-content .ui.stackable.grid .column:last-child {
        order: -1;
    }

    .hero-image {
        max-height: 28vh !important;
    }

    .hero-headline {
        font-size: 1.6em !important;
        word-break: break-word;
        overflow-wrap: break-word;
    }

    .hero-content,
    .hero-content .ui.stackable.grid,
    .hero-content .ui.stackable.grid .column {
        margin: 0 !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }

    .hero-content .ui.container {
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    .hero-content .ui.stackable.grid .column {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}