@charset "UTF-8";

/* == 1. Global & Reset Styles ==================== */
body {
  font-family: "Noto Sans KR", sans-serif;
  background-color: #f2f2f2;
  margin: 0;
  font-style: normal;
  font-weight: 400;
  color: #222;
  line-height: 1.6;
}
a {
  color: inherit;
  text-decoration: none;
}
* {
  box-sizing: border-box;
}

/* == 2. Layout Helper ==================== */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* == 3. Header & Navigation ==================== */
header {
  width: 100%;
  background-color: #990e17;
  color: #fff;
  border-bottom: 1px solid #990e17;
}
header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}
.logo {
  font-weight: bold;
  font-size: 1rem;
  letter-spacing: 0.7px;
  margin: 0;
}

/* Desktop Navigation */
.desktop-nav {
  display: none; /* 모바일에서는 숨김 */
}
.desktop-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
}
.desktop-nav li {
  margin-left: 30px;
  font-weight: bold;
  letter-spacing: 2px;
}
.desktop-nav a {
  transition: color 0.3s ease;
}
.desktop-nav a:hover {
  color: #e7ba00;
}

/* Hamburger Menu (Mobile) */
.hamburger-menu {
  display: flex; /* 모바일에서 보임 */
  flex-direction: column;
  justify-content: space-around;
  width: 24px;
  height: 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}
.hamburger-menu span {
  width: 24px;
  height: 2px;
  background: #fff;
  transition: all 0.3s linear;
}

/* Mobile Navigation Panel */
.mobile-nav {
  display: none;
  background-color: #701e20;
  padding: 20px 0;
}
.mobile-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: center;
}
.mobile-nav li {
  padding: 15px 0;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.2rem;
  font-weight: bold;
}

/* == 4. Sections (Mobile First) ==================== */

/* Hero Section */
.top_img {
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.3)),
    url("../images/visual.jpg") center/cover no-repeat;
  padding: 100px 0;
}
/* .hero-title {
  color: #ffffff;
  text-align: center;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
  letter-spacing: 1px;
  font-size: 2em;
  margin: 0;
  line-height: 1.2;
} */
.hero-title {
  color: #ffffff;
  text-align: center;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
  letter-spacing: 1px;
  /* font-size: 2em; */ /* <-- 기존 값 주석 처리 */
  font-size: clamp(2em, 6vw, 2.8em); /* <-- 새 값 적용 */
  margin: 0;
  line-height: 1.5;
}

/* About Section */
.about {
  background-color: #fff;
  padding: 50px 0 5px 0;
  font-size: 1rem;
  text-align: center;
}
.about h1 {
  margin-top: 0;
  /* font-size: 2.5rem; */ /* 기존 값 대신 아래 clamp() 사용 */
  font-size: clamp(2rem, 8vw, 2.5rem);
  font-weight: 700;
}
.about h3 {
  /* h3 태그의 아래쪽 여백을 줄입니다. (예: 10px) */
  margin-bottom: 10px;
  text-align: left;
}

.about p {
  /* p 태그의 위쪽 여백을 0으로 만들어 h3에 더 가깝게 붙입니다. */
  margin-top: 0;

  /* (선택 사항) 단락(p)과 다음 제목(h3) 사이의 간격을 조절합니다. */
  margin-bottom: 50px; /* 예: 25px */
  /* ▼ (추가) p 태그(본문)를 왼쪽 정렬합니다. */
  text-align: left;
  /* ▼ (추가) 문단의 줄 간격을 조절해 가독성을 높입니다. */
  line-height: 1.7;
  color: #444;
}

/* .about h1 {
  margin-top: 0;
  font-size: 2.5rem;
  font-weight: 700;
} */

/* Gallery Section */
.gallery-section {
  padding: 30px 0;
}
.gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.stats {
  /* h1 태그 */
  color: #717070;
  font-size: 1.6rem;
  /* ▼ 위쪽 마진을 제거하고, H1과 H4 사이 간격을 조정합니다. */
  margin-top: 0;
  margin-bottom: 0px; /* 기존 5px에서 조금 늘림 */
}

.thumbnail {
  flex: 1 1 100%;
  text-align: center;
  /* ▼ 박스 내부에 상하좌우 여백(padding)을 추가합니다. */
  padding: 20px;
  box-sizing: border-box; /* 패딩값이 너비에 영향을 주지 않도록 설정 */
}

.thumbnail h4 {
  color: #52bad5;
  /* ▼ H4의 위쪽 기본 마진을 제거하고, H4와 P 사이 간격을 조정합니다. */
  margin-top: 0;
  margin-bottom: 15px;
}

/* ▼ P 태그 스타일 추가 */
.thumbnail p {
  /* ▼ p 태그의 위쪽 기본 마진을 제거합니다. */
  margin-top: 20px;
  margin-bottom: 0;
  /* ▼ 문단 자체의 줄 간격(행간)을 조절하여 가독성을 높입니다. */
  line-height: 1.6;
}

/* Banner Section */
.banner {
  position: relative;

  overflow: hidden;
  padding: 40px 0;
  background-color: #990e17;
  color: #fff;
  z-index: 1;
}
.banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("../images/em.png") center / cover;
  opacity: 0.05;
  z-index: -1;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.banner:hover::before {
  opacity: 0.08;
  transform: scale(1.02);
}
.banner-content {
  text-align: center;
}
.mba {
  font-size: 1.8em;
}
.mba_description {
  font-size: 1rem;
  color: #e4e4e4;
}

.arrow-button {
  display: inline-flex; /* ▼ flex를 inline-flex로 변경 */
  justify-content: center; /* (이하는 기존과 동일) */
  align-items: center;
  width: 50px;
  height: 50px;
  margin-top: 15px;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  font-size: 24px;
  transition: all 0.3s ease;
}

.banner:hover .arrow-button {
  background-color: #fff;
  color: #990e17;
}

/* Professors & Footer Section */
footer {
  background-color: #ffffff;
  padding: 60px 0;
}

.professors {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
}

.content-block {
  text-align: left;
  margin-bottom: 25px;
}

.card .content-title {
  font-size: 15px;
  font-weight: bold;
  color: #353535;
}

.card {
  background-color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  max-width: 400px;
  width: 100%;
  overflow: hidden;
  text-align: center;
}
.card .image img {
  height: 300px;
  object-fit: cover;
  max-width: 250px;
  padding-top: 20px;
}

.card .info-section {
  padding: 5px 20px 20px 20px;
}

/* .card .content-title {
  font-size: 16px;
  font-weight: 700;
  color: #353535;
  margin-bottom: 12px;
} */

.card .content-list {
  font-size: 15px;
  color: #767676;
  line-height: 1.7;
  list-style: none; /* 리스트 앞의 점 제거 */
  padding-left: 0; /* 왼쪽 여백 제거 */
  margin: 0;
}
.card hr {
  border: 0;
  height: 1px;
  background-color: #e9ecef;
  margin-bottom: 25px;
}

.card .name {
  font-size: 1.6rem;
  font-weight: bold;
  margin-bottom: 5px;
}

.card .name span {
  font-weight: normal;
}
.department {
  color: #0162bc;
  font-size: 0.95rem;
  text-align: center;
  margin-top: 0;
}

/* Copyright Section */
.copyright {
  background-color: #fff;
  padding: 40px 0;
  font-size: 14px;
  border-top: 1px solid #ececec;
}
.copyright .container {
  display: flex;
  flex-direction: column; /* 모바일: 세로 정렬 */
  align-items: center;
  text-align: center;
  gap: 20px;
}
.copyright img {
  max-width: 120px;
}

.copyright-info {
  color: #767676;
  display: block;
  line-height: 1.2;
  font-weight: 400;
  margin-bottom: 10px;
}

.copyright-info span {
  color: #222;
  display: block;
  letter-spacing: -0.3px;
  font-weight: 500;
  margin-bottom: 10px;
}

/* == 5. Tablet & Desktop Styles (@media queries) ==================== */

/* Tablet (768px and up) */
@media (min-width: 768px) {
  .logo {
    font-size: 1.2rem;
  }
  .hamburger-menu,
  .mobile-nav {
    display: none; /* 태블릿부터는 햄버거 메뉴 숨김 */
  }
  .desktop-nav {
    display: block; /* 데스크톱 메뉴 보임 */
  }

  .about {
    text-align: left;
  }

  .about h1 {
    font-size: 2.5rem; /* <-- 태블릿 이상에서 원래 크기로 복원 */
  }

  .thumbnail {
    flex-basis: 48%; /* 한 줄에 두 개씩 */
  }
  .banner-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
  }
  .arrow-button {
    margin-top: 0;
  }
  .copyright .container {
    flex-direction: row; /* 가로 정렬 */
    text-align: left;
    gap: 50px;
  }
}

/* 화면 너비가 768px 이하일 때 (모바일/태블릿) */
@media (max-width: 768px) {
  .hero-title br {
    display: none; /* <br> 태그를 숨겨서 자동 줄바꿈을 유도합니다. */
  }
}

/* Desktop (1024px and up) */
@media (min-width: 1024px) {
  .thumbnail {
    flex-basis: 23%; /* 한 줄에 네 개씩 */
  }
  .professors .card {
    flex-basis: calc(33.333% - 20px); /* 33.3% 너비에서 gap의 일부를 뺌*/
    flex-grow: 0; /*카드가 늘어나지 않도록 설정*/
  }
}
