/*******************************
 * teachers.css  (강사소개 전용)
 *******************************/

/* ========== Base (>=1200px) ========== */

.teachers_wrap{
  background:#f7f8fb;
  padding:8rem 0;
  margin-bottom:-4rem;
}
.teachers{
  width:100%;
  max-width:1180px;
  margin:0 auto;
  padding:0 16px;
  font-family:'Noto Sans KR','Spoqa Han Sans Neo',system-ui,-apple-system,sans-serif;
  color:#0b1220;
}

/* 타이틀 */
.teachers .tit{ text-align:center; margin-bottom:40px; }
.teachers .tit .tit_top span{
  display:inline-block; padding:8px 20px; border-radius:10px;
  background:linear-gradient(90deg,rgba(47,107,255,.12),rgba(34,193,195,.12));
  color:#1d4ed8; font-weight:800; letter-spacing:.02em; font-size:18px;
}
.teachers .tit dt{ text-decoration:none; margin:12px 0 8px; letter-spacing:-0.01em; line-height:1.15; }
.title-main{ display:block; font-weight:900; color:#0e1b3d; font-size:clamp(28px,4.0vw,60px); }
.title-sub{
  display:block; margin-top:4px; font-weight:900; letter-spacing:-0.02em; font-size:clamp(28px,4.0vw,60px);
  background:linear-gradient(180deg,#4f8dfd 0%,#2563eb 100%); -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent;
}
.teachers .tit .tit_text{ font-size:15px; color:#6b7280; }

/* 교육철학 */
.teacher_box_big{
  position:relative; width:100%; margin:20px auto 34px;
  border-radius:20px; border:1px solid #e6e9f1; background:#fff;
  box-shadow:0 8px 22px rgba(2,6,23,.05); padding:24px;
}
.teacher_box_big.philosophy{
  background:transparent; border:0; box-shadow:none; border-radius:0; padding:0; margin:50px 0; min-height:auto;
}
.philosophy-grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:1.6rem; }
.philosophy-card {
  background: rgba(255, 255, 255, 0.25); /* 반투명 유리 느낌 */
  backdrop-filter: blur(18px) saturate(180%) brightness(1.05);
  -webkit-backdrop-filter: blur(18px) saturate(180%) brightness(1.05);
  border-radius: 1.2rem;
  padding: 2rem;
  text-align: center;
  transition: transform .3s ease, box-shadow .3s ease;
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08); /* 살짝 떠 있는 느낌 */
}

/* 호버 시 깊이감 강화 */
.philosophy-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}
.philosophy-card .icon{ font-size:2.6rem; margin-bottom:1rem; }
.philosophy-card h4{ font-size:1.8rem; color:#1d4ed8; margin-bottom:.6rem; }
.philosophy-card p{ font-size:1.5rem; color:#334155; line-height:1.6; }

/* 그리드 */
.team-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:18px; }

/* 카드 */
.teacher_box_small{ height:auto !important; min-height:unset !important; } /* 레거시 제거 */

.team-grid .teacher_box_small{
  position:relative; float:none; width:auto; margin:0; padding:0;
  display:flex; flex-direction:column;
  background:#fff; border:1px solid #e6e9f1; border-radius:18px;
  box-shadow:0 8px 22px rgba(2,6,23,.05); overflow:hidden;
  transition:border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}
.team-grid .teacher_box_small:hover{ border-color:#dbe1f1; box-shadow:0 12px 28px rgba(2,6,23,.08); }

/* 사진 */
.team-grid .teacher_box_small .pic{
  flex:0 0 auto;
  position:relative; width:100%; margin:0; aspect-ratio:6/5;
  border-radius:18px 18px 0 0; overflow:hidden;
  background:radial-gradient(60% 60% at 50% 10%, #f7f8fb 0%, #dfdfdf 100%);
}
.team-grid .teacher_box_small .pic img{
  width:100% !important; height:100% !important; object-fit:cover; object-position:top center; display:block;
  transform-origin:center center; transition:transform .35s cubic-bezier(.22,.61,.36,1), filter .35s ease; will-change:transform;
}
.team-grid .teacher_box_small:hover .pic img{ transform:scale(1.06); filter:saturate(1.05) contrast(1.02); }
.team-grid .teacher_box_small .text3_1{ display:none; } /* 대표원장 배지 숨김 */
.team-grid .teacher_box_small .t-body .chips{ margin-bottom:10px; }

/* 본문 */
.team-grid .teacher_box_small .t-body {
 flex:1 1 auto;                /* ⬅ 핵심: grow */
  display:flex;
  flex-direction:column;
  padding:20px 22px 18px;       /* 하단 여백 줄이고 싶으면 0~12px로 조절 */
}

/* 중앙 정렬을 유발하던 max-width/margin 해제 */
.team-grid .teacher_box_small .t-body > * {
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  text-align: left;          /* 텍스트도 좌측 정렬 */
}

/* 칩(과목)도 왼쪽부터 흐르도록 */
.team-grid .teacher_box_small .t-body .chips {
  justify-content: flex-start;
}

/* 본문 텍스트 */
.team-grid .teacher_box_small .text1{ font-size:14px; line-height:1.5; color:#1d4ed8; font-weight:700; margin:.4rem 0 .6rem; }
.team-grid .teacher_box_small .text1_2{ font-size:15.5px; line-height:1.6; color:#555555; margin:.2rem 0 .8rem; font-weight:600; }
.team-grid .teacher_box_small .text2{ font-size:13px; line-height:1.6; color:#8e8e8e; margin:0 0 1.0rem; }

/* 강사명만 카드 우하단으로 */
.team-grid .teacher_box_small .t-body .text3 {
  margin-top: auto;          /* 하단으로 밀기 */
  align-self: flex-end;      /* 우측 정렬 */
  text-align: right;
  font-size: 20px;
  font-weight: 700;
  color:#1d1d1d;
}

/* 칩(과목) */
.chips{ display:flex; flex-wrap:wrap; gap:10px; margin:0 0 12px; padding:0; list-style:none; }
.chips li, .chips .chip{
  display:inline-block; padding:6px 10px; font-size:13px; font-weight:500; line-height:1;
  border-radius:12px; letter-spacing:-0.01em; color:#1e3a8a; background:#e0e7ff; box-shadow:0 2px 6px rgba(0,0,0,0.08);
}

/* 3아이콘 섹션 */
.edu-icons{
  display:grid; grid-template-columns:repeat(3, minmax(0,1fr));
  gap:48px; width:100%; margin:50px 0; text-align:center;
  border-top:1px solid rgba(148,163,184,.18); border-bottom:1px solid rgba(148,163,184,.18);
}
.edu-item{ background:none; border:none; box-shadow:none; padding:30px; position:relative; transition:transform .25s ease; }
.edu-item:hover{ transform:translateY(-4px); }
.edu-item .ico{
  --size:64px; width:var(--size); height:var(--size); margin:0 auto 10px; display:grid; place-items:center;
  border-radius:16px; font-size:28px; color:#1d4ed8; background:transparent;
  border:1px solid rgba(99,102,241,.25); box-shadow:inset 0 0 0 1px rgba(59,130,246,.08);
}
.edu-item .title{ font-weight:900; font-size:18px; color:#555; letter-spacing:-0.01em; margin-bottom:4px; }
.edu-item .desc{ font-size:14px; color:#9ca3af; }
.edu-item:hover .ico{ border-color:rgba(59,130,246,.45); box-shadow:inset 0 0 0 1px rgba(59,130,246,.12), 0 6px 14px rgba(37,99,235,.18); }

/* Pretendard: team-grid 전체 */
.team-grid, .team-grid *{
  font-family:'Pretendard Variable','Pretendard',system-ui,-apple-system,'Apple SD Gothic Neo','Noto Sans KR','Segoe UI',sans-serif !important;
  font-feature-settings:"liga","kern";
  font-synthesis-weight:none;
}

/* ========== <=1200px ========== */
@media (max-width:1200px){
  .teachers{ padding:0 14px; }
  .teachers .tit{ margin-bottom:32px; }
  .teachers .tit .tit_top span{ font-size:16px; padding:7px 16px; }

  .teacher_box_big{ margin:16px auto 28px; padding:20px; }
  .teacher_box_big.philosophy{ margin:36px 0; }
  .philosophy-grid{ grid-template-columns:repeat(2,1fr); gap:14px; }
  .philosophy-card{ padding:18px; border-radius:12px; }

  .team-grid{
    grid-template-columns:repeat(3,1fr);
    gap:16px;
    align-items:stretch;               /* 카드 높이 동일 */
  }
  .team-grid .teacher_box_small{
    height:100%;                       /* stretch */
    display:flex; flex-direction:column;
  }
  .team-grid .teacher_box_small .pic{
    aspect-ratio:6/5; border-radius:14px 14px 0 0; flex:0 0 auto;
  }
  .team-grid .teacher_box_small .t-body{
    padding:18px; flex:1 1 auto; min-height:240px; /* 필요 시 220~280 조정 */
  }
  .team-grid .teacher_box_small .text1_2{ font-size:15px; }
  .team-grid .teacher_box_small .t-body .text3{ font-size:19px; margin-bottom:0; }

  .edu-icons{ gap:36px; margin:36px 0; padding:20px 0; }
  .edu-item{ padding:24px; }
  .edu-item .ico{ --size:56px; font-size:24px; }
  .edu-item .title{ font-size:17px; }
  .edu-item .desc{ font-size:13.5px; }
}

/* ========== <=768px ========== */
@media (max-width:768px){
  .teachers{ padding:0 12px; }
  .teachers .tit{ margin-bottom:28px; }
  .teachers .tit .tit_top span{ font-size:14px; padding:6px 14px; }

  .teacher_box_big{ padding:16px; }
  .teacher_box_big.philosophy{ margin:28px 0; }
  .philosophy-grid{ grid-template-columns:1fr; gap:12px; }
  .philosophy-card{ padding:16px; }

  .team-grid{
    grid-template-columns:repeat(2,1fr);
    gap:14px;
    align-items:stretch;
  }
  .team-grid .teacher_box_small{ height:100%; }
  .team-grid .teacher_box_small .pic{
    aspect-ratio:6/5; border-radius:18px 18px 0 0; flex:0 0 auto;
  }
  .team-grid .teacher_box_small .t-body{
    padding:16px; flex:1 1 auto; min-height:220px;
  }
  .team-grid .teacher_box_small .text1{ font-size:13.5px; }
  .team-grid .teacher_box_small .text1_2{ font-size:14.5px; }
  .team-grid .teacher_box_small .text2{ font-size:13.5px; }
  .team-grid .teacher_box_small .t-body .text3{ font-size:18px; }

  .chips{ gap:8px; }
  .chips li{ font-size:12.5px; padding:5px 8px; border-radius:10px; }

  .edu-icons{
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:24px; margin:24px 0; padding:16px 0;
  }
  .edu-item{ padding:20px; }
  .edu-item .ico{ --size:52px; font-size:22px; border-radius:14px; }
  .edu-item .title{ font-size:16.5px; }
  .edu-item .desc{ font-size:13px; }
}

/* ========== <=480px ========== */
@media (max-width:480px){
  .teachers{ padding:0 10px; }
  .teachers .tit{ margin-bottom:22px; }
  .teachers .tit .tit_top span{ font-size:12px; padding:5px 10px; }

  .teacher_box_big{ padding:14px; }
  .teacher_box_big.philosophy{ margin:22px 0; }

  .team-grid{
    grid-template-columns:1fr;
    gap:12px;
    align-items:stretch; /* 단일열에서도 일관성 유지 */
  }
  .team-grid .teacher_box_small .pic{
    aspect-ratio:6/5; border-radius:18px 18px 0 0; flex:0 0 auto;
  }
  .team-grid .teacher_box_small .t-body{
    padding:14px 14px 16px; flex:1 1 auto; min-height:unset;
  }
  .team-grid .teacher_box_small .text1{ font-size:13px; }
  .team-grid .teacher_box_small .text1_2{ font-size:13.5px; }
  .team-grid .teacher_box_small .text2{ font-size:12.8px; }
  .team-grid .teacher_box_small .t-body .text3{ font-size:17px; }

  .chips{ gap:8px; margin-bottom:10px; }
  .chips li{ font-size:12px; padding:5px 8px; }

  .edu-icons{  gap:16px; margin:18px 0; padding:12px 0; }
  .edu-item{ padding:16px; }
  .edu-item .ico{ --size:48px; font-size:20px; border-radius:12px; }
  .edu-item .title{ font-size:16px; }
  .edu-item .desc{ font-size:13px; }
}

/* ==========문제점 보안 ============================== */

.teachers_wrap .team-grid .teacher_box_small .pic{
  position: relative !important;
  inset: 0 !important;           /* top/right/bottom/left 한 번에 0 */
  width: 100% !important;
  height: auto !important;
  margin: 0 !important;          /* 과거 음수 마진 제거 */
  padding: 0 !important;
  border-radius: 16px 16px 0 0 !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}


/* 이미지 자체는 가득 채우기 */
.teachers_wrap .team-grid .teacher_box_small .pic img{
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: 50% 10% !important; /* 필요 시 상단 정렬 */
}

