/* ===================================
   지식센터 전용 스타일시트
   ================================== */

/* Hero Section */
.knowledge-hero {
    background: linear-gradient(to bottom, #F7F8FA, #FFFFFF);
    padding: 120px 0 80px;
    text-align: center;
}

.hero-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #1E4AFF, #0F2FBF);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
}

.hero-icon i {
    font-size: 2.5rem;
    color: white;
}

.knowledge-hero .hero-title {
    font-size: 3rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 1rem;
    font-family: 'Pretendard', 'Noto Sans KR', sans-serif;
}

.knowledge-hero .hero-subtitle {
    font-size: 1.25rem;
    color: #666;
    font-weight: 400;
}

/* Search Section */
.search-section {
    padding: 3rem 0;
    background: white;
}

.search-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.search-box {
    display: flex;
    align-items: center;
    background: white;
    border: 2px solid #E8EEF2;
    border-radius: 50px;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
}

.search-box:focus-within {
    border-color: #1E4AFF;
    box-shadow: 0 4px 12px rgba(30, 74, 255, 0.15);
}

.search-box i {
    color: #1E4AFF;
    font-size: 1.25rem;
    margin-right: 1rem;
}

.search-box input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1rem;
    color: #222;
}

.search-box input::placeholder {
    color: #999;
}

.search-btn {
    background: #1E4AFF;
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-btn:hover {
    background: #0F2FBF;
}

.search-suggestions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 1.5rem;
}

.suggestion-tag {
    background: #F7F8FA;
    color: #666;
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.suggestion-tag:hover {
    background: #1E4AFF;
    color: white;
}

/* Category Section */
.category-section {
    padding: 4rem 0;
    background: white;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: #222;
    text-align: center;
    margin-bottom: 3rem;
    font-family: 'Pretendard', 'Noto Sans KR', sans-serif;
}

.section-subtitle {
    text-align: center;
    color: #666;
    font-size: 1.125rem;
    margin-top: -2rem;
    margin-bottom: 3rem;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.category-card {
    background: white;
    border: 2px solid #E8EEF2;
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-card:hover {
    border-color: #1E4AFF;
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(30, 74, 255, 0.15);
}

.category-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #1E4AFF, #0F2FBF);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.category-icon i {
    font-size: 2rem;
    color: white;
}

.category-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #222;
    margin-bottom: 0.5rem;
}

.category-card p {
    color: #666;
    font-size: 0.9rem;
}

/* Featured Section */
.featured-section {
    padding: 4rem 0;
    background: #F7F8FA;
}

.featured-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 2rem;
}

.featured-main {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.featured-main:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

.featured-image {
    position: relative;
    height: 350px;
    background: linear-gradient(135deg, #1E4AFF, #0F2FBF);
}

.image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 5rem;
}

.image-placeholder.small {
    height: 180px;
    font-size: 3rem;
}

.featured-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: #FFD700;
    color: #222;
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.875rem;
}

.featured-content {
    padding: 2rem;
}

.featured-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.category-badge {
    background: #1E4AFF;
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}

.view-count {
    color: #666;
    font-size: 0.875rem;
}

.view-count i {
    color: #1E4AFF;
}

.featured-main h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.featured-main p {
    color: #666;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.read-more-btn {
    background: #1E4AFF;
    color: white;
    border: none;
    padding: 0.875rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.read-more-btn:hover {
    background: #0F2FBF;
    transform: translateX(5px);
}

.read-more-btn.small {
    padding: 0.625rem 1.5rem;
    font-size: 0.875rem;
}

/* Featured Sub Grid */
.featured-sub-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.featured-sub {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 180px 1fr;
    cursor: pointer;
    transition: all 0.3s ease;
}

.featured-sub:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.featured-sub-image {
    background: linear-gradient(135deg, #10B981, #059669);
}

.featured-sub:nth-child(2) .featured-sub-image {
    background: linear-gradient(135deg, #F59E0B, #D97706);
}

.featured-sub-content {
    padding: 1.5rem;
}

.featured-sub h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #222;
    margin: 0.75rem 0 0.5rem;
    line-height: 1.4;
}

.featured-sub p {
    color: #666;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

/* Content List Section */
.content-list-section {
    padding: 4rem 0;
    background: white;
}

.list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.filter-controls {
    display: flex;
    gap: 1rem;
}

.filter-dropdown,
.sort-dropdown {
    position: relative;
}

.filter-btn,
.sort-btn {
    background: white;
    border: 2px solid #E8EEF2;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.sort-btn:hover {
    border-color: #1E4AFF;
}

.filter-btn i,
.sort-btn i {
    color: #1E4AFF;
}

.filter-menu,
.sort-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: white;
    border: 2px solid #E8EEF2;
    border-radius: 15px;
    padding: 0.5rem;
    min-width: 200px;
    display: none;
    flex-direction: column;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    z-index: 100;
}

.filter-menu.show,
.sort-menu.show {
    display: flex;
}

.filter-menu button,
.sort-menu button {
    background: transparent;
    border: none;
    padding: 0.75rem 1rem;
    text-align: left;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.filter-menu button:hover,
.sort-menu button:hover {
    background: #F7F8FA;
    color: #1E4AFF;
}

.filter-menu button.active,
.sort-menu button.active {
    background: #1E4AFF;
    color: white;
}

/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.content-card {
    background: white;
    border: 2px solid #E8EEF2;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.content-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    border-color: #1E4AFF;
}

.content-thumbnail {
    height: 200px;
    background: linear-gradient(135deg, #1E4AFF, #0F2FBF);
    position: relative;
}

.thumbnail-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    color: white;
    opacity: 0.7;
}

.content-body {
    padding: 1.5rem;
}

.content-card .category-badge {
    font-size: 0.75rem;
    padding: 0.3rem 0.875rem;
    margin-bottom: 0.75rem;
    display: inline-block;
}

.content-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #222;
    margin-bottom: 0.75rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.content-card p {
    color: #666;
    font-size: 0.875rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 1rem;
}

.content-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: #999;
}

.content-date i,
.content-views i {
    color: #1E4AFF;
    margin-right: 0.25rem;
}

/* Load More */
.load-more-wrapper {
    text-align: center;
}

.load-more-btn {
    background: white;
    border: 2px solid #1E4AFF;
    color: #1E4AFF;
    padding: 1rem 3rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.load-more-btn:hover {
    background: #1E4AFF;
    color: white;
}

/* Brand Guide Section */
.brand-guide-section {
    padding: 4rem 0;
    background: #F7F8FA;
}

.brand-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.brand-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.brand-card:hover {
    border-color: #1E4AFF;
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.brand-logo {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #1E4AFF, #0F2FBF);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.brand-logo i {
    font-size: 2.5rem;
    color: white;
}

.brand-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 0.5rem;
}

.brand-card p {
    color: #666;
    margin-bottom: 1rem;
}

.article-count {
    display: inline-block;
    background: #F7F8FA;
    color: #1E4AFF;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
}

/* Video Section */
.video-section {
    padding: 4rem 0;
    background: white;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.video-card {
    background: white;
    border: 2px solid #E8EEF2;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    border-color: #1E4AFF;
}

.video-thumbnail {
    height: 250px;
    background: linear-gradient(135deg, #1E4AFF, #0F2FBF);
    position: relative;
}

.thumbnail-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.thumbnail-placeholder i {
    font-size: 5rem;
    color: white;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.video-card:hover .thumbnail-placeholder i {
    transform: scale(1.2);
}

.video-duration {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.4rem 0.875rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
}

.video-content {
    padding: 1.5rem;
}

.video-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #222;
    margin-bottom: 0.5rem;
}

.video-content p {
    color: #666;
    font-size: 0.9rem;
}

/* CTA Section */
.cta-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, #1E4AFF, #0F2FBF);
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
}

.cta-btn {
    background: white;
    color: #1E4AFF;
    padding: 1.25rem 3rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.125rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

/* Video Modal */
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

.video-modal.show {
    display: flex;
}

.video-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
}

.video-modal-content {
    position: relative;
    background: white;
    border-radius: 20px;
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 10000;
}

.video-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.video-modal-close:hover {
    background: rgba(0, 0, 0, 0.8);
}

.video-wrapper {
    padding: 3rem;
}

.video-wrapper h3 {
    font-size: 2rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 1rem;
}

.video-wrapper p {
    color: #666;
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

.video-player-placeholder {
    background: linear-gradient(135deg, #1E4AFF, #0F2FBF);
    height: 400px;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
}

.video-player-placeholder i {
    font-size: 5rem;
    margin-bottom: 1rem;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .content-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .brand-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1024px) {
    .featured-grid {
        grid-template-columns: 1fr;
    }
    
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .video-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .knowledge-hero .hero-title {
        font-size: 2rem;
    }
    
    .knowledge-hero .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .content-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .category-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .brand-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .list-header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .filter-controls {
        width: 100%;
        justify-content: space-between;
    }
    
    .featured-sub {
        grid-template-columns: 1fr;
    }
    
    .featured-sub-image {
        height: 200px;
    }
    
    .search-box {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .search-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .featured-image {
        height: 250px;
    }
    
    .cta-content h2 {
        font-size: 1.75rem;
    }
    
    .cta-content p {
        font-size: 1rem;
    }
}