/* 
 * Hero Sections Styles
 * Contains styles for all hero section variations
 */

/*--------------------------------------------------------------
# Image Overlay Hero
--------------------------------------------------------------*/
/* Custom styles for the hero section with image overlay */
.hero-overlay-section {
    position: relative;
    width: 100%;
    max-height: 800px;
    height: 80vh;
    overflow: hidden;
}

/* Background image styling */
.hero-overlay-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("https://themeholy.com/wordpress/edura/wp-content/uploads/2023/08/hero_bg_6_3-6-1.jpg");
    background-size: cover;
    background-position: center;
}

/* Overlay styling */
.hero-overlay-filter {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://themeholy.com/wordpress/edura/wp-content/plugins/edura-core/assets/img/hero_overlay_66.png');
    background-size: cover;
    background-position: center;
}

/* Content container */
.hero-overlay-content {
    position: relative;
    z-index: 2;
    padding-top: 10%;
    padding-left: 5%;
    color: white;
    width: 60%;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.hero-overlay-subtitle {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #fff;
}

.hero-overlay-content h1,
    .hero-overlay-content h2,
    .hero-overlay-content h3,
    .hero-overlay-content h4,
    .hero-overlay-content h5,
    .hero-overlay-content h6 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 2rem;
    color: #fff;
}

a.hero-overlay-button {
    color: #fff;
    font-family: var(--wp--preset--font-family--dhali-lato);
    background-color: var(--wp--preset--color--primary-blue);
    border: none;
    padding: 0.75rem 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

a.hero-overlay-button:hover {
    background-color: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0,0,0,0.15);
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .hero-overlay-content {
        width: 80%;
    }
    .hero-overlay-content h1,
    .hero-overlay-content h2,
    .hero-overlay-content h3,
    .hero-overlay-content h4,
    .hero-overlay-content h5,
    .hero-overlay-content h6 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .hero-overlay-section {
        height: 70vh; /* Slightly shorter on tablets */
    }
    .hero-overlay-content {
        width: 90%;
        padding-top: 15%;
    }
    .hero-overlay-content h1,
    .hero-overlay-content h2,
    .hero-overlay-content h3,
    .hero-overlay-content h4,
    .hero-overlay-content h5,
    .hero-overlay-content h6 {
        font-size: 2.5rem;
    }
    a.hero-overlay-button {
        padding: 0.65rem 1.75rem;
    }
}

@media (max-width: 576px) {
    .hero-overlay-section {
        height: 60vh; /* Even shorter on phones */
    }
    .hero-overlay-content {
        width: 100%;
        padding: 20% 5% 0;
    }
    .hero-overlay-content h1,
    .hero-overlay-content h2,
    .hero-overlay-content h3,
    .hero-overlay-content h4,
    .hero-overlay-content h5,
    .hero-overlay-content h6 {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }
    .hero-overlay-subtitle {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }
    a.hero-overlay-button {
        padding: 0.6rem 1.5rem;
        font-size: 0.95rem; /* Slightly smaller but still very touchable */
    }
}

/* Extra small phones */
@media (max-width: 360px) {
    .hero-overlay-section {
        height: 100vh; /* Full height for very small screens to ensure content fits */
        min-height: 500px;
    }
    .hero-overlay-content {
        padding-top: 25%; /* Move content down a bit more */
    }
    .hero-overlay-content h1,
    .hero-overlay-content h2,
    .hero-overlay-content h3,
    .hero-overlay-content h4,
    .hero-overlay-content h5,
    .hero-overlay-content h6 {
        font-size: 1.75rem;
    }
    /* Force line break on smaller screens if needed */
    .hero-overlay-title br {
        display: inline; /* Remove the break */
    }
    .hero-overlay-title-mobile-break:after {
        content: "\A";
        white-space: pre;
    }
}

/* Adjust for landscape orientation on phones */
@media (max-height: 500px) and (max-width: 992px) {
    .hero-overlay-section {
        height: 100vh; /* Full height is better for landscape */
    }
    .hero-overlay-content {
        padding-top: 5vh; /* Less top padding in landscape */
    }
    .hero-overlay-content h1,
    .hero-overlay-content h2,
    .hero-overlay-content h3,
    .hero-overlay-content h4,
    .hero-overlay-content h5,
    .hero-overlay-content h6 {
        margin-bottom: 1rem; /* Less bottom margin */
    }
}

/*--------------------------------------------------------------
# Large Image Right Hero
--------------------------------------------------------------*/
/* Custom styles for the hero section with large image on right */
.hero-large-right-section {
    position: relative;
    background-color: var(--wp--preset--color--primary-blue);
}

.hero-large-right-content {
    color: #fff;
    padding-top: 80px;
    padding-bottom: 80px;
    padding-right: 40px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 500px; /* Ensure minimum height for content area */
}

.hero-large-right-image-wrapper {
    margin-left: 60px;
    margin-top: 50px;
    position: relative;
    height: 100%;
    overflow: visible;
}

.hero-large-right-image {
    margin-bottom: -40px; /* Creates the hanging effect */
    position: relative;
}

.hero-large-right-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    z-index: 5;
    position: relative;
}

.hero-large-right-section h1 {
    color: #fff;
    font-size: 3rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-large-right-section p {
    font-size: 20px;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.hero-large-right-section a {
    color: #ffffff;
    text-decoration: underline;
    font-weight: 600;
    transition: all 0.3s ease;
}

.hero-large-right-section a:hover {
    color: #f0f0f0;
    text-decoration: none;
}

a.hero-large-right-button {
    color: #fff !important;
    font-family: var(--wp--preset--font-family--dhali-lato);
    background-color: var(--wp--preset--color--primary-blue);
    border: none;
    padding: 0.75rem 2rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

a.hero-large-right-button:hover {
    background-color: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0,0,0,0.15);
}

/* Responsive adjustments */
@media (max-width: 1399.98px) {
    .hero-large-right-content {
        padding-top: 70px;
        padding-bottom: 70px;
        min-height: 450px;
    }
    
    .hero-large-right-section h1 {
        font-size: 2.7rem;
    }
}

@media (max-width: 1199.98px) {
    .hero-large-right-content {
        padding-top: 60px;
        padding-bottom: 60px;
        padding-right: 30px;
        min-height: 400px;
    }
    
    .hero-large-right-section h1 {
        font-size: 2.4rem;
    }
    
    .hero-large-right-section p {
        font-size: 18px;
    }
    
    .hero-large-right-image-wrapper {
        margin-left: 40px;
        margin-top: 40px;
    }
}

@media (max-width: 991.98px) {
    /* Layout shifts to stacked on lg breakpoint */
    .hero-large-right-content {
        padding: 60px 20px;
        min-height: auto;
    }
    
    .hero-large-right-section h1 {
        font-size: 2.2rem;
    }
    
    .hero-large-right-section p {
        font-size: 17px;
    }
    
    .hero-large-right-image-wrapper {
        margin-left: 0;
        margin-top: 0;
    }
    
    .hero-large-right-image {
        margin-bottom: -30px;
    }
}

@media (max-width: 767.98px) {
    .hero-large-right-content {
        padding: 50px 15px;
    }
    
    .hero-large-right-section h1 {
        font-size: 2rem;
        margin-bottom: 1.25rem;
    }
    
    .hero-large-right-section p {
        font-size: 16px;
        margin-bottom: 1.25rem;
    }

    a.hero-medium-right-button {
        padding: 0.65rem 1.75rem;
    }
}

@media (max-width: 575.98px) {
    .hero-large-right-content {
        padding: 40px 15px;
    }
    
    .hero-large-right-section h1 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }
    
    .hero-large-right-section p {
        font-size: 16px;
        margin-bottom: 1rem;
    }
    
    .hero-large-right-image {
        margin-bottom: -20px;
    }
    
    .hero-large-right-image img {
        border-radius: 6px;
    }
    
    a.hero-medium-right-button {
        padding: 0.6rem 1.5rem;
        font-size: 0.95rem; /* Slightly smaller but still very touchable */
    }
}

@media (max-width: 359.98px) {
    .hero-large-right-content {
        padding: 30px 15px;
    }
    
    .hero-large-right-section h1 {
        font-size: 1.6rem;
    }
    
    .hero-large-right-section p {
        font-size: 15px;
        line-height: 1.5;
    }
}

/*--------------------------------------------------------------
# Medium Image Right Hero
--------------------------------------------------------------*/
/* Custom styles for the hero section with medium image on right */
.hero-medium-right-section {
    position: relative;
    background-color: var(--wp--preset--color--off-white);
}

.hero-medium-right-content {
    color: #fff;
    padding-top: 80px;
    padding-bottom: 80px;
    padding-right: 40px;
    text-shadow: 0 1px 3px rgba(255, 255, 255, 0.3);
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 500px; /* Ensure minimum height for content area */
}

.hero-medium-right-image-wrapper {
    margin-left: 60px;
    align-content: end;
    position: relative;
    height: 100%;
    overflow: visible;
}

.hero-medium-right-image {
    margin-bottom: -40px; /* Creates the hanging effect */
    position: relative;
}

.hero-medium-right-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    z-index: 5;
    position: relative;
}

.hero-medium-right-section h1 {
    color: var(--wp--preset--color--dhali-header);
    font-size: 3rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-medium-right-section p {
    color: var(--wp--preset--color--dhali-header);
    font-size: 20px;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.hero-medium-right-section a {
    color: var(--wp--preset--color--primary-blue);
    text-decoration: underline;
    font-weight: 600;
    transition: all 0.3s ease;
}

.hero-medium-right-section a:hover {
    color: #1d4ed8;
    text-decoration: none;
}

a.hero-medium-right-button {
    color: #fff !important;
    font-family: var(--wp--preset--font-family--dhali-lato);
    background-color: var(--wp--preset--color--primary-blue);
    border: none;
    padding: 0.75rem 2rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

a.hero-medium-right-button:hover {
    background-color: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0,0,0,0.15);
}

/* Responsive adjustments */
@media (max-width: 1399.98px) {
    .hero-medium-right-content {
        padding-top: 70px;
        padding-bottom: 70px;
        min-height: 450px;
    }
    
    .hero-medium-right-section h1 {
        font-size: 2.7rem;
    }
}

@media (max-width: 1199.98px) {
    .hero-medium-right-content {
        padding-top: 60px;
        padding-bottom: 60px;
        padding-right: 30px;
        min-height: 400px;
    }
    
    .hero-medium-right-section h1 {
        font-size: 2.4rem;
    }
    
    .hero-medium-right-section p {
        font-size: 18px;
    }
    
    .hero-medium-right-image-wrapper {
        margin-left: 40px;
        margin-top: 40px;
    }
}

@media (max-width: 991.98px) {
    /* Layout shifts to stacked on lg breakpoint */
    .hero-medium-right-content {
        padding: 60px 20px;
        min-height: auto;
    }
    
    .hero-medium-right-section h1 {
        font-size: 2.2rem;
    }
    
    .hero-medium-right-section p {
        font-size: 17px;
    }
    
    .hero-medium-right-image-wrapper {
        margin-left: 0;
        margin-top: 0;
    }
    
    .hero-medium-right-image {
        margin-bottom: -30px;
    }
}

@media (max-width: 767.98px) {
    .hero-medium-right-content {
        padding: 50px 15px;
    }
    
    .hero-medium-right-section h1 {
        font-size: 2rem;
        margin-bottom: 1.25rem;
    }
    
    .hero-medium-right-section p {
        font-size: 16px;
        margin-bottom: 1.25rem;
    }

    a.hero-medium-right-button {
        padding: 0.65rem 1.75rem;
    }
}

@media (max-width: 575.98px) {
    .hero-medium-right-content {
        padding: 40px 15px;
    }
    
    .hero-medium-right-section h1 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }
    
    .hero-medium-right-section p {
        font-size: 16px;
        margin-bottom: 1rem;
    }
    
    .hero-medium-right-image {
        margin-bottom: -20px;
    }
    
    .hero-medium-right-image img {
        border-radius: 6px;
    }
    
    a.hero-medium-right-button {
        padding: 0.6rem 1.5rem;
        font-size: 0.95rem; /* Slightly smaller but still very touchable */
    }
}

@media (max-width: 359.98px) {
    .hero-medium-right-content {
        padding: 30px 15px;
    }
    
    .hero-medium-right-section h1 {
        font-size: 1.6rem;
    }
    
    .hero-medium-right-section p {
        font-size: 15px;
        line-height: 1.5;
    }
}

/*--------------------------------------------------------------
# No Image (Centered) Hero
--------------------------------------------------------------*/
/* Custom styles for the hero section without image (centered) */
.hero-centered-section {
    position: relative;
    background-color: var(--wp--preset--color--off-white);
}

.hero-centered-content {
    color: #fff;
    padding-top: 80px;
    padding-bottom: 80px;
    text-shadow: 0 1px 3px rgba(255, 255, 255, 0.3);
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 300px; /* Ensure minimum height for content area */
}

.hero-centered-section h1 {
    color: var(--wp--preset--color--dhali-header);
    font-size: 3rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-centered-section p {
    color: var(--wp--preset--color--dhali-header);
    font-size: 20px;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.hero-centered-section a {
    color: var(--wp--preset--color--primary-blue);
    text-decoration: underline;
    font-weight: 600;
    transition: all 0.3s ease;
}

.hero-centered-section a:hover {
    color: #1d4ed8;
    text-decoration: none;
}

a.hero-centered-button {
    color: #fff !important;
    font-family: var(--wp--preset--font-family--dhali-lato);
    background-color: var(--wp--preset--color--primary-blue);
    border: none;
    padding: 0.75rem 2rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

a.hero-centered-button:hover {
    background-color: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0,0,0,0.15);
}

/* Responsive adjustments */
@media (max-width: 1399.98px) {
    .hero-centered-content {
        padding-top: 70px;
        padding-bottom: 70px;
        min-height: 450px;
    }
    
    .hero-centered-section h1 {
        font-size: 2.7rem;
    }
}

@media (max-width: 1199.98px) {
    .hero-centered-content {
        padding-top: 60px;
        padding-bottom: 60px;
        padding-right: 30px;
        min-height: 400px;
    }
    
    .hero-centered-section h1 {
        font-size: 2.4rem;
    }
    
    .hero-centered-section p {
        font-size: 18px;
    }
}

@media (max-width: 991.98px) {
    /* Layout shifts to stacked on lg breakpoint */
    .hero-centered-content {
        padding: 60px 20px;
        min-height: auto;
    }
    
    .hero-centered-section h1 {
        font-size: 2.2rem;
    }
    
    .hero-centered-section p {
        font-size: 17px;
    }
}

@media (max-width: 767.98px) {
    .hero-centered-content {
        padding: 50px 15px;
    }
    
    .hero-centered-section h1 {
        font-size: 2rem;
        margin-bottom: 1.25rem;
    }
    
    .hero-centered-section p {
        font-size: 16px;
        margin-bottom: 1.25rem;
    }

    a.hero-centered-button {
        padding: 0.65rem 1.75rem;
    }
}

@media (max-width: 575.98px) {

    .hero-centered-content {
        padding: 40px 15px;
    }
    
    .hero-centered-section h1 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }
    
    .hero-centered-section p {
        font-size: 16px;
        margin-bottom: 1rem;
    }
    
    a.hero-centered-button {
        padding: 0.6rem 1.5rem;
        font-size: 0.95rem; /* Slightly smaller but still very touchable */
    }
}

@media (max-width: 359.98px) {
    .hero-centered-content {
        padding: 30px 15px;
    }
    
    .hero-centered-section h1 {
        font-size: 1.6rem;
    }
    
    .hero-centered-section p {
        font-size: 15px;
        line-height: 1.5;
    }
}