
/* EHF Olympia - clean blue, white and yellow redesign */
:root {
  --ehf-blue: #103b80;
  --ehf-blue2: #1769c2;
  --ehf-yellow: #ffc928;
  --ehf-ink: #102b59;
  --ehf-white: #fff;
}
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ehf-ink);
  font-family: "Open Sans", Arial, sans-serif;
}
.page { overflow: hidden; }

/* Header */
.page-head {
  z-index: 1000;
  position: absolute !important;
  top: 0; left: 0; right: 0;
  background: rgba(255,255,255,.94);
  border-bottom: 1px solid rgba(16,59,128,.1);
  box-shadow: 0 4px 18px rgba(16,59,128,.06);
}
.rd-navbar, .rd-navbar-transparent {
  background: transparent !important;
}
.rd-navbar-brand-title {
  color: var(--ehf-blue) !important;
  font-size: 22px;
  font-weight: 800;
}
.rd-navbar-brand img,
.rd-navbar-mobile-brand img { object-fit: contain; }
.rd-navbar-nav > li > span,
.rd-navbar-nav > li > a {
  color: var(--ehf-blue) !important;
}

/* Hero */
.ehf-hero {
  position: relative;
  isolation: isolate;
  min-height: 700px;
  padding: 125px 3.8% 34px;
  display: flex;
  align-items: stretch;
  text-align: left;
  color: var(--ehf-ink);
  overflow: hidden;
  background: linear-gradient(110deg,#f7fbff 0%,#eaf4ff 52%,#f9fcff 100%);
}
.ehf-hero:before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse at 55% 42%,rgba(255,255,255,.18),transparent 48%);
}
.ehf-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.ehf-hero-inner {
  width: 100%;
  max-width: 1480px;
  min-height: 535px;
  margin: auto;
  display: grid;
  grid-template-columns: minmax(0,1.05fr) minmax(260px,.78fr) minmax(330px,.9fr);
  gap: clamp(12px,1.35vw,24px);
  align-items: center;
  position: relative;
  z-index: 1;
}
.ehf-hero-copy {
  max-width: 620px;
  padding: 24px 0 40px;
  position: relative;
  z-index: 2;
}
.ehf-eyebrow {
  display: inline-block;
  margin: 0 0 15px;
  color: var(--ehf-blue2);
  font-size: 12px;
  line-height: 1.4;
  font-weight: 800;
  letter-spacing: 2.2px;
  text-transform: uppercase;
}
.ehf-hero-copy h1 {
  color: var(--ehf-blue);
  font-family: "PT Serif",Georgia,serif;
  font-size: clamp(42px,4.5vw,66px);
  line-height: 1.08;
  font-weight: 700;
  margin: 0 0 18px;
  letter-spacing: -.8px;
}
.ehf-hero-copy h3 {
  color: var(--ehf-blue);
  font-size: clamp(18px,1.7vw,24px);
  line-height: 1.42;
  font-weight: 700;
  margin: 0 0 18px;
}
.ehf-hero-copy p {
  max-width: 590px;
  color: #263d61;
  font-size: 15px;
  line-height: 1.85;
  margin: 0 0 28px;
}
.ehf-download-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 15px 22px;
  border-radius: 28px;
  color: #092e69 !important;
  background: linear-gradient(135deg,#ffdb55,#ffbd16);
  box-shadow: 0 9px 22px rgba(18,73,143,.18);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none !important;
  transition: transform .2s ease,box-shadow .2s ease;
}
.ehf-download-link:hover {
  color: #092e69 !important;
  transform: translateY(-3px);
  box-shadow: 0 13px 28px rgba(18,73,143,.24);
}
.ehf-download-link .fa { font-size: 21px; }

/* Student photograph */
.ehf-hero-student {
  align-self: stretch;
  height: 560px;
  min-width: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  margin: 0 -8px -34px;
  position: relative;
  z-index: 1;
  overflow: hidden;
  border-radius: 190px 190px 0 0;
  background: linear-gradient(180deg,#e8f3ff,#d6eaff);
}
.ehf-hero-student img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 420px;
  object-fit: cover;
  object-position: center top;
  filter: drop-shadow(0 10px 18px rgba(20,55,100,.08));
}

/* Reviews panel */
.ehf-reviews-panel {
  width: 100%;
  max-width: 465px;
  justify-self: end;
  align-self: center;
  padding: 25px 27px 22px;
  border: 1px solid rgba(30,100,180,.16);
  border-radius: 22px;
  background: rgba(255,255,255,.91);
  box-shadow: 0 18px 48px rgba(30,83,145,.16);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: relative;
  z-index: 3;
}
.ehf-reviews-heading { text-align: left; }
.ehf-reviews-heading .ehf-eyebrow { margin-bottom: 8px; }
.ehf-reviews-heading h2 {
  color: var(--ehf-blue);
  font-family: "PT Serif",Georgia,serif;
  font-size: clamp(23px,2vw,29px);
  line-height: 1.2;
  font-weight: 700;
  margin: 0 0 7px;
}
.ehf-reviews-heading p {
  color: #526987;
  font-size: 12px;
  line-height: 1.5;
  margin: 0 0 14px;
}
.ehf-reviews-viewport:hover 
to { transform: translateY(-50%); }
}

/* Existing lower-page sections */
.section-70.section-md-114.bg-catskill {
  background: #f5f9ff;
}
.page-content > section:not(.ehf-hero) h2 {
  color: var(--ehf-blue);
  font-weight: 800;
}
.page-content > section:not(.ehf-hero) .divider {
  border: 0;
  border-radius: 5px;
}
.counters .counter-type-1 {
  padding: 28px 18px;
  border: 1px solid #e5edf7;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(31,65,110,.07);
  transition: transform .2s ease,box-shadow .2s ease;
}
.counters .counter-type-1:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 34px rgba(31,65,110,.12);
}
.page-content > section:last-child { background: #fff; }
.page-content > section:last-child .list-marked li {
  line-height: 1.8;
  padding: 9px 0 9px 4px;
  color: #505f75;
}

/* Tablet */
@media(max-width:1100px) {
  .ehf-hero-inner {
    grid-template-columns: minmax(0,1fr) minmax(230px,.72fr) minmax(300px,.9fr);
    gap: 10px;
  }
  .ehf-hero-student { height: 510px; }
  .ehf-reviews-panel { padding: 20px; }
  .ehf-hero-copy h1 { font-size: clamp(38px,4vw,54px); }
}
@media(max-width:991px) {
  .ehf-hero { min-height: auto; padding: 140px 25px 55px; }
  .ehf-hero-inner {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
  .ehf-hero-copy {
    grid-column: 1/-1;
    max-width: 760px;
  }
  .ehf-hero-student {
    height: 480px;
    grid-column: 1;
    grid-row: 2;
  }
  .ehf-reviews-panel {
    grid-column: 2;
    grid-row: 2;
    max-width: 650px;
    justify-self: stretch;
  }
  
}

/* Mobile */
@media(max-width:767px) {
  .page-head { background: rgba(255,255,255,.97); }
  .ehf-hero { padding: 130px 18px 42px; }
  .ehf-hero-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .ehf-hero-copy {
    grid-column: auto;
    padding: 10px 0;
  }
  .ehf-hero-copy h1 { font-size: 40px; }
  .ehf-hero-copy h3 { font-size: 19px; }
  .ehf-hero-copy p { font-size: 14px; line-height: 1.75; }
  .ehf-hero-student {
    grid-column: auto;
    grid-row: auto;
    height: 440px;
    max-width: 430px;
    width: 100%;
    margin: 0 auto -10px;
    border-radius: 140px 140px 0 0;
  }
  .ehf-reviews-panel {
    grid-column: auto;
    grid-row: auto;
    padding: 22px 18px 20px;
    border-radius: 16px;
  }
  .ehf-reviews-heading h2 { font-size: 25px; }
  
.rd-navbar-brand-title { font-size: 18px; }
}
@media(prefers-reduced-motion:reduce) {
  html { scroll-behavior: auto; }
  
.ehf-download-link,.counters .counter-type-1 { transition: none; }
}


/* =====================================
   EHF OLYMPIA - COLORFUL DESIGN UPDATE
   Add at the END of ehf-redesign.css
===================================== */

/* Header */
.page-head {
    background: linear-gradient(100deg, #ffffff 0%, #eef5ff 55%, #e3efff 100%);
    border-bottom: 3px solid #ffc928;
    box-shadow: 0 5px 22px rgba(20, 65, 130, .13);
}

.rd-navbar-brand-title {
    color: #123d83 !important;
}

/* Hero background */
.ehf-hero {
    background:
        radial-gradient(circle at 53% 20%, rgba(255, 204, 51, .23), transparent 25%),
        radial-gradient(circle at 5% 90%, rgba(35, 125, 225, .18), transparent 35%),
        linear-gradient(115deg, #e6f1ff 0%, #d8eaff 48%, #f0e9ff 100%);
}

/* Hero decorative colour */
.ehf-hero:before {
    background:
        radial-gradient(ellipse at 80% 15%, rgba(151, 116, 255, .17), transparent 35%),
        radial-gradient(ellipse at 35% 90%, rgba(255, 204, 51, .16), transparent 35%);
}

/* Main heading */
.ehf-hero-copy h1 {
    color: #103b80;
    text-shadow: 0 3px 12px rgba(30, 80, 150, .08);
}

.ehf-eyebrow {
    color: #e18a00;
}

/* Subheading */
.ehf-hero-copy h3 {
    color: #174f9b;
}

/* Description */
.ehf-hero-copy p {
    color: #354e73;
}

/* Download button */
.ehf-download-link {
    background: linear-gradient(110deg, #ffcf36, #ffad16);
    border: 1px solid rgba(255, 255, 255, .7);
    box-shadow: 0 9px 25px rgba(226, 148, 12, .25);
}

.ehf-download-link:hover {
    background: linear-gradient(110deg, #ffdc65, #ffc02c);
}

/* Student photo background */
.ehf-hero-student {
    background: linear-gradient(150deg, #b9d9ff, #d8c9ff 55%, #ffe5a0);
    box-shadow: 0 12px 35px rgba(50, 91, 160, .12);
}

/* Reviews panel */
.ehf-reviews-panel {
    background: linear-gradient(145deg,
        rgba(255,255,255,.97),
        rgba(235,244,255,.96) 55%,
        rgba(245,237,255,.96)
    );
    border: 1px solid rgba(90, 130, 210, .25);
    box-shadow: 0 18px 45px rgba(47, 82, 150, .20);
}

/* Reviews heading */
.ehf-reviews-heading h2 {
    color: #123d83;
}

.ehf-reviews-heading .ehf-eyebrow {
    color: #e18a00;
}

/* Review separator */
/* Review stars */
/* View all reviews */
/* EHF Advantages section */
.section-70.section-md-114.bg-catskill {
    background: linear-gradient(120deg,
        #e7f2ff 0%,
        #f1edff 50%,
        #fff6df 100%
    );
}

/* Counter cards */
.counters .counter-type-1 {
    background: linear-gradient(145deg, #ffffff, #edf5ff);
    border: 1px solid rgba(65, 120, 205, .16);
    box-shadow: 0 9px 26px rgba(42, 83, 145, .09);
}

.counters .counter-type-1:nth-child(odd) {
    border-top: 3px solid #ffc928;
}

.counters .counter-type-1:nth-child(even) {
    border-top: 3px solid #4389df;
}

.counters .counter-type-1 .icon {
    color: #1769c2;
}

/* Why EHF section */
.page-content > section:last-child {
    background: linear-gradient(135deg, #ffffff, #f0f6ff);
}

.page-content > section:last-child .list-marked li {
    color: #354e73;
}

/* Section headings */
.page-content > section:not(.ehf-hero) h2 {
    color: #123d83;
}

/* Mobile */
@media(max-width:767px) {
    .page-head {
        background: linear-gradient(100deg, #fff, #e8f2ff);
    }

    .ehf-hero {
        background: linear-gradient(145deg, #e6f1ff, #f0eaff);
    }
}


/* =========================================
   OVERALL RATING SUMMARY INSIDE REVIEW PANEL
========================================= */
.ehf-rating-summary {
    display: grid;
    grid-template-columns: minmax(125px, .85fr) minmax(0, 1.15fr);
    gap: 10px;
    margin: 14px 0 12px;
    align-items: stretch;
}

.ehf-rating-overall {
    min-width: 0;
    padding: 12px 7px;
    border-radius: 13px;
    text-align: center;
    background: linear-gradient(145deg, #fffaf0, #fff0d5);
    border: 1px solid #ffe1a0;
}

.ehf-rating-label {
    display: block;
    color: #71819b;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .8px;
}

.ehf-rating-number {
    color: #174b91;
    font-size: 36px;
    font-weight: 800;
    line-height: 1.25;
    white-space: nowrap;
}

.ehf-rating-number small {
    color: #71819b;
    font-size: 12px;
    font-weight: 700;
}

.ehf-rating-stars {
    color: #ffad19;
    font-size: 19px;
    letter-spacing: 1px;
    line-height: 1.4;
    margin: 4px 0;
}

.ehf-rating-count {
    display: block;
    color: #63758f;
    font-size: 9px;
    line-height: 1.4;
}

.ehf-rating-breakdown {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 11px;
    padding: 8px 1px;
}

.ehf-rating-row {
    display: grid;
    grid-template-columns: 25px minmax(0, 1fr) 36px;
    gap: 5px;
    align-items: center;
}

.ehf-rating-row > span {
    color: #294d7c;
    font-size: 9px;
    font-weight: 700;
    white-space: nowrap;
}

.ehf-rating-row small {
    color: #71819b;
    font-size: 8px;
    text-align: right;
    white-space: nowrap;
}

.ehf-rating-bar {
    height: 7px;
    border-radius: 10px;
    background: #e5edf7;
    overflow: hidden;
}

.ehf-rating-bar span {
    display: block;
    height: 100%;
    border-radius: 10px;
    background: linear-gradient(90deg, #ffc928, #ff9f27);
}

/* Keep the scrolling reviews compact below the summary */
@media (max-width: 767px) {
    .ehf-rating-summary {
        grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
        gap: 8px;
    }

    .ehf-rating-overall {
        padding: 10px 5px;
    }

    .ehf-rating-number {
        font-size: 32px;
    }

    .ehf-rating-breakdown {
        gap: 9px;
    }

    
}


/* Readability update: larger, stronger text */
.ehf-hero-copy h1 { font-size: clamp(46px, 4.8vw, 70px); font-weight: 800; }
.ehf-hero-copy h3 { font-size: clamp(21px, 2vw, 26px); font-weight: 800; }
.ehf-hero-copy p { font-size: 17px; line-height: 1.9; font-weight: 600; }
.ehf-eyebrow { font-size: 13px; font-weight: 800; }
.ehf-reviews-heading h2 { font-size: clamp(26px, 2.2vw, 31px); font-weight: 800; }
.ehf-reviews-heading p { font-size: 14px; line-height: 1.6; font-weight: 600; }
.ehf-rating-label { font-size: 11px; font-weight: 800; }
.ehf-rating-number { font-size: 42px; font-weight: 900; }
.ehf-rating-number small { font-size: 15px; font-weight: 800; }
.ehf-rating-stars { font-size: 23px; font-weight: 700; }
.ehf-rating-count { font-size: 11px; font-weight: 600; }
.ehf-rating-row > span { font-size: 12px; font-weight: 800; }
.ehf-rating-row small { font-size: 11px; font-weight: 700; }
.ehf-rating-bar { height: 9px; }
.ehf-all-reviews {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 14px;
  color: #1769c2 !important;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none !important;
}
.ehf-all-reviews:hover { color: #e18a00 !important; }
@media (max-width: 767px) {
  .ehf-hero-copy h1 { font-size: 40px; }
  .ehf-hero-copy h3 { font-size: 20px; }
  .ehf-hero-copy p { font-size: 15px; }
  .ehf-reviews-heading h2 { font-size: 25px; }
  .ehf-reviews-heading p { font-size: 13px; }
}


/* Student reviews: 50 latest database entries, continuously auto-scrolling */
.ehf-reviews-viewport {
    height: 255px;
    overflow: hidden;
    position: relative;
    margin-top: 12px;
    text-align: left;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 5%, #000 95%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0, #000 5%, #000 95%, transparent 100%);
}
.ehf-reviews-track {
    display: flex;
    flex-direction: column;
    animation: ehfReviewsAutoScroll 60s linear infinite;
    will-change: transform;
}
.ehf-reviews-viewport:hover .ehf-reviews-track {
    animation-play-state: paused;
}
.ehf-student-review {
    flex: 0 0 auto;
    padding: 12px 2px 13px;
    border-bottom: 1px solid rgba(65, 105, 165, .18);
    text-align: left;
}
.ehf-student-review-top {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
}
.ehf-student-review-top strong {
    color: #244f8e;
    font-size: 14px;
    font-weight: 800;
}
.ehf-student-review-date {
    color: #71819b;
    font-size: 10px;
    white-space: nowrap;
}
.ehf-student-review-stars {
    margin: 4px 0;
    color: #ffad19;
    font-size: 16px;
    letter-spacing: 1px;
    line-height: 1.2;
}
.ehf-student-review p {
    margin: 0;
    color: #354e73;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
    overflow-wrap: anywhere;
}
.ehf-reviews-loading {
    color: #526987;
    font-size: 13px;
    font-weight: 600;
    text-align: left;
}
@keyframes ehfReviewsAutoScroll {
    from { transform: translateY(0); }
    to { transform: translateY(-50%); }
}
@media (prefers-reduced-motion: reduce) {
    .ehf-reviews-track { animation: none; }
}
@media (max-width: 767px) {
    .ehf-reviews-viewport { height: 240px; }
    .ehf-student-review-top strong { font-size: 13px; }
    .ehf-student-review p { font-size: 12px; }
}


/* Reduce the overall width of the rating summary section */
.ehf-rating-summary {
    width: 82%;
    max-width: 900px;
    margin: 26px auto 22px;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 18px;
}

@media (max-width: 767px) {
    .ehf-rating-summary {
        width: 96%;
        grid-template-columns: 1fr;
        gap: 12px;
    }
}
