/* ========================================
   MEDIA PORTAL STYLES - Professional Layout
   ======================================== */

/* FEATURED SECTION */
.featured-section {
    background: #f8f9fa;
    padding: 2rem 0;
    border-bottom: 1px solid #e0e0e0;
}

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

/* HERO CARD */
.featured-hero {}

.hero-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.hero-image {
    position: relative;
    height: 400px;
    overflow: hidden;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s;
}

.hero-card:hover .hero-image img {
    transform: scale(1.05);
}

.hero-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--accent-color);
    color: white;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 4px;
}

.hero-content {
    padding: 2rem;
    text-align: left;
}

.hero-title {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 1rem;
    text-align: left;
}

.hero-title a {
    color: var(--text-primary);
    transition: color 0.3s;
}

.hero-title a:hover {
    color: var(--primary-color);
}

.hero-excerpt {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    text-align: left;
}

.hero-meta {
    display: flex;
    gap: 0;
    font-size: 0.875rem;
    color: var(--text-light);
    padding-top: 0.75rem;
    border-top: 1px solid #e5e7eb;
}

.hero-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-meta span i {
    color: var(--primary-color);
}

/* MEDIUM CARDS */
.featured-medium {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.medium-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    transition: transform 0.3s, box-shadow 0.3s;
}

.medium-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}

.medium-image {
    height: 180px;
    overflow: hidden;
}

.medium-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.medium-card:hover .medium-image img {
    transform: scale(1.08);
}

.medium-content {
    padding: 1rem;
}

.medium-category {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 3px;
    margin-bottom: 0.75rem;
}

.medium-title {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.medium-title a {
    color: var(--text-primary);
    transition: color 0.3s;
}

.medium-title a:hover {
    color: var(--primary-color);
}

.medium-meta {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* PORTAL LAYOUT (Main + Sidebar) */
.portal-layout {
    padding: 2rem 0;
    background: white;
}

.portal-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 3rem;
}

.portal-main {}

/* LATEST NEWS SECTION */
.latest-news-section {
    margin-bottom: 3rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--primary-color);
}

.section-title-portal {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0;
}

.section-title-portal i {
    color: var(--primary-color);
    font-size: 1.3rem;
}

.section-tabs {
    display: flex;
    gap: 0.5rem;
}

.tab-btn {
    background: transparent;
    border: 2px solid #e0e0e0;
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
}

.tab-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.tab-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* NEWS LIST */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.news-item {
    display: flex;
    gap: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e0e0e0;
}

.news-item-horizontal {
    align-items: flex-start;
}

.news-item-compact {
    align-items: center;
}

.news-item-horizontal .news-thumb {
    flex-shrink: 0;
    width: 250px;
    height: 140px;
    border-radius: 8px;
    overflow: hidden;
}

.news-item-compact .news-thumb {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    border-radius: 6px;
    overflow: hidden;
}

.news-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.news-item:hover .news-thumb img {
    transform: scale(1.1);
}

.news-body {
    flex: 1;
}

.news-category {
    display: inline-block;
    background: #f0f0f0;
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 3px;
    margin-bottom: 0.5rem;
}

.news-title {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.news-item-compact .news-title {
    font-size: 1rem;
}

.news-title a {
    color: var(--text-primary);
    transition: color 0.3s;
}

.news-title a:hover {
    color: var(--primary-color);
}

.news-excerpt {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.news-meta {
    font-size: 0.85rem;
    color: var(--text-light);
}

.news-meta i {
    margin-right: 0.25rem;
}

/* CATEGORY BLOCKS */
.category-blocks {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.category-block {
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 12px;
}

.category-block-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e0e0e0;
}

.category-block-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0;
}

.category-block-title i {
    color: var(--accent-color);
}

.category-block-more {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s;
}

.category-block-more:hover {
    gap: 0.75rem;
}

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

.category-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    transition: transform 0.3s, box-shadow 0.3s;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}

.category-card-image {
    height: 160px;
    overflow: hidden;
}

.category-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.category-card:hover .category-card-image img {
    transform: scale(1.08);
}

.category-card-title {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
    padding: 1rem;
    padding-bottom: 0.5rem;
}

.category-card-title a {
    color: var(--text-primary);
    transition: color 0.3s;
}

.category-card-title a:hover {
    color: var(--primary-color);
}

.category-card-meta {
    padding: 0 1rem 1rem;
    font-size: 0.85rem;
    color: var(--text-light);
}

/* SIDEBAR */
.portal-sidebar {
    position: sticky;
    top: 100px;
    align-self: flex-start;
}

.sidebar-widget {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.widget-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.widget-title i {
    color: var(--accent-color);
}

.widget-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.widget-tab {
    flex: 1;
    background: #f0f0f0;
    border: none;
    padding: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.widget-tab:hover {
    background: #e0e0e0;
}

.widget-tab.active {
    background: var(--primary-color);
    color: white;
}

/* POPULAR LIST */
.popular-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.popular-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.popular-number {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    background: var(--gradient-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.95rem;
    border-radius: 4px;
}

.popular-content {
    flex: 1;
}

.popular-title {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 0.25rem;
}

.popular-title a {
    color: var(--text-primary);
    transition: color 0.3s;
}

.popular-title a:hover {
    color: var(--primary-color);
}

.popular-meta {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* CATEGORIES LIST */
.categories-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.categories-list li {
    border-bottom: 1px solid #e0e0e0;
}

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

.categories-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    color: var(--text-primary);
    font-weight: 600;
    transition: all 0.3s;
}

.categories-list a:hover {
    color: var(--primary-color);
    padding-left: 0.5rem;
}

.cat-name {
    flex: 1;
}

.cat-count {
    background: #f0f0f0;
    color: var(--text-secondary);
    padding: 0.25rem 0.75rem;
    font-size: 0.8rem;
    border-radius: 12px;
}

/* AD WIDGET */
.ad-widget {
    display: none;
    text-align: center;
}

.ad-label {
    font-size: 0.75rem;
    color: var(--text-light);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    letter-spacing: 0.05em;
}

.ad-placeholder {
    background: #f0f0f0;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 1.5rem;
    font-weight: 700;
    border-radius: 4px;
}

/* RESPONSIVE */
@media (max-width: 1200px) {
    .portal-grid {
        grid-template-columns: 1fr 300px;
        gap: 2rem;
    }

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

@media (max-width: 968px) {
    .featured-grid {
        grid-template-columns: 1fr;
    }

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

    .portal-sidebar {
        position: static;
    }

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

@media (max-width: 640px) {
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .news-item {
        flex-direction: column;
    }

    .news-item-horizontal .news-thumb,
    .news-item-compact .news-thumb {
        width: 100%;
        height: 200px;
    }

    .category-block-grid {
        grid-template-columns: 1fr;
    }
}
