/* ================================
   ✅ 색상 변수 및 폰트
================================= */
:root {
  --sky: #43b7e2;
  --mint: #5dbebf;
  --deep-sky: #47a2d2;
  --green2: #1fab4c;
  --bule2: #009dbd;
  --orange2: #e8410b;
  --black: #2f2f2f;

}

/* ================================
   ✅ 전체 초기화
================================= */
body {
  margin: 0;
  font-family: 'Noto Sans KR', sans-serif;
  background-color: #f9fafc;
  color: #222;
}

/* ================================
   ✅ 헤더(고정, 라운드, 크기 키움)
================================= */
header {
  position: fixed;
  top: 0; left: 0; width: 100%;
  background: rgba(255,255,255,0.96);
  box-shadow: 0 4px 20px rgba(67, 183, 226, 0.08);
  border-bottom-left-radius: 22px;
  border-bottom-right-radius: 22px;
  z-index: 1000;
  transition: background 0.2s;
}
nav {
  position: relative; /* 추가 */
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 18px 12px 18px;
}
.logo-container {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.main-logo {
  height: 44px;
  margin-right: 7px;
}
.logo-text {
  font-family: 'Jua', cursive;
  font-size: 1.7rem;
  color: var(--mint);
  text-shadow: 0 2px 8px rgba(93,190,191,0.13);
  font-weight: bold;
  letter-spacing: -0.5px;
}

/* ================================
   ✅ 네비 메뉴 칩/버튼
================================= */
.nav-links {
  display: flex;
  gap: 10px;
  padding: 0;
  margin: 0;
}
.nav-links li { list-style: none; }
.nav-links li a {
  display: inline-block;
  padding: 8px 20px;
  background: #f3faff;
  color: var(--deep-sky);
  border-radius: 18px;
  font-size: 1.08rem;
  font-weight: 500;
  border: 1px solid #e6f1fa;
  box-shadow: 0 1px 8px rgba(67, 183, 226, 0.05);
  text-decoration: none;
  transition: background 0.18s, color 0.18s, transform 0.16s, box-shadow 0.18s;
  outline: none;
}
.nav-links li a:hover,
.nav-links li a.active {
  background: var(--mint);
  color: #fff;
  transform: translateY(-3px) scale(1.07);
  box-shadow: 0 4px 18px rgba(93, 190, 191, 0.13);
  border: 1.5px solid var(--mint);
}

/* ================================
   ✅ 햄버거(모바일용, 크기 축소)
================================= */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  gap: 4px;
  cursor: pointer;
}
.hamburger span {
  width: 22px;
  height: 3px;
  background: var(--mint);
  border-radius: 2px;
  transition: all 0.3s;
  margin: 0;
}

/* ================================
   ✅ 메인, 포스터(세로형 전체 다 보이게, header와 겹치지 않게)
================================= */
main {
  padding-top: 100px;   /* header보다 여유있게 */
  padding-bottom: 70px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 50vh;
}
.poster-container {
  width: 100vw;
  max-width: 420px;           /* PC에서 너무 넓지 않게 */
  aspect-ratio: 3/4;          /* 세로 포스터 비율(3:4, 예: 375x500) */
  margin: 0px auto 0 auto;
  background: #fff;
  border-radius: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}
.poster-front,
.poster-back {
  width: 100%;
  height: 100%;
  border-radius: 24px;
  position: absolute;
  backface-visibility: hidden;
  overflow: hidden;
  transition: transform 0.8s cubic-bezier(.44,1.18,.73,1.07);
  box-shadow: 0 3px 32px rgba(67,183,226,0.09);
  background: #fff;
}
.poster-front img {
  width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;         /* cover → contain! (세로포스터 전체 다 보이게) */
  border-radius: 24px;
  background: #fff;
  display: block;
  margin: 0;
  padding: 0;
}
/* flip */
.poster-container.flip .poster-front { transform: rotateY(180deg);}
.poster-container.flip .poster-back { transform: rotateY(360deg);}

/* ✅ 포스터 뒷면 */
.poster-back {
  background: radial-gradient(circle,
    rgba(93,190,191,0.12),
    rgba(67,183,226,0.08),
    #fff 80%);
  color: var(--bule2);
  display: flex;
  flex-direction: column;
  justify-content: center; 
  align-items: center;
  text-align: center;
  padding: 28px 10px 18px 10px;
  transform: rotateY(180deg);
}
.poster-back h2 {
  margin-bottom: 12px;
  font-size: 1.5rem;
  font-family: 'Jua', sans-serif;
}
.poster-btn {
  margin-top: 16px;
  background: var(--mint);
  color: #fff;
  padding: 9px 18px;
  border-radius: 7px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.2s;
}
.poster-btn:hover {
  background: var(--deep-sky);
}

/* ================================
   ✅ 부스 카드 그리드(여러 카드 가로정렬)
================================= */
.clubs-grid {
  display: grid; /* 핵심! 줄 맞춰 정렬 */
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* 반응형 그리드 */
  gap: 20px;
  margin-top: 32px;
}

/* ================================
   ✅ 카드 전체 영역
================================= */
.club-card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 12px;
  min-height: 220px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.10);
  overflow: hidden;
  padding: 12px 8px 18px 8px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  cursor: pointer;
  transition: box-shadow 0.16s, transform 0.18s;
}
.club-card:active {
  transform: scale(0.98);
  box-shadow: 0 1px 3px rgba(0,0,0,0.09);
}

/* ================================
   ✅ 카드 이미지 플립/슬라이드
================================= */
.card-inner {
  position: relative;
  width: 100%;
  height: 120px;    /* 이미지 공간 크게(원하는 만큼 조절) */
  overflow: hidden;
  border-radius: 10px;
  margin-bottom: 14px;
}
.card-front, .card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0; top: 0;
  border-radius: 10px;
  transition:
    transform 0.6s cubic-bezier(.7, -0.2, .3, 1.4),
    opacity 0.45s cubic-bezier(.7, -0.2, .3, 1.4);
  display: block;
  background: #fff;
}
.card-front {
  z-index: 2;
  transform: translateX(0);
  opacity: 1;
}
.card-back {
  z-index: 1;
  transform: translateX(65%);
  opacity: 0.6;
}
.club-card.flipped .card-front {
  z-index: 1;
  transform: translateX(-65%);
  opacity: 0.6;
}
.club-card.flipped .card-back {
  z-index: 2;
  transform: translateX(0);
  opacity: 1;
}

/* ================================
   ✅ 이미지: 카드 공간에 '빈틈없이' 맞추기
================================= */
.card-front img,
.card-back img {
  width: 100%;
  height: 100%;
  object-fit: scale-down; /* 필요할 때만 축소 */
  object-position: center;
  border-radius: 10px;
  display: block;
  background: #fff;
}

/* ================================
   ✅ 카드 하단 텍스트
================================= */
.club-card h2 {
  margin: 10px 0 0 0;
  font-size: 1.18em;
  font-family: 'Jua', 'Noto Sans KR', sans-serif;
  color: var(--deep-sky);
  font-weight: bold;
  letter-spacing: 0.01em;
}
.club-card p {
  margin: 9px 0 0 0;
  color: #2d2d2d;
  font-size: 1em;
  font-family: 'Noto Sans KR', sans-serif;
  min-height: 32px;
  line-height: 1.45;
}

/* ================================
   ✅ 헤더/네비 등 (필요시)
================================= */
header {
  position: fixed;
  top: 0; left: 0; width: 100%;
  background: rgba(255,255,255,0.97);
  box-shadow: 0 4px 20px rgba(67, 183, 226, 0.08);
  border-bottom-left-radius: 22px;
  border-bottom-right-radius: 22px;
  z-index: 1000;
}
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 18px 12px 18px;
}
.logo-container {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.main-logo {
  height: 44px;
  margin-right: 7px;
}
.logo-text {
  font-family: 'Jua', cursive;
  font-size: 1.7rem;
  color: var(--mint);
  text-shadow: 0 2px 8px rgba(93,190,191,0.13);
  font-weight: bold;
  letter-spacing: -0.5px;
}
.nav-links {
  display: flex;
  gap: 10px;
  padding: 0;
  margin: 0;
}
.nav-links li { list-style: none; }
.nav-links li a {
  display: inline-block;
  padding: 8px 20px;
  background: #f3faff;
  color: var(--deep-sky);
  border-radius: 18px;
  font-size: 1.08rem;
  font-weight: 500;
  border: 1px solid #e6f1fa;
  box-shadow: 0 1px 8px rgba(67, 183, 226, 0.05);
  text-decoration: none;
  transition: background 0.18s, color 0.18s, transform 0.16s, box-shadow 0.18s;
  outline: none;
}
.nav-links li a:hover,
.nav-links li a.active {
  background: var(--mint);
  color: #fff;
  transform: translateY(-3px) scale(1.07);
  box-shadow: 0 4px 18px rgba(93, 190, 191, 0.13);
  border: 1.5px solid var(--mint);
}

/* ================================
   ✅ 푸터(더 작게, header보다 작음)
================================= */
footer {
  position: fixed;
  bottom: 0; left: 0; width: 100%;
  background: #f7fafc;
  border-top-left-radius: 6px;
  border-top-right-radius: 6px;
  color: #666;
  font-size: 0.84rem;
  padding: 4px 0 4px;
  box-shadow: 0 -2px 8px rgba(67,183,226,0.04);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  z-index: 1000;
}
.footer-emoji {
  font-size: 1.0rem;
  margin-right: 4px;
}

@media (max-width:768px){
  .clubs-block{
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); /* 카드 크기 */
    gap: 14px; 
    margin: 24px auto 0; /* 위쪽 24px, 좌우 auto -> 중앙 정렬 효과 */
    
    /* ✅ 좌우 여백 추가 */
    padding: 0 12px; /* 왼쪽·오른쪽 12px */
    box-sizing: border-box; /* padding 포함해서 폭 계산 */
    max-width: 100%; /* calc 필요 없음 */
  }

  .card-inner{
    height: auto; 
    aspect-ratio: 1/1; /* 정사각형 비율 */
    margin-bottom: 10px; 
  }

  .club-card{
    padding: 10px 6px 12px;
  }

  .club-card h2{
    margin-top: 5px; 
    font-size: 1.05em;
  }

  .club-card p{
    font-size: 0.96em; 
    min-height: 18px; 
    margin-top: 4px;
  }
}

  /*.club-front img,
  .card-back img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 빈틈 없이 채우기 */
    /*object-position: center;
    border-radius: 10px;
  }*/

  .hamburger{
     display:flex; 
     width:32px; 
     height:32px
  } /* 모바일에서 보이게 */
   
  .hamburger span{
     width:20px
  }
  .nav-links{
    position:absolute; 
    top:70px;
    right:10px;
    width:200px;
    display:none;
    flex-direction:column; 
    align-items:center; 
    padding:12px 0;
    background:#fff; 
    border:1px solid #e6f1fa; 
    border-radius:12px;
    box-shadow:0 4px 20px rgba(67,183,226,.11); 
    z-index:1002;
  }
   
  .nav-links.show{
     display:flex; 
     animation:slideDown .25s ease
  }
   
  .nav-links li{
     width:100%; 
     text-align:center
  }
   
  .nav-links a{
     margin:4px 10px; 
     padding:10px 14px; 
     border-radius:14px
  }

  @keyframes slideDown{
    from{
       opacity:0; 
       transform:translateY(-10px)
    }
    to  {
       opacity:1; 
       transform:translateY(0)
    }
  }
}
/* -----------------------------------------------------------
   📌 About(본문) 영역 기본 레이아웃 & 타이포
   - 모바일 퍼스트로 여백과 글자 크기를 설정합니다.
----------------------------------------------------------- */
.about-section{
  /* 화면 폭 가운데 정렬 + 가독성 있는 최대 폭 */
  max-width: 980px;
  margin: 0 auto;
  padding: 24px 16px 40px;

  /* 부드러운 카드 느낌의 배경 (아주 옅은 그라디언트) */
  background: linear-gradient(180deg, rgba(0,0,0,0.03), rgba(0,0,0,0.02));
  border-radius: 18px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.06);
}

.about-title{
  /* 제목은 가독성 높고 선명하게 */
  font-family: 'Jua', 'Noto Sans KR', system-ui, -apple-system, sans-serif;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  line-height: 1.25;
  margin: 6px 0 16px;
  letter-spacing: 0.2px;
  /* 살짝의 포인트(그라디언트 텍스트) */
  background: linear-gradient(90deg, #333, #555);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.about-lead {
  font-size: clamp(0.8rem, 1.9vw, 1.125rem);
  line-height: 1.8;
  text-align: center;
  color: #2c3e50; /* 남색톤 (신뢰감) */
}

.about-lead strong {
  color: #ff9800; /* 주황색 포인트 */
}

/* 문단 강조를 위한 가느다란 구분선 */
.about-section::after{
  content: "";
  display: block;
  height: 1px;
  width: 100%;
  margin: 16px 0 8px;
  background: linear-gradient(90deg, transparent, rgba(0,0,0,0.08), transparent);
}

/* -----------------------------------------------------------
   🎞 슬라이더
   - 가로/세로 비율 고정(aspect-ratio)로 어떤 화면에서도 안정적으로 보이게
   - 이미지 오버플로우 방지
----------------------------------------------------------- */
.slider{
  position: relative;
  margin-top: 18px;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 16/9; /*화면 비율*/
  background: #1f1f1f; 
  /* 부드러운 크림톤 → 회색 그라디언트 */
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  isolation: isolate; /* 자식들의 혼합 모드/정렬 안전 */
}

/* 슬라이드 트랙(겹쳐 쌓는 방식) */
.slider .slides{
  position: relative;
  width: 100%;
  height: 100%;
}

/* 각각의 슬라이드(겹쳐 놓고, 활성 슬라이드만 보이게) */
.slider .slide{
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02); /* 살짝 확대해 들어오는 느낌 */
  transition:
    opacity 420ms ease,
    transform 800ms ease;
  display: grid;
  place-items: end; /* 캡션을 아래로 */
}

/* 현재 활성화된 슬라이드 */
.slider .slide.is-active{
  opacity: 1;
  transform: scale(1);
  z-index: 1;
}

.slider img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* 이미지 비율 유지하며 꽉 채우기 */
}

/* 캡션: 하단 그라디언트 + 가독성 확보 */
.slider figcaption{
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 10px 14px 12px;
  font-size: clamp(0.85rem, 1.6vw, 1rem);
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.45);
  background:
    linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.45) 64%, rgba(0,0,0,0.65) 100%);
}

/* ================================
   ▶ 좌우 네비 아이콘만 보이게 (배경 없음)
   - 큰 터치 영역은 유지(접근성)
   - hover/active에 배경 생기지 않음
   - 사진 위에서 가독성 확보를 위해 text-shadow 추가
================================= */
.slider .nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;

  /* 📏 터치 영역(보이지 않지만 클릭/터치 가능 구역) */
  width: clamp(28px, 5vw, 38px);
  height: clamp(28px, 5vw, 38px);

  /* 📌 배경·테두리·원형 제거 → 아이콘만 표시 */
  background: none;
  border: none;
  border-radius: 0;

  display: grid;
  place-items: center;
  cursor: pointer;

  /* 🔠 아이콘 스타일 */
  color: #fff;                           /* 아이콘 색상 */
  font-size: clamp(16px, 3vw, 20px);     /* 반응형 크기 */
  line-height: 1;

  /* 🌟 사진 위에서 잘 보이도록 글로우 효과 */
  text-shadow: 0 0 6px rgba(0,0,0,0.55), 0 0 2px rgba(0,0,0,0.45);

  /* 🎞️ 부드러운 인터랙션 */
  transition: transform .18s ease, opacity .18s ease;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

/* ✋ hover/active: 배경 없이 크기/투명도로만 피드백 */
.slider .nav:hover {
  transform: translateY(-50%) scale(1.08);
  opacity: 0.95;
}
.slider .nav:active {
  transform: translateY(-50%) scale(0.94);
}

/* ◀ ▶ 위치: 사진 가림 최소화를 위해 살짝 바깥쪽 */
.slider .nav.prev { left: -6px; }
.slider .nav.next { right: -6px; }

/* 키보드 포커스: 배경이 없으므로 아이콘에 빛나는 링 느낌 */
.slider .nav:focus-visible {
  outline: none;
  text-shadow:
    0 0 8px rgba(255,255,255,0.85),
    0 0 4px rgba(255,255,255,0.75),
    0 0 10px rgba(0,0,0,0.5);
}

/* 📱 모바일: 터치성 보강 + 살짝 안쪽으로 */
@media (max-width: 768px) {
  .slider .nav {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }
  .slider .nav.prev { left: 6px; }
  .slider .nav.next { right: 6px; }
}

/* 인디케이터(점) */
.slider .dots{
  position: absolute;
  left: 50%;
  bottom: 6px;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 3;
}
.slider .dot{
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.45);
  border: none;
  padding: 0;
  cursor: pointer;
}
.slider .dot.is-active{ background: #fff; }


/* -----------------------------------------------------------
   🧩 접근성/환경 설정
   - 모션 최소화 설정 사용자(prefers-reduced-motion)가 있으면
     과한 애니메이션/자동재생을 줄입니다.
----------------------------------------------------------- */
@media (prefers-reduced-motion: reduce){
  .slider .slide{
    transition: none !important;
  }
}

/* ===========================================================
   🎉 FESTIVAL PAGE 전용 스타일 (festival.html 전용)
   - f-main, f-hero, f-intro, f-board, f-focus 등
   - 다른 페이지와 충돌 방지를 위해 f- 접두사만 사용
   =========================================================== */

/* 본문 전체: 고정 header/footer와 겹치지 않게 상하 패딩 */
.f-main{
  padding-top: 82px !imprtant; /* header, footer 높이 고려 */
  padding-bottom: 64px;
  display: block; /* ✅ 세로 흐름으로 쌓이도록 기본 블록 레이아웃으로 강제 */
  overflow-x: hidden; /* 스크롤 가능 (혹시 상위에서 overflow 숨긴 경우 대비) */
   
}

/* 히어로 이미지(본문 위 포스터): 크기는 작게, 정렬은 가운데로 */
.f-hero{ 
   margin: 0 auto 6px !important; 
   text-align: center;
}
.f-hero__frame{
  width: 100%;                     /* 기본 100% 폭 */
  max-width: 280px;                 /* page-content와 유사한 가독성 폭 */
  margin: 0 auto;                   /* 가운데 정렬 */
  padding: 0 !important;                  /* 좌우 여백 */
  box-sizing: border-box;           /* padding 포함 계산 */
  
  aspect-ratio: auto;              /* 캐릭터 이미지는 4:5 비율 */
  display: flex;                    /* 이미지 정렬을 위해 flex */
  justify-content: center;          /* 수평 가운데 */
  align-items: center;              /* 수직 가운데 */
}
.f-hero__frame img{
  width: 50%;
  height: auto;                     /* 비율 유지 */
  object-fit: contain;              /* 전체 보이게 */
  display: block;
}

/* 안내글(본문_히어로 아래): 블록 흐름으로 세로 배치, 가운데 정렬 */
.f-intro{
  margin: 0 auto 0 !important;
  max-width: 500px; /* 문단 가독 폭 */ 
  padding: 0 12px;
  text-align: center; /* ✅ 세로로 쌓이게 */
  display: block; /* flex/grid 아님 -> 세로 배치 */
}

/* .f-intro__grid{
  display: block; /* ✅ 한 줄씩 세로 */
/* } */
.f-intro__col{ 
   margin-bottom: 10px; 
}
.f-intro__col--full{ 
   margin-top: 2px; 
}

.f-label{ margin: 0 0 4px; font-weight: 700; font-size: 1rem; }
.f-text{  margin: 0; font-size: .98rem; }
.f-desc{  margin: 6px 0 0; font-size: .98rem; color:#545; line-height: 1.65; }

/* 6분할 카드 보드: 항상 3열 × 2행, 각 카드 4:5 비율 */
.f-board{
  /* 바깥 컨테이너 */
  width: /*min(92vw, 420px)*/ 100%;
  max-width: 420px;
  /*margin: 6px auto 0 !important;*/
  padding: 0 !important;
  margin: 6px auto 0;
  /* 좌우 패딩을 안내문(.page-content)과 동일하게 */
  padding-left: 10px;
  padding-right: 10px;
  /* 3열 공정 */
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 모바일/브라우저 공통 3열 고정 */
  /* grid-auto-rows: 1fr; */
  gap: 5px;

  /* 그리드 자체를 가운데로 */
  justify-content: center;
}

.f-tile{
  width: 100%; /* 카드 가로 고정 */
  /* max-width: 250px; */
  position: relative;
  aspect-ratio: 4 / 5;        /* 요청 비율 고정 */
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  outline: none;
  margin: 0 !important;
}
.f-tile:focus-visible{
  box-shadow: 0 0 0 3px rgba(71,162,210,.45);
  border-radius: 8px;
}

/* 실제 뒤집히는 카드 본체 */
.f-card{
  position: absolute; 
  inset: 0;
  transform-style: preserve-3d;
  transition: transform .34s cubic-bezier(.2,.7,.2,1);
  transform-origin: center center;
  overflow: hidden;
  background: #0f1012;        /* 로딩 중 백업 배경 */
  box-shadow: 0 6px 16px rgba(0,0,0,.15);

  /* iOS 사파리 렌더 안정화 */
  will-change: transform;
  transform: translateZ(0);
}

/* 앞/뒤 면 */
.f-face{
  position: absolute; 
  inset: 0;
  display: grid; 
  place-items: center;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.f-face img{
  width: 100%; 
  height: 100%;
  object-fit: contain;        /* 이미지 잘림 없이 전체 보이게 */
  object-position: center;    /* 중앙 기준 */
  background: transparent;           /* 레터박스 색 */
  display: block;
}
.f-face.f-back{ 
   transform: rotateY(180deg); 
}

/* (데스크톱에서) 제자리 뒤집기를 쓰고 싶다면 .is-flipped 사용
   - 지금 JS는 ‘모달로 확대’만 사용하지만, 보조용으로 보존 */
.f-tile.is-flipped .f-card{ 
   transform: rotateY(180deg); 
}

/* 중앙 확대 모달(타일 탭 시 뒷면을 중앙에 크게 표시) */
.f-focus{
  position: fixed; 
  inset: 0;
  display: none;              /* JS가 .active로 토글 */
  place-items: center;
  background: rgba(0,0,0,.6);
  z-index: 2000;
  padding: 18px;
  box-sizing: center-box;
}
.f-focus.active{ display: grid; }
.f-focus .f-card{
  width: min(92vw, 560px);
  aspect-ratio: 4 / 5;        /* 모달에서도 4:5 */
  background: #000;
  overflow: hidden;
  transform-style: preserve-3d;
}
.f-focus .f-face.f-front{ display:none; }           /* 모달은 뒷면만 노출 */
.f-focus .f-face.f-back{
  transform: rotateY(0deg) !important;
  backface-visibility: visible;
  -webkit-backface-visibility: visible;
}
.f-focus .f-face img{
  object-fit: contain;        /* 모달에서도 전체 보이게 */
}

/* 모달 오픈 시 바디 스크롤 잠금 */
html.f-noScroll, body.f-noScroll{ overflow: hidden !important; }

/* 터치 피드백 살짝 축소(선택) 
@media (prefers-reduced-motion: no-preference){
  .f-tile:active .f-card{ transform: scale(0.985); }
}
@media (prefers-reduced-motion: reduce){
  .f-card{ transition: none; }
}
*/

@media (max-width: 360px){
   .f-board{
      max-width: 330px;
      gap: 7px;
   }
   .f-hero__frame{
      width: 84vw;
      max-height: clamp(190px, 42vh, 340px);
   }
}
/* .page-intro{
   margin: 8px 0 14px;
}
.page-title{
   text-align: center;
   font-weight: 700;
   font-size: clamp(20px, 5.6vw, 28px);
   margin: 6px 0 10px;
}
.page-hero{
   margin: 8px 0 12px;
} */
   
/* -----------------------------------------------------------
   📌 Clubs(부스 소개) 본문 컨테이너
   - 모바일 퍼스트: 가운데 정렬, 여백, 카드형 배경
   - about-section과 톤/타이포를 통일
----------------------------------------------------------- */
.page-content{
  /* ✅ 폭: 모바일에서 너무 넓지 않게, 데스크톱에서도 가독성 유지 */
  width: 100%;
  margin: 16px 0;                 /* 가운데 정렬 */
  padding: 0px 16px;        /* 상/좌우/하 여백 */
  box-sizing: border-box;
  display: block;

  /* 🎨 아주 옅은 그라디언트 + 카드 그림자 (about-section과 동일 톤) */
  /*background: linear-gradient(180deg, rgba(0,0,0,0.03), rgba(0,0,0,0.02));
  border-radius: 18px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.06);*/
}

.page-content::after{ content:""; display:block; clear:both; }
/* -----------------------------------------------------------
   🏷 제목(H1)과 서브타이틀(H4)
   - about의 타이포를 참고: Jua + Noto, 그라디언트 텍스트
   - 모바일에서 중앙 정렬
----------------------------------------------------------- */
.page-content > h1{
  /* Jua로 제목, 필요 시 Noto Sans KR 폴백 */
  font-family: 'Jua', 'Noto Sans KR', system-ui, -apple-system, sans-serif;
  font-size: clamp(1.5rem, 2.6vw, 2rem);  /* 모바일~데스크톱 반응형 */
  line-height: 1.25;
  margin: 6px 0 10px;
  letter-spacing: 0.2px;

  /* 🎨 포인트: 그라디언트 텍스트(about-title과 톤 동일) */
  background: linear-gradient(90deg, #333, #555);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;

  text-align: center;  /* 모바일 중앙 정렬 */
}

.page-content > h3{
  /* Jua로 제목, 필요 시 Noto Sans KR 폴백 */
  font-family: 'Jua', 'Noto Sans KR', system-ui, -apple-system, sans-serif;
  font-size: clamp(1.5rem, 2.6vw, 2rem);  /* 모바일~데스크톱 반응형 */
  line-height: 1.25;
  margin: 6px 0 10px;
  letter-spacing: 0.2px;

  /* 🎨 포인트: 그라디언트 텍스트(about-title과 톤 동일) */
  background: linear-gradient(90deg, #333, #555);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;

  text-align: center;  /* 모바일 중앙 정렬 */
}

.page-content > h4{
  /* 본문 느낌의 보조 설명 */
  font-family: 'Noto Sans KR', system-ui, -apple-system, sans-serif;
  font-weight: 500;
  font-size: clamp(0.98rem, 1.9vw, 1.06rem);
  line-height: 1.7;

  /* 너무 새까맣지 않게 톤다운 */
  color: #444;
  opacity: 0.92;

  /* h1과 가까워 보이도록 살짝 간격 좁힘 */
  margin: 0 0 14px;

  text-align: center;  /* 모바일 중앙 정렬 */
}
