/* ESL Institute — Internal pages */
.subpage-hero{
  position:relative;
  min-height:570px;
  display:flex;
  align-items:flex-end;
  color:#fff;
  background:var(--brand-dark);
  overflow:hidden;
}
.subpage-hero .bg{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
}
.subpage-hero::after{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(90deg,rgba(2,28,54,.84) 0%,rgba(3,47,86,.66) 42%,rgba(4,49,88,.30) 72%,rgba(0,0,0,.14) 100%),
    linear-gradient(0deg,rgba(2,25,48,.42),transparent 45%);
}
.subpage-hero .container{
  position:relative;
  z-index:2;
  padding:160px 0 86px;
}
.subpage-hero .eyebrow{color:#fff}
.subpage-hero h1{
  max-width:860px;
  margin:18px 0;
  font-size:clamp(3rem,5.4vw,5.6rem);
  text-shadow:0 4px 24px rgba(0,0,0,.22);
}
.subpage-hero p{
  max-width:680px;
  color:rgba(255,255,255,.86);
  font-size:1.05rem;
  line-height:1.75;
}
.subpage-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:28px}

.sub-section{padding:105px 0}
.sub-section--soft{
  background:
    radial-gradient(circle at 12% 10%,rgba(10,112,199,.055),transparent 28%),
    linear-gradient(180deg,#f8fbfe 0%,#fff 100%);
}
.sub-section--blue{
  color:#fff;
  background:
    radial-gradient(circle at 88% 14%,rgba(34,145,225,.20),transparent 26%),
    linear-gradient(135deg,#05345f 0%,#075895 58%,#064574 100%);
}
.sub-section--blue p,.sub-section--blue li{color:rgba(255,255,255,.78)}
.sub-section--blue .eyebrow{color:#fff}
.sub-section--warm{
  background:
    radial-gradient(circle at 84% 18%,rgba(255,173,24,.16),transparent 28%),
    linear-gradient(180deg,#fffaf2 0%,#fff 100%);
}
.sub-section--orange{
  color:#fff;
  background:linear-gradient(135deg,#f47a16,#ffad18);
}
.sub-section--orange p,.sub-section--orange li{color:rgba(255,255,255,.88)}
.sub-section--orange .eyebrow{color:#fff}
.sub-title-row{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:48px;
  margin-bottom:46px;
}
.sub-title-row>div{max-width:680px}
.sub-title-row>p{max-width:540px;margin:0}
.sub-title-row h2{margin-top:12px}

.split-editorial{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(360px,.9fr);
  gap:68px;
  align-items:center;
}
.split-editorial.reverse{grid-template-columns:minmax(360px,.9fr) minmax(0,1fr)}
.split-editorial.reverse .visual-card{order:-1}
.editorial-copy h2{margin-top:12px}
.editorial-copy>p{font-size:.98rem;line-height:1.78}
.visual-card{
  min-height:430px;
  border-radius:30px;
  overflow:hidden;
  background:#edf5fb;
  box-shadow:0 24px 65px rgba(18,55,91,.14);
}
.visual-card img{
  width:100%;
  height:100%;
  min-height:430px;
  object-fit:cover;
}
.visual-card--short,.visual-card--short img{min-height:360px}

.icon-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:20px;
}
.icon-grid.three{grid-template-columns:repeat(3,1fr)}
.icon-card{
  background:#fff;
  border:1px solid #dce7f1;
  border-radius:22px;
  padding:26px;
  box-shadow:0 12px 34px rgba(16,39,70,.05);
}
.icon-card .icon{
  width:48px;
  height:48px;
  border-radius:15px;
  display:grid;
  place-items:center;
  margin-bottom:18px;
  background:#eaf4fd;
  color:var(--brand);
  font-weight:900;
  font-size:1.25rem;
}
.icon-card:nth-child(2n) .icon{background:#fff2df;color:var(--accent-2)}
.icon-card h3{font-size:1.04rem}
.icon-card p{font-size:.84rem;margin:0;line-height:1.65}

.course-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:24px;
}
.course-card{
  position:relative;
  background:#fff;
  border:1px solid #dce7f1;
  border-radius:24px;
  padding:32px;
  overflow:hidden;
  box-shadow:0 16px 42px rgba(16,39,70,.07);
}
.course-card::before{
  content:"";
  position:absolute;
  left:0;top:0;bottom:0;
  width:5px;
  background:linear-gradient(180deg,var(--accent),var(--accent-2));
}
.course-card.blue::before{background:linear-gradient(180deg,var(--brand-2),var(--brand-dark))}
.course-card h3{font-size:1.4rem;color:var(--brand-dark)}
.course-card .course-meta{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin:16px 0 20px;
}
.meta-pill{
  display:inline-flex;
  padding:7px 11px;
  border-radius:999px;
  background:#eef5fb;
  color:#34516d;
  font-size:.74rem;
  font-weight:800;
}
.course-card ul,.check-list{
  padding:0;
  margin:20px 0 0;
  list-style:none;
  display:grid;
  gap:10px;
}
.course-card li,.check-list li{
  position:relative;
  padding-left:24px;
  color:var(--muted);
  font-size:.89rem;
}
.course-card li::before,.check-list li::before{
  content:"✓";
  position:absolute;
  left:0;
  color:var(--brand);
  font-weight:900;
}
.sub-section--blue .check-list li::before{color:var(--accent)}

.fact-strip{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:1px;
  border-radius:24px;
  overflow:hidden;
  background:rgba(255,255,255,.18);
  box-shadow:0 22px 58px rgba(2,28,54,.16);
}
.fact{
  padding:28px 26px;
  background:rgba(255,255,255,.08);
  backdrop-filter:blur(5px);
}
.fact strong{
  display:block;
  color:#fff;
  font:800 2rem/1 'Archivo';
  margin-bottom:8px;
}
.fact span{font-size:.8rem;color:rgba(255,255,255,.74)}

.steps-line{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:18px;
}
.mini-step{
  position:relative;
  background:#fff;
  border:1px solid #dce7f1;
  border-radius:20px;
  padding:27px 24px;
}
.mini-step span{
  display:grid;
  place-items:center;
  width:44px;height:44px;
  border-radius:14px;
  margin-bottom:18px;
  background:var(--brand);
  color:#fff;
  font:800 .82rem 'Archivo';
}
.mini-step:nth-child(even) span{background:var(--accent-2)}
.mini-step h3{font-size:1rem}
.mini-step p{font-size:.82rem;margin:0}

.price-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:20px;
}
.price-card{
  background:#fff;
  border:1px solid #dce7f1;
  border-radius:24px;
  padding:30px;
  text-align:center;
  box-shadow:0 16px 42px rgba(16,39,70,.06);
}
.price-card.featured{
  transform:translateY(-9px);
  border-color:rgba(255,126,24,.38);
  box-shadow:0 22px 50px rgba(255,126,24,.12);
}
.price-card .price-label{
  font-size:.76rem;
  text-transform:uppercase;
  letter-spacing:.09em;
  font-weight:800;
  color:var(--muted);
}
.price-card strong{
  display:block;
  margin:14px 0 9px;
  font:800 2.35rem 'Archivo';
  color:var(--brand-dark);
}
.price-card p{font-size:.82rem;margin:0}

.schedule-bar{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:20px;
  margin-top:28px;
}
.schedule-item{
  display:flex;
  align-items:center;
  gap:14px;
  padding:18px 20px;
  border-radius:16px;
  background:#f5f9fc;
  border:1px solid #e0eaf3;
}
.schedule-item b{color:var(--brand-dark)}
.schedule-item span{font-size:.84rem;color:var(--muted)}

.tags{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}
.tag{
  padding:10px 14px;
  border:1px solid #d8e5f1;
  border-radius:999px;
  background:#fff;
  color:#35516c;
  font-size:.8rem;
  font-weight:700;
}
.sub-section--blue .tag{
  background:rgba(255,255,255,.08);
  border-color:rgba(255,255,255,.18);
  color:#fff;
}
.company-logos{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:18px;
  margin-top:34px;
}
.company-logo{
  display:grid;
  place-items:center;
  min-height:110px;
  border:1px solid #dce7f1;
  border-radius:20px;
  background:#fff;
  color:#53687e;
  font:800 1rem 'Archivo';
  letter-spacing:.02em;
}

.history-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:18px;
}
.history-card{
  min-height:220px;
  padding:26px;
  border-radius:22px;
  background:#fff;
  border:1px solid #dce7f1;
  box-shadow:0 12px 34px rgba(16,39,70,.05);
}
.history-year{
  display:inline-flex;
  margin-bottom:18px;
  color:var(--accent-2);
  font:800 1.5rem 'Archivo';
}
.history-card h3{font-size:1rem}
.history-card p{font-size:.82rem;margin:0}
.quote-panel{
  position:relative;
  padding:52px;
  border-radius:30px;
  background:linear-gradient(135deg,#eef6fc,#f8fbfe);
  overflow:hidden;
}
.quote-panel::before{
  content:"“";
  position:absolute;
  top:12px;right:34px;
  font:800 10rem/1 'Archivo';
  color:rgba(7,93,168,.08);
}
.quote-panel blockquote{
  position:relative;
  max-width:850px;
  margin:0;
  font:600 clamp(1.8rem,3.2vw,3.25rem)/1.25 'Archivo';
  color:var(--ink);
}
.quote-panel cite{
  display:block;
  margin-top:24px;
  color:var(--brand);
  font-weight:800;
  font-style:normal;
}

.demo-note{
  display:inline-flex;
  margin-top:18px;
  padding:9px 12px;
  border-radius:12px;
  background:#fff8e8;
  color:#8a6312;
  font-size:.72rem;
  font-weight:700;
  border:1px solid #f4e2ae;
}
.sub-section--blue .demo-note{
  background:rgba(255,255,255,.08);
  color:rgba(255,255,255,.82);
  border-color:rgba(255,255,255,.16);
}

.sub-cta{
  display:grid;
  grid-template-columns:1fr auto;
  gap:30px;
  align-items:center;
  padding:38px 42px;
  border-radius:26px;
  background:linear-gradient(105deg,#ff9d11,#ffbd2d);
  box-shadow:0 18px 48px rgba(255,157,17,.16);
}
.sub-cta h2{font-size:2rem;color:#fff;margin-bottom:6px}
.sub-cta p{margin:0;color:rgba(26,42,56,.76)}
.sub-cta-actions{display:flex;gap:10px;flex-wrap:wrap}

.contact-grid{
  display:grid;
  grid-template-columns:.82fr 1.18fr;
  gap:30px;
}
.contact-panel{
  border-radius:26px;
  padding:36px;
  background:
    radial-gradient(circle at 90% 10%,rgba(48,151,223,.24),transparent 28%),
    linear-gradient(145deg,#06477f,#075ea4);
  color:#fff;
  box-shadow:0 20px 55px rgba(6,71,127,.18);
}
.contact-panel .eyebrow{color:#fff}
.contact-panel h2{margin-top:12px}
.contact-panel p{color:rgba(255,255,255,.78)}
.contact-info{
  display:grid;
  gap:12px;
  margin-top:24px;
}
.contact-info a,.contact-info div{
  display:flex;
  gap:12px;
  padding:15px 16px;
  border:1px solid rgba(255,255,255,.16);
  border-radius:14px;
  background:rgba(255,255,255,.07);
  color:#fff;
}
.contact-form{
  background:#fff;
  border:1px solid #dce7f1;
  border-radius:26px;
  padding:32px;
  box-shadow:0 16px 44px rgba(16,39,70,.07);
}
.contact-form h2{margin-bottom:8px}
.contact-form>p{font-size:.86rem}
.contact-form label{
  display:block;
  margin-bottom:6px;
  font-size:.78rem;
  font-weight:800;
  color:#3c526a;
}
.contact-form input,.contact-form textarea,.contact-form select{
  width:100%;
  margin-bottom:13px;
  padding:13px 14px;
  border:1px solid #d8e4ef;
  border-radius:12px;
  background:#f8fbfd;
  outline:0;
}
.contact-form textarea{min-height:130px;resize:vertical}
.contact-form input:focus,.contact-form textarea:focus,.contact-form select:focus{
  border-color:rgba(7,93,168,.5);
  box-shadow:0 0 0 3px rgba(7,93,168,.08);
}
.contact-form .btn{width:100%}
.note{font-size:.72rem;color:#7d8998;margin-top:10px}

.nav-links a.active{color:var(--accent);font-weight:800}
.sub-section--orange .course-meta{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin:22px 0 24px;
}
.sub-section--orange .check-list{gap:13px}
.sub-section--orange .check-list li{
  color:#fff;
  line-height:1.55;
}
.sub-section--orange .check-list li::before{color:#fff}
.sub-section--orange .meta-pill{
  background:rgba(255,255,255,.90);
  color:#74410a;
  padding:8px 13px;
}

@media(max-width:1000px){
  .subpage-hero{min-height:530px}
  .icon-grid.three{grid-template-columns:1fr 1fr}
  .subpage-hero .container{padding:140px 0 74px}
  .split-editorial,.split-editorial.reverse,.contact-grid{grid-template-columns:1fr;gap:40px}
  .split-editorial.reverse .visual-card{order:0}
  .icon-grid{grid-template-columns:1fr 1fr}
  .fact-strip{grid-template-columns:1fr 1fr}
  .steps-line{grid-template-columns:1fr 1fr}
  .history-grid{grid-template-columns:1fr 1fr}
  .visual-card,.visual-card img{min-height:360px}
}
@media(max-width:720px){
  .sub-section{padding:78px 0}
  .sub-title-row{display:block;margin-bottom:34px}
  .sub-title-row>p{margin-top:14px}
  .subpage-hero{min-height:500px}
  .subpage-hero .container{padding:120px 0 64px}
  .subpage-hero h1{font-size:clamp(2.6rem,12vw,4rem)}
  .course-grid,.price-grid,.schedule-bar,.company-logos{grid-template-columns:1fr}
  .price-card.featured{transform:none}
  .sub-cta{grid-template-columns:1fr;padding:30px 24px}
  .sub-cta-actions .btn{width:100%}
}
@media(max-width:560px){
  .icon-grid,.icon-grid.three,.fact-strip,.steps-line,.history-grid{grid-template-columns:1fr}
  .visual-card,.visual-card img{min-height:300px}
  .course-card{padding:26px 24px}
  .quote-panel{padding:34px 24px}
}