/* Main two-column page layout */
.home-page-grid {
    display: flex;
    align-items: flex-start;
    gap: 28px;
    margin: 10px 0 0;
}

.home-main-column {
    flex: 1 1 auto;
    min-width: 0;
}

.home-main-column .home-category-grid {
    margin-top: 28px;
}

.home-main-column .home-category-grid [class*="span"] {
    margin-left: 0;
}

.home-main-column .home-category-grid .span6 {
    width: calc(50% - 12px);
    margin-right: 24px;
    margin-bottom: 28px;
    float: left;
}

.home-main-column .home-category-grid .span6:nth-child(2n) {
    margin-right: 0;
}

.home-main-column .home-category-grid:before,
.home-main-column .home-category-grid:after {
    content: "";
    display: table;
}

.home-main-column .home-category-grid:after {
    clear: both;
}

/* Top bubble */
.home-intro-bubble {
    background: #ffffff;
    border: 1px solid #e6e1dc;
    border-radius: 20px;
    padding: 28px 30px 26px;
    box-shadow: 0 14px 34px rgba(0,0,0,0.08);
}

.home-bubble-kicker {
    margin: 0 0 10px;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fb6445;
}

.home-intro-bubble h1 {
    margin: 0 0 12px;
    font-size: 34px;
    line-height: 1.1;
}

.home-bubble-text {
    margin: 0 0 18px;
    font-size: 17px;
    line-height: 1.68;
    color: #4d4d4d;
}

/* Search */
.home-search-shell {
    margin: 0;
}

.home-search-label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 700;
    color: #333333;
}

.home-search-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

.home-search-input {
    width: 100%;
    min-height: 48px;
    padding: 0 16px;
    border: 1px solid #d7d0ca;
    border-radius: 999px;
    box-sizing: border-box;
    font-size: 15px;
    color: #222222;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.03);
    margin: 0;
}

.home-search-input:focus {
    outline: none;
    border-color: #fb6445;
    box-shadow: 0 0 0 3px rgba(251,100,69,0.12);
}

.home-search-button {
    min-width: 126px;
    min-height: 48px;
    border: 0;
    border-radius: 999px;
    background: #fb6445;
    color: #ffffff;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
}

.home-search-button:hover {
    background: #ea573a;
    transform: translateY(-1px);
}

.home-search-note {
    margin: 10px 0 0;
    font-size: 13px;
    line-height: 1.5;
    color: #7a736d;
}

/* Sidebar truly on the side */
.home-quick-sidebar {
    flex: 0 0 250px;
    width: 250px;
    position: relative;
}

.home-quick-sidebar-inner {
    position: sticky;
    top: 110px;
    background: #fffaf7;
    border: 1px solid #eaded6;
    border-radius: 18px;
    padding: 20px 18px;
    box-shadow: 0 12px 26px rgba(0,0,0,0.06);
}

.home-quick-sidebar-inner h2 {
    margin: 0 0 8px;
    font-size: 20px;
    line-height: 1.15;
}

.home-quick-sidebar-copy {
    margin: 0 0 14px;
    font-size: 13px;
    line-height: 1.55;
    color: #6f675f;
}

.quick-link-group {
    margin-bottom: 12px;
}

.quick-link-main {
    display: block;
    padding: 10px 12px;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid #eee2da;
    color: #333333;
    font-weight: 800;
    text-decoration: none;
    transition: background .18s ease, border-color .18s ease, transform .18s ease, color .18s ease;
}

.quick-link-main:hover {
    background: #fff1ec;
    border-color: #f6b6a6;
    color: #c74e35;
    transform: translateX(2px);
    text-decoration: none;
}

.quick-link-sub {
    padding: 7px 4px 0 12px;
}

.quick-link-sub a {
    display: block;
    margin-bottom: 5px;
    font-size: 12px;
    line-height: 1.4;
    color: #6b635d;
    text-decoration: none;
}

.quick-link-sub a:hover {
    color: #fb6445;
    text-decoration: none;
}

/* Category hover tiles */
.category-tile {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 16px;
}

.category-tile img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 16px 34px rgba(0,0,0,0.16);
    transition: transform .22s ease, box-shadow .22s ease, opacity .22s ease;
}

.category-tile:hover img {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 24px 42px rgba(0,0,0,0.22);
    opacity: 0.22;
}

.category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    text-align: center;
    background: rgba(255,255,255,0.74);
    opacity: 0;
    transition: opacity .22s ease;
    pointer-events: none;
    border-radius: 16px;
}

.overlay-line {
    display: block;
    text-shadow: none;
    transform: translateY(8px);
    transition: transform .22s ease;
    text-transform: none;
}

.overlay-line-1,
.overlay-line-4 {
    color: #000000;
    font-size: 15px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.overlay-line-1 {
    margin-bottom: 8px;
}

.overlay-line-2,
.overlay-line-3 {
    color: #fb6445;
    font-size: 30px;
    line-height: 1.04;
    font-weight: 800;
    letter-spacing: 0.01em;
}

.overlay-line-4 {
    margin-top: 10px;
}

.category-tile:hover .category-overlay {
    opacity: 1;
}

.category-tile:hover .category-overlay .overlay-line {
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 979px) {
    .home-page-grid {
        display: block;
    }

    .home-quick-sidebar {
        width: auto;
        margin-top: 24px;
    }

    .home-quick-sidebar-inner {
        position: static;
    }
}

@media (max-width: 767px) {
    .home-intro-bubble {
        padding: 22px 18px 20px;
        border-radius: 16px;
    }

    .home-intro-bubble h1 {
        font-size: 28px;
    }

    .home-bubble-text {
        font-size: 16px;
        line-height: 1.6;
    }

    .home-search-row {
        display: block;
    }

    .home-search-button {
        width: 100%;
        margin-top: 10px;
    }

    .home-main-column .home-category-grid .span6 {
        width: 100%;
        margin-right: 0;
        float: none;
        margin-bottom: 20px;
    }

    .category-overlay {
        opacity: 0;
    }

    .overlay-line-1,
    .overlay-line-4 {
        font-size: 13px;
    }

    .overlay-line-2,
    .overlay-line-3 {
        font-size: 22px;
    }

    .home-quick-sidebar {
        margin-top: 28px;
    }
}
