:root {
  --background: oklch(99.5% .002 120);
  --foreground: oklch(25.5% .033 155);
  --card: oklch(100% 0 0);
  --primary: oklch(86% .158 88);
  --primary-foreground: oklch(24.5% .045 155);
  --secondary: oklch(96% .014 145);
  --muted: oklch(97% .005 145);
  --muted-foreground: oklch(52% .014 155);
  --accent: oklch(94% .027 145);
  --border: oklch(90% .012 145);
  --ring: oklch(56% .11 150);
  --forest: oklch(30% .058 155);
  --forest-deep: oklch(23% .046 153);
  --on-forest: oklch(99% .005 120);
  --on-forest-muted: oklch(83% .016 145);
  --brand-green: oklch(72% .19 133);
  --hero-shade: linear-gradient(90deg, oklch(18% .033 155 / .87), oklch(18% .033 155 / .57) 39%, oklch(18% .033 155 / .05) 78%), linear-gradient(0deg, oklch(18% .033 155 / .57), transparent 45%);
  --cover-shade: linear-gradient(90deg, oklch(18% .033 155 / .85), oklch(18% .033 155 / .3));
  --shadow-soft: 0 8px 28px oklch(20% .04 155 / .07);
  --font-sans: "DM Sans", sans-serif;
  --font-display: "Manrope", sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--background);
  color: var(--foreground);
  line-height: 1.5;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, .brand strong, .footer-brand strong { font-family: var(--font-display); }
h2 { font-size: 35px; font-weight: 700; line-height: 1.15; }

.site-width { width: calc(100% - 112px); max-width: 1240px; margin-inline: auto; }
.utility-bar { background: var(--forest-deep); color: var(--on-forest-muted); padding: 9px 0; font-size: 11px; }
.utility-bar .site-width { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.utility-bar span, .utility-bar a { display: flex; align-items: center; gap: 8px; }
.utility-phones { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.utility-phones a + a { border-left: 1px solid oklch(83% .016 145 / .28); padding-left: 14px; }
.site-header { z-index: 20; background: var(--background); position: relative; }
.main-nav { align-items: center; gap: 28px; height: 91px; display: flex; }
.brand { align-items: center; gap: 12px; margin-right: auto; display: flex; }
.brand img { object-fit: contain; width: 72px; height: 58px; }
.brand strong { font-size: 16px; font-weight: 800; display: block; }
.brand small { color: var(--muted-foreground); margin-top: 4px; font-size: 8px; display: block; letter-spacing: .02em; }
.desktop-nav { align-items: center; gap: 27px; font-size: 12px; font-weight: 550; display: flex; }
.desktop-nav > a, .nav-item > a { align-items: center; gap: 5px; padding: 35px 0; display: flex; position: relative; }
.desktop-nav a:hover, .nav-active { color: var(--forest); }
.nav-active::after { content: ""; background: var(--forest); width: 18px; height: 2px; position: absolute; bottom: 24px; left: 0; }
.nav-item { position: relative; }
.nav-sub {
  display: none; position: absolute; top: 78px; left: 0; min-width: 240px;
  background: var(--card); border: 1px solid var(--border); border-radius: 6px;
  box-shadow: var(--shadow-soft); padding: 8px 0; z-index: 30;
}
.nav-item:hover .nav-sub, .nav-item:focus-within .nav-sub { display: block; }
.nav-sub a { display: block; padding: 8px 16px; font-size: 12px; font-weight: 550; }
.nav-sub a:hover { background: var(--accent); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.portal-button {
  display: inline-flex; align-items: center; justify-content: center;
  height: 39px; border-radius: 4px; padding: 0 14px; font-size: 12px; font-weight: 600;
  border: 1px solid var(--border); color: var(--foreground); background: var(--background);
  white-space: nowrap;
}
.portal-button:hover { background: var(--accent); }
.apply-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--primary); color: var(--primary-foreground);
  height: 39px; border-radius: 4px; padding: 0 17px; font-size: 12px; font-weight: 600;
  white-space: nowrap;
}
.apply-button:hover { filter: brightness(.96); }
.apply-button svg { width: 16px; height: 16px; }
.mobile-menu-button, .mobile-nav { display: none; }
.mobile-menu-button {
  background: none; border: 0; width: 36px; height: 36px; cursor: pointer; align-items: center; justify-content: center;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 4px; font-weight: 600; cursor: pointer; border: 0;
}
.btn-primary { background: var(--primary); color: var(--primary-foreground); height: 45px; padding: 0 21px; font-size: 12px; }
.btn-ghost { background: transparent; color: var(--on-forest); height: 45px; padding: 0 21px; font-size: 12px; }
.btn-outline { background: var(--background); border: 1px solid var(--border); height: 38px; padding: 0 15px; font-size: 11px; }
.btn-outline:hover { background: var(--accent); }
.btn svg { width: 16px; height: 16px; }

.home-hero { background: var(--forest); height: 600px; color: var(--on-forest); position: relative; overflow: hidden; }
.hero-photo { object-fit: cover; object-position: center 48%; width: 100%; height: 100%; }
.hero-shade, .page-cover-shade, .cta-shade { background: var(--hero-shade); position: absolute; inset: 0; }
.hero-content { padding-top: 118px; position: absolute; inset: 0; }
.hero-content h1 { max-width: 680px; font-size: 49px; font-weight: 750; line-height: 1.2; }
.hero-content h1 > span { margin-top: 10px; font-size: 39px; font-weight: 450; display: block; }
.hero-content p { color: var(--on-forest-muted); margin-top: 23px; font-size: 14px; line-height: 1.85; }
.hero-buttons { gap: 14px; margin-top: 28px; display: flex; }
.values-band { border-bottom: 1px solid var(--border); background: var(--secondary); }
.values-grid { grid-template-columns: repeat(3, 1fr); padding: 29px 0; display: grid; }
.values-grid > div { border-left: 1px solid var(--border); align-items: center; gap: 16px; padding-left: 36px; display: flex; }
.values-grid > div:first-child { border: 0; padding-left: 0; }
.values-grid svg { stroke-width: 1.4px; width: 29px; height: 29px; color: var(--forest); flex-shrink: 0; }
.values-grid strong, .values-grid small { display: block; }
.values-grid strong { font-size: 13px; font-weight: 650; }
.values-grid small { color: var(--muted-foreground); margin-top: 5px; font-size: 11px; }

.content-section { padding-block: 77px; }
.section-heading { justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 31px; display: flex; }
.section-heading p { color: var(--muted-foreground); margin-bottom: 17px; font-size: 13px; line-height: 1.8; }

.course-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; display: grid; }
.course-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 16px;
  overflow: hidden;
  color: inherit;
  font-weight: 400;
  font-size: inherit;
  text-decoration: none;
  box-shadow: 0 1px 2px oklch(20% .04 155 / .05);
  transition: transform .25s, box-shadow .25s;
}
.course-card:hover { box-shadow: 0 18px 40px oklch(20% .04 155 / .12); transform: translateY(-6px); text-decoration: none; }
.course-photo { aspect-ratio: 16 / 10; position: relative; overflow: hidden; background: var(--muted); }
.course-photo img { object-fit: cover; width: 100%; height: 100%; transition: transform .5s; }
.course-card:hover img { transform: scale(1.06); }
.course-kind {
  position: absolute;
  top: 14px;
  left: 14px;
  background: oklch(100% 0 0 / .92);
  color: var(--forest);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 650;
}
.course-card-copy { display: flex; flex-direction: column; gap: 12px; padding: 22px; flex: 1; }
.course-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.course-meta span {
  background: var(--secondary);
  color: var(--muted-foreground);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 550;
}
.course-card h3 { margin: 0; font-size: 22px; font-weight: 700; line-height: 1.25; }
.course-card-bottom {
  margin-top: auto;
  padding-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--forest);
  font-size: 13px;
  font-weight: 650;
}
.course-card:hover .course-card-bottom { color: var(--foreground); }

.institute-section { background: var(--secondary); padding: 72px 0; }
.institute-grid { grid-template-columns: 1fr 1fr; align-items: center; gap: 77px; display: grid; }
.institute-images { padding-right: 18px; position: relative; }
.institute-images > img { aspect-ratio: 1.13 / 1; object-fit: cover; border-radius: 4px; width: 100%; }
.since-stamp { background: var(--primary); color: var(--forest); border-radius: 3px; padding: 23px 26px; position: absolute; bottom: 30px; right: 0; }
.since-stamp strong { font-size: 37px; font-weight: 750; display: block; }
.since-stamp span { margin-top: 5px; font-size: 9px; font-weight: 650; line-height: 1.5; display: block; }
.institute-copy h2 { font-size: 35px; }
.institute-copy p { color: var(--muted-foreground); margin-top: 18px; font-size: 13px; line-height: 1.85; }
.institute-signature { align-items: center; gap: 15px; margin: 24px 0; font-size: 12px; line-height: 1.6; display: flex; }
.institute-signature svg { width: 31px; height: 31px; flex-shrink: 0; }

.news-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 25px; display: grid; }
.news-grid > a { padding-bottom: 12px; position: relative; display: block; }
.news-grid img { aspect-ratio: 1.55 / 1; object-fit: cover; border-radius: 4px; width: 100%; }
.news-grid > a > span { color: var(--muted-foreground); margin-top: 19px; font-size: 12px; display: block; }
.news-grid h3 { margin: 10px 0; font-size: 20px; font-weight: 650; line-height: 1.4; }
.news-grid p { color: var(--muted-foreground); max-width: 90%; font-size: 12px; line-height: 1.7; }
.news-grid > a > svg { width: 20px; position: absolute; bottom: 14px; right: 0; }

.home-cta { height: 330px; color: var(--on-forest); position: relative; overflow: hidden; }
.home-cta > img { object-fit: cover; object-position: center 45%; width: 100%; height: 100%; }
.home-cta > .site-width { padding-top: 53px; position: absolute; inset: 0; z-index: 1; }
.home-cta h2 { margin-bottom: 24px; font-size: 39px; }
.home-cta .cta-contact { align-items: center; gap: 9px; margin-left: 24px; font-size: 12px; display: inline-flex; }

.site-footer { background: var(--forest-deep); color: var(--on-forest); padding: 55px 0 0; }
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--on-forest);
}
.footer-brand img {
  width: 72px;
  height: 58px;
  object-fit: contain;
  border-radius: 4px;
  background: #fff;
}
.footer-brand strong {
  display: block;
  font-size: 16px;
  font-weight: 800;
}
.footer-brand span small {
  display: block;
  margin-top: 4px;
  font-size: 9px;
  color: var(--on-forest-muted);
  font-weight: 400;
}
.site-footer p { color: var(--on-forest-muted); margin: 15px 0; font-size: 12px; line-height: 1.9; }
.site-footer h3 { font-family: var(--font-sans); margin-bottom: 21px; font-size: 12px; font-weight: 600; }
.footer-grid { grid-template-columns: 1.3fr .85fr 1fr 1.4fr; gap: 40px; display: grid; }
.footer-grid > div > a:not(.footer-brand) { color: var(--on-forest-muted); font-size: 11px; line-height: 2.4; display: block; }
.footer-grid a:hover { color: var(--primary); }
.site-footer small { color: var(--on-forest-muted); font-size: 9px; line-height: 1.7; display: block; }
.footer-bottom { border-top: 1px solid oklch(83% .016 145 / .18); color: var(--on-forest-muted); justify-content: space-between; margin-top: 36px; padding: 20px 0; font-size: 9px; display: flex; }
.footer-dot { color: var(--primary); }

.page-cover { background: var(--forest); height: 325px; color: var(--on-forest); position: relative; overflow: hidden; }
.page-cover > img { object-fit: cover; object-position: center 43%; width: 100%; height: 100%; }
.page-cover-shade { background: var(--cover-shade); }
.page-cover-copy { padding-top: 28px; position: absolute; inset: 0; }
.breadcrumbs { color: var(--on-forest-muted); flex-wrap: wrap; gap: 12px; margin-bottom: 78px; font-size: 11px; display: flex; }
.page-cover h1 { max-width: 850px; font-size: 41px; font-weight: 650; line-height: 1.2; }

.source-content .section { padding: 68px 0; }
.source-content > div:nth-child(2n) { background: var(--secondary); }
.source-content .wrap { width: calc(100% - 112px); max-width: 1240px; margin: auto; }
.source-content h2 { margin-bottom: 23px; }
.source-content h3 { margin-bottom: 13px; font-size: 21px; }
.source-content p { color: var(--muted-foreground); margin-bottom: 19px; font-size: 14px; line-height: 1.9; }
.source-content .lead { max-width: 930px; margin-bottom: 32px; font-size: 17px; }
.source-content .split { grid-template-columns: 1fr 1fr; align-items: start; gap: 65px; display: grid; }
.source-content .split > img { border-radius: 4px; width: 100%; }
.source-content .split-portrait { grid-template-columns: 1.45fr 1fr; }
.source-content .kicker { color: var(--forest); margin-bottom: 16px; font-size: 11px; font-weight: 700; letter-spacing: .06em; }
.source-content .portrait-card { margin: 0; }
.source-content .portrait-card img { object-fit: cover; object-position: center 12%; border-radius: 4px; width: 100%; aspect-ratio: 3/4; }
.source-content figcaption { flex-direction: column; gap: 6px; padding: 20px 0; font-size: 13px; display: flex; }
.source-content figcaption span { color: var(--muted-foreground); font-size: 11px; }
.source-content .director-sign { font-weight: 700; color: var(--foreground); margin-top: 8px; }
.source-content .director-sign span { font-weight: 500; color: var(--muted-foreground); font-size: 12px; }
.source-content .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px; display: grid; }
.source-content .card { border-top: 1px solid var(--border); padding-top: 24px; }
.source-content .news { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 25px; display: grid; }
.source-content .news article { background: var(--card); border: 1px solid var(--border); border-radius: 6px; overflow: hidden; }
.source-content .news article > img { aspect-ratio: 1.45 / 1; object-fit: cover; width: 100%; }
.source-content .news article > div { padding: 23px; }
.source-content a:not(.btn):not(.btn-line):not(.course-card) { color: var(--forest); align-items: center; gap: 7px; font-size: 13px; font-weight: 600; display: inline-flex; }
.source-content a:not(.btn):not(.btn-line):not(.course-card):hover { text-decoration: underline; }
.source-content .table-wrap { margin-bottom: 24px; overflow-x: auto; }
.source-content table { border-collapse: collapse; width: 100%; min-width: 850px; font-size: 13px; }
.source-content th { background: var(--forest); color: var(--on-forest); text-align: left; padding: 18px 15px; font-weight: 500; }
.source-content td { border-bottom: 1px solid var(--border); padding: 19px 15px; }
.source-content td:last-child { color: var(--forest); font-weight: 700; }
.source-content tr:nth-child(2n) { background: var(--secondary); }
.source-content .notice { background: var(--secondary); border-left: 3px solid var(--forest); margin: 20px 0; padding: 19px 24px; font-size: 13px; line-height: 1.7; color: var(--foreground); }
.source-content .map iframe { border: 0; border-radius: 12px; width: 100%; height: 400px; }
.source-content .map p { margin-top: 12px; }
.source-content .btn { background: var(--primary); color: var(--primary-foreground); border-radius: 4px; padding: 13px 20px; text-decoration: none; }
.source-content .btn-line { background: transparent; border: 1px solid var(--forest); color: var(--forest); }

.compact-cta { background: var(--secondary); border-top: 1px solid var(--border); padding: 43px 0; }
.compact-cta > div { justify-content: space-between; align-items: center; gap: 30px; display: flex; }
.compact-cta h2 { font-size: 27px; margin: 0; }

.form-success {
  background: var(--accent);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 14px 16px;
  margin-top: 18px;
  font-size: 13px;
}
.form-honey { position: absolute; left: -9999px; height: 0; width: 0; opacity: 0; }
.application-layout { grid-template-columns: .85fr 1.15fr; gap: 85px; display: grid; }
.application-form { flex-direction: column; gap: 22px; display: flex; }
.form-row { grid-template-columns: 1fr 1fr; gap: 20px; display: grid; }
.application-form label { flex-direction: column; gap: 9px; font-size: 12px; font-weight: 600; display: flex; }
.application-form input:not([type="checkbox"]),
.application-form select,
.application-form textarea {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid var(--border);
  background-color: var(--card);
  width: 100%;
  min-height: 46px;
  color: var(--foreground);
  border-radius: 4px;
  outline: none;
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
  box-shadow: none;
}
.application-form textarea { min-height: 112px; resize: vertical; }
.application-form select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%233d5c4a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 40px;
  cursor: pointer;
}
.application-form select:required:invalid { color: var(--muted-foreground); }
.application-form select option { color: var(--foreground); background: var(--card); }
.application-form input[type="date"] {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%233d5c4a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2.5' y='3.5' width='11' height='10' rx='1.5'/%3E%3Cpath d='M2.5 6.5h11M6 2.5v2M10 2.5v2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 40px;
  color-scheme: light;
}
.application-form input[type="date"]::-webkit-calendar-picker-indicator {
  opacity: 0;
  width: 16px;
  height: 16px;
  cursor: pointer;
}
.application-form input:not([type="checkbox"]):focus,
.application-form select:focus,
.application-form textarea:focus {
  border-color: var(--ring); box-shadow: 0 0 0 2px var(--accent);
}
.application-form .form-check {
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
  font-weight: 500;
}
.application-form .form-check input {
  width: auto;
  margin-top: 2px;
}

.site-header.open .mobile-nav { display: flex; }

@media (min-width: 1500px) {
  .home-hero { height: 660px; }
  .hero-content { padding-top: 125px; }
  .hero-content h1 { font-size: 54px; }
}
@media (max-width: 1150px) {
  .site-width, .source-content .wrap { width: calc(100% - 72px); }
  .main-nav { gap: 20px; }
  .desktop-nav { gap: 18px; }
  .brand small { max-width: 145px; }
  .brand strong { font-size: 14px; }
  .brand img { width: 52px; }
  .hero-content h1 { font-size: 44px; }
  .hero-content h1 > span { font-size: 35px; }
  .institute-grid { gap: 45px; }
}
@media (max-width: 950px) {
  .desktop-nav { display: none; }
  .portal-button { display: none; }
  .mobile-menu-button { display: inline-flex; }
  .mobile-nav {
    background: var(--background); border-top: 1px solid var(--border); width: 100%;
    box-shadow: var(--shadow-soft); flex-direction: column; padding: 15px 36px 25px;
    position: absolute; top: 100%; left: 0;
  }
  .mobile-nav a { border-bottom: 1px solid var(--border); padding: 13px 0; font-size: 14px; display: flex; }
  .main-nav { height: 80px; }
  .values-grid > div { gap: 10px; padding-left: 20px; }
  .course-grid { grid-template-columns: 1fr 1fr; }
  .institute-grid { gap: 35px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 35px; }
  .source-content .split, .application-layout { gap: 35px; }
}
@media (max-width: 640px) {
  .site-width, .source-content .wrap { width: calc(100% - 40px); }
  .utility-bar { font-size: 9px; }
  .utility-bar svg { display: none; }
  .utility-bar .site-width { flex-direction: column; align-items: flex-start; gap: 6px; }
  .utility-phones a + a { border-left: 0; padding-left: 0; }
  .main-nav { height: 76px; }
  .brand img { width: 42px; height: 36px; }
  .brand strong { font-size: 12px; }
  .home-hero { height: 560px; }
  .hero-content { padding-top: 84px; }
  .hero-content h1 { font-size: 35px; }
  .hero-content h1 > span { font-size: 28px; }
  .values-grid { grid-template-columns: 1fr; }
  .values-grid > div, .values-grid > div:first-child { border: 0; border-bottom: 1px solid var(--border); padding: 16px 0; }
  .section-heading { flex-direction: column; align-items: start; }
  .course-grid, .news-grid, .institute-grid, .source-content .split, .source-content .split-portrait, .source-content .cards, .source-content .news, .application-layout, .form-row { grid-template-columns: 1fr; }
  .home-cta h2 { font-size: 33px; }
  .home-cta .cta-contact { margin: 18px 0 0; display: flex; }
  .footer-grid > div:first-child, .footer-grid > div:last-child { grid-column: 1 / -1; }
  .page-cover { height: 280px; }
  .page-cover h1 { font-size: 32px; }
  .compact-cta > div { flex-direction: column; align-items: start; }
}
