* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, 'Helvetica Neue', 'Segoe UI', 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', sans-serif;
    line-height: 1.6;
    color: #333;
}

.container {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 30px;
}

/* Header */
.header {
    background: white;
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    position: relative;
}

.logo-image {
    height: 80px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo-image:hover {
    transform: scale(1.05);
}

.auth-links {
    display: flex;
    gap: 20px;
    position: absolute;
    right: 0;
}

.auth-links a {
    color: #888;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
    padding: 5px 10px;
    border-radius: 5px;
}

.auth-links a:hover {
    color: #cd0e00;
    background: #f8f9fa;
}

/* 햄버거 메뉴 버튼 */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 10px;
    position: absolute;
    right: 0;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Navigation */
.nav {
    background: transparent;
    padding: 15px 0;
}

.nav .container {
    background: #f5f5f5;
    border-radius: 50px;
    padding: 0 30px;
    max-width: 1440px;
}

.nav .close-btn {
    display: none;
}

.nav-menu {
    display: flex;
    justify-content: center;
    gap: 60px;
    list-style: none;
    padding: 15px 0;
}

.nav-item {
    position: relative;
}

.nav-menu a {
    color: #111;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: all 0.3s ease;
    padding: 10px 15px;
    border-radius: 25px;
    position: relative;
    display: block;
}

.nav-menu > .nav-item > a:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* 서브메뉴 스타일 */
.sub-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border-radius: 8px;
    padding: 8px 0;
    min-width: 140px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    list-style: none;
    margin-top: 5px;
    border: 1px solid #e9ecef;
}

.nav-item:hover .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.sub-menu li {
    margin: 0;
}

.sub-menu a {
    color: #555 !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    padding: 10px 16px !important;
    border-radius: 0 !important;
    transition: all 0.2s ease !important;
    display: block;
    border-bottom: 1px solid #f1f3f4;
}

.sub-menu li:last-child a {
    border-bottom: none;
}

.sub-menu a:hover {
    background: #f8f9fa !important;
    color: #333 !important;
    transform: none !important;
}

/* 서브페이지 전용 스타일 */
.sub-banner {
    height: 240px;
    background-image: url('./image/sub-topbanner.png');
    background-color: #111;
    border-radius: 40px;
    margin: 20px 0 70px;
    position: relative;
    overflow: visible;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.sub-banner-content {
    text-align: center;
    color: white;
    position: relative;
    z-index: 2;
}

.sub-banner-title {
    padding-top: 50px;
    font-size: 48px;
    font-weight: bold;
    margin: 0;
    color: white;
    letter-spacing: -0.5px;
    text-shadow: 0 0px 8px rgba(0, 0, 0, 0.382);
}

/* 탭 메뉴를 배너 안으로 이동 */
.sub-banner .tab-menu {
    top: 23%;
    display: flex;
    background: white;
    border-radius: 40px;
    padding: 0;
    margin: 0;
    width: 500px;
    height: 60px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 0px 8px rgba(0, 0, 0, 0.123);
}

.sub-banner .tab-item {
    flex: 1;
    text-align: center;
    padding: 0;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 40px;
    background: transparent;
    border: none;
    color: #666;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.sub-banner .tab-item.active {
    background: #d63031;
    color: white;
    transform: none;
}

.sub-banner .tab-item:not(.active) {
    background: transparent;
    color: #666;
}

.sub-banner .tab-item:not(.active):hover {
    color: #333;
}

/* 교과내신 콘텐츠 스타일 */
.content-area {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 30px;
}

/* 필터 섹션 */
.filter-section {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
}

.filter-row {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    gap: 20px;
}

.filter-row:last-child {
    margin-bottom: 0;
}

.filter-label {
    font-weight: 600;
    color: #374151;
    min-width: 80px;
    font-size: 16px;
}

.filter-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 20px;
    border: 1px solid #d1d5db;
    border-radius: 25px;
    background: white;
    color: #6b7280;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn.active {
    background: #d63031;
    color: white;
    border-color: #d63031;
}

.filter-btn:hover {
    border-color: #bc1313;
    color: #da4b4b;
}

.filter-btn.active:hover {
    background: #bc1313;
    border-color: #bc1313;
}

/* 대단원영역 */
.unit-section {
    background: #F5F5F5;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 80px;
}

.unit-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.unit-title {
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
}

.new-badge {
    background: #d63031;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.unit-list {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
}

.unit-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.unit-checkbox {
    width: 18px;
    height: 18px;
    border: 2px solid #d1d5db;
    border-radius: 3px;
    cursor: pointer;
    position: relative;
}

.unit-checkbox.checked {
    background: #d63031;
    border-color: #d63031;
}

.unit-checkbox.checked::after {
    content: '✓';
    position: absolute;
    top: -2px;
    left: 2px;
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.unit-text {
    font-size: 15px;
    color: #374151;
    cursor: pointer;
}

/* 자료 목록 섹션 */
.materials-section {
    background: white;
    border-radius: 12px;
}

/* 실제 테이블 스타일 */
.materials-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    overflow: hidden;
}

.table-header-row {
    background: #f8f8f8;
}

.table-header-cell {
    padding: 20px;
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    color: #434343;
    border-bottom: 2px solid #e5e7eb;
    border-right: 1px solid #e5e7eb;
}

.table-header-cell:last-child {
    border-right: none;
}

.table-row {
    border-bottom: 1px solid #e5e7eb;
    transition: background 0.3s ease;
}

.table-row:hover {
    background: #fff8f8;
}

.table-row:last-child {
    border-bottom: none;
}

.table-cell {
    padding: 20px;
    vertical-align: middle;
    border-right: 1px solid #e5e7eb;
}

.table-cell:last-child {
    border-right: none;
}

.grade-cell {
    text-align: center;
    width: 15%;
}

.grade-badge {
    color: rgb(24, 24, 24);
    background: #efefef;
    padding: 4px 25px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    display: inline-block;
}


.info-cell {
    width: 60%;
}

.download-cell {
    text-align: center;
    width: 30%;
}

.upload-section {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-bottom: 20px;
}

.upload-btn {
    background:#d63031;
    color: white;
    border: none;
    padding: 14px 24px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.upload-btn:hover {
    background: #d63031;
    transform: translateY(-1px);
}

/* 업로드 모달 */
.upload-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
}

.upload-modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 12px;
    padding: 30px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e5e7eb;
}

.modal-title {
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #6b7280;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: #f3f4f6;
    color: #374151;
}

.upload-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-weight: 600;
    color: #374151;
    font-size: 16px;
}

.form-input, .form-select {
    padding: 12px 16px;
    border: 2px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: white;
}

.form-input:focus, .form-select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.file-upload-area {
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    background: #f9fafb;
    transition: all 0.3s ease;
    cursor: pointer;
}

.file-upload-area:hover {
    border-color: #d63031;
    background: #eff6ff;
}

.file-upload-area.dragover {
    border-color: #d63031;
    background: #dbeafe;
}

.upload-icon-large {
    font-size: 48px;
    margin-bottom: 15px;
    color: #6b7280;
}

.upload-text {
    font-size: 16px;
    color: #374151;
    margin-bottom: 5px;
}

.upload-subtext {
    font-size: 14px;
    color: #6b7280;
}

.selected-files {
    margin-top: 15px;
}

.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px;
    background: #f3f4f6;
    border-radius: 6px;
    margin-bottom: 8px;
}

.file-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.file-icon {
    color: #ef4444;
    font-size: 18px;
}

.file-name {
    font-size: 14px;
    color: #374151;
    font-weight: 500;
}

.file-remove {
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
}

.file-remove:hover {
    background: #dc2626;
}

.modal-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.btn-cancel {
    background: #6b7280;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-cancel:hover {
    background: #4b5563;
}

.btn-submit {
    background:#d63031;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* 모바일 업로드 모달 */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 10px;
        padding: 20px;
        max-height: 95vh;
    }

    .modal-title {
        font-size: 20px;
    }

    .file-upload-area {
        padding: 30px 15px;
    }

    .upload-icon-large {
        font-size: 36px;
        margin-bottom: 10px;
    }

    .upload-text {
        font-size: 14px;
    }

    .upload-subtext {
        font-size: 12px;
    }

    .modal-actions {
        flex-direction: column;
    }

    .btn-cancel, .btn-submit {
        width: 100%;
    }
}

/* 자료 목록 */
.material-list {
    background: #f7f7f7;
    border: 1px solid #e5e7eb;
    border-top: none;
    border-radius: 0 0 12px 12px;
    overflow: hidden;
}

.material-header {
    background: #f7f7f7;
    padding: 15px 25px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 700;
    color: #1f2937;
    font-size: 16px;
}

.unit-number {
    background: #ffd3d3;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.material-items {
    padding: 0;
}

.material-item {
    display: flex;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #e2e8f0;
    transition: background 0.3s ease;
}

.material-item:hover {
    background: #f1f5f9;
}

.material-item:last-child {
    border-bottom: none;
}

.material-number {
    background: #64748b;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    min-width: 50px;
    text-align: center;
    margin-right: 20px;
}

.material-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.material-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 5px;
}

.material-tag {
    background: #ffb66d;
    color: white;
    padding: 4px 18px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
}

.material-tag.year {
    background: #ff990014;
    color: #ff9900;
    border: 1px solid #ff9900;
}

.material-tag.semester {
    background: #00b1c114;
    color: #00b1c1;
    border: 1px solid #00b1c1;
}

.material-tag.subject {
    background: #54545414;
    color: #545454;
    border: 1px solid #545454;
}

.material-title {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 8px;
}

.new-icon {
    background: #ef4444;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

.material-actions {
    display: flex;
    align-items: center;
}

.pdf-download {
    background: #ffffff00;
    color: #BE0000;
    border: 1px solid #BE0000;
    padding: 12px 30px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pdf-download:hover {
    color: #fff;
    background: #dc2626;
}

.pdf-icon {
    font-size: 16px;
}



/* 섹션 제목 */
.section-main-title {
    text-align: center;
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #333;
}

.section-subtitle {
    text-align: center;
    font-size: 18px;
    color: #666;
    margin-bottom: 60px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* 탭 콘텐츠 섹션 */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Footer */
.footer {
    background: #4a4a4a;
    color: #999;
    padding: 30px 0 40px;
    margin-top: 80px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #666;
}

.footer-left {
    flex: 1;
}

.footer-nav {
    display: flex;
    gap: 40px;
    align-items: center;
}

.footer-nav-link {
    color: #ccc;
    text-decoration: none;
    font-size: 16px;
    font-weight: 400;
    transition: color 0.3s ease;
}

.footer-nav-link:hover {
    color: white;
}

.footer-right {
    flex-shrink: 0;
}

.footer-social {
    display: flex;
    gap: 15px;
    align-items: center;
}

.footer-social-link {
    width: 32px;
    height: 32px;
    display: block;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transition: opacity 0.3s ease;
    border-radius: 4px;
}

.footer-social-link:hover {
    opacity: 0.7;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.footer-info {
    color: #999;
    font-size: 14px;
    line-height: 1.6;
}

.footer-info-row {
    margin-bottom: 8px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.footer-info-row span {
    white-space: nowrap;
}

.divider {
    color: #666;
    margin: 0 4px;
}

.footer-copyright {
    margin-top: 15px;
    color: #777;
    font-size: 13px;
}

/* 반응형 디자인 개선 */
@media (max-width: 1200px) {
    .content-area {
        padding: 0 20px;
    }
    
    .unit-list {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .filter-options {
        gap: 8px;
    }
    
    .filter-btn {
        padding: 6px 16px;
        font-size: 13px;
    }
}

@media (max-width: 1024px) {
    .content-area {
        padding: 0 20px;
    }

    .filter-section {
        padding: 20px;
    }

    .unit-list {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
    
    .filter-row {
        gap: 15px;
    }
    
    .filter-options {
        gap: 8px;
    }
    
    .filter-btn {
        padding: 6px 14px;
        font-size: 13px;
    }

    /* 테이블을 카드 형태로 변경 */
    .materials-table {
        border: none;
        background: transparent;
    }
    
    .table-header-row {
        display: none;
    }
    
    .table-row {
        display: block;
        background: white;
        border: 1px solid #e5e7eb;
        border-radius: 12px;
        margin-bottom: 15px;
        padding: 0;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    }
    
    .table-cell {
        display: block;
        padding: 15px 20px;
        border: none;
        width: 100%;
    }
    
    .grade-cell {
        padding: 15px 20px 10px;
        text-align: left;
    }
    
    .info-cell {
        padding: 0 20px 15px;
    }
    
    .download-cell {
        padding: 10px 20px 15px;
        text-align: right;
        border-top: 1px solid #f1f1f1;
        background: #fafafa;
        border-radius: 0 0 12px 12px;
    }

    .upload-section {
        justify-content: flex-start;
        margin-bottom: 15px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .content-area {
        padding: 0 15px;
    }

    /* Header 모바일 */
    .header-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .logo {
        flex: 0;
        margin-right: auto;
    }

    .logo-image {
        height: 60px;
    }

    .auth-links {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    /* Navigation 모바일 */
    .nav {
        position: fixed;
        top: 0;
        right: -350px;
        width: 350px;
        height: 100vh;
        background: white;
        z-index: 1000;
        transition: right 0.3s ease;
        padding: 0;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    }

    .nav.active {
        right: 0;
    }

    .nav .container {
        background: white;
        border-radius: 0;
        padding: 80px 20px 20px;
        width: 100%;
        height: 100vh;
        margin: 0;
        position: relative;
        box-shadow: none;
    }

    .nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .nav-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    .nav-menu {
        flex-direction: column;
        gap: 0;
        padding: 0;
        align-items: stretch;
    }

    .nav-item {
        border-bottom: 1px solid #f0f0f0;
    }

    .nav-item:last-child {
        border-bottom: none;
    }

    .nav-menu > .nav-item > a {
        padding: 20px 0;
        font-size: 18px;
        color: #333;
        border-radius: 0;
        border-bottom: 1px solid #f0f0f0;
        position: relative;
    }

    .nav-menu > .nav-item > a:hover {
        background: #f8f9fa;
        transform: none;
    }

    .nav-item.has-submenu > a::after {
        content: '▶';
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        font-size: 12px;
        transition: transform 0.3s ease;
    }

    .nav-item.has-submenu.active > a::after {
        transform: translateY(-50%) rotate(90deg);
    }

    .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: #f8f9fa;
        box-shadow: none;
        border: none;
        border-radius: 0;
        margin-top: 0;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .nav-item.active .sub-menu {
        max-height: 200px;
    }

    .sub-menu a {
        padding: 15px 20px !important;
        font-size: 16px !important;
        color: #666 !important;
        border-bottom: 1px solid #e0e0e0 !important;
        margin-left: 20px !important;
    }

    .sub-menu a:hover {
        background: #f0f0f0 !important;
        color: #333 !important;
    }

    .nav .close-btn {
        position: absolute;
        top: 20px;
        right: 20px;
        background: none;
        border: none;
        font-size: 24px;
        color: #333;
        cursor: pointer;
        padding: 10px;
        display: block;
    }

    /* 서브배너 모바일 */
    .sub-banner {
        height: 200px;
        border-radius: 20px;
        margin: 15px 0 40px;
    }

    .sub-banner-title {
        font-size: 28px;
        padding-top: 30px;
    }

    .sub-banner .tab-menu {
        width: 300px;
        height: 50px;
    }

    .sub-banner .tab-item {
        font-size: 14px;
    }

    /* 필터 모바일 개선 */
    .filter-section {
        padding: 15px;
    }

    .filter-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        margin-bottom: 15px;
    }

    .filter-label {
        min-width: auto;
        font-size: 15px;
        margin-bottom: 5px;
    }
    
    .filter-options {
        width: 100%;
        justify-content: flex-start;
    }
    
    .filter-btn {
        padding: 8px 16px;
        font-size: 14px;
        flex-shrink: 0;
    }

    /* 대단원 영역 모바일 */
    .unit-section {
        padding: 15px;
        margin-bottom: 40px;
    }

    .unit-list {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .unit-item {
        padding: 5px 0;
    }
    
    .unit-text {
        font-size: 14px;
    }

    /* 테이블 카드형 모바일 최적화 */
    .materials-section {
        margin-top: 20px;
    }
    
    .table-row {
        margin-bottom: 20px;
        border-radius: 8px;
    }
    
    .table-cell {
        padding: 12px 15px;
    }
    
    .grade-cell {
        padding: 15px 15px 8px;
        border-bottom: 1px solid #f1f1f1;
    }
    
    .info-cell {
        padding: 8px 15px 12px;
    }
    
    .download-cell {
        padding: 12px 15px;
        text-align: center;
        background: #f9f9f9;
    }
    
    .material-tags {
        flex-wrap: wrap;
        gap: 6px;
        margin-bottom: 8px;
    }
    
    .material-tag {
        font-size: 11px;
        padding: 3px 10px;
    }
    
    .material-title {
        font-size: 14px;
        line-height: 1.4;
    }
    
    .pdf-download {
        padding: 10px 20px;
        font-size: 13px;
        width: auto;
    }

    .upload-section {
        justify-content: center;
        margin-bottom: 20px;
    }
    
    .upload-btn {
        padding: 10px 20px;
        font-size: 13px;
    }

    .section-main-title {
        font-size: 24px;
        margin-bottom: 15px;
    }

    .section-subtitle {
        font-size: 14px;
        margin-bottom: 30px;
        padding: 0 10px;
    }

    /* Footer 모바일 */
    .footer {
        padding: 40px 0 30px;
        margin-top: 60px;
    }

    .footer-content {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }

    .footer-nav {
        flex-wrap: wrap;
        gap: 15px;
        justify-content: center;
    }

    .footer-nav-link {
        font-size: 14px;
    }

    .footer-social {
        gap: 12px;
    }

    .footer-social-link {
        width: 28px;
        height: 28px;
    }

    .footer-info {
        font-size: 12px;
        text-align: center;
    }

    .footer-info-row {
        flex-direction: column;
        gap: 4px;
        text-align: center;
    }

    .divider {
        display: none;
    }
}

/* 작은 모바일 (480px 이하) */
@media (max-width: 480px) {
    .sub-banner .tab-menu {
        width: 280px;
        height: 45px;
    }
    
    .sub-banner .tab-item {
        font-size: 13px;
    }
    
    .filter-options {
        gap: 6px;
    }
    
    .filter-btn {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    .table-row {
        margin-bottom: 15px;
    }
    
    .material-title {
        font-size: 13px;
    }
    
    .pdf-download {
        padding: 8px 16px;
        font-size: 12px;
    }
}