:root{--ink:#142f50;--secondary:#617995;--teal:#087d89;--edge:#e3edf2}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:linear-gradient(#f5fcfd,#f6fbfe);font-family:"Heebo",Arial,sans-serif;color:var(--ink)}
button,input,select{font:inherit}
svg{display:block}

/* hero */
.hero{position:relative;isolation:isolate;overflow:hidden;background:linear-gradient(90deg,#effafd,#f8fcfd)}
.hero:before{content:"";position:absolute;width:330px;height:330px;border-radius:48% 0 0 52%;right:-210px;top:-115px;background:#c6e8eb;z-index:0}
.hero:after{content:"";position:absolute;width:120px;height:250px;border-radius:80px;background:#d3edf1;right:-40px;top:45px;opacity:.8;z-index:0}
.plant-books{position:absolute;right:0;top:0;bottom:0;width:238px;background-size:cover;background-position:center;background-repeat:no-repeat;z-index:1;pointer-events:none}
.hero-inner{max-width:1320px;margin:auto;padding:27px 16px 24px;display:flex;align-items:center;justify-content:space-between;min-height:214px;position:relative;z-index:2;gap:34px}
.hero-intro{flex:1;padding-right:125px}
.hero-intro h1{font-size:48px;line-height:1;margin:0 0 15px;font-weight:800;letter-spacing:-1px}
.hero-intro p{font-size:17px;color:var(--secondary);max-width:640px;margin:0;line-height:1.65;text-align:justify}
.feature-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;flex:0 0 595px}
.feature-card{height:165px;border-radius:15px;background:#fff;border:1px solid #e9f0f5;box-shadow:0 10px 28px rgba(19,84,116,.04);display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:14px 9px;color:inherit;text-decoration:none;font:inherit;cursor:default;transition:box-shadow .15s,transform .15s,border-color .15s}
button.feature-card,a.feature-card{cursor:pointer}
button.feature-card:hover,a.feature-card:hover,.feature-card.on{box-shadow:0 12px 28px rgba(11,110,121,.13);transform:translateY(-2px);border-color:#9fd0d4}
.feature-card.on{background:#f1fafa}
.feature-icon{width:46px;height:46px;display:grid;place-items:center;border-radius:50%;color:#0e7081;background:#e9f6f6;margin-bottom:12px}
.feature-icon svg{width:24px;height:24px}
.feature-card strong{font-size:13.5px;line-height:1.45;color:var(--ink)}
.feature-card small{font-size:12px;color:#607994;line-height:1.5;margin-top:6px}

/* filters */
.shell{max-width:1320px;margin:auto;padding:0 16px}
.filters{background:#fff;border-radius:17px;border:1px solid #e7eff4;box-shadow:0 8px 25px rgba(17,70,106,.04);padding:18px;display:grid;grid-template-columns:minmax(260px,1.4fr) minmax(160px,.7fr) minmax(160px,.7fr) auto auto;gap:14px;align-items:end;scroll-margin-top:90px}
.filters.has-topic{grid-template-columns:minmax(260px,1.3fr) minmax(150px,.68fr) minmax(150px,.68fr) minmax(150px,.68fr) auto auto}
.filter-item{min-width:0}
.filter-item label{display:flex;align-items:center;gap:5px;font-weight:700;font-size:13px;padding:0 8px 7px}
.filter-item label svg{width:15px;height:15px;color:#0b7d88}
.field{height:40px;position:relative}
.field input,.field select{height:100%;width:100%;border:1px solid #dce9f1;border-radius:50px;background:#f8fbfd;color:#3e5a76;padding:0 17px;outline:none;font-size:13.5px}
.field input{padding-right:40px}
.field input:focus,.field select:focus{border-color:#0a91a0;box-shadow:0 0 0 3px rgba(10,145,160,.08)}
.field>svg{position:absolute;right:13px;top:11px;width:18px;height:18px;color:#416a86}
.show-count{height:43px;border:0;border-radius:50px;background:linear-gradient(130deg,#1196a3,#056b79);color:#fff;font-weight:800;padding:0 22px;white-space:nowrap;cursor:pointer}
.reset{display:inline-flex;align-items:center;gap:5px;background:transparent;border:0;height:42px;white-space:nowrap;color:#1d8ca2;cursor:pointer;font-size:13px;font-weight:700}
.reset svg{width:15px;height:15px}

/* catalogue */
.catalogue{padding-top:22px;scroll-margin-top:80px}
.headrow{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin-bottom:16px}
.headrow h2{font-size:24px;margin:0;letter-spacing:-.4px}
.headrow p{color:#67829a;margin:1px 0 0;font-size:13.5px}
.legend{display:flex;gap:14px;font-size:12.5px;color:#58718a}
.legend span{display:inline-flex;align-items:center;gap:5px}
.md{width:7px;height:7px;border-radius:50%;display:inline-block}
.md-z{background:#3f7fd1}.md-y{background:#8a63d2}.md-f{background:#3c9b5a}
.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.course-card{position:relative;background:#fff;border:1px solid #e4edf3;box-shadow:0 8px 19px rgba(16,72,105,.04);border-radius:13px;min-height:158px;padding:12px;display:grid;grid-template-columns:minmax(0,1fr) 134px;gap:14px}
.course-card.is-full,.course-card.is-cancel{border-right:4px solid #e05252}
.course-card.is-cancel{opacity:.62}
.course-card.is-cancel h3{text-decoration:line-through}
.course-details{min-width:0;display:flex;flex-direction:column;justify-content:space-between;gap:10px}
.course-leading{display:flex;align-items:flex-start;gap:12px}
.circle-symbol{border-radius:50%;display:grid;place-items:center;flex:0 0 42px;width:42px;height:42px}
.circle-symbol svg{width:21px;height:21px}
.title-area{min-width:0;padding-left:84px}
.course-card h3{font-size:16px;line-height:1.3;margin:1px 0 4px;font-weight:800}
.summary{margin:0;color:#677d93;font-size:13px;line-height:1.5;text-align:justify}
.teacher{font-size:12.5px;font-weight:700;margin-top:6px}
.teacher .muted{font-weight:500;color:#7a8ea2}
.course-bottom{display:flex;align-items:flex-end;justify-content:space-between;gap:12px}
.metadata{display:flex;flex-wrap:wrap;gap:6px 14px;color:#496a89;font-size:12px}
.metadata span{display:inline-flex;align-items:center;gap:4px}
.metadata svg{height:15px;width:15px;color:#2b7f8c}
.brch .md{margin-right:4px}
.brch .soon{font-size:10.5px;color:#a35a14;background:#fdf0e3;padding:0 6px;border-radius:999px;margin-right:2px}
.detail-note{display:inline-flex;align-items:center;gap:4px;color:#94a6b6;font-size:12px;font-weight:600;white-space:nowrap;text-decoration:none}
.detail-note.on{color:#087b87;font-size:13.5px;font-weight:800}
.detail-note svg{width:15px;height:15px}
a.detail-note:hover{text-decoration:underline}
.course-image{position:relative;height:134px}
.course-image img{display:block;width:100%;height:100%;object-fit:cover;border-radius:11px}
.state{position:absolute;top:4px;left:calc(100% + 14px);white-space:nowrap;background:#ebf6eb;color:#398249;padding:4px 10px;border-radius:50px;font-size:11.5px;font-weight:800;z-index:3}
.state.full{background:#ffe5e4;color:#b94242}.state.soon{background:#fff1e0;color:#bd7c2e}.state.cancel{background:#e9edf1;color:#5f6b7d}
.course-card.hid{display:none}
.no-results{display:none;text-align:center;color:#58758b;background:#fff;padding:25px;border:1px solid var(--edge);border-radius:14px;margin-top:16px}

@media(max-width:1150px){.feature-grid{flex-basis:490px;gap:8px}.feature-card{height:155px}.filters,.filters.has-topic{grid-template-columns:1.3fr 1fr 1fr}.filters.has-topic .filter-item:first-child{grid-column:1/-1}.reset,.show-count{width:100%}.hero-intro{padding-right:80px}.plant-books{opacity:.66;width:170px}}
@media(max-width:850px){.hero-inner{display:block}.feature-grid{margin-top:25px;grid-template-columns:repeat(4,minmax(0,1fr))}.grid{grid-template-columns:1fr}.filters,.filters.has-topic{grid-template-columns:1fr 1fr}.filters .filter-item:first-child{grid-column:1/-1}.hero-intro h1{font-size:36px}.hero-intro{padding-right:0}.plant-books{opacity:.25}.headrow{flex-direction:column;align-items:flex-start}}
@media(max-width:580px){.feature-grid{grid-template-columns:repeat(2,1fr)}.feature-card{height:135px}.filters,.filters.has-topic{grid-template-columns:1fr}.course-card{grid-template-columns:minmax(0,1fr) 100px}.course-image{height:110px}.course-card h3{font-size:14.5px}.title-area{padding-left:0}.state{left:auto;right:6px;top:6px}.course-bottom{flex-wrap:wrap}}

/* about + contact */
.howto{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:24px}
.howto-item{display:flex;gap:14px;align-items:flex-start;background:#fff;border:1px solid #e4edf3;border-radius:15px;box-shadow:0 8px 19px rgba(16,72,105,.04);padding:18px 20px}
.howto-item .feature-icon{margin:0;flex:0 0 46px}
.howto-item b{font-size:16px}
.howto-item p{margin:4px 0 8px;font-size:14px;color:#5a6f86;line-height:1.6;text-align:justify}
.howto-item a{display:inline-flex;align-items:center;gap:5px;color:#087b87;font-weight:800;font-size:13.5px;text-decoration:none}
.howto-item a svg{width:15px;height:15px}
.people{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.person,.branch-card{background:#fff;border:1px solid #e4edf3;border-radius:14px;box-shadow:0 8px 19px rgba(16,72,105,.04);padding:18px 20px;display:flex;flex-direction:column;gap:10px}
.person.lead{grid-column:1/-1;flex-direction:row;align-items:center;justify-content:space-between;gap:24px;background:linear-gradient(90deg,#fff,#eff9fa);border-color:#cfe6e8}
.person.lead .p-bio{flex:1}
.p-head{display:flex;align-items:center;gap:12px}
.avatar{flex:0 0 48px;width:48px;height:48px;border-radius:50%;display:grid;place-items:center;font-weight:800;font-size:16px}
.avatar svg{width:23px;height:23px}
.p-head h3{margin:0;font-size:16.5px;font-weight:800}
.p-tag{display:inline-block;margin-top:3px;font-size:12px;font-weight:700;color:#0b6e79;background:#e7f5f5;border-radius:999px;padding:2px 10px}
.p-bio{margin:0;font-size:13.5px;color:#5a6f86;line-height:1.6;text-align:justify}
.p-mail{margin-top:auto;display:inline-flex;align-items:center;gap:7px;color:#087b87;font-size:13.5px;font-weight:700;text-decoration:none;border-top:1px solid #eef3f6;padding-top:10px}
.person.lead .p-mail{margin:0;border:0;padding:0;white-space:nowrap}
.p-mail svg{width:16px;height:16px}
.p-mail:hover span{text-decoration:underline}
.branches{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.b-org{margin:0;font-size:13.5px;color:#5a6f86}
.rows{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}
.rows li{display:flex;justify-content:space-between;align-items:center;gap:10px;background:#f4f8fa;border-radius:9px;padding:7px 12px;font-size:13.5px}
.r-k{display:inline-flex;align-items:center;gap:6px;color:#5a6f86;white-space:nowrap}
.r-k svg{width:15px;height:15px;color:#0b7d88}
.r-v{font-weight:700;color:#1d3149;text-align:left}
.r-v a{color:#087b87;text-decoration:none}
.r-v a:hover{text-decoration:underline}
@media(max-width:1000px){.people,.branches{grid-template-columns:1fr 1fr}.person.lead{flex-direction:column;align-items:flex-start}}
@media(max-width:640px){.people,.branches,.howto{grid-template-columns:1fr}.rows li{flex-direction:column;align-items:flex-start;gap:2px}.r-v{text-align:right}}

/* V5 refinements */
.grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}
.grid.three .course-card{grid-template-columns:minmax(0,1fr) 110px}
.grid.three .course-image{height:auto;min-height:134px}
.grid.three .title-area{padding-left:0}
.hero.about .hero-inner{gap:14px}
.hero.about .hero-intro{flex:1 1 0;min-width:0}
.hero.about .feature-grid{flex:0 0 calc((100% - 14px)/2);margin-left:0}
.howto-item{align-items:stretch}
.howto-txt{flex:1;display:flex;flex-direction:column}
.howto-txt a{align-self:flex-end;margin-top:auto}
.person .p-id{min-width:0;display:flex;flex-direction:column;gap:3px}
.person .p-mail{margin:0;border:0;padding:0;font-size:13px;font-weight:600}
.person .p-mail svg{width:14px;height:14px}
.p-foot{margin-top:auto;display:flex;justify-content:flex-end;border-top:1px solid #eef3f6;padding-top:10px}
@media(max-width:1000px){.grid.three{grid-template-columns:1fr 1fr}}
@media(max-width:850px){.hero.about .feature-grid{margin-top:25px}}
@media(max-width:640px){.grid.three{grid-template-columns:1fr}}
.grid.three .summary{text-align:right}

/* ---- V6 responsive ---- */
@media(max-width:1180px) and (min-width:851px){
  .hero-inner{gap:20px}.feature-grid{flex-basis:470px;gap:8px}.feature-card{height:150px;padding:10px 6px}
  .feature-card small{font-size:11.5px}
  .grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}
  .grid.three .course-card{grid-template-columns:1fr}
  .grid.three .course-image{order:-1;height:130px;min-height:0}
  .grid.three .state{left:auto;right:8px;top:8px}
}
@media(max-width:850px){
  .hero-inner{padding-top:24px;padding-bottom:22px}
  .hero.about .feature-grid{flex-basis:auto}
  .feature-card{height:auto;min-height:128px}
}
@media(max-width:600px){
  .hero-intro p,.summary,.p-bio,.howto-item p{text-align:right}
  .hero-intro h1{font-size:32px}
  .course-card,.grid.three .course-card{grid-template-columns:1fr;padding:0;overflow:hidden;gap:0}
  .course-image,.grid.three .course-image{order:-1;height:150px;min-height:0}
  .course-image img{border-radius:0}
  .course-details{padding:14px}
  .state{left:10px;right:auto;top:10px}
  .title-area{padding-left:0}
  .course-card.is-full,.course-card.is-cancel{border-right-width:4px}
  .people,.branches,.howto{grid-template-columns:1fr}
  .headrow h2{font-size:21px}
}
@media(max-height:500px) and (orientation:landscape){
  .hero-inner{min-height:0;padding-top:18px;padding-bottom:18px}
  .feature-card{min-height:110px;height:auto}
  .feature-icon{width:38px;height:38px;margin-bottom:8px}
}
@media(max-width:1180px){.hero-intro p{text-align:right}}
