/* 기본 초기화 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
  scroll-behavior: smooth; /* 스크롤을 부드럽게 이동시킴 */
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    color: #1a0d50;
}

section, [id] {
    scroll-margin-top: 80px; /* 네비게이션 바의 대략적인 높이 */
}

/* 상단 네비게이션 */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background-color: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky; /* 스크롤 시 상단 고정 */
    top: 0;
    z-index: 1000;
}

.logo {
    font-family: 'Oswald', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #1a0d50;
    letter-spacing: 1px;
}

.menu {
    list-style: none;
    display: flex;
    align-items: center;
}

.menu li {
    margin-left: 30px;
}

.menu a {
    text-decoration: none;
    color: #333;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
}

/* 강조 버튼 (빨간색) */
.btn-trial {
    background-color: #d31145; /* F45 시그니처 레드 */
    color: white !important;
    padding: 10px 20px;
    border-radius: 4px;
    transition: 0.3s;
}

.btn-trial:hover {
    background-color: #a50d35;
}

/* 범계 소개 */
.beomgye-info {
    position: relative;
    height: 80vh;
    width: 100%;
    overflow: hidden; /* 영상이 영역 밖으로 나가지 않게 */
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
}

.back-video {
  position: absolute;
  top: 50%;
  left: 50%;
  /* filter: blur(2px) brightness(0.9); */
  filter: brightness(0.4) contrast(1.05);
  transform: translate(-50%, -50%);

  /* 기본은 cover처럼 꽉 차게 */
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;

  object-fit: cover;
  z-index: -1;
}

/* 이미지 위에 어두운 막 씌우기 */
.overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 0;
}

.beomgye-info-text {
    position: relative;
    z-index: 1;
    text-align: center;
}

.beomgye-info-text h1 {
    font-family: 'Oswald', sans-serif;
    font-size: 48PX; /* 아주 큰 글씨 */
    line-height: 1.1;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.beomgye-info-text button {
    margin-top: 20px;
    padding: 15px 40px;
    font-size: 18px;
    font-weight: bold;
    color: #d31145;
    background-color: white;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
}

.beomgye-info-text button:hover {
    background-color: white;
}

/* F45 소개 */
.f45-info {
    padding: 80px 0;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.f45-info h1 {
    margin-bottom: 30px;
}

.programs {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 20px 10%;
    background-color: #f4f4f4;
}

.card {
    background: white;
    width: 300px;
    text-align: center;
    padding-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

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

.card h3 {
    font-family: 'Oswald', sans-serif;
    margin: 20px 0 10px;
    color: #d31145;
}

.card p {
    font-size: 14px;
    color: #666;
    padding: 0 15px;
}

/* 푸터 */
footer {
    text-align: center;
    padding: 20px;
    background-color: #222;
    color: white;
    font-size: 12px;
}

/* 기본적으로 햄버거 버튼은 숨김 */
.menu-toggle {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: #333;
    transition: 0.3s;
}

/* 📱 모바일 화면 (768px 이하) */
@media screen and (max-width: 768px) {
    .menu-toggle {
        display: flex; /* 햄버거 버튼 표시 */
    }

    .menu {
        display: none; /* 기본 메뉴 숨김 */
        flex-direction: column;
        width: 100%;
        background-color: white;
        position: absolute;
        top: 70px; /* 네비게이션 높이에 맞춰 조절 */
        left: 0;
        padding: 20px 0;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    }

    .menu.active {
        display: flex; /* 버튼 클릭 시 메뉴 나타남 */
    }

    .menu li {
        margin: 15px 0;
        text-align: center;
    }

    .menu li {
        margin-left: 0; /* 기존 여백 제거 */
    }

    .beomgye-info{
        height: auto;          /* vh 제거 */
        aspect-ratio: 16 / 9;  /* 영상 비율 (예: 16:9) */
        max-height: calc(100vh - 80px); /* (선택) 네비 높이만큼 빼고 화면 넘침 방지 */
    }

    .back-video{
        width: 100%;
        height: 100%;
        object-fit: cover;   /* 꽉 차게(잘림 있을 수 있음) */
        /* object-fit: contain; */ /* (원하면) 잘림 없이 전체 보이게 */
    }

    .beomgye-info-text {
        padding: 0 16px;           /* 좌우 여백 */
        text-align: center;
    }

    .beomgye-info-text h1 {
        font-size: 24px;    /* 기존 4rem → 모바일용 축소 */
        line-height: 1.15;
    }

    .beomgye-info-text button {
        padding: 12px 24px;
        font-size: 16px;
    }

    
    /* .back-video {
        width: 100%;
        height: auto;
        min-width: 0;
        min-height: 0;
        object-fit: contain; /* 필요 없으면 cover 유지해도 됨 (다만 잘림) */
    } */
}
