/* MIIRS homepage — layout follows the client's reference, in the logo colours (green / gold / white). */
.h-home{--g:#0b6b34;--gd:#053d1e;--gx:#032a14;--gold:#d71920;--gold-d:#a8121a;--ink:#0f2a1c;--soft:#5d6b63;--light:#f3f7f4;--line:#e4ebe6;--r:16px}
.h-home section{padding:56px 0}
.h-home h2,.h-home h3,.h-home h4{text-transform:none;letter-spacing:-.01em}

/* shared */
.h-title{font-size:38px;font-weight:700;line-height:1.2;color:var(--gd)}
.h-title-sm{font-size:30px}
.h-tag{display:inline-block;font-size:30px;font-weight:700;color:var(--gd);padding-left:14px;border-left:5px solid var(--gold);line-height:1.1;margin-bottom:16px}
.h-sub{color:var(--soft);font-size:15px;margin:4px 0 22px}
.h-btn{display:inline-flex;align-items:center;gap:10px;background:var(--gold);color:var(--gx);font-weight:600;font-size:15px;padding:13px 28px;border-radius:40px;box-shadow:0 8px 20px rgba(215,25,32,.35);transition:.25s}
.h-btn:hover{background:var(--gold-d);transform:translateY(-2px)}
.h-btn-sm{padding:9px 20px;font-size:14px}
.h-nav{width:38px;height:38px;border-radius:50%;border:0;background:var(--gd);color:#fff;font-size:18px;cursor:pointer;display:grid;place-items:center;flex-shrink:0;transition:.2s;box-shadow:0 6px 14px rgba(0,0,0,.15)}
.h-nav:hover{background:var(--gold);color:var(--gx)}

/* stats card */
.h-home .h-stats-wrap{padding:26px 0 0;background:linear-gradient(180deg,#fff 0%,var(--light) 100%)}
.h-stats{display:grid;grid-template-columns:repeat(5,1fr);background:#fff;border-radius:var(--r);box-shadow:0 18px 45px rgba(5,61,30,.12);padding:26px 10px;border-bottom:4px solid var(--gold)}
.h-stats div{text-align:center;border-right:1px solid var(--line);padding:4px 10px}
.h-stats div:last-child{border:0}
.h-stats i{font-size:30px;color:var(--gd);margin-bottom:8px}
.h-stats b{display:block;font-size:30px;font-weight:700;color:var(--gd);line-height:1.1}
.h-stats span{font-size:14px;color:var(--soft);font-weight:500}

/* about */
.h-home .h-about{background:var(--light)}
.h-about-grid{display:grid;grid-template-columns:.9fr 1.1fr;gap:50px;align-items:center}
.h-about .h-title{margin-bottom:16px}
.h-about p{color:#3e4d44;font-size:16px;line-height:1.75;margin-bottom:26px;max-width:520px}
.h-about-img{position:relative;height:360px;border-radius:var(--r);background-size:cover;background-position:center;box-shadow:0 22px 50px rgba(5,61,30,.18)}
.h-seal{position:absolute;right:-24px;bottom:-24px;width:190px;height:190px;border-radius:50%;background:radial-gradient(circle,var(--gd) 55%,var(--gx));border:6px solid var(--gold);box-shadow:0 0 0 6px #fff,0 18px 35px rgba(0,0,0,.3);color:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:4px}
.h-seal i{color:var(--gold);font-size:26px}
.h-seal b{font-size:18px;font-weight:700;line-height:1.2}
.h-seal small{font-size:11px;color:var(--gold);letter-spacing:1px;text-transform:uppercase;font-weight:600}

/* departments */
.h-home .h-depts{background:#fff}
.h-center-head{text-align:center;margin-bottom:30px}
.h-center-head .h-title{display:flex;align-items:center;justify-content:center;gap:24px}
.h-line{display:inline-block;width:120px;height:3px;background:linear-gradient(90deg,transparent,var(--gold))}
.h-line:last-child{background:linear-gradient(90deg,var(--gold),transparent)}
.h-center-head p{color:var(--soft);margin-top:6px}
.h-dept-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:18px}
.h-dept{background:#fff;border:1px solid var(--line);border-radius:var(--r);padding:26px 12px 22px;text-align:center;box-shadow:0 10px 28px rgba(5,61,30,.07);transition:.3s;display:flex;flex-direction:column;align-items:center}
.h-dept i{font-size:38px;color:var(--gd);margin-bottom:14px;transition:.3s}
.h-dept b{font-size:15px;font-weight:600;color:var(--gd);line-height:1.3}
.h-dept span{font-size:14px;color:var(--soft);line-height:1.3}
.h-dept:hover{transform:translateY(-6px);border-color:var(--gold);box-shadow:0 18px 38px rgba(5,61,30,.14)}
.h-dept:hover i{color:var(--gold-d)}

/* clinical band */
.h-home .h-clinical{display:grid;grid-template-columns:44% 56%;padding:0;background:var(--light);min-height:400px}
.h-clinical-text{background:linear-gradient(120deg,var(--gx),var(--gd) 60%,var(--g));color:#d9e8de;padding:56px 70px 56px max(4%,calc((100vw - 1200px)/2));clip-path:polygon(0 0,100% 0,92% 100%,0 100%);display:flex;flex-direction:column;justify-content:center;position:relative;z-index:2;margin-right:-8%}
.h-clinical-text h2{color:#fff;font-size:38px;font-weight:700}
.h-clinical-text h3{color:var(--gold);font-size:26px;font-weight:700;line-height:1.3;margin:6px 0 16px}
.h-clinical-text p{font-size:16px;line-height:1.7;margin-bottom:26px;max-width:470px}
.h-clinical-text .h-btn{align-self:flex-start}
.h-clinical-img{background-size:cover;background-position:center 45%}

/* why + faculty */
.h-home .h-why{background:#fff}
.h-why-grid{display:grid;grid-template-columns:1fr .8fr 1.6fr;gap:34px;align-items:center}
.h-why-list ul{list-style:none;margin:20px 0 26px}
.h-why-list li{display:flex;align-items:center;gap:12px;padding:8px 0;font-size:16px;color:#2c3d33;font-weight:500}
.h-why-list li i{width:26px;height:26px;border-radius:50%;background:var(--gold);color:var(--gx);display:grid;place-items:center;font-size:12px;flex-shrink:0}
.h-why-img{height:380px;border-radius:var(--r);background-size:cover;background-position:center;box-shadow:0 20px 45px rgba(5,61,30,.18);transform:rotate(-2deg)}
.h-team{min-width:0}
.h-carousel{position:relative;display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:10px}
.h-track-wrap{overflow:hidden;padding:6px 2px 14px}
.h-track{display:flex;gap:16px;transition:transform .5s ease}
.h-person{flex:0 0 calc((100% - 32px)/3);background:#fff;border-radius:14px;box-shadow:0 10px 26px rgba(5,61,30,.1);padding:10px 10px 16px;text-align:center;border-bottom:3px solid var(--gold);transition:.3s}
.h-person:hover{transform:translateY(-4px)}
.h-person-img{aspect-ratio:1/1;border-radius:10px;overflow:hidden;background:var(--light);margin-bottom:12px}
.h-person-img img{width:100%;height:100%;object-fit:cover;object-position:top}
.h-person b{display:block;font-size:14px;font-weight:600;color:var(--gd);line-height:1.3}
.h-person span{font-size:12px;color:var(--soft)}
.h-cdots,.h-qdots{grid-column:1/-1;display:flex;justify-content:center;gap:8px;margin-top:6px}
.h-cdots span,.h-qdots span{width:9px;height:9px;border-radius:50%;background:#cfdad3;cursor:pointer;transition:.3s}
.h-cdots span.on,.h-qdots span.on{background:var(--gold);width:24px;border-radius:6px}

/* news band */
.h-home .h-news{background:linear-gradient(120deg,var(--gx),var(--gd) 60%,var(--g))}
.h-news-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:28px;gap:20px}
.h-news-head h2{color:#fff;font-size:32px;font-weight:700}
.h-news-head p{color:#b9cfc1;font-size:15px}
.h-news-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}
.h-news-card{background:#fff;border-radius:var(--r);overflow:hidden;box-shadow:0 18px 40px rgba(0,0,0,.25);transition:.3s;display:flex;flex-direction:column}
.h-news-card:hover{transform:translateY(-6px)}
.h-news-img{height:200px;background-size:cover;background-position:center;position:relative}
.h-date{position:absolute;left:16px;bottom:-14px;background:var(--g);color:#fff;font-size:13px;font-weight:600;padding:6px 14px;border-radius:6px;border-bottom:3px solid var(--gold)}
.h-news-body{padding:28px 20px 20px;flex:1;display:flex;flex-direction:column;justify-content:space-between;gap:10px}
.h-news-body h4{font-size:17px;font-weight:600;color:var(--gd);line-height:1.4}
.h-read{font-size:14px;font-weight:600;color:var(--gold-d)}

/* voices + cta */
.h-home .h-voices{background:var(--light)}
.h-voices-grid{display:grid;grid-template-columns:1fr 1fr;gap:34px;align-items:stretch}
.h-quotes{position:relative;display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:12px}
.h-quote{display:none;background:#fff;border-radius:var(--r);padding:28px 30px;box-shadow:0 14px 34px rgba(5,61,30,.1);grid-column:2;grid-row:1}
.h-quote.active{display:block;animation:hfade .5s ease}
@keyframes hfade{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
.h-quote>i{font-size:30px;color:var(--gd)}
.h-quote p{font-size:15.5px;line-height:1.7;color:#33443a;margin:10px 0 18px}
.h-quote-by{display:flex;align-items:center;gap:12px}
.h-quote-by img{width:52px;height:52px;border-radius:50%;object-fit:cover;object-position:top;border:3px solid var(--gold)}
.h-quote-by b{display:block;color:var(--gd);font-size:15px}
.h-quote-by span{font-size:13px;color:var(--soft)}
.h-quotes .h-nav.prev{grid-column:1;grid-row:1}
.h-quotes .h-nav.next{grid-column:3;grid-row:1}
.h-cta{border-radius:var(--r);background-size:cover;background-position:center;position:relative;overflow:hidden;display:flex;align-items:center;min-height:280px;box-shadow:0 20px 45px rgba(5,61,30,.2)}
.h-cta:before{content:'';position:absolute;inset:0;background:linear-gradient(100deg,var(--gx) 0%,rgba(5,61,30,.93) 50%,rgba(11,107,52,.55) 100%)}
.h-cta>div{position:relative;padding:36px 40px;color:#d9e8de}
.h-cta h2{color:#fff;font-size:30px;font-weight:700;line-height:1.25;margin-bottom:10px}
.h-cta p{margin-bottom:22px;max-width:380px}

/* responsive */
@media(max-width:1050px){
  .h-dept-grid{grid-template-columns:repeat(3,1fr)}
  .h-why-grid{grid-template-columns:1fr 1fr}
  .h-team{grid-column:1/-1}
  .h-person{flex-basis:calc((100% - 16px)/2)}
  .h-stats{grid-template-columns:repeat(3,1fr);row-gap:20px}
  .h-stats div:nth-child(3){border:0}
}
@media(max-width:800px){
  .h-about-grid,.h-voices-grid{grid-template-columns:1fr}
  .h-home .h-clinical{grid-template-columns:1fr}
  .h-clinical-text{clip-path:none;margin:0;padding:44px 6%}
  .h-clinical-img{min-height:260px}
  .h-why-grid{grid-template-columns:1fr}
  .h-why-img{height:280px;transform:none}
  .h-news-grid{grid-template-columns:1fr}
  .h-seal{right:12px;bottom:-30px;width:150px;height:150px}
  .h-seal b{font-size:15px}
  .h-title{font-size:30px}
  .h-line{width:40px}
  .h-news-head{flex-direction:column;align-items:flex-start}
}
@media(max-width:600px){
  .h-dept-grid{grid-template-columns:repeat(2,1fr)}
  .h-stats{grid-template-columns:repeat(2,1fr)}
  .h-stats div{border:0}
  .h-person{flex-basis:100%}
  .h-center-head .h-title{gap:10px;font-size:26px}
}

/* faculty carousel: native scroll, larger cards */
.h-why-grid{grid-template-columns:.95fr .65fr 1.8fr;gap:30px}
.h-why-img{height:340px}
.h-track-wrap{overflow:visible;padding:0}
.h-track{overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;transform:none!important;padding:6px 2px 16px}
.h-track::-webkit-scrollbar{display:none}
.h-person{scroll-snap-align:start;flex:0 0 calc((100% - 32px)/3);min-width:150px}
.h-person b{font-size:15px}
.h-person span{font-size:12.5px;display:block;line-height:1.35;margin-top:2px}
.h-news-img{background-position:center top}
.h-carousel{min-width:0}
.h-track-wrap{min-width:0;overflow:hidden}

/* ===== Carousels: cards per view set by data-per-view ===== */
.h-carousel[data-per-view="3"] .h-track>*{flex:0 0 calc((100% - 32px)/3);scroll-snap-align:start;min-width:0}
.h-carousel[data-per-view="4"] .h-track>*{flex:0 0 calc((100% - 48px)/4);scroll-snap-align:start;min-width:0}
@media(max-width:1050px){.h-carousel[data-per-view] .h-track>*{flex-basis:calc((100% - 16px)/2)}}
@media(max-width:600px){.h-carousel[data-per-view] .h-track>*{flex-basis:100%}}

/* Program & departments: photo cards */
.h-dept-card{background:#fff;border-radius:var(--r);overflow:hidden;box-shadow:0 12px 30px rgba(5,61,30,.1);border:1px solid var(--line);display:flex;flex-direction:column;transition:.3s}
.h-dept-card:hover{transform:translateY(-6px);box-shadow:0 22px 44px rgba(5,61,30,.16);border-color:var(--gold)}
.h-dept-img{height:210px;overflow:hidden;position:relative}
.h-dept-img:after{content:'';position:absolute;left:0;right:0;bottom:0;height:4px;background:var(--gold)}
.h-dept-img img{width:100%;height:100%;object-fit:cover;transition:transform .7s}
.h-dept-card:hover .h-dept-img img{transform:scale(1.07)}
.h-dept-body{padding:20px 22px 22px;display:flex;flex-direction:column;gap:6px;flex:1}
.h-dept-body b{font-size:18px;font-weight:600;color:var(--gd);line-height:1.3}
.h-dept-body p{font-size:14px;color:var(--soft);line-height:1.6;flex:1}
.h-dept-body .h-read{margin-top:6px}

/* Why choose: list + photo collage */
.h-why-grid{grid-template-columns:1fr 1.25fr!important;gap:50px!important}
.h-why-photos{display:grid;grid-template-columns:1.3fr 1fr;grid-template-rows:180px 180px;gap:14px}
.h-why-photos .h-why-img{height:auto;transform:none;border-radius:14px}
.h-why-photos .h-why-img.big{grid-row:span 2}

/* Faculty: own section */
.h-home .h-faculty{background:var(--light)}
.h-faculty .h-person{padding:12px 12px 18px;border-radius:16px}
.h-faculty .h-person-img{aspect-ratio:1/1.05;position:relative;border-radius:12px}
.h-faculty .h-person b{font-size:16px;margin-top:4px}
.h-faculty .h-person span{font-size:13px;color:var(--g);font-weight:600}
.h-faculty .h-person small{display:block;font-size:12px;color:var(--soft);margin-top:2px;line-height:1.4}
.h-badge{position:absolute;left:10px;top:10px;background:rgba(255,255,255,.95);color:var(--g);font-size:10px;font-weight:700;padding:4px 9px;border-radius:20px;letter-spacing:.3px}

/* News: two rows */
.h-news-grid{row-gap:28px}

@media(max-width:800px){
  .h-why-grid{grid-template-columns:1fr!important}
  .h-why-photos{grid-template-rows:150px 150px}
}
.h-why-photos .h-why-img{height:100%!important;min-height:0}
