/*
 Theme Name: simplecorp Child
 Theme URI: https://www.runhotel.hk/
 Description: Child theme for the simplecorp theme.
 Author: RunHotel.hk
 Author URI: https://www.runhotel.hk/
 Template: simplecorp
 Version: 1.0.0
*/

/* --------------------------------------
   Place any custom CSS below this line.
   It will load after the parent theme CSS.
----------------------------------------- */

.homepage-v2-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px 80px;
}

.homepage-v2-search {
    text-align: center;
    margin-bottom: 40px;
}

.homepage-v2-search-title {
    font-size: var(--home-search-heading-font-size, 26px);
    line-height: var(--home-search-heading-line-height, 1.2);
    margin-bottom: 12px;
}

.homepage-v2-search-form {
    display: inline-flex;
    gap: 10px;
    align-items: center;
}

.homepage-v2-search-form input[type="search"] {
    flex: 0 1 var(--home-search-input-width, 320px);
    width: var(--home-search-input-width, 320px);
    max-width: 100%;
    min-width: 0;
    height: var(--home-search-input-height, 44px);
    padding: 0 14px;
    border: 1px solid #d0d4d9;
    border-radius: 6px;
    font-size: inherit;
    box-sizing: border-box;
}

.homepage-v2-search-form button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    height: var(--home-search-input-height, 44px);
    border: none;
    background-color: #68b7c6;
    color: #fff;
    border-radius: 6px;
    cursor: pointer;
}

.homepage-v2-slider {
    margin-bottom: 40px;
}

.homepage-v2-section {
    margin-bottom: 48px;
}

.homepage-v2-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.homepage-v2-section-title {
    font-size: 24px;
    margin-bottom: 0;
    font-weight: 300;
}

.homepage-v2-section-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #68b7c6;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    margin-left: auto;
}

.homepage-v2-section-more:hover {
    color: #3a9bb2;
}

.homepage-v2-section-more-icon {
    width: 22px;
    height: 22px;
    border-radius: 999px;
    border: 1px solid currentColor;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.homepage-v2-post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-bottom: 24px;
}

.homepage-v2-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.homepage-v2-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.1);
}

.homepage-v2-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.homepage-v2-card-image {
    width: 100%;
    height: auto !important;
    max-width: 100%;
    display: block;
}

.homepage-v2-card-title {
    font-size: 18px;
    padding: 16px;
    flex-grow: 1;
}

.homepage-v2-load-more-wrapper {
    text-align: center;
    margin: 16px 0 48px;
}

.homepage-v2-load-more {
    display: inline-block;
    padding: 10px 26px;
    border-radius: 999px;
    border: 1px solid #68b7c6;
    color: #68b7c6;
    text-decoration: none;
    transition: all 0.2s ease;
}

.homepage-v2-load-more:hover {
    background-color: #68b7c6;
    color: #fff;
}

.homepage-v2-load-more.is-loading {
    opacity: 0.6;
    pointer-events: none;
}

.homepage-v2-empty {
    text-align: center;
    color: #888;
    grid-column: 1 / -1;
}

@media (max-width: 768px) {
    .homepage-v2-search-form {
        flex-direction: column;
        gap: 6px;
        width: 100%;
    }

    .homepage-v2-search-title {
        font-size: calc(var(--home-search-heading-font-size, 26px) * 0.9);
        text-align: center;
    }

    .homepage-v2-search-form input[type="search"] {
        flex: none;
        width: 100%;
        height: var(--home-search-input-height-mobile, 40px);
        line-height: var(--home-search-input-height-mobile, 40px);
        padding: 0 14px;
        text-align: left;
    }

    .homepage-v2-search-form button {
        flex: none;
        width: 100%;
        height: var(--home-search-input-height-mobile, 40px);
    }

    .homepage-v2-section-header {
        flex-direction: row;
        align-items: center;
        gap: 8px;
    }

    .homepage-v2-section-title {
        font-size: 20px;
        margin-bottom: 0;
    }

    .homepage-v2-section-more {
        font-size: 15px;
    }
}


