/* Homepage sections — does not style the shared header utility bar. */

.ea-home-hero .single-slider,
.ea-home-hero .ea-home-hero-slide {
    position: relative;
    min-height: 28rem;
    padding-top: 5.5rem;
    padding-bottom: 7rem;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #07294d;
}

/* Before Slick init (and with JS disabled), keep only the first slide in flow to avoid a tall stacked hero. */
.ea-home-hero:not(.slick-initialized) > .ea-home-hero-slide:not(:first-child) {
    display: none;
}

.ea-home-hero-media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
}

.ea-home-hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(7, 41, 77, 0.48);
    z-index: 1;
}

.ea-home-hero-slide > .container {
    position: relative;
    z-index: 2;
    width: 100%;
}

.ea-home-hero-copy {
    max-width: 36rem;
    overflow: visible;
}

.ea-home-hero-eyebrow {
    margin: 0 0 0.75rem;
    padding: 0;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #ffc600;
}

.ea-home-hero-copy h1,
.ea-home-hero-copy .ea-home-hero-title {
    font-size: 2.5rem;
    line-height: 1.2;
    font-weight: 600;
    color: #fff;
    padding-bottom: 0.85rem;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}

.ea-home-hero-copy p {
    font-size: 1.125rem;
    line-height: 1.6;
    color: #f5f7fa;
    font-weight: 500;
    padding-bottom: 1.5rem;
    max-width: 34rem;
}

.ea-home-hero-copy .main-btn-2 {
    background: transparent;
    border: 2px solid #ffc600;
    color: #fff;
}

.ea-home-hero-copy .main-btn-2:hover {
    background: #ffc600;
    color: #07294d;
}

.ea-home-search {
    margin-top: -3.5rem;
    position: relative;
    z-index: 4;
    padding-bottom: 1.5rem;
}

.ea-home-search-panel {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 16px 40px rgba(7, 41, 77, 0.12);
    padding: 2rem;
    border: 1px solid #edf0f2;
    overflow: visible;
    position: relative;
    z-index: 5;
}

.ea-home-search-panel .ea-program-autocomplete-wrap.is-open,
.ea-home-search-panel .ea-program-autocomplete-wrap:focus-within {
    z-index: 30;
}

.ea-program-autocomplete-wrap .ea-home-search-field {
    position: relative;
    z-index: 1;
}

.ea-home-search-copy h2 {
    font-size: 1.75rem;
    color: #07294d;
    margin-bottom: 0.5rem;
}

.ea-home-search-copy p {
    color: #5b6b7c;
    margin: 0;
    line-height: 1.55;
}

.ea-home-search-field {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: #f7f9fb;
    border: 1px solid #d9e0e7;
    border-radius: 8px;
    padding: 0.5rem 0.5rem 0.5rem 1rem;
}

.ea-home-search-field .fa-search {
    color: #07294d;
    flex: 0 0 auto;
}

.ea-home-search-field input {
    flex: 1 1 auto;
    border: 0;
    background: transparent;
    min-width: 0;
    height: 44px;
    color: #07294d;
}

.ea-home-search-field input:focus-visible {
    outline: 2px solid #07294d;
    outline-offset: 2px;
}

.ea-home-search-field .main-btn {
    flex: 0 0 auto;
    white-space: nowrap;
    margin: 0;
}

.ea-home-section,
#about-part.ea-home-section,
#apply-aprt.ea-home-section,
#course-part.ea-home-section,
#destination-part.ea-home-section,
#news-part.ea-home-section,
#testimonial.ea-home-section,
#testimonial-submit.ea-home-section,
#patnar-logo.ea-home-section {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.ea-home-section .section-title {
    margin-bottom: 1.75rem;
}

.ea-home-section .section-title h2 {
    font-size: 2rem;
    line-height: 1.25;
    font-weight: 600;
    padding-top: 0.5rem;
}

.ea-home-section-cta {
    margin-top: 2rem;
}

#about-part.ea-home-section {
    padding-bottom: 4rem;
}

.ea-home-about-media {
    margin-top: 1.5rem;
    overflow: hidden;
    border-radius: 12px;
    aspect-ratio: 16 / 10;
    background: #f4f7fa;
}

.ea-home-about-media--aside {
    margin-top: 0.35rem;
}

.ea-home-about-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.ea-home-section .about-event {
    margin-top: 0;
    padding: 2rem 2rem 1.25rem;
}

.ea-home-section .about-cont .main-btn {
    margin-top: 1.5rem;
}

#apply-aprt .apply {
    margin-top: 0;
}

/* Equal-height CTA panels when both CMS columns have copy. */
#apply-aprt .ea-home-apply-row {
    align-items: stretch;
}

#apply-aprt .ea-home-apply-row > [class*="col-"] {
    display: flex;
}

#apply-aprt .ea-home-apply-row .apply-cont {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    height: 100%;
    padding: 2rem 2.25rem;
}

#apply-aprt .ea-home-apply-row .apply-cont h3 {
    padding-bottom: 0.75rem;
}

#apply-aprt .ea-home-apply-copy {
    color: #fff;
}

#apply-aprt .ea-home-apply-copy p {
    color: #fff;
    padding-bottom: 0;
    margin-bottom: 0.75rem;
}

#apply-aprt .ea-home-apply-row .apply-cont .main-btn {
    margin-top: auto;
    padding-top: 1.25rem;
}

/* Sparse CMS: one navy band, copy + both CTAs (no hollow right panel). */
#apply-aprt .ea-home-apply-band {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem 1.75rem;
    padding: 2rem 2.25rem;
    border-radius: 5px;
    background: #07294d;
}

#apply-aprt .ea-home-apply-band-copy {
    flex: 1 1 18rem;
    max-width: 38rem;
}

#apply-aprt .ea-home-apply-band-copy h3 {
    margin: 0 0 0.75rem;
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
}

#apply-aprt .ea-home-apply-band-copy .ea-home-apply-copy,
#apply-aprt .ea-home-apply-band-copy .ea-home-apply-copy p {
    margin: 0;
    color: #fff;
}

#apply-aprt .ea-home-apply-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

#apply-aprt .ea-home-apply-actions .main-btn-2 {
    background: transparent;
    border: 2px solid #ffc600;
    color: #fff;
}

#apply-aprt .ea-home-apply-actions .main-btn-2:hover {
    background: #ffc600;
    color: #07294d;
}

.ea-home-destination {
    margin-top: 1.5rem;
}

.ea-home-destination a {
    display: block;
    text-decoration: none;
    color: inherit;
}

.ea-home-destination-media {
    display: block;
    overflow: hidden;
    border-radius: 12px;
    aspect-ratio: 4 / 3;
    background: #f4f7fa;
}

.ea-home-destination-media img,
.ea-home-destination-media .ea-media-fallback {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.ea-home-destination-media .ea-media-fallback {
    min-height: 0;
    aspect-ratio: auto;
}

.ea-home-destination h3 {
    margin: 0.75rem 0 0;
    font-size: 1.05rem;
    font-weight: 600;
    color: #07294d;
}

.ea-home-news {
    margin-top: 1.5rem;
}

.ea-home-news-media {
    display: block;
    overflow: hidden;
    border-radius: 12px;
    aspect-ratio: 16 / 9;
    background: #f4f7fa;
}

.ea-home-news-media img,
.ea-home-news-media .ea-media-fallback {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.ea-home-news-media .ea-media-fallback {
    min-height: 0;
    aspect-ratio: auto;
}

.ea-home-news-body {
    padding-top: 1rem;
}

.ea-home-news-meta {
    margin: 0 0 0.4rem;
    color: #8090a0;
    font-size: 0.9rem;
}

.ea-home-news-body h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.35;
}

.ea-home-news-body h3 a {
    color: #07294d;
    text-decoration: none;
}

.ea-home-news-body h3 a:hover {
    color: #ffc600;
}

.ea-home-testimonials {
    position: relative;
    background-color: #07294d;
    background-size: cover;
    background-position: center;
}

.ea-home-testimonials > .container {
    position: relative;
    z-index: 2;
}

.ea-home-testimonials .section-title h5,
.ea-home-testimonials .section-title h2 {
    color: #fff;
}

.ea-home-testimonials .section-title h5::before {
    background-color: #ffc600;
}

.ea-home-testimonial {
    display: flex;
    align-items: flex-start;
    gap: 1.15rem;
    position: relative;
}

.ea-home-testimonials .single-testimonial .testimonial-thum {
    position: static;
    left: auto;
    top: auto;
    margin: 0;
    transform: none;
    flex: 0 0 auto;
}

.ea-home-testimonials .single-testimonial .testimonial-thum img,
.ea-home-testimonials .ea-media-fallback--avatar {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 8px;
}

.ea-home-testimonials .single-testimonial .testimonial-cont {
    padding-left: 0;
    min-width: 0;
}

.ea-home-testimonials .testimonial-cont h3 {
    margin: 0.75rem 0 0.15rem;
    color: #fff;
    font-size: 1.05rem;
    font-weight: 600;
}

.ea-home-testimonials .testimonial-cont p {
    margin: 0;
    color: #d7e0e7;
    font-size: 0.95rem;
}

.ea-home-partners {
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* Slide shell vs logo frame: gutters live on the slide, not inside the card. */
.ea-home-partners.slick-initialized .slick-list {
    margin: 0 -1.25rem;
    overflow: hidden;
}

.ea-home-partners.slick-initialized .slick-slide {
    box-sizing: border-box;
    padding: 0 1.25rem;
    text-align: center;
}

.ea-home-partner-slide {
    height: 100%;
}

/* Uniform logo frames so mixed aspect ratios / dark-square assets read evenly. */
.ea-home-partner {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 100%;
    height: 4.75rem;
    margin: 0;
    padding: 0.55rem 0.85rem;
    background: #f8fafc;
    border: 1px solid #e8eef4;
    border-radius: 10px;
}

.ea-home-partner img {
    display: block;
    max-width: 100%;
    max-height: 3.35rem;
    width: auto;
    height: auto;
    margin: 0 auto;
    object-fit: contain;
}

.ea-home-partner .ea-media-fallback--mark {
    width: 7.5rem;
    height: 3.1rem;
    max-width: 100%;
    border-radius: 8px;
    font-size: 0.95rem;
}

@media (max-width: 991.98px) {
    .ea-home-partners.slick-initialized .slick-list {
        margin: 0 -0.85rem;
    }

    .ea-home-partners.slick-initialized .slick-slide {
        padding: 0 0.85rem;
    }
}

@media (max-width: 575.98px) {
    .ea-home-partners.slick-initialized .slick-list {
        margin: 0 -0.5rem;
    }

    .ea-home-partners.slick-initialized .slick-slide {
        padding: 0 0.5rem;
    }
}

.ea-home-testimonial-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 16px 40px rgba(7, 41, 77, 0.1);
    padding: 2.25rem 2rem;
    border: 1px solid #edf0f2;
}

.ea-home-testimonial-lead {
    color: #5b6b7c;
    max-width: 34rem;
    margin: 0.75rem auto 0;
    line-height: 1.6;
}

/* Center the gold eyebrow rule for this centered card only. */
.ea-home-testimonial-card .section-title h5 {
    position: relative;
    display: inline-block;
    color: #07294d;
    font-weight: 600;
}

.ea-home-testimonial-card .section-title h5::before {
    left: 50%;
    transform: translateX(-50%);
}

.ea-home-testimonial-card .form-group {
    margin-bottom: 1.2rem;
}

.ea-home-testimonial-card label {
    display: block;
    margin-bottom: 0.45rem;
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.35;
    color: #07294d;
}

.ea-home-testimonial-card .form-control {
    height: 48px;
    border-radius: 8px;
    border-color: #d9e0e7;
    color: #07294d;
}

.ea-home-testimonial-card textarea.form-control {
    height: auto;
    min-height: 120px;
}

.ea-home-testimonial-card .form-control:focus {
    border-color: #ffc600;
    box-shadow: 0 0 0 0.15rem rgba(255, 198, 0, 0.25);
}

.ea-home-testimonial-card .form-control::placeholder {
    color: #8a97a6;
}

.ea-home-testimonial-card form .text-center {
    margin-top: 0.35rem;
}

@media (max-width: 991.98px) {
    .ea-home-hero .single-slider,
    .ea-home-hero .ea-home-hero-slide {
        min-height: 24rem;
        padding-top: 4.5rem;
        padding-bottom: 6rem;
    }

    .ea-home-hero-copy h1,
    .ea-home-hero-copy .ea-home-hero-title {
        font-size: 2.05rem;
    }

    .ea-home-search {
        margin-top: -2.25rem;
    }

    .ea-home-section,
    #about-part.ea-home-section,
    #apply-aprt.ea-home-section,
    #course-part.ea-home-section,
    #destination-part.ea-home-section,
    #news-part.ea-home-section,
    #testimonial.ea-home-section,
    #testimonial-submit.ea-home-section,
    #patnar-logo.ea-home-section {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }

    .ea-home-section .section-title h2 {
        font-size: 1.75rem;
    }

    .ea-home-section .about-event {
        margin-top: 2rem;
        padding: 1.5rem 1.25rem 0.75rem;
    }

    .ea-home-about-media--aside {
        margin-top: 1.5rem;
    }

    #apply-aprt .ea-home-apply-row .apply-cont {
        padding: 1.75rem 1.5rem;
    }

    #apply-aprt .ea-home-apply-band {
        padding: 1.75rem 1.5rem;
    }
}

@media (max-width: 767.98px) {
    .ea-home-search-field {
        flex-wrap: wrap;
        padding: 0.75rem;
    }

    .ea-home-search-field input {
        width: 100%;
        flex: 1 1 100%;
    }

    .ea-home-search-field .main-btn {
        width: 100%;
    }

    .ea-home-hero-copy h1,
    .ea-home-hero-copy .ea-home-hero-title {
        font-size: 1.75rem;
    }

    .ea-home-testimonial {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .ea-home-testimonial-card {
        padding: 1.5rem 1.15rem;
    }
}
