@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable.min.css");

button {
    font-family: "Pretendard Variable", -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Malgun Gothic', sans-serif;
}

#wrap {
    background: #F9FAFB;
}

/* 메인 컨테이너 */
.main-container {
    font-family: "Pretendard Variable", -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Malgun Gothic', sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 20px;
}

/* 왼쪽 메인 콘텐츠 */
.main-content {
    display: flex;
    flex-direction: column;
    gap: 26px;
    max-width: 880px;
}

/* 히어로 배너 */
.hero-banner {
    background: linear-gradient(135deg, #006d3f 0%, #008850 50%, #00a86b 100%);
    border-radius: 12px;
    padding: 60px 80px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
}

.hero-banner h2 {
    color: white;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.3;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.hero-banner h2 .main-title {
    display: block;
    font-size: 42px;
    font-weight: 700;
    margin-top: 10px;
}

.hero-banner p {
    color: rgba(255,255,255,0.95);
    font-size: 18px;
    position: relative;
    z-index: 1;
}

.hero-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 1;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
}

.dot.active {
    background: white;
}

/* 탭 메뉴 */
.tab-menu {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.tab-buttons {
    display: flex;
    gap: 10px;
    border-bottom: 1px solid #F9FAFB;
}

.tab-btn {
    padding: 10px 20px;
    border: none;
    background: transparent;
    color: #666;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
}

.tab-btn.active {
    color: #00653B;
    border-bottom-color: #00653B;
    font-weight: 600;
}

/* 콘텐츠 영역 */
.content-area {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    margin-top: 20px;
}

/* 카드 그리드 */
.card-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    font-weight: 500;
}

/* 카드 스타일 */
.content-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 25px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 180px;
}

.content-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.card-grid > div:hover {
    transform: translateY(-3px);
    transition: all 0.3s;
}

.card-grid > div:hover h3 {
    color: #008850;
}

.content-card .icon {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin-bottom: 10px;
}

.content-card h3 {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    line-height: 1.4;
}

.content-card p {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
}

/* 리스트 콘텐츠 */
.list-content {
    background: white;
    border-radius: 12px;
    padding: 0;
    width: 100%;
    font-weight: 500;
}

.list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #F9FAFB;
    cursor: pointer;
    transition: all 0.3s;
}

.list-item:hover {
    background: #f9f9f9;
}

.list-item:hover .list-item-title {
    color: #008850;
}

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

.list-item-title {
    flex: 1;
    font-size: 15px;
    color: #333;
}

.list-item-date {
    color: #999;
    font-size: 13px;
}

/* 페이지네이션 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}

.pagination button {
    padding: 8px 16px;
    border: 1px solid #ddd;
    background: white;
    cursor: pointer;
    border-radius: 6px;
    font-size: 13px;
}

.pagination button:hover {
    background: #f5f5f5;
}

/* 하단 프로모션 섹션 */
.promo-section {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
    gap: 20px;
    margin-top: 10px;
}

.promo-card {
    background: white;
    border-radius: 12px;
    padding: 10px 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    text-align: center;
}

.promo-card .icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    margin: 0 auto 20px;
}

.promo-card h3 {
    font-size: 18px;
    font-weight: 800;
    color: #333;
    margin-bottom: 10px;
}

.promo-card p {
    font-size: 14px;
    color: #666;
    text-align: center;
    line-height: 1.5;
}

.promo-card span {
    font-size: 15px;
    color: #00663B;
    font-weight: 800;
}

.promo-card .promo-button {
    display: block;
    background: #008850;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    margin-top: 20px;
    transition: all 0.3s;
    font-size: 12px;
}

.promo-card .promo-button:hover {
    background: #006d3f;
}

/* 오른쪽 사이드바 */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-section {
    background: white;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.sidebar-section h3 {
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sidebar-section .section-link {
    color: #008850;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.sidebar-item {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.3s;
}

.sidebar-item:hover {
    background: #e9ecef;
}

.sidebar-item:last-child {
    margin-bottom: 0;
}

.sidebar-item h4 {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.sidebar-item p {
    font-size: 12px;
    color: #666;
}

/* 키워드 섹션 */
.keyword-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.keyword-item {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.keyword-item:hover {
    background: #e9ecef;
}

.keyword-item .badge {
    display: inline-block;
    background: #ff4444;
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    margin-bottom: 5px;
    font-weight: 600;
}

.keyword-item .badge.new {
    background: #4caf50;
}

.keyword-item .title {
    font-size: 13px;
    font-weight: 600;
    color: #333;
}

.keyword-item .count {
    font-size: 11px;
    color: #ff4444;
    margin-top: 3px;
}

/* 가이드 섹션 */
.guide-item {
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 10px;
    padding-bottom: 0px;
    cursor: pointer;
    transition: all 0.3s;
    padding: 12px 12px 12px 0px;
}

.guide-item:hover {
    background: #e9ecef;
}

.guide-item:last-child {
    margin-bottom: 0;
}

.guide-item .icon {
    width: 30px;
    height: 30px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.guide-item .text h4 {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 3px;
}

.guide-item .text p {
    font-size: 12px;
}

/* 반응형 */
/* 아이패드 에어 및 중간 크기 태블릿 (1024px 이상) - 사이드바 유지 */
@media (min-width: 1024px) and (max-width: 1200px) {
    .main-container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 20px 15px;
        grid-template-columns: 2.5fr 1fr;
        gap: 15px;
    }

    .main-content {
        max-width: 100%;
    }

    .content-area {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .card-grid {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }

    .promo-section {
        grid-template-columns: repeat(5, 1fr);
        gap: 15px;
    }

    .hero-banner {
        padding: 40px 50px;
    }

    .hero-banner h2 .main-title {
        font-size: 36px;
    }
}

/* 작은 태블릿 (768px ~ 1023px) - 사이드바 하단 이동 */
@media (max-width: 1023px) {
    .main-container {
        grid-template-columns: 1fr;
    }

    .content-area {
        grid-template-columns: 1fr;
    }

    .promo-section {
        grid-template-columns: 1fr 1fr;
    }
}

/* 모바일 (768px 이하) */
@media (max-width: 768px) {
    .hero-banner {
        padding: 40px 30px;
    }

    .hero-banner h2 .main-title {
        font-size: 32px;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    .tab-buttons {
        overflow-x: auto;
        flex-wrap: nowrap;
    }

    .promo-section {
        grid-template-columns: 1fr;
    }
}

/* 주요 일정 스타일 */
.schedule-list {
    display: flex;
    flex-direction: column;
}

.schedule-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
}

.schedule-info {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.schedule-name {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.schedule-date {
    font-size: 13px;
    font-weight: 400;
    color: #999;
}

.schedule-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    color: white;
}

.badge-urgent {
    background: #FF5757;
}

.badge-normal {
    background: #CCCCCC;
}