/* ====== 공통 설정 ====== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Noto Sans KR', sans-serif;
}

body {
  font-size: 14px;
  line-height: 1.6;
  min-height: 100vh;
  padding: 50px 20px;
  color: #5e3b87;
}

h1 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #c285d1;
}

h2 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: #a14ac4;
}

p,
label,
li {
  font-size: 14px;
  color: #4b2d68;
}

/* ====== 네비게이션 ====== */
.navbar {
  width: 100%;
  background-color: #f8d8f2;
  padding: 10px 0;
  position: sticky;
  top: 0;
  z-index: 10;
  border: 2px solid #3b2e3f;
  border-radius: 12px;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: bold;
  color: #42427d;
}

.logo-icon {
  width: 70px;
  height: 70px;
}

.nav {
  list-style: none;
  display: flex;
  gap: 15px;
}

.nav a {
  text-decoration: none;
  color: #894f64;
  font-size: 14px;
  padding: 5px 10px;
  border-radius: 10px;
  transition: background-color 0.2s ease-in-out;
}

.nav a:hover {
  background-color: #fce4ec;
}

.nav a.active {
  background-color: #fff0f7;
  color: #a14ac4;
  font-weight: bold;
}

/* ====== 박스 공통 ====== */
.container {
  max-width: 960px;
  margin: auto;
  padding: 20px;
}

.section-box {
  background-color: #fff0f7;
  border-radius: 12px;
  padding: 30px;
  margin-top: 30px;
  text-align: left;
  border: 1px solid #eda0db;
}

.section-box a {
  color: #a14ac4;
  text-decoration: none;
  font-weight: bold;
}
.section-box a:hover {
  text-decoration: underline;
}

.title-centered,
.section-title-center {
  text-align: center;
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: #4f508c;
}

/* ====== 로그인 ====== */
.login-wrapper {
  max-width: 500px;
  margin: 50px auto;
  background: #fff0f7;
  padding: 30px;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.login-message {
  text-align: center;
}

.login-message h1 {
  font-size: 18px;
  margin-bottom: 15px;
  color: #a14ac4;
}

.login-gif {
  width: 80px;
  display: block;
  margin: 0 auto 20px;
}

.login-form input {
  width: 90%;
  padding: 10px;
  margin: 10px 0;
  border-radius: 8px;
  border: 1px solid #d3a4e1;
}

.login-buttons {
  display: flex;
  justify-content: space-around;
  margin-top: 15px;
}

.login-buttons button {
  background-color: #f3bfe7;
  color: white;
  font-weight: bold;
  padding: 8px 16px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
}

.login-buttons button:hover {
  background-color: #e89ed2;
}

/* ====== 공통 그리드/플렉스 ====== */
.flex-container,
.profile-flex,
.intro-flex,
.intro-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 30px;
  padding: 20px;
  border-radius: 12px;
  background-color: #fff0f7;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  justify-content: center;
  align-items: center;
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 15px;
  margin-top: 20px;
}

.grid-item {
  background-color: #fff0f7;
  border-radius: 10px;
  padding: 15px;
  text-align: center;
}

.preview-image {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 10px;
  border: 2px solid #d3a4e1;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

/* 공통 이미지 스타일 */
img {
  max-width: 100%;
  display: block;
}

.intro-grid .intro-image img {
  width: 250px;
  border-radius: 15px;
}

.profile-img img,
.profile-img-box img {
  width: 220px;
  border-radius: 10px;
}

.intro-info ul,
.intro-grid .intro-info ul {
  list-style: none;
  padding-left: 0;
  font-size: 15px;
  line-height: 2;
}

/* ====== SECON 전용 ====== */
.expo-intro {
  font-size: 15px;
  line-height: 1.8;
}
.expo-intro .highlight {
  color: #a14ac4;
  font-weight: bold;
}
.expo-intro .indent {
  display: inline-block;
  margin-left: 12px;
}

.toggle-button-group {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.toggle-button {
  background-color: #d1c4e9;
  color: #4b2d68;
  border: none;
  padding: 10px 15px;
  font-weight: bold;
  border-radius: 10px;
  cursor: pointer;
  min-width: 100px;
  max-width: 120px;
  font-size: 13px;
  text-align: center;
  transition: all 0.2s;
}

.toggle-button:hover {
  background-color: #b39ddb;
}

.toggle-content {
  display: none;
  margin-top: 10px;
  padding: 20px;
  background-color: #fdf7ff;
  border-radius: 12px;
  border-left: 5px solid #ce93d8;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  animation: fadeIn 0.4s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.toggle-content ul {
  padding-left: 20px;
  list-style: disc;
}

.toggle-content p {
  margin-bottom: 10px;
}

/* ====== 팀 소개 ====== */
.team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 20px;
  text-align: center;
}

/* ====== 팀원별 카드 색상 ====== */
.team-card.gayeon {
  background-color: #ffe1ec;
}

.team-card.eunsu {
  background-color: #e0f7fa;
}

.team-card.seoyeon {
  background-color: #fff9c4;
}

.team-card.sumin {
  background-color: #f3e5f5;
}

.team-card {
  border-radius: 12px;
  border: 1px dashed #d3a4e1;
  transition: transform 0.2s;
}
.team-card:hover {
  transform: scale(1.05);
}

/* ====== 소개 정보 ====== */
.profile-box-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.profile-card {
  background-color: #fbf9e1;
  text-align: center;
  padding: 20px;
  border-radius: 15px;
  font-size: 14px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  border: 1px solid #d3a4e1;
}

.profile-img-row {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}
.profile-img-row img {
  width: 220px;
  border-radius: 0;
  margin: 0;
  padding: 0;
}

.sub-title {
  font-size: 1.3rem;
  text-align: center;
  margin-top: 40px;
  color: #a14ac4;
}

/* ====== 페이지별 배경색 ====== */
.main-page {
  background-color: #f5ecff;
}
.project-page {
  background-color: #ffe6ee;
}
.secon-page {
  background-color: #e7f1ff;
}
.team-page {
  background-color: #f0f0ff;
}
.login-page {
  background-color: #fff5f9;
}
