/* Comprehensive Insight Page Styles */
.insight-page {
    padding-bottom: 50px;
}

/* Tabs & Layout */
.insight-tabs-container {
    margin: 20px 0;
    padding-bottom: 4px;
}

.tabs-scroll-wrap {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
    padding: 2px;
}

.tabs-scroll-wrap::-webkit-scrollbar {
    display: none;
}

@media (min-width: 768px) {
    .tabs-scroll-wrap {
        flex-wrap: wrap;
        overflow-x: visible;
    }
}

.tab-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 99px;
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.tab-pill:hover {
    color: #334155;
    background: #f1f5f9;
}

.tab-pill.active {
    background: #EBF8FF;
    border-color: #bee3f8;
    color: #2b6cb0;
    font-weight: 700;
}

/* Section Colors */
.context-live .tab-pill.active {
    background: #FEF2F2;
    border-color: #FECACA;
    color: #DC2626;
}

.context-edu .tab-pill.active {
    background: #ECFDF5;
    border-color: #6EE7B7;
    color: #059669;
}

.context-jobs .tab-pill.active {
    background: #FFF1F0;
    border-color: #FFA39E;
    color: #EB5244;
}

/* Home Section Styles */
.home-section {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 8px solid #f1f5f9;
}

.home-section:last-child {
    border-bottom: none;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    margin-bottom: 8px;
}

.section-title {
    font-size: 18px;
    font-weight: 800;
    margin: 0;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-more {
    font-size: 13px;
    color: #64748b;
    text-decoration: none;
    font-weight: 600;
}

/* Home Grids */
.live-grid-home,
.edu-grid-home {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 0 16px;
}

@media (max-width: 640px) {

    .live-grid-home,
    .edu-grid-home {
        grid-template-columns: 1fr;
    }
}

/* Grid & Cards (Live List) */
.live-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    padding: 10px 0;
}

.live-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s;
    display: flex;
    flex-direction: column;
}

.live-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.live-thumbnail {
    position: relative;
    padding-top: 56.25%;
    background: #f5f5f7;
    overflow: hidden;
}

.live-thumbnail img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.live-indicator {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(220, 38, 38, 0.9);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
    animation: pulse-red 2s infinite;
}

@keyframes pulse-red {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

.live-info {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.live-title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    color: #1d1d1f;
    margin-bottom: 8px;
}

.btn-watch {
    display: block;
    text-align: center;
    background: #cc0000;
    color: white;
    font-weight: 600;
    padding: 10px 0;
    border-radius: 6px;
    text-decoration: none;
}

/* Grid & Cards (Edu) */
.edu-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.edu-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #f1f5f9;
    transition: all 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.edu-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
}

.edu-thumbnail {
    position: relative;
    padding-top: 56.25%;
    background: #f8fafc;
    overflow: hidden;
}

.edu-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(16, 185, 129, 0.9);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
}

/* Floating Menu */
.floating-menu {
    position: fixed;
    bottom: 92px;
    right: 20px;
    z-index: 100;
}

.floating-btn {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #2D3748;
    border-radius: 50%;
    color: white !important;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s;
}

.floating-menu-items {
    position: absolute;
    bottom: 75px;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s;
}

.floating-menu-items.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.floating-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    background: white;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    font-size: 14px;
    color: #4A5568;
    text-decoration: none;
    min-width: 180px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.item-icon-wrapper {
    font-size: 20px;
}

.item-content {
    display: flex;
    flex-direction: column;
}

.item-text {
    font-weight: 700;
    color: #2D3748;
}

.item-desc {
    font-size: 11px;
    color: #718096;
}

.on-air-badge {
    background: #FED7D7;
    color: #E53E3E;
    font-size: 9px;
    padding: 1px 4px;
    border-radius: 4px;
    margin-left: 4px;
}

.live-pulse {
    position: relative;
}

.live-pulse::after {
    content: '';
    position: absolute;
    top: -2px;
    right: -2px;
    width: 8px;
    height: 8px;
    background: #E53E3E;
    border-radius: 50%;
    border: 2px solid white;
}

/* Home Section Icons */
.icon-svg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    margin-right: 8px;
}

.icon-svg.live {
    background: #FEF2F2;
    color: #DC2626;
}

.icon-svg.news {
    background: #EFF6FF;
    color: #1E40AF;
}

.icon-svg.edu {
    background: #ECFDF5;
    color: #059669;
}

/* Premium Hero Banner */
.insight-premium-hero {
    background-size: cover;
    background-position: center;
    padding: 50px 20px;
    text-align: center;
    border-radius: 24px;
    margin: 10px 16px 20px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(30, 64, 175, 0.1), rgba(0, 0, 0, 0.4));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.premium-title {
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 12px;
    line-height: 1.3;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.premium-title .highlight {
    color: #fff;
    background: linear-gradient(transparent 70%, rgba(59, 130, 246, 0.6) 70%);
}

.premium-p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    line-height: 1.6;
    word-break: keep-all;
}

.hero-deco {
    position: absolute;
    bottom: 15px;
    right: 20px;
    font-size: 50px;
    opacity: 0.2;
    transform: rotate(-10deg);
    z-index: 2;
}

.mo-br-only {
    display: none;
}

@media (max-width: 600px) {
    .insight-premium-hero {
        margin: 10px 10px 20px;
        padding: 40px 15px;
    }

    .premium-title {
        font-size: 22px;
    }

    .premium-p {
        font-size: 13px;
        line-height: 1.5;
    }

    .mo-br-only {
        display: block;
    }
}

/* News Cards - Naver Style */
.insight-news-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* 기본 2열 */
    gap: 20px;
    padding: 0 16px;
}

@media (max-width: 640px) {
    .insight-news-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .insight-news-list {
        grid-template-columns: 1fr;
    }
}

.news-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.2s ease;
    border: 1px solid #f1f5f9;
}

.news-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: #e2e8f0;
}

.news-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.news-thumbnail {
    position: relative;
    width: 100%;
    padding-top: 66.67%;
    /* 3:2 aspect ratio */
    background: #f8fafc;
    overflow: hidden;
}

.news-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    max-height: 100%;
    transition: transform 0.3s ease;
}

.news-card:hover .news-thumbnail img {
    transform: scale(1.05);
}

.news-thumbnail-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.placeholder-icon {
    font-size: 48px;
    opacity: 0.3;
}

.news-content {
    padding: 12px;
}

.news-title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    color: #1e293b;
    margin: 0 0 8px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: keep-all;
}

.news-card:hover .news-title {
    color: #3b82f6;
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #64748b;
}

.news-category {
    font-weight: 600;
    color: #3b82f6;
}

.news-time {
    position: relative;
    padding-left: 8px;
}

.news-time::before {
    content: '·';
    position: absolute;
    left: 0;
}

/* Desktop optimization */
@media (min-width: 768px) {
    .insight-news-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
        padding: 0 20px;
    }

    .news-content {
        padding: 16px;
    }

    .news-title {
        font-size: 17px;
        margin-bottom: 10px;
        -webkit-line-clamp: 3;
    }

    .news-thumbnail {
        padding-top: 56.25%;
        /* 16:9 aspect ratio for larger cards */
    }
}