/**
 * Quest hero Module Styles - Fixed Layout
 * Full-width backgrounds with 1440px content container
 * Image extends beyond container to viewport edge
 * Includes shared search/social bar styles
 *
 * @package Quest
 * @version 1.4.0
 */

/* =================================================================
   hero SECTION - MAIN CONTAINER
   ================================================================= */
.quest-hero-section {
    width: 100%;
    margin: 0;
    padding: 0;
    position: relative;
    overflow: hidden;
}

/* =================================================================
   CONTENT WRAPPER - TWO COLUMN LAYOUT
   ================================================================= */
.hero-content-wrapper {
    position: relative;
    min-height: 340px;
    background: #0a0e21;
}

/* Container that holds both content and image */
.hero-inner-container {
    position: relative;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 50px;
    box-sizing: border-box;
    display: flex;
    align-items: flex-start;
    min-height: 340px;
}

/* Left Content Area - 50% of container */
.hero-left-box {
    flex: 0 0 50%;
    padding: 35px 0;
    box-sizing: border-box;
}

/* Content holder - left aligned */
.hero-content-holder {
    max-width: 600px;
    margin-left: 0;
    margin-right: auto;
}

/* Right Image Area - extends beyond container */
.hero-right-box {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    right: calc(50% - 50vw); /* Extend to viewport edge */
    overflow: hidden;
}

/* For viewports wider than 1440px */
@media (min-width: 1540px) {
    .hero-right-box {
        right: calc(-50vw + 680px + 50px); /* 720px = half of 1440px */
    }
}

/* Image fills the right box */
.hero-image {
    width: 100%;
    height: 100%;
    position: relative;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* =================================================================
   BREADCRUMB STYLING
   ================================================================= */
.hero-breadcrumb {
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-breadcrumb-link {
    color: #5AD2EE;
    text-decoration: none;
    transition: color 0.3s ease;
}

.hero-breadcrumb-link:hover {
    color: #8ae4f8;
    text-decoration: underline;
}

.hero-breadcrumb-separator {
    color: #5AD2EE;
    margin: 0 10px;
}

.hero-breadcrumb-current {
    color: #5AD2EE;
}

/* =================================================================
   TITLE STYLING
   ================================================================= */
.hero-title {
    font-size: 50px;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.2;
    margin: 0;
    letter-spacing: -0.5px;
}

/* =================================================================
   SHARED SEARCH & SOCIAL BAR
   ================================================================= */
.quest-search-social-bar {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: relative;
}

/* Context-specific styling */
.quest-search-social-bar.hero-context {
    /* Styles specific to hero sections */
}

.quest-search-social-bar.single-context {
    /* Styles specific to single posts */
    background: #fff;
}

/* Inner container - 1440px max width */
.search-social-inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 80px;
    box-sizing: border-box;
    position: relative;
}

/* Left Side - Empty */
.search-social-left {
    flex: 0 0 50%;
}

/* Right Side - Search and Social Icons (extends beyond container) */
.search-social-right {
    left: 50%;
    right: calc((100vw - 1440px) / -2 - 50px); /* Extend to viewport edge */
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 20px 50px 20px 0;
    box-sizing: border-box;
}

/* For viewports wider than 1440px */
@media (min-width: 1540px) {
    .search-social-right {
        right: calc(-50vw + 720px + 50px); /* 720px = half of 1440px */
    }
}

.quest-search {
    max-width: 429px;
    flex-shrink: 0;
}

.quest-social {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-shrink: 0;
}

/* =================================================================
   SEARCH BAR STYLING
   ================================================================= */
.quest-search-form {
    display: flex;
    align-items: center;
    background: #E6E7E8;
    border-radius: 50px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.quest-search-form:focus-within {
    box-shadow: 0 0 0 2px #5AD2EE;
}

#wrap #main .quest-search-field {
    flex: 1;
    border: none;
    background: transparent;
    padding: 5px 25px;
    font-size: 16px;
    color: #333;
    outline: none;
    font-family: "Nunito Sans", sans-serif;
}

.quest-search-field::placeholder {
    color: #666;
    opacity: 0.8;
}

#wrap #main .quest-search-submit {
    background: transparent !important;
    border: none;
    padding: 0 25px;
    cursor: pointer;
    color: #666;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quest-search-submit:hover {
    color: #0a8cbf;
}

#wrap #main .search-social-left .quest-search-submit button[type=submit] {
    background: #fff !important;
}

.quest-search-submit svg {
    width: 20px;
    height: 20px;
    color: #000;
}

/* =================================================================
   SOCIAL ICONS STYLING
   ================================================================= */
.quest-social-link {
    width: 45px;
    height: 45px;
    border: 2px solid #A9BF04;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #A9BF04;
    transition: all 0.3s ease;
    text-decoration: none;
}

.quest-social-link:hover {
    background: #5AD2EE;
    color: #0a0e21;
    transform: translateY(-2px);
}

.quest-social-link svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Platform-specific hover colors */
.quest-social-twitter {
    background: transparent;
}

.quest-social-twitter:hover {
    background: #333;
    color: #fff;
}

.quest-social-linkedin:hover {
    background: #0077b5;
    color: #fff;
}

.quest-social-facebook:hover {
    background: #1877f2;
    color: #fff;
}

.quest-social-youtube:hover {
    background: #ff0000;
    color: #fff;
}

.quest-social-instagram:hover {
    background: #E4405F;
    color: #fff;
}

.quest-social-rss:hover {
    background: #ff6600;
    color: #fff;
}

/* =================================================================
   RESPONSIVE DESIGN
   ================================================================= */

/* Hide search/social bar on mobile - 1200px and below */
@media (max-width: 1200px) {
    .quest-search-social-bar {
        display: none;
    }
}

/* Tablet - 1024px and below */
@media (max-width: 1024px) {
    .hero-inner-container {
        padding: 0 40px;
    }

    .hero-title {
        font-size: 50px;
    }

    .hero-left-box {
        padding: 40px 20px 40px 0;
    }

    /* Adjust right box calculation for smaller viewports */
    .hero-right-box {
        right: 0;
    }
}

/* Mobile - 768px and below */
@media (max-width: 768px) {
    /* Stack layout on mobile */
    .hero-inner-container {
        flex-direction: column;
        padding: 0;
        min-height: auto;
    }

    /* Title/content first on mobile */
    .hero-left-box {
        flex: none;
        width: 100%;
        padding: 40px 20px;
        order: 1; /* Title first */
        text-align: center;
    }

    .hero-left-box .hero-title {
        font-size: 32px;
    }

    .hero-content-holder {
        max-width: 100%;
    }

    /* Image second on mobile */
    .hero-right-box {
        position: relative;
        left: 0;
        right: 0;
        width: 100%;
        height: 250px;
        order: 2; /* Image second */
    }

    .hero-title {
        font-size: 28px;
    }

    .hero-breadcrumb {
        font-size: 12px;
    }
}

/* Small Mobile - 480px and below */
@media (max-width: 480px) {
    .hero-left-box {
        padding: 30px 15px;
    }

    .hero-title {
        font-size: 24px;
    }

    .hero-right-box {
        height: 200px;
    }
}

/* =================================================================
   INTEGRATION WITH OCEANWP THEME
   ================================================================= */

/* When placed after header */
body.has-topbar .quest-hero-section {
    margin-top: 0;
}

/* Adjust spacing when sticky header is active */
#site-header.stick-active + .quest-hero-section,
#head-v3.stick-active + .quest-hero-section {
    margin-top: 0;
}

/* =================================================================
   ACCESSIBILITY
   ================================================================= */

/* Focus states for keyboard navigation */
.quest-search-field:focus,
.quest-social-link:focus {
    outline: 2px solid #5AD2EE;
    outline-offset: 2px;
}

/* Screen reader only text */
.screen-reader-text {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    top: auto;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .quest-social-link {
        border: 2px solid #fff;
    }

    .quest-search-form {
        border: 2px solid #fff;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .quest-hero-section,
    .quest-hero-section * {
        animation: none !important;
        transition: none !important;
    }
}

/* =================================================================
   PRINT STYLES
   ================================================================= */
@media print {
    .quest-hero-section {
        display: none;
    }
}