@charset "utf-8";

#slide-btn{display: none;}
#slide-bg{display: none;}
#slide-menu{display: none;}


/* [초기 설정 및 변수 시스템] */
:root {
    --primary: #ff8c00; 
    --primary-glow: rgba(255, 140, 0, 0.4);
    --card-bg: rgba(255, 255, 255, 0.98);
    --glass: blur(15px) saturate(180%);
    --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --header-height: 80px; /* 헤더 높이 통일 */
}

html { overflow-x: hidden; }
body {
    margin: 0;
    font-family: 'Pretendard', sans-serif;
    background-color: #f4f7f9;
    color: #333;
    overflow-x: hidden;
    padding-top: var(--header-height); /* 헤더가 고정(fixed)이므로 본문을 밀어줌 */
}

.container { max-width: 1300px; margin: 0 auto; padding: 0 20px; }

/* [1. 배너 외곽 컨테이너 - 카드 정렬 라인과 강제 일치] */
.mid-bn-wrapper {
    width: 100%;
    max-width: 1300px;  /* 상단 카드들이 담긴 컨테이너 폭과 동일하게 설정 */
    margin: 60px auto;  /* 상하 여백 및 중앙 정렬 */
    padding: 0 20px;    /* 카드 영역 좌우 패딩과 동일하게 설정 */
    overflow: hidden;   /* 삐져나가는 배너 숨김 */
    position: relative;
    box-sizing: border-box;
    clear: both;        /* 상단 요소들과의 간섭 차단 */
}

/* [2. 슬라이드 실행 본체 - 기존 float 무력화] */
#main #content .mid-bn {
    display: flex !important; /* float 무시하고 flex 적용 */
    float: none !important;   /* 기존 float 강제 제거 */
    width: max-content;       /* 배너 길이에 맞게 확장 */
    gap: 20px;                /* 배너 사이 간격 */
    margin: 0 !important;     /* 기존 margin -20px 등 제거 */
    padding: 15px 0;
    list-style: none;
    animation: banner-scroll 40s linear infinite;
}

/* 마우스 올리면 정지 */
#main #content .mid-bn:hover {
    animation-play-state: paused;
}

/* [3. 개별 배너 카드 디자인 - 폭을 줄이고 상단 카드 스타일 적용] */
#main #content .mid-bn > ul {
    display: flex !important;
    align-items: center;
    justify-content: center;
    float: none !important;   /* 기존 float 제거 */
    list-style: none;
    margin: 0 !important;     /* 기존 margin 제거 */
    padding: 0 !important;
    
    width: 160px !important;  /* 배너 폭 축소 */
    height: 90px;             /* 배너 높이 */
    background: #fff;
    border-radius: 20px;      /* 상단 카드와 동일한 곡률 */
    flex-shrink: 0;           /* 크기 고정 */
    
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05); /* 상단 카드와 유사한 그림자 */
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* 호버 시 상단 카드처럼 떠오르는 효과 */
#main #content .mid-bn > ul:hover {
    transform: translateY(-7px);
    border-color: var(--primary);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* [4. 이미지 및 링크 설정] */
#main #content .mid-bn ul li { 
    margin: 0 !important; 
    padding: 0 !important; 
    width: 100%;
    height: 100%;
}

#main #content .mid-bn ul li a {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    padding: 15px;
    box-sizing: border-box;
}

#main #content .mid-bn ul li a img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* 이미지 비율 유지하며 박스 채우기 */
    transition: 0.3s;
}

/* [5. 무한 슬라이드 애니메이션] */
@keyframes banner-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - 10px)); }
}
/* ------------------------------------------------------
   [Main Header] 상단 한 줄 정렬 및 고정
--------------------------------------------------------- */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: #000;
    border-bottom: 3px solid var(--primary);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    align-items: center;
}

/* [로고 & 검색창 밀착 레이아웃] */
.logo-search-group {
    display: flex;
    align-items: center;
    gap: 15px; /* 로고와 검색창 사이의 간격 (원하시는 만큼 조절 가능) */
    flex-shrink: 0;
	margin-right: 150px;
}

/* 기존 inner 설정 보강 */
.main-header .inner {
    display: flex;
    justify-content: space-between; /* 그룹-메뉴-버튼 간격 배분 */
    align-items: center;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 1. 로고 영역 */
.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0; /* 크기 유지 */
}

.is-symbol {
    width: 40px; height: 40px;
    background: #fff; border-radius: 10px;
    display: flex; justify-content: center; align-items: center;
    box-shadow: 0 0 15px rgba(255,255,255,0.3);
}

.is-inner {
    width: 22px; height: 22px; background: #000;
    -webkit-mask: linear-gradient(135deg, transparent 20%, #000 20%, #000 40%, transparent 40%, transparent 60%, #000 60%);
    mask: linear-gradient(135deg, transparent 20%, #000 20%, #000 40%, transparent 40%, transparent 60%, #000 60%);
}

.logo-text {
    margin: 0; color: #fff; font-size: 28px; font-weight: 900;
    font-style: italic; letter-spacing: -1.5px;
}
.logo-text span { font-size: 18px; opacity: 0.7; font-style: normal; }

/* 2. 통합 검색 영역 (새로 추가 및 정렬) */
/* [통합검색 영역 최적화] */
#sch {
    width: 200px; /* 고정 너비로 설정하여 로고 옆에 안정적으로 배치 */
    margin: 0;    /* 기존 여백 제거 */
}
#sch legend {
    display: none; /* 밖으로 나가는 문구 완전 제거 */
}
#sch form {
    width: 100%;
}

#sch fieldset {
    border: none;
    padding: 0;
    margin: 0;
    position: relative;
    width: 100%;
}

/* [문제 해결] legend 문구가 밖으로 나가는 현상 방지 (시각적 숨김 처리) */
#sch legend {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* 인풋 박스 스타일 */
#sch .inp {
    height: 36px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 18px;
    padding: 0 40px 0 15px;
    color: #fff;
    font-size: 13px;
    transition: all 0.3s;
}

/* 인풋 포커스 시 효과 */
#sch .inp:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary);
    width: 280px; /* 클릭 시 검색창이 살짝 길어지는 효과 (선택 사항) */
}

/* 검색 버튼(돋보기 아이콘) 정렬 */
#sch .sbm {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    background: transparent;
    border: none;
    color: var(--primary); /* 브랜드 컬러 적용 */
    font-size: 16px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.2s ease;
}

#sch .sbm:hover {
    transform: translateY(-50%) scale(1.1);
}
/* 3. 메뉴 GNB 영역 */
.nav-bar { display: block ruby; align-items: center; }
/* [GNB 주메뉴 & 서브메뉴 시스템] */

/* 1. 주메뉴 설정 */
#gnb { 
    display: flex; 
    list-style: none; 
    margin: 0; 
    padding: 0; 
    gap: 10px; 
}

#gnb > li { 
    position: relative; /* 서브메뉴 위치의 기준점 */
}

#gnb > li > a {
    display: block;
    color: #ccc;
    text-decoration: none;
    padding: 0 20px;
    font-weight: 700;
    font-size: 15px;
    line-height: var(--header-height); /* 헤더 높이와 일치시켜 세로 중앙 정렬 */
    transition: 0.3s;
}

/* 주메뉴 호스트 효과 */
#gnb > li:hover > a {
    color: var(--primary);
}

/* 2. 서브메뉴 (2단 메뉴) 설정 */
#gnb > li > ul {
    position: absolute;
    top: var(--header-height); /* 주메뉴 바로 아래에서 시작 */
    left: 50%;
    transform: translateX(-50%) translateY(10px); /* 중앙 정렬 및 약간 아래 위치 */
    width: 200px;
    background: #fff; /* 서브메뉴는 가독성을 위해 화이트 */
    padding: 10px 0;
    list-style: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    border-radius: 8px;
    border-top: 3px solid var(--primary); /* 상단 포인트 라인 */
    
    /* 초기 상태: 숨김 */
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1001;
}

/* 주메뉴 마우스 오버 시 서브메뉴 노출 */
#gnb > li:hover > ul {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0); /* 위로 슬쩍 올라오며 나타남 */
}

/* 서브메뉴 항목 스타일 */
#gnb > li > ul li {
    position: relative;
}

#gnb > li > ul li a {
    display: block;
    padding: 12px 20px;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: 0.2s;
    text-align: center;
}

#gnb > li > ul li a:hover {
    background: #f8f9fa;
    color: var(--primary);
}

/* 3. 3단 메뉴 (서브메뉴의 옆으로 열리는 메뉴) 설정 - 필요 시 */
#gnb > li > ul > li > ul {
    position: absolute;
    top: 0;
    left: 100%; /* 서브메뉴의 오른쪽 옆에 밀착 */
    width: 180px;
    background: #fff;
    padding: 10px 0;
    box-shadow: 10px 10px 30px rgba(0,0,0,0.1);
    border-radius: 0 8px 8px 8px;
    border-left: 1px solid #eee;
    
    /* 초기 상태: 숨김 */
    opacity: 0;
    visibility: hidden;
    transition: 0.2s;
}
/* 회비관리 카드 */
.side-area {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.side-area > .mini-card {
    grid-column: span 1;
}
.side-area > .mini-card {
    grid-column: span 1;
}
.status-box { background: #000; color: #fff; padding: 15px; border-radius: 15px; display: flex; align-items: center; gap: 10px; }
.pulse { width: 10px; height: 10px; background: #00ff88; border-radius: 50%; box-shadow: 0 0 10px #00ff88; animation: blink 1.5s infinite; }
/* 회비관리 카드 */

#gnb > li > ul > li:hover > ul {
    opacity: 1;
    visibility: visible;
}

/* 서브메뉴 화살표 표시 (3단 메뉴가 있을 경우) */
#gnb > li > ul > li:has(ul) > a::after {
    content: '▶';
    font-size: 10px;
    float: right;
    margin-top: 2px;
    opacity: 0.5;
}

/* 4. 인증 및 알림 영역 (Sign in, Alarm 등) */
.auth-btns { display: flex; align-items: center; gap: 15px; flex-shrink: 0; }

/* [User Control Group] 알람부터 매니저 버튼까지 통합 */
.user-control-group {
    display: flex;
    align-items: center;
    gap: 20px; /* 알림 영역과 버튼 영역 사이의 간격 */
    flex-shrink: 0;
}

/* 알림 및 메시지 리스트 */
#tnb2 {
    display: block ruby;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 15px;
    padding-right: 20px;
}

#tnb2 li a {
    font-size: 13px;
    color: #aaa;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: 0.3s;
	margin-right: 20px;
}

#tnb2 li a i { font-size: 14px; }
#tnb2 li a em {
    font-style: normal;
    background: var(--primary);
    color: #fff;
    font-size: 10px;
    padding: 1px 5px;
    border-radius: 10px;
    font-weight: 800;
    min-width: 12px;
    text-align: center;
}

#tnb2 li a:hover { color: #fff; }

/* 인증 및 매니저 버튼 리스트 */
#tnb {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 10px;
    align-items: center;
}

#tnb li a {
    display: block;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 20px;
    transition: all 0.3s;
	margin: -5px;
}

/* 일반 링크 (Sign out, Mypage) */
#tnb li a:not(.btn-neon):not(.btn-ghost) {
    color: #ccc;
}

#tnb li a:not(.btn-neon):not(.btn-ghost):hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

/* 매니저 버튼 (네온 효과 강조) */
.btn-neon {
    background: var(--primary);
    color: #fff !important;
    box-shadow: 0 0 15px var(--primary-glow);
    border: none;
}
/* 일반버튼 버튼 (네온 효과 강조) */
.btn-nomal {
    background: rgba(var(--primary-rgb), 0.2); /* 위에서 정의한 0.4 투명도 적용 */
    color: #fff !important;
    box-shadow: 0 0 15px var(--primary-glow);
    border: none;
}
.btn-neon:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px var(--primary-glow);
}

.btn-ghost { border: 1px solid rgba(255,255,255,0.3); }
.btn-ghost:hover { background: rgba(255,255,255,0.1); }
.btn-neon {
    background: var(--primary);
    box-shadow: 0 0 15px var(--primary-glow);
}

/* ------------------------------------------------------
   [Hero & Content] 기존 스타일 유지 및 보정
--------------------------------------------------------- */
.hero-banner {
    position: relative; height: 500px;
    background: radial-gradient(circle at 50% 120%, #2d5a27 0%, transparent 70%),
                linear-gradient(to bottom, rgba(0,0,0,0.7), transparent),
                linear-gradient(135deg, #1a1a1a, #4a3321, #ff8c00);
    display: flex; align-items: center; justify-content: center;
    color: #fff; overflow: hidden;
}

.star-container {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    z-index: 5; pointer-events: none; overflow: hidden;
}

.star {
    position: absolute; border-radius: 50%; opacity: 0;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    animation: star-multi-move linear forwards;
}

@keyframes star-multi-move {
    0% { transform: translate(0, 0) scale(0); opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { transform: translate(var(--move-x), var(--move-y)) scale(1.5); opacity: 0; }
}

.hero-content { position: relative; z-index: 10; text-align: center; }
.hero-title { font-size: 46px; font-weight: 900; line-height: 1.3; margin: 0; }
.hero-title span { color: var(--primary); text-shadow: 0 0 20px var(--primary-glow); }

/* 게시판 카드 레이아웃 보정 */
.content-wrapper { margin-top: -80px; position: relative; z-index: 20; margin-bottom: 80px; }
.card-grid { display: flex; flex-direction: column; gap: 20px; }
.grid-row-1 { display: grid; grid-template-columns: 1fr 2fr; gap: 20px; }
.grid-row-2 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.info-card, .mini-card {
    background: var(--card-bg); border-radius: 30px; padding: 30px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1); backdrop-filter: var(--glass);
    transition: var(--transition);
}

/* ------------------------------------------------------
   메인페이지 카드
--------------------------------------------------------- */
.card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; border-bottom: 2px solid #f5f5f5; padding-bottom: 15px; }
.card-top h3 { margin: 0; font-size: 20px; font-weight: 800; }
.card-top i { color: var(--primary); font-size: 24px; }


/* ------------------------------------------------------
   카드에 나오는 리스트
--------------------------------------------------------- */
.list-item { list-style: none; padding: 0; }
.list-item li { padding: 12px 0; border-bottom: 1px solid #f9f9f9; display: flex; justify-content: space-between; font-size: 14px; }

/* ------------------------------------------------------
   반응형 레이아웃
--------------------------------------------------------- */
@media (max-width: 1200px) {
    #sch, #tnb2 { display: none; } /* 공간 부족 시 검색창과 부가정보 숨김 */
    #gnb > li > a { padding: 0 10px; font-size: 14px; }
}

@media (max-width: 768px) {
    .main-header { height: 60px; }
    body { padding-top: 60px; }
    #gnb, .auth-btns { display: none; } /* 모바일은 슬라이드 메뉴로 대체 */
    #slide-btn { display: block; color: #fff; }
}

#main-footer{background: #1a1a1c;text-align: center;padding: 80px 0;}
#main-footer img{width: auto;height: 30px;display: block;margin: 0 auto;margin-bottom: 40px;}
#main-footer address{font-size: 12px;color: #fff;font-style: normal;margin-bottom: 5px;opacity: 0.6;}
#main-footer address a{font-size: 12px;color: #fff;font-style: normal;margin-bottom: 5px;opacity: 1;text-decoration:none;}
#main-footer address a:hover{text-shadow: 0 0 10px #0fff,
                                     0 0 25px #fff,
                                     0 0 50px #fff,
                                     0 0 200px #fff;
						}
#main-footer address hr{display: inline-block;vertical-align: middle;height: 0;width: 30px;border: none;background: none;}
#main-footer address br.mo{display: none;}
#main-footer .copyright{font-size: 12px;color: #fff;opacity: 0.6;display: block;}

#main-footer-guide{border-top: 1px solid #eee;margin-top: 100px;padding-top: 30px;text-align: center;font-size: 12px;color: #999;line-height: 22px;letter-spacing: -0.5px;}
#main-footer-guide .copyright{font-size: 12px;color: #cccccc;}
