body {
  font-family: Arial;
  margin: 40px;
  background: #F5F4F2;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
}

nav {
  font-size: 30px;
  display: flex;
  gap: 50px;
  font-weight: bold;
}

nav a {
  text-decoration: none;
  color: black;
}

.hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  flex: 1;
  width: 100%;
  gap: 30px;
}

/* ===== 배너 공통 ===== */
.banner {
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
}

.banner-track {
  display: inline-flex;
  align-items: center;
  padding: 10px 0;
}

.banner-track img {
  width: 120px;
  height: auto;
  flex-shrink: 0;
  margin-right: 20px;
}

/* 왼쪽으로 흐름 (상단 배너) */
@keyframes scrollLeft {
  from { transform: translateX(0); }
  to   { transform: translateX(-40%); }
}

/* 오른쪽으로 흐름 (하단 배너) */
@keyframes scrollRight {
  from { transform: translateX(-40%); }
  to   { transform: translateX(0); }
}

.scroll-left {
  animation: scrollLeft 18s linear infinite;
}

.scroll-right {
  animation: scrollRight 18s linear infinite;
}

/* ===== 중앙 텍스트 ===== */
.main {
  position: relative;
  flex-shrink: 0;
}

.main h1 {
  font-size: 200px;
  transform: translateX(110px);
  margin: 0;
  color: darkred;
}

.main h5 {
  font-size: 200px;
  transform: translateX(-100px);
  margin: 0;
  margin-top: -50px;
  color: darkred;
}

.title {
  position: absolute;
  transform: translateX(-75px) translateY(-255px);
  font-size: 30px;
  font-weight: bold;
  color: darkred;
  margin: 0;
}

h2 {
  font-size: 40px;
  color: black;
}

.sub-title {
  text-align: center;
}

.news h3 {
  font-size: 40px;
  color: black;
}

.news h4 {
  font-size: 10px;
  color: gray;
}

.sub {
  margin-left: 10px;
}


.video-box {
  background: #eee;
  padding: 20px;
  border-radius: 20px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.grid img {
  width: 100%;
}

.ar-box {
  height: 300px;
  background: #eee;
  border-radius: 20px;
}


.page {
  background: #f5f4f2;
  padding: 40px;
}

nav {
  display: flex;
  justify-content: center;
  gap: 50px;
}

.page {
  width: 100%;
  max-width: 1000px;
  text-align: center;
}

/* 뉴스 옆 여백 */

.news {
  max-width: 800px;   /* 본문 폭 제한 */
  margin: 0 auto;     /* 가운데 정렬 */
  padding: 0 40px;    /* 좌우 여백 */
  line-height: 1.6;   /* 가독성 */
}

.news img {
  width: 50%;
  border-radius: 10px;
  margin: 10px 0;
}

/* 프로필 옆 여백 */

.profile {
  max-width: 900px;   /* 좌우 폭 제한 */
  margin: 0 auto;     /* 가운데 정렬 */
  padding: 0 40px;    /* 양옆 여백 */
}

/* 중간 선 */

.line {
  height: 4px;
  background: blalck;
  width: 100%;
  max-width: 1000px;
  margin: 20px;
}

/* 별 위치 수정 */

.info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
}

.name {
  font-weight: bold;
}

.stars {
  letter-spacing: 2px;
}

/* hover */

/* ===== 전체 레이아웃 ===== */
.profile {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 40px;
}

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

/* 카드 */
.card {
  border-radius: 18px;
  background: white;
  cursor: pointer;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.img-box {
  overflow: hidden;
  border-radius: 18px;
}

/*  이미지 */
.card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

/* 정보 */
.info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 15px;
}

.name {
  font-weight: bold;
  font-size: 14px;
  transition: color 0.3s;
}

.stars {
  letter-spacing: 3px;
  color: #bbb;
  transition: color 0.3s;
}

/* hover */
.card:hover {
  transform: translateY(-12px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
  z-index: 999;
}

/* 이미지 확대 */
.card:hover img {
  transform: scale(1.12);
}

/* 텍스트 효과 */
.card:hover .name {
  color: darkred;
}

.card:hover .stars {
  color: gold;
}

/* ar */

.ar-box {
  width: 100%;
  max-width: 800px;
  height: 450px;
  background: #eee;
  margin: 20px auto;
  border-radius: 20px;
  overflow: hidden;
}

.ar-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.status {
  text-align: center;
  margin-top: 10px;
  color: gray;
}

.line {
  height: 4px;
  background: black;
  width: 100%;
  max-width: 1000px;
  margin: 20px auto;
}

/* 버튼 확대 */
nav a {
  display: inline-block;
  position: relative;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

nav:hover a {
  opacity: 0.4;
}

nav a:hover {
  transform: scale(1.1) translateY(-2px);
  opacity: 1;
}