/**
 * Page Title Block - Frontend Styles
 * Matching Figma Design
 */

.page-title-block {
    background-color: #074975;
    width: 100%;
    height: auto; /* Fixed height from Figma */
    overflow: hidden;
    position: relative;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.page-title-container {
    display: flex;
    height: 408px; /* Fixed height from Figma */
    width: 100%;
    max-width: 1728px; /* Max width from Figma */
    padding: 0 150px;
    margin: 0 auto;
}

.page-title-content-panel {
    flex: 0 0 55%; /* Increased from 50% */
    background-color: #074975; /* Primary One from Figma */
    display: flex;
    align-items: center; /* Vertically center content */
    padding-left: 0px;
    position: relative;
    box-sizing: border-box;
}

.page-title-content {
    max-width: 448px; /* Content width from Figma */
    display: flex;
    flex-direction: column;
    gap: 24px; /* Gap between headline and subheadline from Figma */
}

.page-title-breadcrumb {
    margin-bottom: 0;
}

.page-title-breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 8px;
}

.page-title-breadcrumb-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.page-title-breadcrumb-link {
    color: #50D8FF; /* Primary Three from Figma */
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    font-weight: 400;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-title-breadcrumb-link:hover {
    color: #ffffff; /* Base UI-Light from Figma */
    text-decoration: underline;
}

.page-title-breadcrumb-current {
    color: #ffffff; /* Base UI-Light from Figma */
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    font-weight: 400;
}

.page-title-breadcrumb-separator {
    color: #50D8FF; /* Primary Three from Figma */
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    font-weight: 400;
    margin: 0 4px;
}

.page-title-headline {
    color: #ffffff; /* Base UI-Light from Figma */
    font-family: 'Outfit', sans-serif;
    font-size: 48px; /* Display Bold 64 from Figma */
    font-weight: 400; /* Bold weight from Figma */
    line-height: 1.03125em; /* From Figma */
    margin: 0;
    text-align: left;
    /* text-transform: uppercase; Uppercase from Figma */
}

.page-title-subheadline {
    color: #50D8FF; /* Primary Three from Figma */
    font-family: 'Outfit', sans-serif;
    font-size: 24px; /* Headline Regular 24 from Figma */
    font-weight: 400; /* Regular weight from Figma */
    line-height: 1.333em; /* From Figma */
    margin: 0;
    text-align: left;
    max-width: 336px; /* Width from Figma */
}

.page-title-buttons {
    display: flex;
    flex-direction: row;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.page-title-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.5em;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    text-align: center;
}

.page-title-button--get-started {
    background-color: #B4E850; /* Primary Green from Figma */
    color: #28323C; /* Text Dark from Figma */
}

.page-title-button--get-started:hover {
    background-color: #9FD03A;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(180, 232, 80, 0.3);
}

.page-title-button--apply-now {
    background-color: transparent;
    color: #ffffff; /* Base UI-Light from Figma */
    border: 2px solid #ffffff;
}

.page-title-button--apply-now:hover {
    background-color: #ffffff;
    color: #074975; /* Primary One from Figma */
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

.page-title-image-column {
    flex: 0 0 45%; /* Reduced from 50% */
    background-color: #ACB4BC; /* Medium Gray from Figma */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.page-title-image-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-title-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.page-title-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ACB4BC; /* Medium Gray from Figma */
}

.placeholder-text {
    color: #DADEE0; /* Base UI-Two from Figma */
    font-family: 'Avenir Next', sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.25em;
    text-align: center;
}

/* Block Alignment Support */
.page-title-block.alignwide {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.page-title-block.alignfull {
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

.page-title-block.alignfull .page-title-container {
    max-width: 100%;
}

/* Fix for editor - prevent overflow */
.block-editor-block-list__layout .page-title-block.alignfull,
.editor-styles-wrapper .page-title-block.alignfull,
.wp-block-acf-page-title .page-title-block.alignfull {
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
}

/* Responsive Design */
@media (max-width: 1280px) {
    .page-title-content-panel {
        padding-left: 0px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    /* Tablet styles - Background image with full overlay, centered content */
    .page-title-block {
        height: auto;
        min-height: 408px;
        position: relative;
    }
    
    .page-title-container {
        height: auto;
        min-height: 408px;
        flex-direction: column;
        padding: 0;
        position: relative;
    }
    
    /* Image as background - positioned absolutely behind content */
    .page-title-image-column {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 1;
        min-height: 408px;
    }
    
    .page-title-image-wrapper {
        width: 100%;
        height: 100%;
    }
    
    .page-title-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    /* Content panel with semi-transparent dark overlay covering full area */
    .page-title-content-panel {
        position: relative;
        z-index: 2;
        flex: 1 1 auto;
        width: 100%;
        padding: 60px 50px;
        min-height: 408px;
        background-color: rgba(7, 73, 117, 0.75); /* Primary One with 75% opacity */
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Centered content container */
    .page-title-content {
        max-width: 100%;
        width: 100%;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 24px;
    }
    
    /* Centered breadcrumb */
    .page-title-breadcrumb {
        text-align: center;
        display: flex;
        justify-content: center;
    }
    
    .page-title-breadcrumb-list {
        justify-content: center;
    }
    
    /* Centered headline */
    .page-title-headline {
        font-size: 48px;
        text-align: center;
    }
    
    /* Centered subheadline */
    .page-title-subheadline {
        font-size: 20px;
        max-width: 100%;
        text-align: center;
    }
    
    .page-title-breadcrumb-link,
    .page-title-breadcrumb-current,
    .page-title-breadcrumb-separator {
        font-size: 13px;
    }
    
    /* Centered buttons */
    .page-title-buttons {
        gap: 12px;
        justify-content: center;
        display: flex;
    }
    
    .page-title-button {
        padding: 12px 24px;
        font-size: 14px;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    /* Medium mobile styles - Background image with full overlay, centered content */
    .page-title-block {
        height: auto;
        min-height: 300px;
        position: relative;
    }
    
    .page-title-container {
        height: auto;
        min-height: 300px;
        flex-direction: column;
        padding: 0;
        position: relative;
    }
    
    /* Image as background - positioned absolutely behind content */
    .page-title-image-column {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 1;
        min-height: 300px;
    }
    
    .page-title-image-wrapper {
        width: 100%;
        height: 100%;
    }
    
    .page-title-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    /* Content panel with semi-transparent dark overlay covering full area */
    .page-title-content-panel {
        position: relative;
        z-index: 2;
        flex: 1 1 auto;
        width: 100%;
        padding: 40px 20px;
        min-height: 300px;
        background-color: rgba(7, 73, 117, 0.75); /* Primary One with 75% opacity */
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Centered content container */
    .page-title-content {
        max-width: 100%;
        width: 100%;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }
    
    /* Centered breadcrumb */
    .page-title-breadcrumb {
        text-align: center;
        display: flex;
        justify-content: center;
    }
    
    .page-title-breadcrumb-list {
        justify-content: center;
        gap: 6px;
    }
    
    .page-title-breadcrumb-item {
        gap: 6px;
    }
    
    /* Centered headline */
    .page-title-headline {
        font-size: 32px;
        line-height: 1.2em;
        text-align: center;
    }
    
    /* Centered subheadline */
    .page-title-subheadline {
        font-size: 18px;
        max-width: 100%;
        text-align: center;
    }
    
    .page-title-breadcrumb-link,
    .page-title-breadcrumb-current,
    .page-title-breadcrumb-separator {
        font-size: 12px;
    }
    
    /* Centered buttons */
    .page-title-buttons {
        flex-direction: row;
        gap: 12px;
        width: 100%;
        justify-content: center;
        display: flex;
        flex-wrap: wrap;
    }
    
    .page-title-button {
        flex: 1 1 auto;
        min-width: 120px;
        padding: 12px 20px;
        font-size: 14px;
    }
}

@media (min-width: 320px) and (max-width: 480px) {
    /* Small mobile styles - Background image with full overlay, centered content */
    .page-title-block {
        height: auto;
        min-height: 300px;
        position: relative;
    }
    
    .page-title-container {
        height: auto;
        min-height: 300px;
        flex-direction: column;
        padding: 0;
        position: relative;
    }
    
    /* Image as background - positioned absolutely behind content */
    .page-title-image-column {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 1;
        min-height: 300px;
    }
    
    .page-title-image-wrapper {
        width: 100%;
        height: 100%;
    }
    
    .page-title-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    /* Content panel with semi-transparent dark overlay covering full area */
    .page-title-content-panel {
        position: relative;
        z-index: 2;
        flex: 1 1 auto;
        width: 100%;
        padding: 30px 16px;
        min-height: 300px;
        background-color: rgba(7, 73, 117, 0.75); /* Primary One with 75% opacity */
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Centered content container */
    .page-title-content {
        max-width: 100%;
        width: 100%;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }
    
    /* Centered breadcrumb */
    .page-title-breadcrumb {
        text-align: center;
        display: flex;
        justify-content: center;
    }
    
    .page-title-breadcrumb-list {
        justify-content: center;
        gap: 4px;
    }
    
    .page-title-breadcrumb-item {
        gap: 4px;
    }
    
    /* Centered headline */
    .page-title-headline {
        font-size: 28px;
        text-align: center;
    }
    
    /* Centered subheadline */
    .page-title-subheadline {
        font-size: 16px;
        max-width: 100%;
        text-align: center;
    }
    
    .page-title-breadcrumb-link,
    .page-title-breadcrumb-current,
    .page-title-breadcrumb-separator {
        font-size: 11px;
    }
    
    /* Centered buttons */
    .page-title-buttons {
        flex-direction: row;
        gap: 10px;
        width: 100%;
        justify-content: center;
        display: flex;
        flex-wrap: wrap;
    }
    
    .page-title-button {
        flex: 1 1 auto;
        min-width: 120px;
        padding: 10px 16px;
        font-size: 14px;
    }
}

