/* XUI Page Header Banner Widget Style */

/* Ensure theme navigation, megamenus and header dropdowns stay on top of the page header banner */
header.site-header,
.site-header,
.primary-nav,
.header-v1,
.header-v2,
.header-v3,
.header-v4,
.header-v5,
.header-v6,
.header-v7,
.header-v8,
.header-v9,
.header-v10,
.header-v11,
.header-v12,
.header-v13,
.navbar,
.dropdown-menu,
.megamenu,
.animate-dropdown,
.electro-animate-dropdown {
    z-index: 9999 !important;
}

.xui-page-header-banner {
    position: relative;
    z-index: 1;
    width: 100%;
    min-height: 280px;
    background-color: var(--xui-ph-overlay-color, #071221);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    color: var(--xui-ph-text-color, rgba(255, 255, 255, 0.9));
    box-sizing: border-box;
    padding-top: var(--xui-ph-padding-top, 80px);
    padding-bottom: var(--xui-ph-padding-bottom, 80px);
}

/* Breakout fullwidth if inside standard theme containers */
.alignfull.xui-page-header-banner,
.ych-fullwidth-template .xui-page-header-banner {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

/* Background image element */
.xui-page-header-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 1;
    pointer-events: none;
}

/* Overlay gradient for readability (default opacity set to balanced 55%) */
.xui-page-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(
        90deg,
        rgba(7, 18, 33, var(--xui-ph-overlay-opacity, 0.55)) 0%,
        rgba(7, 18, 33, calc(var(--xui-ph-overlay-opacity, 0.55) * 0.85)) 50%,
        rgba(7, 18, 33, calc(var(--xui-ph-overlay-opacity, 0.55) * 0.5)) 100%
    );
}

/* Inner content container */
.xui-page-header-container {
    position: relative;
    z-index: 3;
    max-width: 1240px;
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
}

/* Breadcrumbs */
.xui-page-header-breadcrumb {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.2px;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.xui-page-header-breadcrumb a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: color 0.2s ease;
}

.xui-page-header-breadcrumb a:hover {
    color: var(--xui-ph-highlight-color, #F5B731);
}

.xui-page-header-breadcrumb .sep {
    color: rgba(255, 255, 255, 0.45);
    font-size: 12px;
    margin: 0 2px;
}

/* Title */
.xui-page-header-title {
    font-size: 42px;
    font-weight: 700;
    line-height: 1.15;
    margin: 0 0 14px 0;
    color: var(--xui-ph-title-color, #ffffff);
    letter-spacing: -0.5px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Highlighted word in title */
.xui-page-header-highlight {
    color: var(--xui-ph-highlight-color, #F5B731);
    font-weight: 800;
}

/* Subtitle */
.xui-page-header-subtitle {
    font-size: 22px;
    font-weight: 600;
    line-height: 1.35;
    margin: 0 0 14px 0;
    color: var(--xui-ph-subtitle-color, #ffffff);
    max-width: 860px;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

/* Description */
.xui-page-header-description {
    font-size: 15px;
    line-height: 1.6;
    margin: 0 0 28px 0;
    color: var(--xui-ph-text-color, rgba(255, 255, 255, 0.9));
    max-width: 760px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

/* CTA Button */
.xui-page-header-btn-wrap {
    margin-top: 24px;
}

.xui-page-header-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 26px;
    background-color: var(--xui-ph-btn-bg, #F5B731);
    color: var(--xui-ph-btn-text, #111827);
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(245, 183, 49, 0.3);
    transition: all 0.25s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.xui-page-header-btn:hover,
.xui-page-header-btn:focus {
    background-color: #e0a424;
    color: #000000;
    text-decoration: none;
    transform: translateX(4px);
    box-shadow: 0 6px 20px rgba(245, 183, 49, 0.45);
}

.xui-page-header-btn .btn-arrow {
    display: inline-block;
    transition: transform 0.25s ease;
}

.xui-page-header-btn:hover .btn-arrow {
    transform: translateX(3px);
}

/* Responsive Styles */
@media (max-width: 991px) {
    .xui-page-header-banner {
        padding-top: 60px;
        padding-bottom: 60px;
    }
    .xui-page-header-title {
        font-size: 34px;
    }
    .xui-page-header-subtitle {
        font-size: 19px;
    }
}

@media (max-width: 575px) {
    .xui-page-header-banner {
        padding-top: 45px;
        padding-bottom: 45px;
    }
    .xui-page-header-title {
        font-size: 28px;
    }
    .xui-page-header-subtitle {
        font-size: 17px;
    }
    .xui-page-header-description {
        font-size: 14px;
    }
    .xui-page-header-btn {
        width: 100%;
        text-align: center;
    }
}
