@font-face {
    font-family: 'main_menu_font';
    src: url('../fonts/NotoSansKR-VariableFont_wght.ttf') format('TrueType');
    font-style: normal;
}

@font-face {
    font-family: 'welcome_font';
    src: url('../fonts/ROEHOE-CHAN.ttf') format('TrueType');
    font-style: normal;
}
/* 작은창버전 임시
@media (max-width: 768px) {
    .dropdown-content {
        min-width: 10px !important;
    }
    .dropdown-content li a{
        font-size: 8px !important;
        padding: 5px 10px !important;
    }
    .logo{
        width: 60%;
        height: 70px !important;
        max-width: 100px !important;
    }
    .navbar{
        max-height: 50px;
    }
    .main-menu{
        gap: 0px !important;
        margin: 0 !important;
    }
    .main-menu > li > a {
        padding: 7px 21px !important;
        font-size: 8px !important;
    }
    footer {
        font-size: 70% !important;
        max-height: 80px;
    }
    .intro-container{
        flex-direction: column;
    }
    .content-area{
        font-size: 50% !important;
    }
    .sidebar {
        margin: 10px 10px 0px 0px ;
    }
    .sidebar ul {
        display: flex;
        flex-direction: column;
        margin: 0px !important;
        padding-left: 0px !important;
    }
    .sidebar ul li {
        margin-bottom: 0px  !important;
        padding-right: 5px !important;
    }
    .sidebar ul li a{
        font-size: 8px !important;
        padding: 5px 5px !important;
        display: flex;
        justify-content: flex-end !important;
    }
    .contact-form{
        margin: 10px 10px 10px 10px;
    }
    .contact-form input[type="text"],
    .contact-form input[type="tel"],
    .contact-form input[type="email"],
    .contact-form textarea{
        width: 90% !important;
    }

    .contact-form h1 {
        font-size: 80% !important;
    }
    .contact-form .btn {
        font-size: 80% !important;
    }


    footer {
        font-size: 70%;
    }
}
*/ 
body {
    min-width: 1200px;
    margin-top: 70px;
    margin: 0;
    padding: 0;
}
.top-bar {
    display: flex;
    justify-content: center;
    flex-direction: row;
    align-items: center;
    background-color: #004F9E; /* 파란색 배경 */
    color: white;
    font-size: 14px;
    width: 100vw;
    top: 0;
    height: 30px;
    position: fixed;
    z-index: 1000;
}
.top-bar-container {
    display: flex;
    max-width: 1200px;
    width: 100%;
    align-items: center;
    flex-direction: row-reverse;
}
.login-form {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-left: auto;
}
.login-form input {
    margin-top: 0px;
    background-color: #8db3d8;
    border: 1px solid #8db3d8;
    border-radius: 3px;
    width: 100px;
    height: 20px;
}
.login-form .btn {
    background-color: #004F9E;
    color: white;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 3px;
}
.login-form .btn:hover {
    background-color: #003f92;
}


/* 로그인된 사용자 정보 스타일 */
.user-info {
    display: flex;
    align-items: center;
    right: 0;
    gap: 10px;
    font-size: 14px;
    color: #686767;
}
.logout-btn {
    background-color: #004F9E;
    color: white !important;
    padding: 5px 10px;
    text-decoration: none;
    border-radius: 3px;
}
.logout-btn:hover {
    background-color: #003f92;
}
.navbar {
    background-color: rgba(255, 255, 255, 0.808);
    display: flex;
    justify-content: center;
    flex-direction: row;
    align-items: center;
    padding: 0px 10px 10px 10px;
    width: 100vw;
    position: fixed;
    top: 30px;
    left: 0;
    z-index: 1000;
}
.navbar::before {
    content: "";
    position: absolute;
    bottom: 0px;
    left: 0;
    width: 100%;
    height: 5px;
    background-color: #004F9E;
}
.navbar::after {
    content: "";
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 5px;
    background-color: black;
}
.navbar-container {
    max-width: 1200px;
    display: flex;
    align-items: center;
    width: 100%;
}
.logo {
    height: 70px;
    max-width: 300px;
    object-fit: contain;
    margin-right: auto;
}
.main-menu {
    list-style: none;
    display: flex;
    margin-left: auto;
}
.main-menu li {
    position: relative;
}
.main-menu a {
    width: 140px;
    height: 50px;
    text-decoration: none;
    font-size: 18px;
    font-family: 'main_menu_font', sans-serif;
    color: #555;
    display: block;
    text-align: center;
    line-height: 50px;
    transition: color 0.3s;
}
.main-menu a:hover {
    background: linear-gradient(to bottom, transparent 95%, #ffdb00 95%);
    color: #ffdb00;
}
.main-menu a.hovered {
    background: linear-gradient(to bottom, transparent 95%, #ffdb00 95%);
    color: #ffdb00;
}
.dropdown-menu {
    display: flex;
    justify-content: center;
    flex-direction: row;
    align-items: center;
    position: fixed;
    top: 120px;
    left: 0;
    width: 100vw;
    height: 200px;
    background: rgba(255, 255, 255, 0.95);
    padding: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
    z-index: 999;
}
.dropdown-container {
    max-width: 1200px;
    display: flex;
    width: 100%;
}
.dropdown-content {
    display: flex;
    margin-left: auto;
    text-align: center;
}
.dropdown-column {
    display: flex;
    flex-direction: column;
    width: 140px;
}
.dropdown-column a {
    text-decoration: none;
    color: #555;
    font-size: 16px;
    font-family: 'main_menu_font', sans-serif;
    transition: color 0.3s, background 0.3s;
    padding: 8px 14px;
    border-radius: 5px;
}
.dropdown-column a:hover {
    background: #f4f4f4;
    color: #004F9E;
    font-weight: 700;
}
.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}


/* 각 페이지 항목 */
/* 메인 페이지 항목 */
.welcome {
    max-width: 1200px;
    display: flex;  
    justify-content: center;
    align-items: center;
    position: relative;
    margin: 120px auto 20px auto;
    overflow: hidden;
    height: 600px;
}
.main-banner-track {
    position: absolute;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    width: 100%;  
    height: 100%;
    object-fit: cover;
}
.main-banner-track img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.main-banner-track .active {
    opacity: 1;
}
.main-banner {
    width: 100%;  
    display: block;    
}
.welcome-image {
    width: 100%;
    height: auto;
    display: block;
    text-align: center;
    margin: 0px auto;
    max-width: 1200px;
}

.about-banner {
    max-width: 1200px;
    max-height: 300px;
    display: block;
    text-align: center; 
    margin: 120px auto 20px auto;
}
.middle-banner {
    width: 100%;  
    display: block; 
}
.intro-container {
    display: flex;
    max-width: 1200px;
    margin: 0px auto;
}

.content-section {
    padding: 20px;
    background-color: white;
    margin: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.content-section h2 {
    color: #004F9E;
    border-bottom: 2px solid #004F9E;
    padding-bottom: 5px;
}
.content-section p {
    margin: 10px 0;
    line-height: 1.6;
    color: #444;
}
.contact-banner {
    display: flex;
    max-width: 1200px;
    margin: 0px auto;
}
.greet-banner {
    width: 100%;        /* 이미지가 부모 요소에 맞게 자동 확장 */
    margin: 0 auto;
    display: block;     /* 불필요한 공백 제거 */
}
.content-area {
    width: 100%;
    background-color: white;
    display: block; /* 위아래 나열을 위한 블록 요소 */
    margin: 10px 0px 0px 0px;
}
.image-box {
    width: 100%;  /* 이미지의 원래 크기에 맞춤 */
    height: auto;
    display: block;
}
.content-wrapper {
    display: flex;
    justify-content: space-between;
    width: 1200px;
    margin: 0px auto;
    gap: 10px;
}

.content-left, .content-center {
    width: 45%;
    background: #f1f1f1;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.content-right {
    width: 10%;
    background: #f1f1f1;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}


.content-left h2, .content-center h2, .content-right h2 {
    font-size: 20px;
    margin-bottom: 10px;
    text-align: center;
    color: #333;
    border-bottom: 2px solid #004F9E;
    padding-bottom: 5px;
}

.notice-list, .event-list {
    position: relative;
    list-style: none;
    padding: 0;
    min-height: 150px;
}

.notice-list-one, .event-list-one {
    margin-bottom: 3px;
    padding: 5px 0;
}
.more-link {
    position: absolute;
    right: 0px;  /* 오른쪽 끝으로 */
    bottom: 0px; /* 하단 끝으로 */
    font-size: 15px;
}


.notice-list-one a, .more-link a, .event-list-one a {
    text-decoration: none !important;
    color: #004F9E;
    font-weight: bold;
}

.notice-list-one a:hover {
    text-decoration: underline;
    color: #ffdb00;
} 
.more-link a:hover {
    text-decoration: underline;
    color: #ffdb00;
}
.event-list-one a:hover {
    text-decoration: underline;
    color: #ffdb00;
}
.notice-list-two a:hover {
    text-decoration: underline;
    color: #ffdb00;
} 
.event-list-two a:hover {
    text-decoration: underline;
    color: #ffdb00;
}
.notice-list-two, .event-list-two {
    margin-bottom: 3px;
    padding: 5px 0;
}
.notice-list-two a, .event-list-two a {
    text-decoration: none !important;
    color: #004F9E;
    font-size: 14px;
}
.business-section {
    max-width: 1200px;
    margin: 0 auto;
    text-align: left;
}

.business-section h2 {
    margin-left: 0; /* 왼쪽 정렬 */
    font-size: 24px;
    font-weight: bold;
}



.business-section-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.business-section-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    width: 285px;
    text-align: center;
    padding-bottom: 20px;
    position: relative;
    display: inline-block; /* 필수 추가 */
    transform-origin: center; /* 확대 중심을 가운데로 설정 */
}

.business-section-card:hover {
    transform: scale(1.1); /* 마우스를 올리면 확대 */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
}


.business-section-image {
    position: relative;
    width: 100%;
    height: 200px;
}

.business-section-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-bottom: 2px solid #004F9E;
}

/* PARTNER 태그를 우측 상단에 배치 */
.business-section-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #004F9E;
    color: white;
    font-size: 12px;
    padding: 5px 10px;
    border-radius: 15px;
}

/* 제목 스타일 수정 - 자주색 & 밑줄 제거 */
.business-section-info h3 {
    font-size: 18px;
    font-weight: bold;
    margin: 10px 0;
}

.business-section-info h3 a {
    text-decoration: none;
    color: black;
}

.business-section-info h3 a:hover {
    color: #004F9E;
}
.business-section-info h3 a {
    text-decoration: none;
    color: black;
}

.business-section-info h3 a:visited {
    color: black; /* 방문 후에도 색상 유지 */
}

.business-section-info h3 a:hover {
    color: #007BFF; /* 마우스 오버 시 색상 변화 */
}


/* 날짜를 맨 아래 중앙 정렬 */
.business-section-date {
    font-size: 14px;
    color: #777;
    margin-top: 15px;
    display: block;
    text-align: center;
}


.gallery-section {
    width: 100%;
    margin: 20px auto;
    overflow: hidden;
    text-align: center;
    position: relative;
}

.gallery-section-container-wrapper {
    position: relative;
    width: 90%;
    margin: 20px auto;
    overflow: hidden;
}

/* 🔹 전체 슬라이드 컨테이너 */
.gallery-section-container {
    height: 400px;
    width: 90%;
    margin: auto;
    overflow: hidden;
    position: relative;
}

/* 🔹 슬라이드 트랙 */
.gallery-slide-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;
}

/* 🔹 4개씩 그룹화된 슬라이드 */
.gallery-slide-group {
    display: flex;
    flex: 0 0 100%; /* 한 번에 4개씩 표시 */
    justify-content: space-between;
}


/* 🔹 슬라이드 버튼 스타일 */
.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 79, 158, 0.8);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    z-index: 10;
}

.left-arrow {
    left: 5px;
}

.right-arrow {
    right: 10px;
}

/* 🔹 개별 카드 */
.gallery-section-card {
    width: calc(100% / 4 - 10px); /* 네 개가 균등하게 정렬되도록 23%로 설정 */
    max-width: 400px; 
    max-height: 350px;
    height: 100%; /* 높이 조정 */
    margin-top: 10px;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}
/* 🔹 마우스 오버 효과 */
.gallery-section-card:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
}
.gallery-section-link {
    text-decoration: none;
    color: inherit;
    display: block;
    width: 100%;
}

/* 🔹 빈칸 카드 스타일 (4개 정렬 유지) */
.gallery-section-card.empty {
    visibility: hidden; /* 안 보이게 처리 */
}

/* 🔹 이미지 크기 */
.gallery-section-card img {
    height: auto;
    max-width: 100%; 
    max-height: 100%; 
    object-fit: contain; /* 원본 비율 유지 (cover는 꽉 차게) */
}

.gallery-section-info {
    width: 100%;
    padding: 5px;
    max-height: 50px;
    text-align: center;
    flex-grow: 1; /* 모든 내용이 균일하게 배치되도록 */
}


.social-icons {
    display: flex;
    flex-direction: column;  /* 요소들을 세로로 정렬 */
    align-items: center;  /* 중앙 정렬 (왼쪽 정렬이면 center 대신 flex-start) */
    gap: 15px;
    margin-top: 15px;
}

.social-icons a img {
    width: 60px;
    height: 60px;
    border-radius: 5px;
    transition: transform 0.2s ease-in-out;
}

.social-icons a img:hover {
    transform: scale(1.1);
}


/* about 회장 인사말 페이지 */
.about-start-banner {
    display: block;
    flex-direction: row;
    width: 100%;
    height: 250px;
}
.about-logo-img {
    margin: 20px 10px 10px 10px;
    max-width: 200px;
    max-height: 200px;
}
.about-start-textbar {
    position: relative;
    float: right;
    left: -80px;
    font-size: 19px;
    font-family: 'main_menu_font', sans-serif;
}
.about-start-textbar h2 {
    font-size: 24px;
    font-weight: bold;
    color: #004F9E;
}
.about-textbar1 {
    position: relative;
    float: right;
    top: -120px;
    margin-left: 200px;
    font-family: 'main_menu_font', sans-serif;
    font-size: 19px;
}
.about-textbar2 {
    position: relative;
    top: -120px;
    font-family: 'main_menu_font', sans-serif;
    font-size: 19px;
}
.about-textbar2 h2 {
    font-size: 24px;
    font-weight: bold;
    color: #004F9E;
}
/* history 연혁 페이지 */
.history-header {
    text-align: center;
    margin-bottom: 20px;
}
.history-header h2 {
    font-size: 24px;
    font-weight: bold;
    color: #004F9E;
}
.history-header p {
    font-size: 16px;
    color: #666;
}
.history-timeline {
    background-color: #f5f5f5;
    padding: 20px;
    border-radius: 10px;
    max-width: 1000px;
    margin: 0 auto;
}
.history-item {
    border-left: 4px solid #004F9E;
    padding-left: 20px;
    margin-bottom: 20px;
    position: relative;
}
.history-item::before {
    content: "●";
    position: absolute;
    left: -8px;
    top: 5px;
    font-size: 14px;
    color: #004F9E;
}
.year {
    font-size: 20px;
    font-weight: bold;
    color: #004F9E;
    display: block;
    margin-bottom: 5px;
}
.history-item ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.history-item ul li {
    font-size: 16px;
    color: #444;
    margin-bottom: 5px;
}
/* donation 후원안내 페이지 */
.donation-header {
    text-align: center;
    margin-bottom: 20px;
}
.donation-header h2 {
    font-size: 24px;
    font-weight: bold;
    color: #004F9E;
}
.donation-textbar {
    position: relative;
    float: right;
    font-family: 'main_menu_font', sans-serif;
    font-size: 19px;
}
.donation-textbar-point {
    color: #004F9E;
    font-weight: bold;
}
.donation-link {
    font-size: 24px;
    color: #004F9E; /* 파란색 */
    font-weight: bold;
    transition: color 0.2s ease-in-out;
}
.donation-link:hover {
    color: #ffdb00; /* 마우스 올리면 주황색 */
    text-decoration: underline;
}

/* chart 조직도 페이지 */
.chart-header {
    text-align: center;
    margin-bottom: 20px;
}
.chart-header h2 {
    font-size: 24px;
    font-weight: bold;
    color: #004F9E;
}
.chart-img {
    width: 980px;
    height: auto;
    border-radius: 8px;
}

/* where 오시는길 페이지 */
.where-header {
    text-align: center;
    margin-bottom: 20px;
}
.where-header h2 {
    font-size: 24px;
    font-weight: bold;
    color: #004F9E;
}
.where-textbar {
    position: relaative;
    font-family: 'main_menu_font', sans-serif;
    font-size: 19px;
    width: 980px;
}
.where-textbar-point {
    color: #004F9E;
    font-weight: bold;
}
.where-img-box {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    margin: 10px 0;
}
.where-img {
    width: 480px;
    height: auto;
    border-radius: 8px;
    border: 1px solid #ccc;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
}
.homewhere-img-box {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    width: 980px;
    margin: auto;
}
.homewhere-text-box {
    flex: 1;
}

/* 회원가입 페이지 */
.terms-box {
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
}
.terms-box h4 {
    margin-top: 5px;
}
.terms-content {
    max-width: 1000px;
    height: 150px;
    overflow-y: scroll;
    border: 1px solid #ddd;
    padding: 10px;
    font-size: 14px;
    background-color: #f9f9f9;
}
.terms-check {
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    margin-top: 10px;
}
.terms-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
}
.form-group {
    margin-bottom: 15px;
    margin-left: 15px;
    width: 50%;
    color: #004F9E;
    display: flex;
    align-items: center;
    white-space: nowrap;
    gap: 10px;
}
.button-group {
    text-align: center;
    display: block;
}
.btn {
    padding: 10px 15px;
    border: none;
    cursor: pointer;
}
.btn-primary {
    background: #004F9E;
    color: white;
}

/* 공지사항 컨텐츠 */
.notice-header {
    text-align: center;
    margin-bottom: 20px;
}
.notice-header h2 {
    font-size: 24px;
    font-weight: bold;
    color: #004F9E;
}
.top-actions {
    flex-direction: row;
    width: 100%;
    border-radius: 10px;
    text-align: right;
    margin-left: auto;
}
.notice-table {
    width: 980px;
    border-collapse: collapse;
}
.notice-table tr:hover {
    background: #f9f9f9;
}
.notice-table tr {
    text-decoration: none;
}
.notice-title {
    padding: 18px 0;
    border-top: 2px solid #323236;
    border-bottom: 1px solid #adadaf;
    text-align: center;
    font-weight: 400;
    font-size: 16px;
}
.notice-title-list {
    padding: 18px 12px;
    border-bottom: 1px solid #adadaf;
    text-decoration: none;
}
.notice-file {
    width: 150px;
    padding: 18px 0;
    border-top: 2px solid #323236;
    border-bottom: 1px solid #adadaf;
    text-align: center;
    font-weight: 400;
    font-size: 16px;
}
.notice-file-list {
    padding: 18px 12px;
    border-bottom: 1px solid #adadaf;
    text-decoration: none;
}
.notice-days {
    width: 150px;
    padding: 18px 0;
    border-top: 2px solid #323236;
    border-bottom: 1px solid #adadaf;
    text-align: center;
    font-weight: 400;
    font-size: 16px;
}
.notice-days-list {
    padding: 18px 12px;
    border-bottom: 1px solid #adadaf;
    text-decoration: none;
}
.notice-list td a, td a:visited {
    all: unset !important;
    color: inherit !important;
    cursor: pointer !important;
}
.notice-list td a:hover {
    text-decoration: none !important;
    color: inherit !important;
    outline: none;
}
.pagination {
    text-align: center;
    margin-top: 10px;
}
.pagination button {
    border: 1px solid #ccc;
    background: white;
    padding: 5px 10px;
    cursor: pointer;
}
.pagination button:hover {
    background: #ddd;
}
.download-icon {
    object-fit: contain;
    max-height: 20px;
}

/* 공지사항 작성 컨텐츠 */
.notice-write-header {
    text-align: center;
    margin-bottom: 20px;
}
.notice-write-header h2 {
    font-size: 24px;
    font-weight: bold;
    color: #004F9E;
}
.write-btn {
    display: inline-block;
    all: unset ;
    color: inherit ;
    cursor: pointer ;
}
.write-btn:hover {
    color: #004F9E;
    transition: background 0.3s ease, opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}

/* 갤러리 컨텐츠 */
.gallery-header {
    text-align: center;
    margin-bottom: 20px;
}
.gallery-header h2 {
    font-size: 24px;
    font-weight: bold;
    color: #004F9E;
}
.gallery-divider {
    width: 100%;
    height: 2px;
    background-color: #323236;
    border: none;
    margin: 10px 0;
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(300px, 1fr)); /* 3개씩 배치 */
    gap: 16px;
    max-width: 1200px;
    margin: 0 auto; /* 가운데 정렬 */
    justify-content: center;
}

.gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease-in-out;
    background: #fff;
    width: 100%;
    width: 325px; /* 최대 크기 설정 */
    text-decoration: none !important; /* 밑줄 제거 */
}

.gallery-item:hover {
    transform: scale(1.03);
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}
.gallery-title {
    font-size: 18px;
    font-weight: bold;
    color: #004F9E;
    margin: 5px 0;
    padding: 5px;
    text-decoration: none !important; /* 밑줄 제거 */
}

.gallery-date {
    font-size: 14px;
    padding: 5px;
    color: #5a5a5a;
    text-decoration: none !important; /* 밑줄 제거 */
}
/* 방문한 갤러리 링크의 색상과 밑줄 제거 */
.gallery-link {
    text-decoration: none !important;
    color: inherit !important;
}

.gallery-link:visited {
    text-decoration: none !important;
    color: inherit !important;
}

/* 반응형 설정 */
@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(2, minmax(300px, 1fr)); /* 태블릿에서는 2개씩 */
    }
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(1, minmax(300px, 1fr)); /* 모바일에서는 1개씩 */
    }
}

/* 사이드바 컨텐츠 */
.sidebar {
    width: 20%;
    position: relative;
}
.sidebar ul {
    list-style: none;
    padding:0 ;
    margin: 10px 10px 10px 10px;
}
.sidebar-main-text {
    width: 200px;
    height: 80px;
    display: flex;
    justify-content: center;
    flex-direction: row;
    align-items: center;
    color: #555;
    font-family: 'main_menu_font', sans-serif;
    font-size: 24px;
    position: relative;
}
.sidebar-main-text::after {
    content: "";
    position: absolute;
    bottom: 0px;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: #999999;
}
.sidebar-text {
    width: 200px;
    height: 60px;
    position: relative;
    display: flex;
    justify-content: center;
    flex-direction: row;
    align-items: center;
    text-decoration: none;
    color: #555;
    font-family: 'main_menu_font', sans-serif;
    font-size: 18px;
    transition: background 0.3s ease, opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}
.sidebar-text::before {
    content: "";
    position: absolute;
    bottom: 0px;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: #999999;
}
.sidebar-text.active,
.sidebar-text:hover {
    background: #f4f4f4;
    color: #004F9E;
    font-weight: 700;
    transition: background 0.3s ease, opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}


/* 아래 (footer) 항목 */
footer {
    background-color: white;
    display: flex;
    justify-content: center;
    flex-direction: row;
    align-items: center;
    position: relative;
    width: 100vw;
    bottom: 0;
    height: 150px;
    margin: 30px 0 0 0;
}
footer::before {
    content: "";
    position: absolute;
    top: 0px; /* footer 위에 배치 */
    left: 0;
    width: 100%;
    height: 5px;
    background-color: #004F9E;
}
footer::after {
    content: "";
    position: absolute;
    top: 5px; /* footer 위에 배치 */
    left: 0;
    width: 100%;
    height: 5px;
    background-color: black;
}
.footer-container {
    display: flex;
    height: 115px;
    max-width: 1200px;
}
.footer-logo {
    height: 60px;
    max-width: 250px;
    object-fit: contain;
    margin-right: auto;
}
.footer-text {
    margin: 0 0 0 10px ;
}
.footer-text p{
    color: #686767;
    font-family: 'main_menu_font', sans-serif;
    font-size: 14px;
    margin: 5px 0;
}
.footer-text a {
    color: inherit;
    text-decoration: none;
}
.footer-text a:hover {
    text-decoration: underline;
}
.admin-login-toggle {
    text-decoration: none;
}

.admin-login-toggle:hover {
    text-decoration: underline;
}

.intro-container {
    display: flex;
    max-width: 1200px;
    margin: 0px auto;
    position: relative;
}
.intro-container::before {
    content: "";
    position: absolute;
    top: -5px;
    left: 0;
    width: 100%;
    height: 5px;
    background-color: #004F9E;
}
.intro-container::after {
    content: "";
    position: absolute;
    top: -10px;
    left: 0;
    width: 100%;
    height: 5px;
    background-color: black;
}

/* 문의하기 항목 */
.contact-form {
    background-color: #fff;
    box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.1);
    width: 100%;
    display: block;
    text-align: center;
    margin: 10px auto;
    border-radius: 30px;
}
.contact-form h1 {
    margin-bottom: 20px;
    font-size: 24px;
    text-align: center;
}
.contact-form input[type="text"],
.contact-form input[type="tel"],
.contact-form input[type="email"],
.contact-form textarea {
    flex-direction: row;
    width: 100%;
    padding: 10px;
    max-width: 600px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 10px;
}
.contact-form textarea {
    height: 150px;
    resize: vertical;
}
.contact-form .btn {
    background-color: #004F9E;
    color: white;
    border: none;
    padding: 12px;
    width: 60%;
    border-radius: 20px;
    cursor: pointer;
    font-size: 16px;
}
.contact-form .btn:hover {
    background-color: #007acc;
}




.calendar-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 20px;
    font-family: 'main_menu_font', sans-serif;
    background-color: #fff;
    border: 2px solid #004F9E;
    border-radius: 10px;
  }
  
  .calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
  }
  
  .calendar-header h2 {
    font-size: 22px;
    color: #004F9E;
    margin: 0;
  }
  
  .calendar-header button {
    background-color: #004F9E;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
  }
  
  .calendar-header button:hover {
    background-color: #003f92;
  }
  
  .calendar-table {
    width: 100%;
    table-layout: fixed; /* ✅ 열 너비 고정 */
    border-collapse: collapse;
    text-align: center;
  }
  
  .calendar-table th,
  .calendar-table td {
    width: calc(100% / 7); /* ✅ 7열 균등 배분 */
    padding: 10px;
    border: 1px solid #ccc;
    height: 80px;
    vertical-align: top;
    word-wrap: break-word; /* 긴 텍스트 줄바꿈 */
  }

  .calendar-table td:hover {
    background-color: #e8f1ff; /* 연한 하늘색 */
    cursor: pointer;
    transition: background-color 0.2s ease;
  }
  
  
  
  .calendar-table td {
    background-color: #f9f9f9;
  }
  
  .calendar-table td.today {
    background-color: #ffeb3b;
    font-weight: bold;
  }
  





  .event-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 12px;
    margin-top: 5px;
  }
  
  .home-badge {
    background-color: #5c9eff;
    color: white;
  }
  
  .away-badge {
    background-color: #f2e58b;
    color: black;
  }
  
  .event-text {
    font-size: 12px;
    margin-top: 2px;
    color: #333;
  }
  
  .support-badge {
    background-color: black;
    color: white;
  }
  
  .popup {
    position: fixed;
    top: 30%;
    left: 40%;
    background: white;
    padding: 20px;
    border: 2px solid #004F9E;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    z-index: 9999;
    border-radius: 10px;
  }
.popup_2 {
    display: none;
    position: fixed;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -30%);
    background-color: white;
    padding: 30px;
    border: 2px solid #004F9E;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    z-index: 9999;
    border-radius: 15px;
    min-width: 300px;
    text-align: center;
}
.popup_2 h3 {
    margin-top: 0;
    font-size: 20px;
    color: #004F9E;
}
.popup_2 .btn {
    margin: 5px;
}

  
  .custom-list-1 {
    list-style: none;
    padding-left: 0;
}

.custom-list-1 li {
    position: relative;
    padding-left: 1.5em;
}

.custom-list-1-1 {
    list-style: none;
    padding-left: 0;
}

.custom-list-1-1::before { content: "1) "; }
.custom-list-1-2::before { content: "2) "; }
.custom-list-1-3::before { content: "3) "; }
.custom-list-1-4::before { content: "4) "; }

.custom-list-1 {
    counter-reset: item;
}


.custom-list-2 {
    list-style: none;
    padding-left: 0;
}

.custom-list-2 li {
    position: relative;
    padding-left: 2em;
}

.custom-list-2 li::before {
    position: absolute;
    left: 0;
}

.custom-list-2 li:nth-child(1)::before { content: "① "; }
.custom-list-2 li:nth-child(2)::before { content: "② "; }
.custom-list-2 li:nth-child(3)::before { content: "③ "; }
.custom-list-2 li:nth-child(4)::before { content: "④ "; }
.custom-list-2 li:nth-child(5)::before { content: "⑤ "; }


.custom-list-3 {
    list-style: none !important;       /* 기존 목록 스타일 강제로 제거 */
    counter-reset: none !important;    /* 상위 <ol>의 카운터 초기화 */
    padding-left: 0 !important;        /* 패딩도 제거 */
}

.custom-list-3 li {
    position: relative;
    padding-left: 1.2em;
}

.custom-list-3 li::before {
    content: "-" !important;
    position: absolute;
    left: 0;
    font-weight: normal !important;
    counter-increment: none !important;
}

.business-section-card-2 {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    width: calc(25% - 20px);
    height: 280px;
    text-align: center;
    padding-bottom: 20px;
    position: relative;
    display: inline-block; /* 필수 추가 */
    transform-origin: center; /* 확대 중심을 가운데로 설정 */
}


.business-section-card-2:hover {
    transform: scale(1.1); /* 마우스를 올리면 확대 */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
}

.business-section-image-2 {
    position: relative;
    width: 100%;
    height: 200px;
}

.business-section-image-2 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-bottom: 2px solid #004F9E;
}
.business-section-info-2 {
    padding: 10px;
    font-size: 14px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.business-section-info-2 h3 {
    font-size: 16px;
    margin: 4px 0;
}
.business-section-info-2 p {
    margin: 2px 0;
    font-size: 13px;
}
.business-section-date-2 {
    font-size: 12px;
    color: #777;
    margin-top: 5px;
}

.grade-blue {
    background-color: #004F9E;
}

.grade-black {
    background-color: #000000;
}

.grade-gold {
    background-color: #ffdb00;
    color: black;
}

.search-bar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 20px;
    gap: 8px;
}

.search-bar input[type="text"] {
    padding: 10px 16px;
    border: 1px solid #ccc;
    border-radius: 30px;
    width: 220px;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
}

.search-bar input[type="text"]:focus {
    border-color: #004F9E;
    box-shadow: 0 0 5px rgba(0, 79, 158, 0.2);
}

.search-bar button {
    background-color: #004F9E;
    color: white;
    border: none;
    border-radius: 30px;
    padding: 9px 18px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-bar button:hover {
    background-color: #003366;
}


.card-action {
    background-color: #004F9E;
    color: white;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 13px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
    text-decoration: none;
    display: inline-block;
}

.card-action:hover {
    background-color: #003366;
}
