/* ============ 기본 세팅 & 컬러 ============ */
:root{
  --primary:#0A5BB5; /* 신뢰 블루(부산교대 톤) */
  --primary-600:#084A93;
  --green:#2A7C4B;  /* 서브 그린 */
  --bg-dim: rgba(0,0,0,0.35);
  --glass: rgba(255,255,255,0.6); /* 박스 흰색 불투명도 */
  --radius-xl: 16px;
  --radius-lg: 12px;
  --radius-md: 10px;
  --maxw: 1400px;   /* 1,2섹션 동일 컨테이너 폭 */
}

*{box-sizing:border-box}
body{margin:0; font-family:"Pretendard", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans KR", sans-serif; color:#0b1220}

/* ============ 배경 ============ */
.intro-outer{position:relative;min-height:100vh;display:flex;align-items:center;justify-content:center;overflow:hidden;}
.intro-bg{position:absolute; inset:0; background:linear-gradient(0deg, rgba(0,0,0,.45), rgba(0,0,0,.45)),url('/resources/custom/images/main/intro/intro_bg01.jpg') center/cover no-repeat; filter:saturate(1.05);z-index:0;}
.intro-container{position:relative; z-index:1;width:100%;max-width: var(--maxw); padding: clamp(16px, 3vw, 28px); display:grid;gap: clamp(16px, 2vw, 20px);}

/* ============ 섹션 1: 좌/우 레이아웃 ============ */
.intro-hero{
  display:grid;
  grid-template-columns: 1.15fr 0.85fr;   /* 좌:우 비율 */
  gap: clamp(16px, 2vw, 20px);
  background: var(--glass);
  border-radius: 20px;
  box-shadow: 0 8px 30px rgba(0,0,0,.18);
  padding: clamp(40px, 4.2vw, 50px);
}

/* 좌측 */
.hero-left{
  display:grid;
  grid-template-rows:auto 1fr auto; /* 텍스트 유연 + CTA 하단 고정 */
  min-height: 420px;                /* 우측과 높이 균형 기준 */
  gap: clamp(10px, 1.6vw, 16px);
}
.hero-copy h1{ margin:0 0 20px;font-size: clamp(26px, 3.2vw, 40px);line-height:1.2; color:#0b1220;}
.hero-copy h1 .hero-accent{color: var(--primary);font-weight: 800;display: inline-block; font-size: 1.18em; line-height: 1.15; }
.hero-facts{margin:0; padding-left: 1.1em;color:#243147; font-size: clamp(18px, 1.6vw, 20px); list-style: disc;}
.hero-facts li{ margin: .5em 0; line-height: 1.6; font-weight:500;}
.hero-facts li::marker {color: var(--primary); font-size: .8em;}
.hero-facts strong{ color:#0b1220; font-weight:600 }

.hero-cta{margin-top:auto;}
.btn{display:inline-flex; align-items:center; justify-content:center;height:52px; padding: 0 24px; border-radius: 12px; text-decoration:none; font-weight:700;transition:.2s ease-in-out; user-select:none;}
.btn-lg{ height:58px; font-size: clamp(16px, 1.6vw, 18px); padding-inline:28px }
.btn-primary{ background: var(--primary); color:#fff;box-shadow: 0 6px 16px rgba(10,91,181,.25);}
.btn-primary:hover{ background: var(--primary-600); transform: translateY(-1px) }

/* 좌측 CTA 꽉 차게 크게 */
.intro-hero .hero-left .hero-cta .btn {
  display: flex;
  width: 100%;
  height: clamp(72px, 8vw, 92px);
  font-size: clamp(18px, 2.4vw, 24px);
  border-radius: 16px;
}
.intro-hero .hero-left .hero-cta .btn-primary:hover{ transform: translateY(-2px); }

/* 우측: 세로 카드 스택 (2~4개 확장성) */
.hero-right{
  display:grid;
  grid-auto-rows: 1fr; /* 카드 개수 상관없이 균등 분배 */
  gap: clamp(10px, 1.4vw, 14px);
  min-height: 420px;   /* 좌측과 동일 기준 → 두 컬럼 높이 자동 매칭 */
}

/* 카드 */
.card-link{
  background: #f6f8fb;
  border:1px solid #d8e2f0;
  border-radius: var(--radius-xl);
  color:#0b1220; text-decoration:none;
  padding: clamp(14px, 1.6vw, 18px);
  display:flex; flex-direction:column; justify-content:center;
  align-items: center;          /* PC/태블릿: 중앙 정렬 */
  text-align: center;
  gap: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,.06);
  transition: .2s ease-in-out;
  position: relative;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
  will-change: transform, box-shadow;
}
.card-link:hover,
.card-link:focus-visible,
.card-link:focus-within{
  border-color: var(--primary);
  background: linear-gradient(180deg, #ffffff 0%, #f1f7ff 100%); /* 더 밝게 */
  box-shadow:
    0 10px 28px rgba(10,91,181,.25),   /* 깊이감 */
    0 0 0 2px rgba(10,91,181,.10);     /* 라이트 아웃라인 */
  transform: translateY(-3px) scale(1.01);
}
/* 제목/버튼도 살짝 강조 */
.card-link:hover .card-title,
.card-link:focus-visible .card-title,
.card-link:focus-within .card-title{
  color: #0b1220;
  text-shadow: 0 0 1px rgba(10,91,181,.2);
}
.card-link:hover .card-sub,
.card-link:focus-visible .card-sub,
.card-link:focus-within .card-sub{
  background: var(--primary-600);
  box-shadow: 0 8px 18px rgba(10,91,181,.28);
  transform: translateY(-1px);
}

/* 상단 하이라이트(은은한 글로우) */
.card-link::after{
  content:"";
  position:absolute; inset: -1px;
  border-radius: inherit;
  pointer-events:none;
  opacity: 0;
  transition: opacity .18s ease;
  background:
    radial-gradient(60% 80% at 50% 0%, rgba(10,91,181,.18), transparent 60%);
}
.card-link:hover::after,
.card-link:focus-visible::after,
.card-link:focus-within::after{
  opacity: 1;
}

/* 접근성: 키보드 포커스 링 */
.card-link:focus-visible{
  outline: 3px solid rgba(10,91,181,.45);
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce){
  .card-link,
  .card-link::after{
    transition: none;
  }
  .card-link:hover,
  .card-link:focus-visible,
  .card-link:focus-within{
    transform: none;
  }
}
.card-title{ font-size: clamp(18px, 1.8vw, 22px); font-weight: 700; margin:0;}

/* '바로가기'를 버튼처럼 */
.card-sub{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 9999px;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  line-height: 1;
  min-width: 96px;
  user-select: none;
  transition: .2s ease-in-out;
  box-shadow: 0 6px 16px rgba(10,91,181,.18);
  margin-top: 6px;
}
.card-link:hover .card-sub{ background: var(--primary-600); transform: translateY(-1px); }

/* ============ 섹션 2: 가로 버튼 나열(전체폭 동일) ============ */
.intro-links{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(10px, 1.4vw, 14px);
}
.pill-link{
  display:flex; align-items:center; justify-content:center;
  min-height: 100px; padding: 12px 18px;
  border-radius: 14px;
  background: rgba(42,124,75,.9);   /* 그린 */
  color:#fff; text-decoration:none; font-weight: 600;
  border:1px solid rgba(255,255,255,.2);
  box-shadow: 0 6px 18px rgba(42,124,75,.22);
  transition:.2s; font-size:20px;
}
.pill-link:hover{ filter: saturate(1.05) brightness(.98); transform: translateY(-2px) }

/* ============ 반응형 ============ */
@media (max-width: 1024px){
  .intro-hero{grid-template-columns: 1fr;}
  .hero-left, .hero-right{min-height: unset;}
}
@media (max-width: 640px){
  .btn-lg{ height:52px }
  .hero-copy h1 .hero-accent{ font-size: 1.12em;}
  /* 섹션2: 한 줄에 1개 */
  .intro-links{grid-template-columns: 1fr !important; gap: 10px;}
  .pill-link{ width: 100%; min-height: 56px }

  /* 모바일: 카드 내부 레이아웃 좌/우 배치 */
  .card-link{
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    text-align: left;      /* 타이틀 왼쪽 정렬 */
    padding: 14px 16px;    /* 모바일 내측 여백 보정 */
    gap: 12px;
  }
  .card-title{
    font-size: clamp(16px, 4.2vw, 18px);
    margin: 0;
  }
  .card-sub{
    margin: 0;             /* 위쪽 간격 제거 */
    min-width: 90px;
    padding: 9px 14px;
  }

  /* 좌측 CTA 크기 보정 */
  .intro-hero .hero-left .hero-cta .btn{
    height: clamp(60px, 12vw, 72px);
    font-size: clamp(18px, 5vw, 22px);
  }
}


/* ==========================================
   V2 전용 : intro-hero.v2 (좌측 풀화면 버전)
   ========================================== */

.intro-hero.v2{
  grid-template-columns: 1fr !important;  /* 1열 구성 */
  gap: 0 !important;
  padding: clamp(40px, 4.2vw, 56px);
  background: var(--glass);
}

.intro-hero.v2 .hero-right{
  display: none !important;               /* 우측 영역 숨김 */
}

.intro-hero.v2 .hero-left{
  grid-template-rows: auto 1fr auto;
  min-height: clamp(380px, 42vh, 620px);
}

.intro-hero.v2 .hero-copy h1{
  font-size: clamp(28px, 3.4vw, 44px);
}
.intro-hero.v2 .hero-facts{
  font-size: clamp(18px, 1.7vw, 21px);
}
.intro-hero.v2 .hero-left .hero-cta .btn{
  height: clamp(72px, 8.5vw, 96px);
  font-size: clamp(18px, 2.6vw, 26px);
}

/* ==============================
   반응형 보정
   ============================== */

/* 태블릿(<=1024px) */
@media (max-width: 1024px){
  .intro-hero.v2{
    padding: clamp(28px, 4vw, 40px);
  }
  .intro-hero.v2 .hero-left{
    min-height: clamp(340px, 38vh, 520px);
  }
  .intro-hero.v2 .hero-copy h1{
    font-size: clamp(26px, 3.6vw, 38px);
  }
}

/* 모바일(<=640px) */
@media (max-width: 640px){
  .intro-hero.v2{
    padding: 20px;
  }
  .intro-hero.v2 .hero-left{
    min-height: 0;
    gap: 12px;
  }
  .intro-hero.v2 .hero-copy h1{
    font-size: clamp(22px, 6vw, 28px);
  }
  .intro-hero.v2 .hero-facts{
    font-size: clamp(14px, 3.8vw, 16px);
    padding-left: 1em;
  }
  .intro-hero.v2 .hero-left .hero-cta .btn{
    height: clamp(56px, 12vw, 68px);
    font-size: clamp(16px, 5vw, 20px);
  }
}

/* 초소형(<=380px) */
@media (max-width: 380px){
  .intro-hero.v2{ padding: 16px; }
  .intro-hero.v2 .hero-copy h1{ font-size: clamp(20px, 6.4vw, 24px); }
}