:root {
    --hp-bg: #FFFFF8;
    --hp-white: #ffffff;
    --hp-jade: #5F8575;
    --hp-jade-light: #7DA08E;
    --hp-jade-dark: #4A6B5C;
    --hp-text: #2D2D2D;
    --hp-text-muted: #6B7280;
    --hp-border: rgba(95, 133, 117, 0.12);
    --hp-shadow: 0 2px 16px rgba(0,0,0,0.06);
    --hp-radius: 16px;
}

.homepage-body {
    background: var(--hp-bg);
}

.homepage-body .page-container {
    padding-top: 0;
    margin-top: 0;
}

/* ── Homepage Hero Section ──────────────────────────────────────── */
.hp-hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-image:
        linear-gradient(to bottom, rgba(0,0,0,0.40), rgba(0,0,0,0.54)),
        url("/static/images/homepage-hero.jpg");
    background-size: cover;
    background-position: center;
}

.hp-hero-inner {
    text-align: center;
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    padding: 120px 32px 80px;
}

.hero-title {
    margin-bottom: 48px;
}

.enso-hero {
    font-family: var(--font-display);
    font-size: clamp(42px, 6vw, 72px);
    font-weight: 300;
    letter-spacing: 0.18em;
    line-height: 1.1;
    color: #ffffff;
    margin: 0;
}

.enso-tagline {
    font-family: var(--font-body);
    font-size: clamp(16px, 1.6vw, 20px);
    font-weight: 400;
    color: rgba(255,255,255,0.8);
    margin-top: 12px;
    margin-bottom: 0;
}

.hp-hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.hp-navbar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    padding-top: 24px;
}

.hp-navbar-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.hp-nav-left {
    flex-shrink: 0;
}

.hp-nav-center {
    display: flex;
    align-items: center;
    gap: 24px;
    flex: 1;
    justify-content: center;
}

.hp-nav-right {
    flex-shrink: 0;
}

.hp-logo-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.22);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.35);
    border-radius: 999px;
    padding: 6px 18px 6px 8px;
    text-decoration: none;
    color: var(--hp-white);
    transition: background 0.2s;
    height: 44px;
}

/* Icon-only variant: no wordmark, just the enso symbol */
.hp-logo-pill--icon {
    padding: 8px 12px;
    gap: 0;
}
.hp-logo-pill--icon .hp-logo-img {
    height: 26px;
}

.hp-logo-pill:hover {
    background: rgba(255,255,255,0.32);
    color: var(--hp-white);
    text-decoration: none;
}

.hp-logo-img {
    height: 32px;
    width: auto;
    display: block;
    object-fit: contain;
    flex-shrink: 0;
}

.hp-logo-text {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 1.15rem;
    letter-spacing: 0.08em;
}

/* New brand symbol icon in the navbar */
.hp-symbol-icon {
    width: 25px;
    height: 28px;
    display: block;
    flex-shrink: 0;
}

.hp-nav-link {
    color: #ffffff !important;
    font-family: 'Noto Sans', sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none !important;
    letter-spacing: 0.01em;
    transition: opacity 0.2s;
    white-space: nowrap;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.hp-nav-link:hover {
    color: #ffffff !important;
    opacity: 0.8;
    text-decoration: none !important;
}

.hp-nav-dropdown {
    position: relative;
}

.hp-nav-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--hp-white);
    border: 1px solid var(--hp-border);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    padding: 8px 0;
    min-width: 180px;
    z-index: 1050;
}

.hp-nav-dropdown:hover .hp-nav-dropdown-menu {
    display: block;
}

.hp-nav-dropdown-menu a {
    display: block;
    padding: 10px 20px;
    color: var(--hp-text);
    font-size: 0.875rem;
    text-decoration: none;
    transition: background 0.15s;
}

.hp-nav-dropdown-menu a:hover {
    background: rgba(95,133,117,0.08);
    color: var(--hp-jade);
}

.hp-login-pill {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.22);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.35);
    border-radius: 999px;
    padding: 0 20px;
    height: 44px;
    color: #ffffff;
    font-family: 'Noto Sans', sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s;
    white-space: nowrap;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.hp-login-pill:hover {
    background: rgba(255,255,255,0.32);
    color: #ffffff;
    text-decoration: none;
}

.hp-mobile-toggle {
    display: none;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 12px;
    color: var(--hp-white);
    font-size: 1.2rem;
    padding: 8px 12px;
    cursor: pointer;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

nav.hp-navbar .hp-mobile-menu {
    display: none;
    max-width: 1280px;
    margin: 12px auto 0;
    padding: 16px 32px;
    background: rgba(30, 30, 28, 0.92) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 16px;
    flex-direction: column;
    gap: 4px;
}

nav.hp-navbar .hp-mobile-menu a,
nav.hp-navbar .hp-mobile-menu a:link,
nav.hp-navbar .hp-mobile-menu a:visited {
    color: #ffffff !important;
    font-size: 0.95rem;
    text-decoration: none;
    padding: 10px 16px;
    border-radius: 8px;
    transition: background 0.15s;
}

nav.hp-navbar .hp-mobile-menu a:hover,
nav.hp-navbar .hp-mobile-menu a:active {
    background: rgba(255,255,255,0.1);
    color: #ffffff !important;
}

nav.hp-navbar .hp-mobile-menu .hp-mobile-login {
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,0.2);
}

.hp-hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #3a5a4a;
    margin-bottom: 2rem;
}

.hp-hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
    filter: brightness(1.15);
}

.hp-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.30) 100%);
}

.hp-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 680px;
    padding: 2rem 1.5rem;
}

.hp-glass-card {
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 24px;
    padding: 3rem 2.5rem;
}

.hp-hero-title {
    font-family: 'Inter', sans-serif;
    font-weight: 200;
    font-size: 3.2rem;
    color: var(--hp-white);
    margin-bottom: 1.6rem;
    letter-spacing: 0.18em;
    line-height: 1.15;
    text-transform: uppercase;
}

.hp-hero-sub {
    font-family: 'Noto Sans', sans-serif;
    font-size: 1.125rem;
    color: rgba(255,255,255,0.88);
    margin-bottom: 2.75rem;
    font-weight: 400;
    letter-spacing: 0.01em;
}

.hp-search-form {
    display: flex;
    gap: 0;
    background: var(--hp-white);
    border-radius: 42px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,0.13);
}

.hp-search-form input,
.hp-search-form select {
    border: none;
    padding: 11px 18px;
    font-size: 0.9rem;
    background: transparent;
    outline: none;
    flex: 1;
    min-width: 0;
    font-family: 'Noto Sans', sans-serif;
    color: var(--hp-text);
}

.hp-search-form input::placeholder {
    color: var(--hp-text-muted);
}

.hp-search-form input[type="date"] {
    color: var(--hp-text-muted);
    max-width: 160px;
}

.hp-search-form input[type="date"]::-webkit-calendar-picker-indicator {
    opacity: 0.5;
    cursor: pointer;
}

.hp-search-form select {
    color: var(--hp-text-muted);
    appearance: none;
    cursor: pointer;
}

.hp-search-form .hp-search-divider {
    width: 1px;
    background: var(--hp-border);
    margin: 10px 0;
}

.hp-search-btn {
    background: var(--hp-jade);
    color: var(--hp-white);
    border: none;
    padding: 11px 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 7px;
    font-weight: 500;
    font-size: 0.88rem;
    transition: background 0.2s;
    white-space: nowrap;
}

.hp-search-btn:hover {
    background: var(--hp-jade-dark);
}

.hp-section {
    padding: 5rem 0;
}

.hp-section-alt {
    background: var(--hp-white);
}

.hp-section-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 2.5rem;
}

.hp-section-title {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 2rem;
    color: var(--hp-text);
    letter-spacing: -0.01em;
}

.hp-view-all {
    color: var(--hp-jade);
    font-size: 0.925rem;
    font-weight: 500;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s;
}

.hp-view-all:hover {
    color: var(--hp-jade-dark);
    text-decoration: none;
}

.hp-card {
    background: var(--hp-white);
    border-radius: var(--hp-radius);
    overflow: hidden;
    box-shadow: var(--hp-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
    color: var(--hp-text);
    display: block;
    height: 100%;
}

.hp-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    color: var(--hp-text);
    text-decoration: none;
}

.hp-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: #e8ede9;
}

.hp-card-body {
    padding: 1.25rem;
}

.hp-card-tag {
    display: inline-block;
    background: rgba(95,133,117,0.1);
    color: var(--hp-jade);
    font-size: 0.75rem;
    font-weight: 500;
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.hp-card-title {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 1.05rem;
    margin-bottom: 0.35rem;
    line-height: 1.3;
}

.hp-card-meta {
    font-size: 0.85rem;
    color: var(--hp-text-muted);
    margin-bottom: 0.25rem;
}

.hp-card-meta i {
    width: 16px;
    text-align: center;
    margin-right: 4px;
    color: var(--hp-jade-light);
}

.hp-location-card .hp-card-body {
    padding: 1rem 1.25rem;
}

.hp-location-city {
    font-size: 0.8rem;
    color: var(--hp-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.hp-location-name {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 1.05rem;
    margin-bottom: 0.35rem;
}

.hp-location-rooms {
    font-size: 0.85rem;
    color: var(--hp-text-muted);
}

.hp-facilitator-item {
    text-align: center;
    text-decoration: none;
    color: var(--hp-text);
    display: block;
    transition: transform 0.2s ease;
}

.hp-facilitator-item:hover {
    transform: translateY(-4px);
    color: var(--hp-text);
    text-decoration: none;
}

.hp-facilitator-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1rem;
    display: block;
    border: 3px solid var(--hp-white);
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    background: #e8ede9;
    flex-shrink: 0;
}

.hp-facilitator-item {
    min-height: 200px;
}

.hp-facilitator-name {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 1rem;
    margin-bottom: 0.2rem;
}

.hp-facilitator-specialty {
    font-size: 0.85rem;
    color: var(--hp-text-muted);
}

.hp-fac-carousel-wrapper {
    position: relative;
}
.hp-fac-carousel-track {
    display: flex;
    gap: 1.25rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-bottom: 0.5rem;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.hp-fac-carousel-track::-webkit-scrollbar {
    display: none;
}
.hp-fac-card {
    flex: 0 0 180px;
    text-align: center;
}
.hp-fac-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-70%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.95);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    color: var(--hp-text);
    font-size: 0.9rem;
    transition: background 0.2s;
}
.hp-fac-carousel-btn:hover {
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.hp-fac-prev { left: -14px; }
.hp-fac-next { right: -14px; }
.hp-fac-hire-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.78rem;
    color: var(--hp-jade);
    text-decoration: none;
    font-weight: 500;
    margin-top: 0.35rem;
    transition: color 0.2s;
}
.hp-fac-hire-link:hover {
    color: #4A6B5C;
    text-decoration: underline;
}
.hp-fac-hire-link i {
    font-size: 0.7rem;
}

.hp-pro-card {
    background: var(--hp-white);
    border: 1px solid var(--hp-border);
    border-radius: var(--hp-radius);
    padding: 2rem;
    text-align: center;
    text-decoration: none;
    color: var(--hp-text);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 100%;
}

.hp-pro-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--hp-shadow);
    color: var(--hp-text);
    text-decoration: none;
}

.hp-pro-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(95,133,117,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--hp-jade);
}

.hp-pro-title {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 1.1rem;
}

.hp-pro-desc {
    font-size: 0.875rem;
    color: var(--hp-text-muted);
    line-height: 1.5;
}

.hp-empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--hp-text-muted);
    font-size: 0.95rem;
}

.hp-no-img-placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #e8ede9 0%, #d4ddd7 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--hp-jade-light);
    font-size: 2rem;
    gap: 0.5rem;
}

.hp-no-img-placeholder span {
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

@media (max-width: 991px) {
    .hp-nav-center {
        display: none;
    }

    .hp-nav-right {
        display: none;
    }

    .hp-mobile-toggle {
        display: flex;
    }

    nav.hp-navbar .hp-mobile-menu.open {
        display: flex;
    }

    .hp-navbar-inner {
        padding: 0 20px;
    }
}

@media (max-width: 768px) {
    .hp-hero {
        min-height: 70vh;
    }

    .hp-hero-title {
        font-size: 2.2rem;
    }

    .hp-hero-sub {
        font-size: 1.05rem;
    }

    .hp-glass-card {
        padding: 1.5rem 1.2rem;
    }

    .hp-search-form {
        flex-direction: column;
        border-radius: 14px;
        gap: 0;
    }

    .hp-search-form input,
    .hp-search-form select {
        padding: 12px 16px;
        font-size: 0.9rem;
        flex: 1 1 100%;
        width: 100%;
        min-width: 0;
        border-bottom: 1px solid var(--hp-border);
    }

    .hp-search-form input[type="date"] {
        max-width: none;
        color: var(--hp-text-muted);
    }

    .hp-search-form .hp-search-divider {
        display: none;
    }

    .hp-search-btn {
        border-radius: 0 0 14px 14px;
        justify-content: center;
        padding: 13px;
        flex: 1 1 100%;
        font-size: 0.9rem;
    }

    .hp-grid-3,
    .hp-grid-4 {
        grid-template-columns: 1fr;
    }

    .hp-section {
        padding: 3rem 0;
    }

    .hp-section-title {
        font-size: 1.6rem;
    }

    .hp-section-header {
        flex-direction: column;
        gap: 0.5rem;
    }

    .hp-facilitator-avatar {
        width: 90px;
        height: 90px;
    }

    .hp-navbar {
        padding-top: 16px;
    }
}

@media (max-width: 576px) {
    .hp-hero-title {
        font-size: 1.85rem;
    }

    .hp-glass-card {
        padding: 1.2rem 0.8rem;
    }

    .hp-search-form input,
    .hp-search-form select {
        padding: 8px 12px;
        font-size: 0.82rem;
    }

    .hp-search-btn {
        padding: 10px;
        font-size: 0.85rem;
    }

    .hp-navbar {
        padding-top: 12px;
    }

    .hp-logo-pill {
        height: 40px;
        padding: 4px 14px 4px 6px;
    }

    .hp-logo-img {
        width: 24px;
        height: 24px;
    }

    .hp-logo-text {
        font-size: 1rem;
    }
}

main.page-container.hp-full-width {
    max-width: 100%;
    padding: 0;
}
