/**
 * Why Israel Experience – page-specific styles
 * Builds on style.css (layout, nav, contact bar, footer, newsletter).
 */

/* ===== Hero (Why IE) ===== */
.hero--why-ie {
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 601px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-bg--why-ie {
    background: #2C3E50 url('img/about_bg.jpg') center center / cover no-repeat;
    background-color: #374758;
}

.hero--why-ie .hero-overlay {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.3) 50%, rgba(0, 0, 0, 0.5) 100%);
}

.hero-title {
    margin-top: 96px;
}

.hero-content--why-ie {
    margin-left: 0;
    margin-right: 0;
    max-width: 1300px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    padding-right: calc(24px + var(--contact-bar-width));
}

.hero-title--why-ie {
    font-size: clamp(48px, 10vw, 120px);
    margin-bottom: 16px;
    width: 100%;
}

.hero-subtitle--why-ie {
    font-size: clamp(18px, 2.5vw, 32px);
    font-weight: 300;
    margin-bottom: 0;
}

/* Accessibility icon (green circle with "i") */
.hero--why-ie .hero-accessibility {
    position: absolute;
    left: 24px;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 4px solid #ffffff;
    background: linear-gradient(0deg, #007A58, #007A58),
    linear-gradient(90deg, #40B56C 0%, #223F99 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.hero--why-ie .hero-accessibility-icon {
    width: 22px;
    height: 22px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='12' y1='16' x2='12' y2='12'/%3E%3Cline x1='12' y1='8' x2='12.01' y2='8'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* ===== Why IE content sections ===== */
.section-why-ie {
    padding: 72px 0;
}

.section-why-ie:nth-of-type(odd) {
    background: #ffffff;
}

.section-why-ie:nth-of-type(even) {
    background: #F4F6F8;
}

.why-ie-row {
    display: flex;
    align-items: start;
    gap: 48px;
    max-width: 1300px;
    margin: 0 auto;
}

.why-ie-row--text-right .why-ie-content {
    order: 2;
}

.why-ie-row--text-right .why-ie-media {
    order: 1;
}

.why-ie-heading {
    font-size: 48px;
    font-weight: 400;
    color: #2C3E50;
    margin: 0 0 20px;
}

.why-ie-heading--center {
    text-align: center;
    margin-bottom: 16px;
}

.why-ie-desc {
    font-size: 24px;
    color: #576B7E;
    margin: 0 0 24px;
    font-weight: 300;
}

.why-ie-desc--center {
    text-align: center;
    color: #576B7E;
    font-size: 32px;
    max-width: 1300px;
    margin-left: auto;
    margin-right: auto;
}

.why-ie-key-title {
    font-size: 24px;
    font-weight: 400;
    color: #2C3E50;
    margin: 0 0 12px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.why-ie-key-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.why-ie-key-list li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 10px;
    font-size: 24px;
    color: #576B7E;
    font-weight: 300;
    line-height: 1;
}

.why-ie-key-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    background: linear-gradient(90deg, #40B56C 0%, #223F99 100%);
    border-radius: 50%;
}

.why-ie-media {
    position: relative;
    max-width: 402px;
}

.why-ie-img {
    width: 100%;
    aspect-ratio: 4 / 5;
    max-height: 402px;
    min-width: 402px;
    background-color: #d1d5d8;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.container--newsletter p {
    line-height: normal;
    margin-bottom: 0;
}

.hero-title , .hero-subtitle {
    line-height: normal;
}

p {
    line-height: normal;
}

/* Holistic section: single column, centered */
.why-ie-holistic {
    text-align: center;
    max-width: 1300px;
    margin: 0 auto;
}

.why-ie-support-tablet {
    display: none;
}

.why-ie-safety-tablet,
.why-ie-heading-tablet,
.why-ie-education-tablet {
    display: none;
}

.section-newsletter-wrapper {
    background-color: #FFFFFF;
    margin-top: 144px;
}

@media  (max-width: 1919px) {
    .hero--why-ie .hero-accessibility {
        top: 70%;
    }

    .hero-content--why-ie {
        max-width: calc(100vw - 144px);
        margin-left: 72px;
    }

    .container {
        max-width: calc(100vw - 240px);
        margin-left: 72px;
    }
}

@media  screen and (max-width: 1399px) {
    .container {
        max-width: calc(100vw - 144px);
        margin: 0 auto;
    }

    .hero-title {
        display: inline;
    }

    .hero-content {
        bottom: unset;
        padding-top: 100px;
    }

    .footer-grid {
        column-gap: 72px;
        padding-bottom: 0;
    }

    .footer-info {
        padding: 12px 0;
    }
}

@media  screen and (max-width: 1365px) {
    .container {
        max-width: 880px;
    }

    .hero-content {
        padding-top: 50px;
    }

    .hero-subtitle {
        padding-left: 0;
    }

    .why-ie-media {
        width: 300px;
        height: 300px;
    }

    .why-ie-img {
        width: 300px;
        height: 300px;
        min-width: unset;
    }

    .why-ie-row {
        display: grid;
        grid-template-columns: 1.6fr 1fr;
        align-items: start;
    }

    .why-ie-desc {
        margin: 0 0 60px 0;
    }

    .section-why-ie:first-child .why-ie-desc {
        margin-bottom: 85px;
    }

    .section-why-ie:nth-child(3) .why-ie-desc {
        margin-bottom: 110px;
    }

    .why-ie-title-desktop {
        display: none;
    }

    .why-ie-list-desktop {
        display: none;
    }

    .why-ie-support-tablet {
        display: block;
    }

    .why-ie-row--text-right {
        grid-template-columns: 1fr 1.6fr;
    }

    #newsletter-email {
        height: 61px;
        width: 480px;
        max-width: 480px;
    }

    .newsletter-form {
        width: unset!important;
    }

    .newsletter-data-form {
      width: unset;
    }

    .newsletter-form .btn {
        height: 61px;
    }
}

@media screen and (max-width: 1023px){
    .container {
        max-width: 624px;
    }

    #newsletter-email {
        width: 295px;
        height: 48px!important;
    }

    .newsletter-form .btn {
        height: 48px;
    }

    .newsletter-form input {
        min-width: 48%;
    }

    .hero-title--why-ie {
        font-size: 72px;
    }

    .hero-title br {
        display: inline;
    }

    .hero-subtitle {
        font-size: 32px;
    }

    .hero-content--why-ie {
        padding-right: unset;
    }

    .hero-content {
        padding-top: 94px;
    }

    .why-ie-desc {
        margin: 0 0 40px 0;
    }

    .section-why-ie:first-child .why-ie-desc {
        margin-bottom: 25px;
    }

    .section-why-ie:nth-child(3) .why-ie-desc {
        margin-bottom: 50px;
    }

    .why-ie-media {
        width: 200px;
        height: 200px;
    }

    .why-ie-img {
        width: 200px;
        height: 200px;
    }

    .why-ie-row {
        grid-template-columns: 1.7fr 1fr;
    }

    .why-ie-safety-title-desktop {
        display: none;
    }

    .why-ie-safety-list-desktop {
        display: none;
    }

    .why-ie-safety-tablet {
        display: block;
    }

    .why-ie-row--text-right {
        grid-template-columns: 1fr 1.8fr;
    }

    .why-ie-heading-desktop,
    .why-ie-education-title-desktop,
    .why-ie-education-list-desktop {
        display: none;
    }

    .why-ie-heading-tablet,
    .why-ie-education-tablet {
        display: block;
    }
}

@media screen and (max-width: 767px) {
    .container {
        max-width: calc(100vw - 48px);
        margin: 0 auto;
    }

    .hero-title--why-ie {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 24px;
    }

    .hero-content--why-ie {
        max-width: calc(100vw - 48px);
        margin-left: 24px;
    }

    .hero-content {
        padding-top: 24px;
    }

    .why-ie-row {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .why-ie-desc {
        margin-bottom: 0!important;
    }

    .why-ie-media {
        width: 327px;
        height: 327px;
        margin-bottom: 24px;
    }

    .why-ie-img {
        width: 327px;
        height: 327px;
    }

    .why-ie-desc {
        margin: 0;
    }

    .why-ie-row--text-right .why-ie-content {
        order: -1;
    }

    #newsletter-email {
        width: 279px;
    }

    .newsletter-data-form .btn-primary {
        width: 279px;
    }

    .footer-info {
        padding: 24px;
    }
}