/* Articles & Talks Section Styles */
.articles-talks {
    position: relative;
    padding: 100px 0;
    background: var(--bg-gradient-light);
}

.dark-mode .articles-talks {
    background: var(--bg-gradient-dark);
}

/* Background Elements */
.articles-talks::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(var(--primary-rgb), 0.05) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(var(--secondary-rgb), 0.05) 0%, transparent 20%);
    pointer-events: none;
}

.articles-talks .section-header {
    margin-bottom: 60px;
    text-align: center;
}

/* Tabs Navigation */
.content-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

.content-tabs::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background: var(--border-color);
    z-index: -1;
}

.content-tab {
    padding: 12px 24px;
    margin: 0 5px;
    font-weight: 600;
    color: var(--text-color);
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    font-size: 16px;
}

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

.content-tab.active {
    color: var(--primary-color);
    border-bottom: 3px solid var(--primary-color);
}

.content-tab .tab-icon {
    margin-right: 8px;
    font-size: 18px;
}

/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

/* Content Card */
.content-card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid var(--border-color);
}

.content-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

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

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

/* Card Image Container */
.content-image-container {
    position: relative;
    overflow: hidden;
    height: 200px;
}

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

.content-icon {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    font-size: 60px;
}

.content-type {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(var(--primary-rgb), 0.9);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 2;
}

.content-type.talk {
    background: rgba(var(--secondary-rgb), 0.9);
}

/* Card Content */
.content-details {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.content-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.3;
    color: var(--heading-color);
    transition: color 0.3s ease;
}

.content-meta {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    margin-right: 20px;
    margin-bottom: 5px;
    font-size: 14px;
    color: var(--text-muted);
}

.meta-item i {
    margin-right: 6px;
    font-size: 16px;
}

.content-excerpt {
    margin-bottom: 20px;
    color: var(--text-color);
    line-height: 1.6;
    flex-grow: 1;
}

.content-tags {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 20px;
    gap: 8px;
}

.content-tag {
    background: var(--tag-bg);
    color: var(--tag-color);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.content-tag:hover {
    background: var(--primary-color);
    color: white;
}

.content-link {
    display: inline-flex;
    align-items: center;
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: auto;
}

.content-link i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.content-link:hover {
    color: var(--secondary-color);
}

.content-link:hover i {
    transform: translateX(5px);
}

/* Featured Content */
.featured-content {
    grid-column: span 2;
    display: flex;
    flex-direction: column;
}

@media (min-width: 992px) {
    .featured-content {
        flex-direction: row;
        height: auto;
    }
    
    .featured-content .content-image-container {
        width: 50%;
        height: auto;
    }
    
    .featured-content .content-details {
        width: 50%;
    }
}

.featured-content .content-title {
    font-size: 24px;
}

.featured-content .content-excerpt {
    font-size: 16px;
}

/* View More Button */
.content-more {
    text-align: center;
    margin-top: 40px;
}

.content-more .btn {
    padding: 12px 30px;
    font-weight: 600;
}

.content-more .btn i {
    margin-right: 8px;
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
    .content-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
    
    .featured-content {
        grid-column: span 2;
    }
}

@media (max-width: 992px) {
    .featured-content {
        grid-column: span 1;
    }
    
    .featured-content .content-image-container {
        height: 200px;
    }
}

@media (max-width: 768px) {
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .content-tabs {
        flex-wrap: wrap;
    }
    
    .content-tab {
        margin-bottom: 10px;
    }
}

/* Animation for cards */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.content-card {
    animation: fadeInUp 0.5s ease forwards;
}

.content-card:nth-child(2) {
    animation-delay: 0.1s;
}

.content-card:nth-child(3) {
    animation-delay: 0.2s;
}

.content-card:nth-child(4) {
    animation-delay: 0.3s;
}

.content-card:nth-child(5) {
    animation-delay: 0.4s;
}

.content-card:nth-child(6) {
    animation-delay: 0.5s;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px dashed var(--border-color);
}

.empty-state i {
    font-size: 60px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.empty-state h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--heading-color);
}

.empty-state p {
    color: var(--text-muted);
    max-width: 500px;
    margin: 0 auto 20px;
}