@charset "utf-8";
/**
 * 강원대학교 발전기금재단 메인 페이지 새 디자인 CSS
 * 2025.12.19 신규 작성
 */

/* =====================================================
   폰트 설정 - Noto Sans KR
   ===================================================== */
.new-main-wrapper,
.new-main-wrapper * {
    font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
}

.new-main-wrapper h3 {
    font-size: 24px;
    font-weight: 600;
    line-height: 1.3;
}

/* =====================================================
   전체 레이아웃
   ===================================================== */
.new-main-wrapper {
    display: flex;
    min-height: 100vh;
}

/* =====================================================
   좌측 사이드바
   ===================================================== */
.side-nav {
    width: 300px;
    min-width: 300px;
    background: #101743;
    display: flex;
    flex-direction: column;
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    z-index: 1000;
}

.side-nav-logo {
    padding: 20px 15px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.side-nav-logo img {
    max-width: 100%;
    height: auto;
}

.side-nav-login {
    padding: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.side-nav-login a {
    display: flex;
    align-items: center;
    color: #fff;
    text-decoration: none;
}

.side-nav-login a i,
.side-nav-login a img {
    font-size: 22px;
    margin-right: 8px;
}

.side-nav-menu {
    flex: 1;
    padding: 0;
}

.side-nav-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.side-nav-menu > ul > li {
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.side-nav-menu > ul > li > a {
    display: block;
    padding: 15px 20px;
    color: #fff;
    text-decoration: none;
    transition: background 0.3s;
}

.side-nav-menu > ul > li > a:hover,
.side-nav-menu > ul > li.active > a {
    background: rgba(255,255,255,0.1);
}

/* 서브메뉴 화살표 아이콘 */
.side-nav-menu > ul > li > a.has-submenu {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.side-nav-menu > ul > li > a.has-submenu i {
    font-size: 18px;
    opacity: 0.7;
    transition: transform 0.3s;
}

.side-nav-menu > ul > li:hover > a.has-submenu i,
.side-nav-menu > ul > li.submenu-open > a.has-submenu i {
    transform: rotate(90deg);
}

/* 서브메뉴 스타일 */
.side-submenu {
    list-style: none;
    margin: 0;
    padding: 0;
    background: rgba(0,0,0,0.2);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

/* PC에서는 hover로 서브메뉴 열기 */
@media (min-width: 993px) {
    .side-nav-menu > ul > li:hover .side-submenu {
        max-height: 500px;
    }
}

/* 모바일/PC 공통: 클릭으로 열기 */
.side-nav-menu > ul > li.submenu-open .side-submenu {
    max-height: 500px;
}

.side-submenu li {
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.side-submenu li:last-child {
    border-bottom: none;
}

.side-submenu li a {
    display: block;
    padding: 12px 20px 12px 35px;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: all 0.3s;
}

.side-submenu li a:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
    padding-left: 40px;
}

/* SNS 아이콘 */
.side-nav-sns {
    padding: 15px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.side-nav-sns-icons {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.side-nav-sns-icons a img {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    transition: opacity 0.3s;
}

.side-nav-sns-icons a:hover img {
    opacity: 0.8;
}

/* 기부 문의 상담 */
.side-nav-contact {
    padding: 15px;
    background: transparent;
}

.side-nav-contact-inner {
    background: #fff !important;
    border-radius: 10px;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.side-nav-contact-icon {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.side-nav-contact-info {
    flex: 1;
}

.side-nav-contact-title {
    color: #333;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 3px;
}

.side-nav-contact-numbers {
    color: #333;
    line-height: 1.4;
}

/* =====================================================
   메인 컨텐츠 영역
   ===================================================== */
.main-content {
    flex: 1;
    margin-left: 300px;
    display: flex;
    flex-direction: column;
    background: #fff;
}

/* 메인 상단 영역 (슬라이더 + 우측 박스) */
.main-top-section {
    display: flex;
    gap: 15px;
    padding: 15px;
}

/* 메인 슬라이더 */
.main-slider-area {
    width: 620px;
    min-width: 620px;
    height: 645px;
    border-radius: 30px;
    overflow: hidden;
    position: relative;
}

.main-slider-area .carousel,
.main-slider-area .carousel-inner,
.main-slider-area .carousel-item {
    height: 100%;
}

.main-slider-area .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.main-slider-area .carousel-indicators {
    bottom: 15px;
}

.main-slider-area .carousel-indicators button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin: 0 4px;
}

/* 우측 컨텐츠 영역 */
.main-right-area {
    flex: 1;
    height: 645px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* 상단 행: 퀵메뉴(좌) + 후원의집(중) + 입금계좌안내(우) */
.right-top-row {
    display: flex;
    gap: 10px;
    height: 278px;
}

/* 퀵메뉴 카드 (하늘색 배경, 흰색 십자선 구분) */
.quick-menu-card {
    flex: 1;
    background: #7eb8da;
    border-radius: 30px;
    padding: 0;
    overflow: hidden;
}

.quick-menu-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    background: #7eb8da;
    height: 100%;
}

.quick-menu-card .quick-menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px 10px;
    background: #7eb8da;
    text-decoration: none;
    transition: all 0.3s;
}

.quick-menu-card .quick-menu-item:hover {
    background: #6ba8ca;
}

.quick-menu-card .quick-menu-item img {
    width: 40px;
    height: 40px;
    margin-bottom: 8px;
    border-radius: 10px;
}

.quick-menu-card .quick-menu-item span {
    color: #fff;
    font-size: 16px;
    text-align: center;
    white-space: nowrap;
}

/* 퀵메뉴 구분선 */
.quick-menu-grid {
    position: relative;
}
/* 상단 세로줄 (1번과 2번 사이) */
.quick-menu-grid::before {
    content: '';
    position: absolute;
    top: 12%;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 26%;
    background: #fff;
}
/* 하단 세로줄 (3번과 4번 사이) */
.quick-menu-grid::after {
    content: '';
    position: absolute;
    bottom: 12%;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 26%;
    background: #fff;
}
/* 가로줄 (상단 2칸과 하단 2칸 사이 - 중앙에 짧게) */
.quick-menu-card::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70%;
    height: 1px;
    background: #fff;
    z-index: 1;
}
.quick-menu-card {
    position: relative;
}

/* 후원의 집 박스 */
.sponsor-house-box {
    flex: 1;
    background: #fff;
    border-radius: 30px;
    padding: 15px;
    border: 1px solid #e3e3e3;
}

.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}

.section-title h3 {
    font-size: 24px;
    font-weight: 600;
    color: #101743;
    margin: 0 auto;
}

.section-title .more-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: #edf3fa;
    border-radius: 50%;
    text-decoration: none;
}

.section-title .more-link i {
    font-size: 16px;
    color: #797e88;
}

.sponsor-house-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.sponsor-house-content img {
    width: 234px;
    height: 138px;
    object-fit: cover;
    border-radius: 6px;
}

.sponsor-house-info {
    text-align: center;
}

.sponsor-house-info .name {
    font-weight: 600;
    font-size: 16px;
    color: #333;
    margin-bottom: 3px;
}

.sponsor-house-info .phone {
    color: #666;
    font-size: 16px;
}

/* 오른쪽 컬럼 (입금계좌안내 + 기부자예우) */
.right-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* 입금계좌안내 박스 (녹색 배경) */
.account-info-box {
    flex: 1;
    background: #018f5e;
    border-radius: 30px;
    color: #fff;
    text-align: center;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.account-info-box h3 {
    background: #018f5e;
    font-weight: 700;
    font-size: 24px;
    margin: 0;
    padding: 12px 10px;
}

.account-info-box .account-content {
    background: #0a9c6a;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 10px;
}

.account-info-box p {
    margin: 3px 0;
    font-size: 16px;
    line-height: 1.5;
}

.account-info-box .account-holder {
    background: #018f5e;
    color: #fff;
    border-radius: 0;
    padding: 10px 15px;
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.account-info-box .account-holder span {
    background: #fff;
    color: #018f5e;
    border-radius: 20px;
    padding: 8px 20px;
    display: inline-block;
}

/* 기부자 예우 버튼 */
.donor-honor-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #242b57;
    color: #fff;
    padding: 16px;
    border-radius: 30px;
    text-decoration: none;
    transition: background 0.3s;
}

.donor-honor-btn:hover {
    background: #1a1f3d;
    color: #fff;
}

.donor-honor-btn img {
    width: 20px;
    margin-right: 8px;
}

.donor-honor-btn span {
    font-weight: 600;
    font-size: 16px;
}

/* =====================================================
   기부 이야기 섹션 (오른쪽 영역 내)
   ===================================================== */
.donation-story-section {
    padding: 20px 15px;
    background: #f0f0f0;
}

.donation-story-box {
    flex: 1;
    background: #fff;
    border-radius: 30px;
    padding: 15px;
    border: 1px solid #e3e3e3;
    display: flex;
    flex-direction: column;
}

.donation-story-box .section-title {
    margin-bottom: 12px;
    padding-bottom: 8px;
}

.donation-story-box .section-title h3 {
    font-size: 24px;
}

.donation-story-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.donation-story-item {
    text-decoration: none;
    display: flex;
    flex-direction: column;
}

.donation-story-item img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 8px;
}

.donation-story-item p {
    color: #333;
    text-align: left;
    font-size: 16px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.4;
    margin: 0;
}

/* =====================================================
   하단 영역
   ===================================================== */
.main-bottom-section {
    display: flex;
    gap: 10px;
    padding: 15px;
    background: linear-gradient(to top, #f9f7fc 66%, #fff 66%);
}

/* 공지사항 - 메인 슬라이더와 동일한 폭 (620px) */
.main-bottom-section .notice-box {
    flex: 0 0 620px;
    width: 620px;
    padding: 15px;
}

/* 오른쪽 영역 - 바로가기 + 전화안내 (퀵메뉴+후원의집 폭과 동일) */
.main-bottom-section .bottom-right-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* 실시간약정현황 - 입금계좌안내+기부자예우 폭과 동일 */
.main-bottom-section .realtime-status-box {
    flex: 0 0 200px;
    width: 200px;
}

/* 바로가기 아이콘 4개 (하단) */
.quick-menu-box {
    background: #fff;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.quick-menu-icons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.quick-menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 10px;
    background: #f8f9fa;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s;
}

.quick-menu-item:hover {
    background: #e9ecef;
    transform: translateY(-2px);
}

.quick-menu-item img {
    width: 45px;
    height: 45px;
    margin-bottom: 10px;
}

.quick-menu-item span {
    color: #333;
    text-align: center;
}

/* 공지사항 박스 */
.notice-box {
    flex: 1;
    background: #fff;
    border-radius: 30px;
    padding: 20px;
    border: 1px solid #e3e3e3;
}

.notice-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.notice-list li {
    padding: 12px 0;
    border-bottom: 1px dashed #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 20px;
}

.notice-list li:last-child {
    border-bottom: 1px solid #ddd;
}

.notice-list li a {
    flex: 1;
    color: #333;
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 18px;
    font-weight: 600;
}

.notice-list li .n-badge {
    background: #28a745;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 3px;
    margin-right: 8px;
    flex-shrink: 0;
}

/* N 표시된 최신글 스타일 */
.notice-list li.new-post a {
    color: #28a745;
    font-weight: 600;
}

.notice-list li .date {
    color: #636c7d;
    margin-left: 10px;
    flex-shrink: 0;
    font-size: 16px;
}

/* 하단 오른쪽 영역 */
.bottom-right-area {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #edf3fa;
    padding: 15px;
    border-radius: 30px;
}

/* 바로가기 아이콘 3개 (참여방법, 명예의전당, 홍보동영상) */
.shortcut-icons {
    display: flex;
    gap: 10px;
}

.shortcut-icon-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 10px;
    background: #f9f7fc;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s;
}

.shortcut-icon-item:hover {
    background: #c8e4ff;
}

.shortcut-icon-item:hover span {
    color: #0068c9;
}

.shortcut-icon-item img {
    margin-bottom: 8px;
}

.shortcut-icon-item span {
    color: #121418;
    text-align: center;
    font-size: 18px;
    font-weight: 600;
}

/* 전화 안내 박스 */
.phone-guide-box {
    background: #fff;
    border-radius: 8px;
    padding: 15px 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.phone-guide-icon img {
    width: 40px;
    height: 40px;
}

.phone-guide-info {
    text-align: left;
}

.phone-guide-title {
    color: #333;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 5px;
}

.phone-guide-numbers {
    color: #333;
    font-size: 24px;
    font-weight: 600;
}

.phone-guide-numbers span {
    color: #0068c9;
    font-size: 24px;
    font-weight: 600;
    margin-right: 15px;
}

/* 실시간약정현황 박스 (숨김) */
.realtime-section {
    display: none;
}

.realtime-status-box {
    width: 300px;
    min-width: 300px;
    background: #7eb8da;
    border-radius: 30px;
    padding: 20px;
    color: #fff;
}

.realtime-status-box .section-title {
    border-bottom-color: rgba(255,255,255,0.2);
}

.realtime-status-box .section-title h3 {
    color: #fff;
}

.realtime-status-box .section-title .more-link {
    background: rgba(255,255,255,0.2);
}

.realtime-status-box .section-title .more-link i {
    color: #fff;
}

.realtime-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.realtime-list li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.realtime-list li:last-child {
    border-bottom: none;
}

/* 기부 안내 박스 (사용안함) */
.donation-guide-box {
    display: none;
}

.donation-guide-box h3 {
    margin-bottom: 15px;
}

.donation-guide-box .phone-icon {
    width: 50px;
    margin-bottom: 10px;
}

.donation-guide-box .phone-numbers {
    font-weight: 600;
}

.donation-guide-box .phone-numbers span {
    display: inline-block;
    margin: 0 10px;
}

/* =====================================================
   푸터
   ===================================================== */
.new-footer {
    background: #797e88;
    padding: 30px 15px;
    color: #fff;
    font-size: 14px;
}

.new-footer * {
    font-size: 14px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-logo img {
    height: 40px;
    opacity: 0.7;
}

.footer-info {
    flex: 1;
    padding: 0 30px;
}

.footer-links a {
    color: #999;
    text-decoration: none;
    margin-left: 15px;
}

.footer-links a:hover {
    color: #fff;
}

.footer-copyright {
    text-align: center;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #c0c0c0;
}

/* =====================================================
   반응형 디자인
   ===================================================== */
@media (max-width: 1200px) {
    .main-right-area {
        width: 320px;
        min-width: 320px;
    }

    .realtime-status-box {
        width: 260px;
        min-width: 260px;
    }
}

@media (max-width: 992px) {
    .side-nav {
        transform: translateX(-100%);
        transition: transform 0.3s;
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        height: 100dvh; /* 모바일 브라우저 주소창 대응 */
        overflow-y: auto;
        -webkit-overflow-scrolling: touch; /* iOS 부드러운 스크롤 */
        display: flex;
        flex-direction: column;
        z-index: 1001;
    }

    .side-nav.open {
        transform: translateX(0);
    }

    /* 메뉴 오버레이 (배경 어둡게) */
    .side-nav-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1000;
    }

    .side-nav-overlay.active {
        display: block;
    }

    /* 메뉴 영역이 남은 공간을 채우고 스크롤 */
    .side-nav-menu {
        flex: 1;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* 로고, 로그인, SNS, 연락처는 고정 크기 */
    .side-nav-logo,
    .side-nav-login,
    .side-nav-sns,
    .side-nav-contact {
        flex-shrink: 0;
    }

    .main-content {
        margin-left: 0;
    }

    .main-top-section {
        flex-direction: column;
    }

    .main-right-area {
        width: 100%;
        min-width: auto;
    }

    .right-top-row {
        flex-direction: row;
    }

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

    .main-bottom-section {
        flex-direction: column;
    }

    .bottom-right-area {
        width: 100%;
    }

    .shortcut-icons {
        width: 100%;
    }

    .phone-guide-box {
        width: 100%;
    }

    .realtime-status-box {
        width: 100%;
        min-width: auto;
    }

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

@media (max-width: 576px) {
    .right-top-row {
        flex-direction: column;
    }

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

    .shortcut-icons {
        flex-direction: column;
    }

    .donation-story-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-info {
        padding: 20px 0;
    }

    .footer-links {
        margin-top: 15px;
    }

    .footer-links a {
        margin: 0 8px;
    }
}

/* 모바일 메뉴 토글 버튼 */
.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 1001;
    background: #1a3a6c;
    color: #fff;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
}

@media (max-width: 992px) {
    .mobile-menu-toggle {
        display: block;
    }

    /* 메인 슬라이더 반응형 - 모든 고정값 해제 */
    .main-slider-area {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
    }

    .main-slider-area .carousel {
        width: 100% !important;
        height: auto !important;
    }

    .main-slider-area .carousel-inner {
        width: 100% !important;
        height: auto !important;
    }

    .main-slider-area .carousel-item {
        width: 100% !important;
        height: auto !important;
    }

    .main-slider-area .carousel-item img {
        width: 100% !important;
        height: auto !important;
        max-width: 100% !important;
        min-width: 0 !important;
        object-fit: contain !important;
    }

    /* 공지사항 박스 반응형 */
    .main-bottom-section .notice-box {
        flex: 1;
        width: 100%;
    }
}

/* 사이드바 이미지 반응형 */
@media (max-width: 576px) {
    .side-nav-logo img {
        max-width: 80%;
        height: auto;
    }

    .side-nav-contact-icon {
        width: 35px;
        height: 35px;
    }

    .side-nav-contact-icon img {
        max-width: 100%;
        height: auto;
    }
}

/* 모바일에서 기부 문의 상담 컴팩트 표시 */
@media (max-width: 992px) {
    .side-nav-contact {
        padding: 10px;
    }

    .side-nav-contact-inner {
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 10px;
        padding: 10px 12px;
    }

    .side-nav-contact-icon {
        width: 28px;
        height: 28px;
        flex-shrink: 0;
    }

    .side-nav-contact-icon img {
        width: 100%;
        height: auto;
    }

    .side-nav-contact-info {
        flex: 1;
    }

    .side-nav-contact-title {
        font-size: 13px;
        margin-bottom: 2px;
    }

    .side-nav-contact-numbers {
        font-size: 12px;
        line-height: 1.3;
    }
}
