
/* General Layout */

html, body {
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: 'DM Sans', sans-serif;
  background: linear-gradient(135deg, white 0%, #EDA53E 25%, #834200 75%, #673400 100%);
  background-size: 200% 200%;
  animation: gradientFlow 8s ease infinite;
  color: #fff;
  padding-top: 80px;
  overflow-x: hidden;
}

@keyframes gradientFlow {
  0% {
    background-position: 0% 0%;
  }
  25% {
    background-position: 50% 50%;
  }
  50% {
    background-position: 100% 100%;
  }
  75% {
    background-position: 50% 50%;
  }
  100% {
    background-position: 0% 0%;
  }
}

/* Header */
.main-header {
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 1);
  padding: 1rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.logo {
  height: 50px;
  margin-left: 110px;
}

.main-nav ul {
  margin-right: 110px;
  display: flex;
  gap: 2rem;
  list-style: none;
}

.main-nav a {
  text-decoration: none;
  color: #000000;
  font-weight: 600;
  font-size: 1rem;
  transition: color 0.3s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: white;
}

.main-heading {
  margin: 70px auto 70px auto;
  display: flex;
  justify-content: center;
  font-size: 50px;
  line-height: 70px;
  font-weight: 700;
  text-shadow: 0 7px 14px rgba(0, 0, 0, 0.4);
}

.category-tabs {
  display: flex;
  justify-content: center;
  gap: 0px;
  margin: 40px 0;
}

.tab {
  background: none;
  border: none;
  font-size: 22px;
  font-weight: 400;
  color: white;                     /* ⬅️ 기본은 흰색 */
  border-bottom: 2px solid white;   /* ⬅️ 흰색 선 */
  padding-bottom: 8px;
  cursor: pointer;
  width: 244px;                     /* ⬅️ 고정 넓이로 정렬 */
  text-align: center;
}

.tab.active {
  font-weight: 600;
  color: black;                     /* ⬅️ 선택된 탭은 검정 */
  border-bottom: 4px solid black;   /* ⬅️ 하단 검정 바 */
}

.card-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(312px, 1fr)); /* 💡 한 줄에 3개 */
  gap: 10px;
  padding: 0 110px 0;
  justify-content: center;
  justify-items: center;
  max-width: calc(312px * 3 + 60px * 2); /* 💡 최대 3열 너비 + 간격 */
  margin: 0 auto; /* 💡 중앙 정렬 */
}

.card {
  width: 312px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.card-img {
  width: 100%;
  height: 411px;
  border-radius: 26.77px;
  box-shadow: 0px 20px 30px rgba(0, 0, 0, 0.2);
  object-fit: cover;
}

.card-title {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 20px;
}

.card-desc {
  font-size: 16px;
  color: var(--text-light);
  line-height: 24px;
  text-align: left;
  margin-bottom: 70px;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 60px;
  justify-content: center;
  margin-top: 60px;
}

.award-card {
  width: 312px;
  border-radius: 26px;
  text-align: center;
  color: white;
}

.award-card img {
  width: 100%;
  height: auto;
  border-radius: 24px;
  margin-bottom: 24px;
  box-shadow: 0 7px 14px rgba(0, 0, 0, 0.6);
}


/* Footer */
footer {
  color: white;
  border-top: 1px solid rgba(255, 255, 255, 1);
  text-align: center;
  padding: 2rem;
  margin-top: 1rem;
  font-size: 0.9rem;
  line-height: 1.6;
}

footer hr {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  margin-bottom: 1rem;
}

/* Responsive */
@media (max-width: 1024px) {
  .about-content h1 {
    font-size: 42px;
    line-height: 54px;
  }
  .about-gallery img {
    width: 45%;
    height: auto;
  }
  .card-group {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .about-gallery img {
    width: 100%;
  }
  .card-group {
    grid-template-columns: 1fr;
  }
    .main-nav ul {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    justify-items: center;
    padding: 0;
  }

  .main-nav ul li:nth-child(1),
  .main-nav ul li:nth-child(3) {
    justify-self: center;
    padding-left: 4rem;
  }

  .main-nav ul li:nth-child(2),
  .main-nav ul li:nth-child(4) {
    justify-self: end;
    padding-left: 4rem;
  }

  .main-header {
    flex-direction: column;
    align-items: center;
  }

  .logo {
    margin-left: 0;
  }

  .main-nav a {
    font-size: 1rem;
  }
}