@charset "UTF-8";
/* 보그 PJ 메인 페이지 CSS - main.css */
@import "./core.css";
@import "./reset.css";
@import "./common.css";

/* ========== 히어로 섹션 ========== */
.hero {
  position: relative;
  width: 100%;
  /* height: 600px; */
  /* 가로세로 비를 만든다! */
  aspect-ratio: 2.6;
  overflow: hidden;
  background: linear-gradient(135deg, #d4e6f1, #fce4ec);
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 히어로 텍스트 */
.hero-text {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  padding: 15vh 0 5vh;
  text-align: center;
  white-space: nowrap;
  color: #fff;
  background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.7));
}

.hero-text h1 {
  font-size: 48px;
  font-weight: 300;
  margin-bottom: 10px;
  letter-spacing: 2px;
}

.hero-text p {
  font-size: 17px;
  font-weight: 400;
  margin-bottom: 20px;
}

.hero-slider {
  width: 100%;
  height: 100%;
}
.swiper {
  width: 100%;
  height: 100%;
  /* overflow: hidden; */
}
.swiper-slide {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 100%;
  /* background: #222; */
}
.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  left: 0; top: 0;
  z-index: 1;
  opacity: 0.86;
}
.hero-text {
  position: relative;
  z-index: 2;
  color: #fff;
  width: 100%;
  padding: 34px 38px;
  box-sizing: border-box;
  text-align: left;
  font-family: 'Pretendard', 'sans-serif';
}
.hero-text p {
  font-size: 19px;
}
.hero-text h1 {
  margin: 12px 0 0 0;
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -1.2px;
}
.swiper-button-next,
.swiper-button-prev {
  color: #fff;
  --swiper-navigation-size: 38px;
  border-radius: 50%;
}
.swiper-pagination {
  bottom: 14px !important;
}
.swiper-pagination-bullet {
  background: #fff !important;
  opacity: .7;
}
.swiper-pagination-bullet-active {
  background: #e31e61 !important;
  opacity: 1;
}


/* ========== 컨텐츠 섹션 공통 ========== */
/* main {
  padding: 60px 40px;
} */

/* 메인 직계 하위 section */
main > section {
  max-width: 1400px;
  margin: 0 auto;
  margin-top: 120px !important;
  padding: 0 40px;
}

section {
  margin-bottom: 80px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  /* margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 2px solid #000; */
}

/* .section-header h2 {
  font-size: 24px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
} */

.view-more {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  color: #666;
  cursor: pointer;
  transition: color 0.3s;
}

.view-more:hover {
  color: #000;
}

/* ========== 그리드 레이아웃 ========== */
.grid {
  display: grid;
  gap: 30px;
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s;
}

.card:hover {
  transform: translateY(-5px);
}

.card-image {
  width: 100%;
  aspect-ratio: 4/3;
  background: #f0f0f0;
  overflow: hidden;
}

/* Must-Read, Living, Latest Stories 비율변경 */
.must-read .card-image,
#living .card-image,
.latest-stories-box .card-image {
  aspect-ratio: 1;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.card:hover .card-image img {
  transform: scale(1.05);
}

.card-content {
  padding: 15px 0;
}

.card-category {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  /* color: #e74c3c; */
  margin-bottom: 8px;
  letter-spacing: 1px;
}

.card-title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 5px;
}

.card-subtitle {
  font-size: 13px;
  color: #666;
  line-height: 1.4;
}

/* ========== PEOPLE NOW 섹션 ========== */
#people{/* 겉박스 최대크기, 마영오 해제 */
  max-width: none;
  margin: 0;
  padding: 40px;
  background-color: #f4f4f4;
}
.people-grid {
  /* 속박스에 최대크기, 마영오 설정 */
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.people-card {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  /* border-radius: 8px; */
}

/* 피플나우 비율변경 */
#people .people-card {
  aspect-ratio: 377/566;
}

/* 피플카드의 타이틀 */
.people-card .section-header {
  flex-direction: column;
  align-items: start;
}

.people-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.people-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  padding: 30px 20px 20px;
  color: #fff;
}

.people-name {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 5px;
}

.people-role {
  font-size: 13px;
  opacity: 0.9;
}

/* post_content - 이미지 위에 오버레이 */
.people-card .post_content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 50%, transparent 100%);
  padding: 40px 20px 20px;
  color: #fff;
}

.people-card .post_content p {
  margin-bottom: 8px;
}

.people-card .post_content span {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.95;
}

.people-card .post_content h3 {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.3px;
}

/* ========== TODAY'S STORIES 섹션 ========== */
.todays-stories {
  max-width: 1400px;
  margin: 0 auto;
}

/* 파트 제목 */
.section-title {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 40px;
  letter-spacing: -1px;
  /* 대문자 표시 */
  text-transform: uppercase;
}

/* ========== 그리드 레이아웃 ========== */
.stories-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: repeat(2, 1fr);
  gap: 20px;
  min-height: 700px;
}

/* Fashion 형은 1:1:2형으로 적용하기! */
/* 그리드 레이아웃 변경 */
.fashion .stories-grid {
  grid-template-columns: 1fr 1fr 2fr; /* 왼쪽 1:1, 오른쪽 2 */
}

/* 큰 카드를 오른쪽에 배치 */
.fashion .main-story {
  grid-column: 3; /* 3번째 컬럼에 배치 */
  grid-row: 1 / 3; /* 1~2행 차지 */
  /* 나머지 스타일 동일 */
}

/* ========== 메인 스토리 (좌측 큰 카드) ========== */
.main-story {
  grid-row: 1 / 3;
  position: relative;
  overflow: hidden;
  /* border-radius: 8px; */
  cursor: pointer;
}

.main-story-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.main-story:hover .main-story-image {
  transform: scale(1.05);
}

.main-story-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.85) 0%,
    rgba(0, 0, 0, 0.4) 50%,
    transparent 100%
  );
  padding: 60px 40px 40px;
  color: #fff;
}

.main-story-meta {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 14px;
  margin-bottom: 20px;
  opacity: 0.95;
}

.main-story-category {
  font-weight: 600;
  letter-spacing: 0.5px;
}

.main-story-date {
  opacity: 0.9;
}

.main-story-title {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.5px;
}

.main-story-author {
  font-size: 15px;
  margin-top: 15px;
  opacity: 0.9;
}

/* ========== 서브 스토리 카드 (이미지와 텍스트 분리) ========== */
.sub-story {
  display: flex;
  flex-direction: column;
  /* border-radius: 8px; */
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease;
  background: #fff;
}

.sub-story:hover {
  transform: translateY(-5px);
}

.sub-story-image-wrapper {
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  /* border-radius: 8px 8px 0 0; */
}

.sub-story-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.sub-story:hover .sub-story-image {
  transform: scale(1.05);
}

.sub-story-content {
  padding: 20px 0;
  background: #fff;
  color: #000;
}

.sub-story-category {
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #666;
}

.sub-story-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 12px;
  letter-spacing: -0.3px;
  color: #000;
}

.sub-story-meta {
  font-size: 12px;
  color: #999;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sub-story-meta .date {
  margin-right: 3px;
}

.sub-story-meta .divider {
  color: #ddd;
}

.sub-story-meta .author {
  margin-left: 3px;
}

/* ========== 반응형: 태블릿 (820px ~ 1024px) ========== */
@media (max-width: 1024px) {
  .section-title {
    font-size: 40px;
    margin-bottom: 30px;
  }

  /* 그리드 컬럼변경 : 
  fashion파트도 모두 변경해야함
  그래서 !important사용 */
  .stories-grid {
    grid-template-columns: 1fr 1fr !important;
    grid-template-rows: auto;
    gap: 20px;
    min-height: auto;
  }

  /* 큰 카드 위치변경 :  
  fashion파트도 모두 변경해야함
  그래서 !important사용  */
  body .main-story {
    grid-column: 1 / 3 !important;
    grid-row: auto !important;
    min-height: 500px;
  }

  .main-story-title {
    font-size: 28px;
  }

  .main-story-overlay {
    padding: 40px 30px 30px;
  }

  .sub-story-title {
    font-size: 16px;
  }

  .sub-story-content {
    padding: 15px 0;
  }
}

/* ========== 반응형: 모바일 (<819px) ========== */
@media (max-width: 819px) {
  body {
    padding: 20px 15px;
  }

  .section-title {
    font-size: 32px;
    margin-bottom: 20px;
  }

  /* 그리드 컬럼변경 : 
  fashion파트도 모두 변경해야함
  그래서 !important사용 */
  .stories-grid {
    grid-template-columns: 1fr !important;
    gap: 30px;
  }

  /* 큰 카드 위치변경 :  
  fashion파트도 모두 변경해야함
  그래서 !important사용  */
  .main-story {
    grid-column: 1 !important;
    min-height: 450px;
  }

  .main-story-overlay {
    padding: 30px 25px 25px;
  }

  .main-story-title {
    font-size: 24px;
  }

  .main-story-meta {
    font-size: 13px;
    gap: 10px;
  }

  .sub-story-title {
    font-size: 16px;
  }

  .sub-story-content {
    padding: 15px 0;
  }

  .sub-story-category {
    font-size: 10px;
  }
}

/* ========== 반응형: 태블릿 (820px ~ 1024px) ========== */
@media (max-width: 1024px) {
  .hero {
    height: 450px;
  }

  .hero-text h1 {
    font-size: 28px;
  }

  main {
    padding: 40px 30px;
  }

  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .people-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Latest Stories 반응형 */
  .latest-stories-box {
    grid-template-columns: 1fr;
  }

  .latest-stories-box > article:first-child .grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .latest-stories-box > article:last-child {
    position: static;
    margin-top: 20px;
  }
}

/* ========== 반응형: 모바일 (<819px) ========== */
@media (max-width: 819px) {
  .hero {
    height: 350px;
  }

  .hero-text {
    bottom: 40px;
  }

  .hero-text h1 {
    font-size: 22px;
  }

  .hero-text p {
    font-size: 14px;
  }

  main {
    padding: 30px 20px;
  }

  section {
    margin-bottom: 50px;
  }

  /* .section-header h2 {
    font-size: 20px;
  } */

  .grid-3,
  .grid-4,
  .people-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  /* Latest Stories 반응형 */
  .latest-stories-box {
    grid-template-columns: 1fr;
  }

  .latest-stories-box > article:first-child .grid {
    grid-template-columns: 1fr;
  }

  .latest-stories-box > article:last-child {
    position: static;
    margin-top: 20px;
  }

  .card-title {
    font-size: 14px;
  }
}

/* ========== 이미지 플레이스홀더 ========== */
.placeholder-img {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #f5f5f5, #e8e8e8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #999;
}

/* Best Stories Swiper Styles */
.best-stories {
  position: relative;
  /* 드래그시 선택영역 안잡히게함! */
  user-select: none;
  overflow: hidden;
}

.best-stories-slider {
  position: relative;
  padding: 0 50px;
}

.best-stories-slider .swiper {
  overflow: visible;
}

.best-stories-slider .swiper-slide {
  height: auto;
}

.best-stories-slider .card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.best-stories-slider .card-image {
  flex-shrink: 0;
}

.best-stories-slider .card-content {
  flex-grow: 1;
}

/* Best Stories 텍스트 스타일 */
.best-stories-slider .category {
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
  /* color: #e74c3c; */
  margin-bottom: 8px;
  letter-spacing: 1px;
}

.best-stories-slider .s_tit {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 10px;
  color: #000;
}

.best-stories-slider .date {
  font-size: 13px;
  color: #999;
  line-height: 1.4;
}

.best-stories-slider .date span {
  color: #999;
  margin-left: 5px;
}

.best-stories-next,
.best-stories-prev {
  color: #000;
  --swiper-navigation-size: 32px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  transition: all 0.3s;
}

.best-stories-next:hover,
.best-stories-prev:hover {
  background: #000;
  color: #fff;
  border-color: #000;
}

.best-stories-next.swiper-button-disabled,
.best-stories-prev.swiper-button-disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* Must Read 텍스트 스타일 */
.must-read .category {
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
  /* color: #e74c3c; */
  margin-bottom: 8px;
  letter-spacing: 1px;
}

.must-read .s_tit {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 10px;
  color: #000;
}

.must-read .date {
  font-size: 13px;
  color: #999;
  line-height: 1.4;
}

.must-read .date span {
  color: #999;
  margin-left: 5px;
}


/* Latest Stories 파트 */
.latest-stories-box {
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 20px;
  margin-bottom: 50px;
}

/* Latest Stories 왼쪽 그리드 */
.latest-stories-box > article:first-child .grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* Latest Stories 오른쪽 광고 이미지 */
.latest-stories-box > article:last-child {
  position: sticky;
  top: 229px;
  height: fit-content;
}

.latest-stories-box > article:last-child img {
  width: 100%;
  height: auto;
  display: block;
}

/* Living 섹션 스타일 */
#living .category,
.latest-stories-box .card-category {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 8px;
  letter-spacing: 1px;
  color: #666;
}

#living .s_tit,
.latest-stories-box .card-title {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 10px;
  color: #000;
}

#living .date,
.latest-stories-box .card-subtitle {
  font-size: 13px;
  color: #999;
  line-height: 1.4;
}

#living .date span {
  color: #999;
  margin-left: 5px;
}

