/**
 * Page Hero Section Styles
 * Reusable hero component for pages with hero images (ACF)
 */

.page-hero-section {
    width: 100%;
    margin-bottom: 40px;
    position: relative;
}

.page-hero-image-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    max-height: 350px;
}

.page-hero-image {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    display: block;
}

.page-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;

    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding-bottom: 72px;
}

.page-hero-content {
    width: 100%;
    max-width: var(--pls-container-width);
    margin: 0 auto;
    color: #ffffff;
    text-align: right;
}

.page-hero-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #ffffff;
    line-height: 1.2;
}

.page-hero-description {
    font-size: 20px;
    line-height: 1.6;
    max-width: 600px;
    margin: 0;
    color: #ffffff;
}

.page-hero-description p {
    margin-bottom: 15px;
}

.page-hero-description p:last-child {
    margin-bottom: 0;
}

/* Hero Buttons */
.page-hero-buttons {
    margin-top: 30px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.page-hero-button {
    display: inline-block;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid;
    transition: all 0.3s ease;
    cursor: pointer;
    line-height: 1.5;
}

.page-hero-button:hover {
    opacity: 0.85;
    transform: translateY(-2px);
}

.page-hero-button:active {
    transform: translateY(0);
}

/* Responsive styles */
@media (max-width: 768px) {
    .page-hero-image {
        max-height: 350px;
    }
    
    .page-hero-title {
        font-size: 32px;
        margin-bottom: 15px;
    }
    
    .page-hero-description {
        font-size: 16px;
    }
    
    .page-hero-content {
        padding: 0 30px;
    }
    
    .page-hero-overlay {
        padding-bottom: 50px;
    }
    
    .page-hero-buttons {
        margin-top: 25px;
        gap: 12px;
    }
    
    .page-hero-button {
        padding: 11px 25px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .page-hero-image {
        height: 200px;
        max-height: 200px;
    }
    
    .page-hero-title {
        font-size: 28px;
        margin-bottom: 10px;
    }
    
    .page-hero-description {
        font-size: 16px;
    }
    
    .page-hero-content {
        padding: 0 20px;
    }
    
    .page-hero-overlay {
        padding-bottom: 30px;
    }
    
    .page-hero-buttons {
        margin-top: 20px;
        gap: 10px;
    }
    
    .page-hero-button {
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* RTL Support (for Hebrew/Arabic) */
body.rtl .page-hero-content {
    direction: rtl;
    text-align: right;
}

/* LTR Support */
body:not(.rtl) .page-hero-content {
    text-align: left;
}

body:not(.rtl) .page-hero-overlay {
    justify-content: flex-start;
}

