@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@400;500;600;700;800;900&display=swap");

:root {
  --blue: #0867ff;
  --ink: #111d45;
  --paper: #fffef7;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0px;
  color: var(--ink);
  font-family: "Noto Sans KR", Arial, sans-serif;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
}

.brand {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -1px;
  color: var(--blue);
}

.brand small {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  margin-left: 18px;
  letter-spacing: 0px;
}

nav {
  display: flex;
  gap: 30px;
  font-size: 14px;
  font-weight: 600;
}

nav a:hover {
  color: var(--blue);
}

.eyebrow {
  font-weight: 700;
  margin: 0px;
}

.programs {
  max-width: 1380px;
  margin: auto;
  padding: 75px 5% 80px;
}

.section-top {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 32px;
}

.section-top h2 {
  font-size: clamp(36px, 5vw, 58px);
  letter-spacing: -2px;
  line-height: 1;
  margin: 10px 0px;
}

.section-top p {
  font-size: 15px;
  line-height: 1.7;
  color: rgb(87, 97, 123);
  margin: 0px;
}

.filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0px 0px 28px;
}

.filters button {
  border: 1px solid rgb(205, 212, 226);
  border-radius: 30px;
  padding: 10px 19px;
  background: transparent;
  font-size: 14px;
  color: var(--ink);
}

.filters button[aria-pressed="true"] {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.card {
  background: rgb(255, 255, 255);
  border: 1px solid rgb(215, 220, 231);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}

.poster {
  background: var(--bg);
  color: var(--fg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.poster-top {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  letter-spacing: 1px;
}

.poster strong {
  font-family: Arial, sans-serif;
  font-weight: 900;
  line-height: 0.98;
  white-space: pre-line;
}

.card-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 0%;
}

.card p {
  line-height: 1.75;
  color: rgb(101, 112, 138);
  margin: 0px 0px 24px;
}

.card-bottom {
  justify-content: space-between;
  align-items: center;
  padding-top: 17px;
  font-size: 12px;
}

.card-bottom button {
  border-width: medium;
  border-style: none;
  border-color: currentcolor;
  border-image: none;
  background: none;
}

.journey {
  background: rgb(17, 29, 69);
  color: white;
  padding: 65px 5%;
}

.journey-inner {
  max-width: 1240px;
  margin: auto;
}

.journey h2 {
  font-size: 36px;
  letter-spacing: -1px;
  margin: 0px 0px 35px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.step {
  border-top: 1px solid rgb(83, 96, 128);
  padding-top: 22px;
}

.step span {
  color: rgb(164, 199, 255);
  font-size: 13px;
}

.step h3 {
  font-size: 21px;
  margin: 15px 0px 10px;
}

.step p {
  font-size: 14px;
  color: rgb(184, 194, 216);
  line-height: 1.8;
  margin: 0px;
}

.closing {
  text-align: center;
  padding: 75px 20px;
}

.closing h2 {
  font-size: clamp(26px, 4vw, 45px);
  letter-spacing: -1.8px;
  margin: 0px 0px 18px;
}

.closing p {
  color: rgb(101, 112, 138);
  font-size: 15px;
}

footer {
  border-top: 1px solid rgb(217, 223, 237);
  display: flex;
  justify-content: space-between;
  padding: 28px 5%;
  font-size: 12px;
  color: rgb(101, 112, 138);
}

dialog {
  border-width: medium;
  border-style: none;
  border-color: currentcolor;
  border-image: none;
  border-radius: 18px;
  padding: 0px;
  width: min(580px, 92vw);
  color: var(--ink);
  box-shadow: rgba(0, 0, 0, 0.2) 0px 24px 100px;
}

dialog::backdrop {
  background: rgba(9, 22, 61, 0.66);
}

.modal-head {
  padding: 30px;
  background: var(--blue);
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 20px;
}

.modal-head h2 {
  font-size: 26px;
  line-height: 1.5;
  margin: 0px;
}

.close {
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: white;
  background: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  font-size: 22px;
}

.modal-body {
  padding: 30px;
}

.hidden {
  display: none;
}

@media (max-width: 1000px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .poster strong {
    font-size: 52px;
  }
  
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 650px) {
  header {
    height: 70px;
  }
  
  .brand {
    font-size: 21px;
  }
  
  .brand small {
    display: none;
  }
  
  nav {
    gap: 18px;
    font-size: 13px;
  }
  
  .section-top {
    display: block;
  }
  
  .section-top p {
    margin-top: 20px;
  }
  
  .programs {
    padding-top: 45px;
  }
  
  .grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .poster {
    height: 250px;
  }
  
  .poster strong {
    font-size: 60px;
  }
  
  .steps {
    grid-template-columns: 1fr;
  }
  
  .journey h2 {
    font-size: 29px;
  }
  
  footer {
    display: block;
    line-height: 2;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  
  .card {
    transition: none;
  }
}

.editorial {
  max-width: 1380px;
  margin: auto;
  padding: 65px 5%;
}

.editorial-head {
  border-bottom: 2px solid var(--ink);
  padding-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 30px;
}

.editorial-head h2 {
  font-size: clamp(30px, 4vw, 52px);
  letter-spacing: -2px;
  line-height: 1.1;
  margin: 0px;
}

.editorial-head p {
  font-size: 14px;
  line-height: 1.7;
  margin: 0px;
  color: rgb(101, 112, 138);
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.story {
  border: 1px solid var(--ink);
  background: white;
  overflow: hidden;
}

.story img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  display: block;
}

.story h3 {
  font-size: 22px;
  line-height: 1.5;
  margin: 18px 20px 10px;
  letter-spacing: -0.7px;
}

.story p {
  font-size: 14px;
  color: rgb(101, 112, 138);
  line-height: 1.8;
  margin: 0px 20px 20px;
}

.story button,
.story a {
  display: block;
  margin: 0px 20px 22px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 700;
  border: 0px;
  background: none;
  padding: 0px;
  text-align: left;
}

@media (max-width: 900px) {
  .story-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .editorial-head {
    display: block;
  }
  
  .editorial-head p {
    margin-top: 18px;
  }
}

@media (max-width: 600px) {
  .story-grid {
    grid-template-columns: 1fr;
  }
  
  .editorial-head h2 {
    font-size: 32px;
  }
  
  nav {
    gap: 12px;
  }
  
  nav a {
    font-size: 12px;
  }
}

body {
  background: rgb(255, 255, 255);
}

.programs {
  padding-top: 65px;
}

.eyebrow {
  color: rgb(183, 165, 66);
  letter-spacing: 1px;
  font-size: 14px;
}

.section-top h2,
.editorial-head h2 {
  font-size: 38px;
  letter-spacing: -2px;
  line-height: 1.2;
}

.schedule-layout {
  display: grid;
  grid-template-columns: minmax(0px, 1fr) 255px;
  gap: 30px;
}

.grid {
  gap: 15px;
}

.card {
  border-radius: 0px;
  border-color: rgb(231, 233, 237);
  box-shadow: none;
}

.poster {
  height: 205px;
  padding: 18px;
}

.poster strong {
  font-size: 36px;
  letter-spacing: -1.5px;
}

.poster-top {
  font-size: 10px;
}

.card-body {
  padding: 17px;
}

.card p {
  font-size: 13px;
  margin-bottom: 18px;
}

.card-bottom {
  display: block;
}

.afterstories {
  border-left: 2px solid rgb(38, 53, 44);
  padding-left: 24px;
}

.afterstories > h3 {
  font-size: 25px;
  margin: 0px 0px 20px;
}

.afterstories article {
  position: relative;
  margin-bottom: 25px;
  border-bottom: 1px solid rgb(205, 212, 223);
  padding-bottom: 18px;
}

.afterstories img {
  width: 100%;
  height: 275px;
  object-fit: cover;
  display: block;
}

.afterstories strong {
  position: absolute;
  top: 160px;
  left: 12px;
  color: rgb(168, 255, 82);
  font-size: 35px;
  letter-spacing: -2px;
  line-height: 1;
}

.afterstories p {
  font-size: 13px;
  line-height: 1.5;
}

.afterstories button {
  font-size: 13px;
  color: var(--blue);
  border: 0px;
  background: none;
  padding: 0px;
}

.afterstories small {
  font-size: 12px;
  line-height: 1.6;
  color: rgb(101, 112, 138);
}

.editorial-head {
  border: 0px;
  padding: 0px;
}

.editorial {
  padding-top: 30px;
}

.story {
  box-shadow: rgb(255, 255, 255) 4px 4px 0px, rgb(203, 210, 220) 5px 5px 0px;
  border-color: rgb(203, 210, 220);
}

.closing {
  background: rgb(255, 254, 242);
}

@media (max-width: 1000px) {
  .schedule-layout {
    grid-template-columns: minmax(0px, 1fr) 210px;
    gap: 20px;
  }
  
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .poster strong {
    font-size: 36px;
  }
  
  .afterstories {
    padding-left: 16px;
  }
  
  .afterstories strong {
    font-size: 29px;
  }
}

@media (max-width: 650px) {
  .schedule-layout {
    display: block;
  }
  
  .grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  
  .poster {
    height: 165px;
    padding: 13px;
  }
  
  .poster strong {
    font-size: 27px;
  }
  
  .poster-top {
    font-size: 9px;
  }
  
  .poster-bottom {
    font-size: 11px;
  }
  
  .card-body {
    padding: 12px;
  }
  
  .card p {
    font-size: 12px;
  }
  
  .afterstories {
    border-left: 0px;
    border-top: 2px solid rgb(38, 53, 44);
    margin-top: 35px;
    padding: 24px 0px 0px;
  }
  
  .afterstories article {
    display: inline-block;
    width: 47%;
    vertical-align: top;
    margin-right: 2%;
  }
  
  .afterstories img {
    height: 230px;
  }
  
  .afterstories strong {
    top: 135px;
  }
  
  .section-top h2,
  .editorial-head h2 {
    font-size: 31px;
  }
}

.medieus-header {
  display: block;
  height: auto;
  border: 0px;
  background: white;
  padding: 24px 4% 0px;
  color: rgb(17, 17, 17);
}

.medieus-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  height: 35px;
}

.medieus-home {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: Arial, sans-serif;
  font-weight: 800;
  font-size: 17px;
}

.medieus-home button {
  border: 0px;
  background: none;
  color: rgb(101, 116, 119);
  font-size: 19px;
  padding: 0px;
}

.medieus-search {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  width: 210px;
  height: 38px;
  background: rgb(248, 250, 251);
  border: 1px solid rgb(241, 243, 244);
  border-radius: 22px;
  overflow: hidden;
}

.medieus-search input {
  min-width: 0px;
  width: 100%;
  background: none;
  border: 0px;
  padding: 0px 17px;
  font-size: 13px;
  outline-offset: -3px;
}

.medieus-search button {
  background: none;
  border: 0px;
  font-size: 22px;
  padding: 0px 13px;
  color: rgb(70, 80, 90);
}

.medieus-tools {
  display: flex;
  gap: 20px;
  align-items: center;
  font-size: 21px;
}

.medieus-tools button {
  position: relative;
  background: none;
  border: 0px;
  font-size: 23px;
  padding: 0px;
  color: rgb(86, 99, 100);
}

.medieus-tools span {
  position: absolute;
  top: -2px;
  right: -5px;
  font-size: 9px;
  background: rgb(237, 80, 90);
  border-radius: 10px;
  color: rgb(255, 255, 255);
  min-width: 13px;
  padding: 1px 3px;
}

.medieus-nav {
  display: block;
  margin: 22px auto 0px;
  text-align: center;
  font-size: 14px;
}

.medieus-nav a:hover {
  color: rgb(8, 103, 255);
}

.medieus-nav .membership:hover {
  color: rgb(255, 255, 255);
  background: rgb(239, 139, 8);
}

#quick-menu:not([hidden]) {
  display: flex;
  gap: 20px;
  justify-content: center;
  background: rgb(245, 248, 252);
  padding: 15px;
  margin-top: 15px;
  font-size: 14px;
}

@media (max-width: 600px) {
  .medieus-header {
    padding: 18px 4% 0px;
  }
  
  .medieus-home {
    font-size: 14px;
    gap: 8px;
  }
  
  .medieus-search {
    width: 135px;
    height: 30px;
  }
  
  .medieus-tools {
    gap: 12px;
    font-size: 18px;
  }
}

@media (max-width: 380px) {
  .medieus-search {
    width: 110px;
  }
}

.month-empty {
  grid-column: 1 / -1;
  padding: 48px 20px;
  text-align: center;
  color: rgb(101, 112, 138);
  font-size: 16px;
  line-height: 1.8;
  border: 1px solid rgb(215, 220, 231);
  border-radius: 14px;
  margin: 0px;
}

.poster-bottom {
  font-size: 26px;
  line-height: 1.15;
  font-weight: 800;
  white-space: nowrap;
}

@media (max-width: 650px) {
  .poster-bottom {
    font-size: 22px;
  }
}

.card-topic-price {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  margin-bottom: 18px;
  color: var(--ink);
}

.card-topic-price strong {
  font-size: 14px;
  white-space: nowrap;
}

.card-intro {
  font-size: 16px !important;
  line-height: 1.7 !important;
  color: var(--ink) !important;
  margin-bottom: 22px !important;
}

.card-experience {
  margin-top: auto;
}

.card-experience p {
  display: flex;
  align-items: baseline;
  gap: 9px;
  font-size: 14px;
  line-height: 1.65;
  margin: 0px 0px 10px;
  color: var(--ink);
}

.card-experience strong {
  flex: 0 0 54px;
  color: var(--blue);
}

@media (max-width: 650px) {
  .card-topic-price {
    flex-wrap: wrap;
    font-size: 14px;
  }
  
  .card-intro {
    font-size: 14px !important;
  }
  
  .card-experience p {
    display: block;
    font-size: 14px;
  }
  
  .card-experience strong {
    display: block;
    margin-bottom: 3px;
  }
  
  .poster strong {
    font-size: 25px;
  }
}

.card-bottom {
  background: rgb(238, 238, 238);
  border-top: 0px;
  border-radius: 6px;
  padding: 0px;
  margin-top: 16px;
  text-align: center;
}

.card-bottom button {
  display: block;
  width: 100%;
  padding: 14px 8px;
  color: rgb(38, 56, 68);
  font-size: 14px;
  font-weight: 700;
  border-radius: 6px;
}

.card-bottom button:hover {
  background: rgb(224, 224, 224);
}

.card-bottom button:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.story h3 {
  min-height: 2.9em;
}

.routine-story {
  padding: 0px;
  border: 1px solid rgb(203, 210, 220);
  border-radius: 0px;
  box-shadow: none;
  overflow: hidden;
}

.routine-summary {
  background: rgb(201, 210, 217);
  padding: 24px;
  min-height: 300px;
}

.routine-teacher {
  font-size: 16px;
  font-weight: 800;
  color: rgb(38, 56, 68);
}

.routine-summary h3 {
  font-size: 22px;
  min-height: 0px;
  margin: 8px 0px 12px;
  line-height: 1.4;
}

.routine-summary p {
  font-size: 16px;
  line-height: 1.65;
  color: rgb(38, 56, 68);
  margin: 0px 0px 18px;
}

.routine-summary button {
  font-size: 14px;
}

.routine-product-list {
  padding: 22px;
  background: rgb(255, 255, 255);
}

.routine-product-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0px 0px 14px;
}

.routine-product-row:last-child {
  margin-bottom: 0px;
}

.routine-photo {
  display: block;
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  background: rgb(255, 255, 255);
  border: 1px solid rgb(214, 220, 225);
  border-radius: 50%;
  overflow: hidden;
}

.routine-product-row .routine-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
  margin: 0px;
  padding: 6px;
}

.routine-name {
  font-size: 14px;
  line-height: 1.45;
  flex: 1 1 0%;
  font-weight: 600;
}

.routine-buy {
  font-size: 14px;
  white-space: nowrap;
  font-weight: 800;
  color: rgb(38, 56, 68);
}

.routine-buy:hover {
  color: var(--blue);
}

@media (max-width: 650px) {
  .routine-summary {
    min-height: 0px;
    padding: 20px;
  }
  
  .routine-product-list {
    padding: 18px;
  }
  
  .routine-photo {
    flex-basis: 58px;
    width: 58px;
    height: 58px;
  }
}

@scope (.hero-carousel, #programs) {
  * {
    box-sizing: border-box;
  }
  
  button,
  a {
    -webkit-tap-highlight-color: transparent;
  }
  
  a {
    color: inherit;
    text-decoration: none;
  }
  
  button {
    font: inherit;
    cursor: pointer;
  }
  
  .eyebrow {
    font-weight: 700;
    margin: 0px;
  }
  
  .programs {
    max-width: 1380px;
    margin: auto;
    padding: 75px 5% 80px;
  }
  
  .section-top {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 24px;
    margin-bottom: 32px;
  }
  
  .section-top h2 {
    font-size: clamp(36px, 5vw, 58px);
    letter-spacing: -2px;
    line-height: 1;
    margin: 10px 0px;
  }
  
  .section-top p {
    font-size: 15px;
    line-height: 1.7;
    color: rgb(87, 97, 123);
    margin: 0px;
  }
  
  .filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 0px 0px 28px;
  }
  
  .filters button {
    border: 1px solid rgb(205, 212, 226);
    border-radius: 30px;
    padding: 10px 19px;
    background: transparent;
    font-size: 14px;
    color: var(--ink);
  }
  
  .filters button[aria-pressed="true"] {
    background: var(--ink);
    color: white;
    border-color: var(--ink);
  }
  
  .grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }
  
  .card {
    background: rgb(255, 255, 255);
    border: 1px solid rgb(215, 220, 231);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
  }
  
  .poster {
    background: var(--bg);
    color: var(--fg);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
  }
  
  .poster-top {
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    letter-spacing: 1px;
  }
  
  .poster strong {
    font-family: Arial, sans-serif;
    font-weight: 900;
    line-height: 0.98;
    white-space: pre-line;
  }
  
  .card-body {
    display: flex;
    flex-direction: column;
    flex: 1 1 0%;
  }
  
  .card p {
    line-height: 1.75;
    color: rgb(101, 112, 138);
    margin: 0px 0px 24px;
  }
  
  .card-bottom {
    justify-content: space-between;
    align-items: center;
    padding-top: 17px;
    font-size: 12px;
  }
  
  .card-bottom button {
    border-width: medium;
    border-style: none;
    border-color: currentcolor;
    border-image: none;
    background: none;
  }
  
  @media (max-width: 1000px) {
    .grid {
      grid-template-columns: repeat(2, 1fr);
    }
    
    .poster strong {
      font-size: 52px;
    }
  }
  
  @media (max-width: 650px) {
    .section-top {
      display: block;
    }
    
    .section-top p {
      margin-top: 20px;
    }
    
    .programs {
      padding-top: 45px;
    }
    
    .grid {
      grid-template-columns: 1fr;
      gap: 20px;
    }
    
    .poster {
      height: 250px;
    }
    
    .poster strong {
      font-size: 60px;
    }
  }
  
  @media (prefers-reduced-motion: reduce) {
    .card {
      transition: none;
    }
  }
  
  .programs {
    padding-top: 65px;
  }
  
  .eyebrow {
    color: rgb(183, 165, 66);
    letter-spacing: 1px;
    font-size: 14px;
  }
  
  .section-top h2 {
    font-size: 38px;
    letter-spacing: -2px;
    line-height: 1.2;
  }
  
  .schedule-layout {
    display: grid;
    grid-template-columns: minmax(0px, 1fr) 255px;
    gap: 30px;
  }
  
  .grid {
    gap: 15px;
  }
  
  .card {
    border-radius: 0px;
    border-color: rgb(231, 233, 237);
    box-shadow: none;
  }
  
  .poster {
    height: 205px;
    padding: 18px;
  }
  
  .poster strong {
    font-size: 36px;
    letter-spacing: -1.5px;
  }
  
  .poster-top {
    font-size: 10px;
  }
  
  .card-body {
    padding: 17px;
  }
  
  .card p {
    font-size: 13px;
    margin-bottom: 18px;
  }
  
  .card-bottom {
    display: block;
  }
  
  .afterstories {
    border-left: 2px solid rgb(38, 53, 44);
    padding-left: 24px;
  }
  
  .afterstories > h3 {
    font-size: 25px;
    margin: 0px 0px 20px;
  }
  
  .afterstories article {
    position: relative;
    margin-bottom: 25px;
    border-bottom: 1px solid rgb(205, 212, 223);
    padding-bottom: 18px;
  }
  
  .afterstories img {
    width: 100%;
    height: 275px;
    object-fit: cover;
    display: block;
  }
  
  .afterstories strong {
    position: absolute;
    top: 160px;
    left: 12px;
    color: rgb(168, 255, 82);
    font-size: 35px;
    letter-spacing: -2px;
    line-height: 1;
  }
  
  .afterstories p {
    font-size: 13px;
    line-height: 1.5;
  }
  
  .afterstories button {
    font-size: 13px;
    color: var(--blue);
    border: 0px;
    background: none;
    padding: 0px;
  }
  
  .afterstories small {
    font-size: 12px;
    line-height: 1.6;
    color: rgb(101, 112, 138);
  }
  
  @media (max-width: 1000px) {
    .schedule-layout {
      grid-template-columns: minmax(0px, 1fr) 210px;
      gap: 20px;
    }
    
    .grid {
      grid-template-columns: repeat(2, 1fr);
    }
    
    .poster strong {
      font-size: 36px;
    }
    
    .afterstories {
      padding-left: 16px;
    }
    
    .afterstories strong {
      font-size: 29px;
    }
  }
  
  @media (max-width: 650px) {
    .schedule-layout {
      display: block;
    }
    
    .grid {
      grid-template-columns: repeat(2, 1fr);
      gap: 12px;
    }
    
    .poster {
      height: 165px;
      padding: 13px;
    }
    
    .poster strong {
      font-size: 27px;
    }
    
    .poster-top {
      font-size: 9px;
    }
    
    .poster-bottom {
      font-size: 11px;
    }
    
    .card-body {
      padding: 12px;
    }
    
    .card p {
      font-size: 12px;
    }
    
    .afterstories {
      border-left: 0px;
      border-top: 2px solid rgb(38, 53, 44);
      margin-top: 35px;
      padding: 24px 0px 0px;
    }
    
    .afterstories article {
      display: inline-block;
      width: 47%;
      vertical-align: top;
      margin-right: 2%;
    }
    
    .afterstories img {
      height: 230px;
    }
    
    .afterstories strong {
      top: 135px;
    }
    
    .section-top h2 {
      font-size: 31px;
    }
  }
  
  .month-empty {
    grid-column: 1 / -1;
    padding: 48px 20px;
    text-align: center;
    color: rgb(101, 112, 138);
    font-size: 16px;
    line-height: 1.8;
    border: 1px solid rgb(215, 220, 231);
    border-radius: 14px;
    margin: 0px;
  }
  
  .poster-bottom {
    font-size: 26px;
    line-height: 1.15;
    font-weight: 800;
    white-space: nowrap;
  }
  
  @media (max-width: 650px) {
    .poster-bottom {
      font-size: 22px;
    }
  }
  
  .card-topic-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    margin-bottom: 18px;
    color: var(--ink);
  }
  
  .card-topic-price strong {
    font-size: 14px;
    white-space: nowrap;
  }
  
  .card-intro {
    font-size: 16px !important;
    line-height: 1.7 !important;
    color: var(--ink) !important;
    margin-bottom: 22px !important;
  }
  
  .card-experience {
    margin-top: auto;
  }
  
  .card-experience p {
    display: flex;
    align-items: baseline;
    gap: 9px;
    font-size: 14px;
    line-height: 1.65;
    margin: 0px 0px 10px;
    color: var(--ink);
  }
  
  .card-experience strong {
    flex: 0 0 54px;
    color: var(--blue);
  }
  
  @media (max-width: 650px) {
    .card-topic-price {
      flex-wrap: wrap;
      font-size: 14px;
    }
    
    .card-intro {
      font-size: 14px !important;
    }
    
    .card-experience p {
      display: block;
      font-size: 14px;
    }
    
    .card-experience strong {
      display: block;
      margin-bottom: 3px;
    }
    
    .poster strong {
      font-size: 25px;
    }
  }
  
  .card-bottom {
    background: rgb(238, 238, 238);
    border-top: 0px;
    border-radius: 6px;
    padding: 0px;
    margin-top: 16px;
    text-align: center;
  }
  
  .card-bottom button {
    display: block;
    width: 100%;
    padding: 14px 8px;
    color: rgb(38, 56, 68);
    font-size: 14px;
    font-weight: 700;
    border-radius: 6px;
  }
  
  .card-bottom button:hover {
    background: rgb(224, 224, 224);
  }
  
  .card-bottom button:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 3px;
  }
  
  .table-plan-note {
    line-height: 1.7;
    color: rgb(101, 112, 138);
    margin-bottom: 0px;
    font-size: 14px !important;
  }
  
  .series-filters {
    margin-bottom: 16px;
  }
  
  .program-date {
    font-size: 22px;
    white-space: normal;
    line-height: 1.3;
  }
  
  .table-operation {
    margin-top: 44px;
    border-top: 1px solid rgb(204, 213, 228);
    padding-top: 28px;
  }
  
  .table-operation h3 {
    font-size: 24px;
    margin: 0px 0px 24px;
  }
  
  .table-operation-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
  }
  
  .table-operation-grid article {
    padding: 18px;
    background: rgb(243, 246, 251);
    border-radius: 8px;
  }
  
  .table-operation-grid span {
    font-size: 14px;
    color: var(--blue);
    font-weight: 700;
  }
  
  .table-operation-grid h4 {
    font-size: 17px;
    line-height: 1.5;
    margin: 14px 0px;
  }
  
  .table-operation-grid p {
    font-size: 14px;
    line-height: 1.8;
    color: rgb(87, 97, 123);
  }
  
  @media (max-width: 1000px) {
    .table-operation-grid {
      grid-template-columns: repeat(2, 1fr);
    }
  }
  
  @media (max-width: 650px) {
    .program-date {
      font-size: 19px;
    }
    
    .card-topic-price strong {
      font-size: 13px;
    }
    
    .table-operation-grid {
      grid-template-columns: 1fr;
    }
    
    .poster strong {
      font-size: clamp(18px, 4.3vw, 26px);
      letter-spacing: -1px;
    }
  }
  
  .card {
    container-type: inline-size;
  }
  
  .card .poster {
    height: auto;
    min-height: 0px;
    aspect-ratio: 421 / 288;
    padding: 6%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 6px;
  }
  
  .card .poster > strong {
    font-family: Arial, sans-serif;
    font-size: clamp(19px, 10cqw, 44px);
    font-weight: 900;
    line-height: 1.02;
    letter-spacing: -0.055em;
    white-space: pre-line;
    margin: 0px;
    color: var(--fg);
  }
  
  .card .poster-top {
    font-size: clamp(10px, 3.4cqw, 14px);
    letter-spacing: 0.8px;
  }
  
  .banner-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
  }
  
  .card .program-date {
    font-size: clamp(13px, 6.4cqw, 27px);
    line-height: 1.15;
    font-weight: 900;
    white-space: nowrap;
    letter-spacing: -0.05em;
  }
  
  .object-poster .program-object {
    position: absolute;
    right: 0px;
    top: 22%;
    width: 47%;
    height: 65%;
    object-fit: contain;
    z-index: 0;
    mix-blend-mode: multiply;
  }
  
  .object-poster .poster-top,
  .object-poster > strong,
  .object-poster .banner-footer {
    position: relative;
    z-index: 1;
  }
  
  .card .object-poster > strong {
    width: 57%;
    font-size: clamp(18px, 8.8cqw, 38px);
    line-height: 1.05;
    letter-spacing: -0.06em;
  }
  
  .object-poster .banner-footer {
    align-self: stretch;
  }
  
  .object-poster .poster-top {
    width: 100%;
  }
  
  .card-experience .practice-line {
    display: flex;
    align-items: baseline;
    flex-wrap: nowrap;
    gap: 9px;
    white-space: nowrap;
    font-size: 12px;
  }
  
  .card-experience .practice-line strong {
    display: inline-block;
    margin: 0px;
    flex: 0 0 54px;
  }
  
  .card-experience .practice-line span {
    white-space: nowrap;
    font-size: 12px;
    letter-spacing: -0.3px;
  }
  
  .card .poster.champagne-poster .program-object {
    right: 2%;
    top: 27%;
    width: 30%;
    height: 43%;
    object-fit: contain;
    mix-blend-mode: normal;
    clip-path: none;
  }
  
  .card .poster.champagne-poster > strong {
    width: 74%;
    font-size: clamp(19px, 10cqw, 44px);
    line-height: 1.02;
    position: relative;
    z-index: 1;
  }
  
  .schedule-layout {
    align-items: start;
  }
  
  #grid {
    align-self: start;
    align-items: start;
    align-content: start;
    grid-auto-rows: max-content;
    min-height: 0px;
    height: auto;
  }
  
  #grid > .card {
    align-self: start;
    height: auto;
    min-height: 0px;
    min-width: 0px;
  }
  
  #grid .card-body {
    flex: 0 0 auto;
    min-height: 0px;
    height: auto;
    gap: 0px;
  }
  
  #grid .card-experience {
    margin-top: 0px;
  }
  
  #grid .card-intro {
    min-height: 0px;
  }
  
  #grid .card-bottom {
    margin-top: 16px;
  }
  
  #grid .card-experience p {
    overflow-wrap: anywhere;
  }
  
  .series-filters {
    flex-wrap: wrap;
  }
  
  img {
    max-width: 100%;
  }
  
  @media (max-width: 900px) {
    .schedule-layout {
      grid-template-columns: minmax(0px, 1fr);
    }
    
    .afterstories {
      border-left: 0px;
      padding-left: 0px;
      border-top: 1px solid rgb(215, 220, 231);
      padding-top: 24px;
      margin-top: 28px;
    }
    
    .schedule-layout > * {
      min-width: 0px;
    }
  }
  
  @media (max-width: 650px) {
    .programs {
      padding: 32px 16px;
    }
    
    .section-top h2 {
      font-size: 28px;
    }
    
    .series-filters,
    .filters {
      display: flex;
      gap: 7px;
      overflow-x: auto;
      max-width: 100%;
      padding: 5px 0px 12px;
      scrollbar-width: thin;
      overscroll-behavior-x: contain;
      flex-wrap: nowrap !important;
    }
    
    .filters button {
      flex: 0 0 auto;
      min-height: 42px;
      padding: 9px 14px;
      font-size: 13px;
      white-space: nowrap;
    }
    
    #grid {
      gap: 22px;
      width: 100%;
      grid-template-columns: minmax(0px, 1fr) !important;
    }
    
    .card {
      container-type: inline-size;
    }
    
    .card .poster {
      aspect-ratio: 421 / 288;
    }
    
    .card-body {
      padding: 20px !important;
    }
    
    .card-topic-price {
      display: flex;
      justify-content: space-between;
      gap: 8px;
      flex-wrap: wrap;
    }
    
    .card-topic-price > span {
      font-size: 14px;
    }
    
    .card-topic-price > strong {
      font-size: 14px;
      white-space: nowrap;
    }
    
    .card p.card-intro {
      line-height: 1.7;
      margin: 18px 0px 22px;
      font-size: 15px !important;
    }
    
    .card-experience p {
      gap: 10px;
      line-height: 1.7;
      display: flex !important;
      font-size: 13px !important;
    }
    
    .card-experience strong {
      display: inline-block;
      flex: 0 0 54px;
      margin: 0px;
    }
    
    .card-experience span {
      min-width: 0px;
    }
    
    .card-experience .practice-line,
    .card-experience .practice-line span {
      white-space: nowrap;
      font-size: 12px !important;
    }
    
    .card-bottom button {
      min-height: 48px;
    }
  }
  
  @media (max-width: 360px) {
    .card .poster-top {
      letter-spacing: 0.4px;
    }
    
    .card-experience .practice-line span {
      letter-spacing: -0.6px;
      font-size: 11px !important;
    }
  }
}

@media (max-width: 1024px) {
  #programs .schedule-layout {
    display: grid;
    grid-template-columns: minmax(0px, 1fr);
    gap: 28px;
  }
  
  #programs #grid {
    grid-template-columns: repeat(2, minmax(0px, 1fr));
  }
  
  #programs .afterstories {
    min-width: 0px;
    border-left: 0px;
    padding-left: 0px;
    border-top: 1px solid rgb(215, 220, 231);
    padding-top: 24px;
  }
  
  #programs .table-operation-grid {
    grid-template-columns: repeat(2, minmax(0px, 1fr));
  }
}

@media (max-width: 767px) {
  #programs {
    width: 100%;
    min-width: 0px;
    padding: 36px 16px 44px;
  }
  
  #programs .section-top h2 {
    font-size: clamp(26px, 7vw, 34px);
    letter-spacing: -1px;
  }
  
  #programs .schedule-layout {
    display: grid;
    grid-template-columns: minmax(0px, 1fr);
  }
  
  #programs #grid {
    width: 100%;
    gap: 24px;
    grid-template-columns: minmax(0px, 1fr) !important;
  }
  
  #programs .filters {
    width: 100%;
    min-width: 0px;
    max-width: 100%;
    display: flex;
    overflow-x: auto;
    gap: 8px;
    padding: 4px 0px 12px;
    margin-bottom: 16px;
    overscroll-behavior-x: contain;
    flex-wrap: nowrap !important;
  }
  
  #programs .filters button {
    flex: 0 0 auto;
    white-space: nowrap;
    min-height: 44px;
    padding: 10px 14px;
    font-size: 14px;
  }
  
  #programs .card {
    min-width: 0px;
    max-width: 100%;
  }
  
  #programs #grid .card-body {
    min-width: 0px;
    padding: 20px !important;
  }
  
  #programs .card-topic-price {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    align-items: baseline;
  }
  
  #programs .card-topic-price > span,
  #programs .card-topic-price > strong {
    max-width: 100%;
    font-size: 14px;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  
  #programs #grid .card p.card-intro {
    line-height: 1.75;
    margin: 16px 0px 20px;
    overflow-wrap: anywhere;
    font-size: 15px !important;
  }
  
  #programs #grid .card-experience p,
  #programs #grid .card-experience .practice-line {
    align-items: flex-start;
    gap: 10px;
    line-height: 1.7;
    display: flex !important;
    white-space: normal !important;
    font-size: 14px !important;
  }
  
  #programs #grid .card-experience strong {
    flex: 0 0 54px;
    margin: 0px;
    font-size: 13px;
  }
  
  #programs #grid .card-experience span,
  #programs #grid .card-experience .practice-line span {
    flex: 1 1 0px;
    min-width: 0px;
    overflow-wrap: anywhere;
    letter-spacing: 0px;
    white-space: normal !important;
    font-size: 14px !important;
  }
  
  #programs .card-bottom button {
    width: 100%;
    min-height: 48px;
    white-space: normal;
    line-height: 1.5;
  }
  
  #programs .afterstories {
    width: 100%;
    margin-top: 0px;
  }
  
  #programs .afterstories article {
    min-width: 0px;
  }
  
  #programs .afterstories img {
    max-width: 100%;
    object-fit: cover;
  }
  
  #programs .table-operation {
    margin-top: 32px;
  }
  
  #programs .table-operation h3 {
    font-size: 23px;
    line-height: 1.5;
    word-break: keep-all;
    overflow-wrap: anywhere;
  }
  
  #programs .table-operation-grid {
    grid-template-columns: minmax(0px, 1fr);
    gap: 12px;
  }
  
  #programs .table-operation-grid article {
    min-width: 0px;
    padding: 20px;
  }
  
  #programs .table-operation p {
    overflow-wrap: anywhere;
    line-height: 1.8;
  }
}

@media (max-width: 767px) {
  #stories {
    width: 100%;
    min-width: 0px;
    padding: 32px 16px;
  }
  
  #stories .editorial-head {
    display: block;
  }
  
  #stories .editorial-head h2 {
    font-size: 30px;
  }
  
  #stories .editorial-head p {
    margin-top: 14px;
  }
  
  #stories .story-grid {
    grid-template-columns: minmax(0px, 1fr);
    gap: 20px;
  }
  
  #stories .story {
    min-width: 0px;
    max-width: 100%;
  }
  
  #stories img {
    max-width: 100%;
  }
  
  .closing {
    padding: 40px 20px;
  }
  
  .closing h2 {
    font-size: clamp(26px, 7vw, 36px);
    line-height: 1.4;
    overflow-wrap: anywhere;
  }
  
  body > footer {
    flex-wrap: wrap;
    gap: 12px;
    padding: 24px 16px;
    overflow-wrap: anywhere;
  }
  
  #detail {
    box-sizing: border-box;
    width: calc(100% - 24px);
    max-width: 560px;
    max-height: 85dvh;
    padding: 24px 18px;
    overflow-y: auto;
    overflow-wrap: anywhere;
  }
  
  #detail .modal-head {
    align-items: flex-start;
    gap: 12px;
  }
  
  #detail .modal-head h2 {
    min-width: 0px;
    font-size: 24px;
    line-height: 1.4;
  }
  
  #detail .close {
    flex-shrink: 0;
    min-width: 44px;
    min-height: 44px;
  }
}

body > .salon.salon-intro {
  --salon-badge-size: 232px;
  position: relative;
  z-index: 4;
  width: 100%;
  margin: 0px;
  padding: 48px 24px calc(var(--salon-badge-size) / 2 + 32px);
  overflow: visible;
  background: rgb(255, 255, 255);
  text-align: center;
}

body > .salon.salon-intro h1 {
  margin: 0px;
  color: var(--ink);
  font-size: clamp(24px, 3vw, 40px);
  font-weight: 900;
  line-height: 1.55;
  letter-spacing: -1.2px;
  word-break: keep-all;
}

body > .salon.salon-intro > .salon-badge {
  position: absolute;
  inset: auto auto 0px 50%;
  z-index: 1;
  display: grid;
  place-items: center;
  width: var(--salon-badge-size);
  height: var(--salon-badge-size);
  margin: 0px;
  transform: translate(-50%, 30%);
  border-radius: 50%;
  background: rgb(255, 255, 255);
  pointer-events: none;
}

body > .salon.salon-intro > .salon-badge img {
  display: block;
  width: 80%;
  height: auto;
}

@media (max-width: 767px) {
  body > .salon.salon-intro {
    --salon-badge-size: 180px;
    padding: 32px 16px calc(var(--salon-badge-size) / 2 + 24px);
  }
  
  body > .salon.salon-intro h1 {
    font-size: clamp(20px, 4.8vw, 30px);
    line-height: 1.6;
    letter-spacing: -0.8px;
  }
}

/* 두 행사 배너가 함께 사용하는 레이아웃 */
.feature.hero-carousel {
  position: relative;
  isolation: isolate;
  height: clamp(460px, 34vw, 560px);
  margin: 0;
  overflow: hidden;
  color: #fff5e3;
  background: #112349;
  touch-action: pan-y;
}

.hero-slide {
  position: absolute;
  inset: 0;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}

.hero-slide.is-active {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.hero-slide > img,
.hero-slide::after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-slide > img {
  object-fit: cover;
  object-position: center;
}

.hero-slide::after {
  content: "";
  background: linear-gradient(90deg, #07152bba, #07152b30 70%);
}

.event-copy {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 48px));
  height: 100%;
  margin: 0 auto;
  padding: 32px 0 70px;
}

.event-partner {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #ffc16d;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 1px;
}

.event-with {
  font-weight: 500;
  letter-spacing: 0;
}

.event-partner img {
  display: block;
  width: 100px;
  height: 46px;
  padding: 9px 12px;
  border-radius: 4px;
  background: #006dce;
  object-fit: contain;
}

.event-run .event-partner img {
  background: #fff;
}

.event-title {
  display: grid;
  grid-template-columns: max-content max-content;
  align-items: center;
  justify-content: start;
  gap: 0 18px;
  margin: 18px 0;
}

.event-title h2 {
  display: contents;
  font-family: Georgia, serif;
  font-size: clamp(3.35rem, 6.8vw, 7rem);
  font-weight: 700;
  line-height: 0.91;
  letter-spacing: -0.075em;
  color: #fff5e3;
}

.event-title h2 span {
  grid-column: 1 / -1;
  grid-row: 1;
  white-space: nowrap;
}

.event-title h2 em {
  grid-column: 1;
  grid-row: 2;
  font-weight: 400;
  font-style: italic;
  color: #ffc16d;
  white-space: nowrap;
}

.event-title > a {
  grid-column: 2;
  grid-row: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 4px;
  background: #ffc16d;
  color: #000;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: -1px;
  white-space: nowrap;
}

.event-subtitle {
  margin: 0 0 12px;
  font-size: clamp(1.3rem, 2.5vw, 2rem);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.055em;
  word-break: keep-all;
}

.event-date {
  margin: 14px 0 0;
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  font-weight: 700;
  line-height: 1.65;
  letter-spacing: -1px;
}

.hero-controls {
  position: absolute;
  z-index: 3;
  bottom: 20px;
  left: max(24px, calc((100% - 1120px) / 2));
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 10px;
  border: 1px solid #ffffff50;
  border-radius: 28px;
  background: #071b4280;
  color: #fff;
}

.hero-controls button {
  min-width: 38px;
  min-height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 22px;
  line-height: 1;
}

.hero-dots {
  display: flex;
  align-items: center;
}

.hero-dots button {
  width: 20px;
  min-width: 20px;
  background: radial-gradient(circle, #ffffff80 3px, transparent 4px);
}

.hero-dots button[aria-current="true"] {
  background: radial-gradient(circle, #c0ff52 4px, transparent 5px);
}

.hero-counter {
  font-size: 12px;
  font-weight: 700;
}

.hero-controls button:focus-visible,
.event-title > a:focus-visible {
  outline: 2px solid #c0ff52;
  outline-offset: 3px;
}

@media (max-width: 700px) {
  .feature.hero-carousel {
    height: 480px;
  }

  .event-copy {
    width: calc(100% - 32px);
    padding: 80px 0 70px;
  }

  .event-partner {
    gap: 8px;
    font-size: 12px;
    letter-spacing: 0;
  }

  .event-partner img {
    width: 88px;
    height: 40px;
  }

  .event-title {
    column-gap: 10px;
    margin: 16px 0 18px;
  }

  .event-title h2 {
    font-size: clamp(3rem, 11.4vw, 5.6rem);
  }

  .event-title > a {
    padding: 9px 10px;
    font-size: 13px;
  }

  .hero-controls {
    left: 16px;
    gap: 3px;
  }
}

@media (max-width: 420px) {
  .event-title {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 6px;
  }

  .event-title > a {
    grid-column: 1;
    grid-row: 3;
    justify-self: start;
    margin-top: 10px;
  }
}

@media (max-width: 370px) {
  .event-title h2 {
    font-size: 2.65rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide {
    transition: none;
  }
}
