.elementor-31 .elementor-element.elementor-element-5588845{--display:flex;--min-height:360px;--flex-direction:column;--container-widget-width:100%;--container-widget-height:initial;--container-widget-flex-grow:0;--container-widget-align-self:initial;--flex-wrap-mobile:wrap;--justify-content:center;--padding-top:0px;--padding-bottom:0px;--padding-left:0px;--padding-right:0px;}.elementor-31 .elementor-element.elementor-element-5588845:not(.elementor-motion-effects-element-type-background), .elementor-31 .elementor-element.elementor-element-5588845 > .elementor-motion-effects-container > .elementor-motion-effects-layer{background-color:#B14C4C;}.elementor-widget-heading .elementor-heading-title{font-family:var( --e-global-typography-primary-font-family ), Sans-serif;font-weight:var( --e-global-typography-primary-font-weight );color:var( --e-global-color-primary );}.elementor-31 .elementor-element.elementor-element-46da599{margin:0px 0px calc(var(--kit-widget-spacing, 0px) + 0px) 0px;padding:020px 30px 20px 30px;border-radius:15px 15px 15px 15px;text-align:center;}.elementor-31 .elementor-element.elementor-element-46da599.elementor-element{--align-self:center;}.elementor-31 .elementor-element.elementor-element-46da599 .elementor-heading-title{font-family:"Noto Sans KR", Sans-serif;font-size:40px;font-weight:600;color:#FFFFFF;}.elementor-31 .elementor-element.elementor-element-0ad0259{--display:flex;--flex-direction:column;--container-widget-width:100%;--container-widget-height:initial;--container-widget-flex-grow:0;--container-widget-align-self:initial;--flex-wrap-mobile:wrap;--gap:0px 0px;--row-gap:0px;--column-gap:0px;--margin-top:0px;--margin-bottom:0px;--margin-left:0px;--margin-right:0px;--padding-top:0px;--padding-bottom:150px;--padding-left:0px;--padding-right:0px;}.elementor-31 .elementor-element.elementor-element-0ad0259:not(.elementor-motion-effects-element-type-background), .elementor-31 .elementor-element.elementor-element-0ad0259 > .elementor-motion-effects-container > .elementor-motion-effects-layer{background-color:#FFFBE9;}/* Start custom CSS for html, class: .elementor-element-da1e5b9 *//* ============================================
   🔥 모바일에서도 PC와 비슷한 배치 강제 2열
   ============================================ */

/* 768px 이하 — 2열 강제 */
@media (max-width: 768px) {
  .onlyou-curriculum .personal-cards,
  .onlyou-curriculum .components-grid,
  .onlyou-curriculum .grid-2,
  .onlyou-curriculum .prep-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px !important;
  }

  /* 글자 약간 키우기 */
  .onlyou-curriculum,
  .onlyou-curriculum p,
  .onlyou-curriculum .card p,
  .onlyou-curriculum .prep-card p,
  .onlyou-curriculum .pf-body p {
    font-size: 16px !important;
    line-height: 1.75 !important;
  }
}

/* 480px 이하 — 역시 2열 강제 */
@media (max-width: 480px) {
  .onlyou-curriculum .personal-cards,
  .onlyou-curriculum .components-grid,
  .onlyou-curriculum .grid-2,
  .onlyou-curriculum .prep-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 14px !important;
  }
}
/* 모바일에서 네 칸 카드(components-grid) 너무 길어지는 것 줄이기 */
@media (max-width: 768px) {
  /* 1) 카드 자체 여백 줄이기 */
  .onlyou-curriculum .components-grid .component-card {
    padding: 18px 14px !important;
  }

  /* 2) 제목/본문 글씨 살짝 줄이기 */
  .onlyou-curriculum .components-grid .component-card h4 {
    font-size: 14px !important;
    line-height: 1.4;
  }

  .onlyou-curriculum .components-grid .component-card p {
    font-size: 13px !important;
    line-height: 1.6 !important;
    margin-bottom: 0;
  }

}
/* ============================================
   🔥 3개짜리 세트(2+1)에서 마지막 카드를 가운데 넓게 배치
   ============================================ */
@media (max-width: 768px) {
  /* 1) 개인 맞춤 카드 세트 (위에 3장 있는 pf-card) */
  .onlyou-curriculum .personal-cards > .pf-card:last-child {
    grid-column: 1 / -1;       /* 두 칼럼 전체 사용 */
    justify-self: center;      /* 가운데 정렬 */
    max-width: 500px;          /* 너무 넓어 보이지 않게 제한 (원하면 숫자 조절) */
  }

  /* 2) 대학별 맞춤 실기 대비 3장 세트 (prep-grid) */
  .onlyou-curriculum .prep-grid > .prep-card:last-child {
    grid-column: 1 / -1;
    justify-self: center;
    max-width: 420px;
  }
}
/* PC 전용: 커리큘럼 4개 카드 크기/폰트 다시 키우기 */
@media (min-width: 1024px) {
  .onlyou-curriculum .components-grid .component-card {
    padding: 28px 24px;
    min-height: 230px;            /* 너무 납작해지지 않도록 약간 높이 확보 */
  }

  .onlyou-curriculum .components-grid .component-card h4 {
    font-size: 16px;
  }

  .onlyou-curriculum .components-grid .component-card p {
    font-size: 15px;
    line-height: 1.7;
  }
}

/* 🔥 모바일에서 제목 앞 세로 바 길이 강제로 통일 */
@media (max-width: 768px) {
  .onlyou-curriculum .components-grid .component-card h4::before {
    height: 20px !important;      /* 네 카드 모두 같은 길이 */
    top: 0.25em !important;       /* 제목 첫 줄 기준으로 적당히 내려오기 */
    transform: none !important;   /* 예전 translateY(-50%) 완전 무효화 */
  }
}
.onlyou-curriculum h4.fix-title {
  white-space: normal !important;
  word-break: keep-all !important;
}

@media (max-width: 768px) {
  .onlyou-curriculum h4.fix-title {
    display: inline-block;
    width: 100%;
    line-height: 1.35;
    word-break: keep-all !important;
  }
}/* End custom CSS */