/* articles-index-modern.css */
:root {
    --primary-red: #e63946;
    --dark-navy: #0f172a;
    --navy-blue: #1e293b;
    --slate-gray: #64748b;
    --border-color: rgba(255, 255, 255, 0.1);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
}

.articles-index-modern {
    background-color: var(--dark-navy);
    color: var(--text-primary);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    overflow-x: hidden;
}

.articles-index-modern .container {
    display: block; /* Override global flex */
    width: 100%;
}

/* Hero Section */
.articles-hero {
    position: relative;
    padding-top: 160px; /* Space for fixed header */
    padding-bottom: 100px;
    background: #000;
    overflow: hidden;
}

.hero-visual {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
    filter: blur(3px) scale(1.1);
}

.visual-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent, var(--dark-navy));
    z-index: 2;
}

.hero-container {
    position: relative;
    z-index: 3;
}

.hero-text {
    max-width: 800px;
}

.hero-subtitle {
    display: inline-block;
    color: var(--primary-red);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    margin-bottom: 20px;
}

.hero-main-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.text-highlight {
    color: var(--primary-red);
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.6;
}

/* Search Bar */
.modern-search-wrapper {
    max-width: 600px;
}

.search-form-modern .input-group-modern {
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    padding: 8px;
    border-radius: 16px;
    backdrop-filter: blur(10px);
}

.input-group-modern i {
    display: flex;
    align-items: center;
    padding: 0 20px;
    font-size: 1.25rem;
    color: var(--text-secondary);
}

.input-group-modern input {
    flex: 1;
    background: transparent;
    border: none;
    color: white;
    padding: 12px 0;
    font-size: 1rem;
}

.input-group-modern input:focus {
    outline: none;
}

.btn-search-accent {
    background: var(--primary-red);
    color: white;
    border: none;
    padding: 0 30px;
    border-radius: 12px;
    font-weight: 700;
    transition: all 0.3s;
}

.btn-search-accent:hover {
    background: #c1121f;
    transform: translateY(-2px);
}

/* Main Content Section */
.articles-main-section {
    padding: 80px 0;
    position: relative;
    z-index: 5;
    margin-top: -60px;
}

/* Category Nav */
.category-nav-wrapper {
    margin-bottom: 60px;
}

.category-header-modern {
    margin-bottom: 24px;
}

.section-title-mini {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.category-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.category-card-pill {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: var(--navy-blue);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cat-icon-box {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-red);
    transition: all 0.3s;
}

.cat-info-active {
    display: flex;
    flex-direction: column;
}

.cat-name {
    color: white;
    font-weight: 700;
    font-size: 0.95rem;
}

.cat-count-badge {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.category-card-pill:hover, .category-card-pill.active {
    background: var(--primary-red);
    border-color: var(--primary-red);
    box-shadow: 0 10px 30px rgba(230, 57, 70, 0.3);
    transform: translateY(-5px);
}

.category-card-pill:hover .cat-name, 
.category-card-pill.active .cat-name,
.category-card-pill:hover .cat-count-badge, 
.category-card-pill.active .cat-count-badge,
.category-card-pill:hover .cat-icon-box i,
.category-card-pill.active .cat-icon-box i {
    color: white;
}

.category-card-pill:hover .cat-icon-box, 
.category-card-pill.active .cat-icon-box {
    background: rgba(255, 255, 255, 0.2);
}

/* Article Cards */
.modern-card {
    background: var(--navy-blue);
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    height: 100%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modern-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-red);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.card-img-box {
    position: relative;
    height: 240px;
    overflow: hidden;
}

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

.modern-card:hover .card-img-box img {
    transform: scale(1.1);
}

.card-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--primary-red);
    color: white;
    padding: 6px 16px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.card-content-modern {
    padding: 30px;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--slate-gray);
    font-size: 0.85rem;
    margin-bottom: 16px;
    font-weight: 600;
}

.meta-divider {
    width: 4px;
    height: 4px;
    background: var(--border-color);
    border-radius: 50%;
}

.card-title-modern {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 16px;
}

.card-title-modern a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

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

.card-excerpt-modern {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 24px;
}

.read-more-accent {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-red);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    transition: gap 0.3s;
}

.read-more-accent:hover {
    gap: 12px;
}

/* Sidebar */
.sidebar-modern {
    position: sticky;
    top: 100px;
}

.widget-modern {
    background: var(--navy-blue);
    padding: 30px;
    border-radius: 24px;
    border: 1px solid var(--border-color);
    margin-bottom: 30px;
}

.widget-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

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

.pop-item-mini {
    display: flex;
    gap: 16px;
    text-decoration: none;
    margin-bottom: 20px;
    transition: all 0.3s;
}

.pop-item-mini:last-child {
    margin-bottom: 0;
}

.pop-img {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
}

.pop-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pop-details h4 {
    color: white;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 6px;
    transition: color 0.3s;
}

.pop-item-mini:hover h4 {
    color: var(--primary-red);
}

.pop-details span {
    font-size: 0.8rem;
    color: var(--slate-gray);
}

/* CTA Widget */
.call-to-action-widget {
    background: linear-gradient(135deg, var(--primary-red), #ff6b6b);
    text-align: center;
    color: white;
    border: none;
}

.cta-inner i {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
}

.cta-inner h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.cta-inner p {
    font-size: 0.95rem;
    opacity: 0.9;
    margin-bottom: 24px;
}

.btn-cta-sidebar {
    display: inline-block;
    background: white;
    color: var(--primary-red);
    padding: 12px 30px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s;
}

.btn-cta-sidebar:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Pagination */
.pagination-modern {
    margin-top: 60px;
}

.pagination-modern .pagination {
    justify-content: center;
    gap: 10px;
}

.pagination-modern .page-link {
    background: var(--navy-blue);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 12px 20px;
    border-radius: 12px;
}

.pagination-modern .page-item.active .page-link {
    background: var(--primary-red);
    border-color: var(--primary-red);
    color: white;
}

/* Empty State */
.empty-state-modern {
    text-align: center;
    padding: 100px 0;
    background: var(--navy-blue);
    border-radius: 24px;
    border: 1px solid var(--border-color);
}

.empty-state-modern i {
    font-size: 4rem;
    color: var(--slate-gray);
    margin-bottom: 24px;
    display: block;
}

.empty-state-modern h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.btn-back {
    display: inline-block;
    margin-top: 24px;
    color: var(--primary-red);
    text-decoration: none;
    font-weight: 700;
}

/* Search Results info */
.search-results-info {
    margin-bottom: 40px;
}

.search-results-info h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.query-text {
    color: var(--primary-red);
}

/* Responsive */
@media (max-width: 1200px) {
    .container { max-width: 100%; }
}

@media (max-width: 992px) {
    .articles-index-modern .container {
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }
    .hero-main-title { font-size: 3rem; }
    .sidebar-modern { margin-top: 60px; }
    .grid-column-layout { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .articles-hero { padding-top: 120px; padding-bottom: 60px; }
    .hero-main-title { font-size: 2.25rem; }
    .hero-description { font-size: 1.1rem; }
    .articles-main-section { padding: 40px 0; margin-top: 0; }
    .modern-search-wrapper { max-width: 100%; }
    .search-form-modern .input-group-modern { padding: 5px; border-radius: 12px; }
    .input-group-modern input { padding: 10px 0; font-size: 0.9rem; }
    .btn-search-accent { padding: 0 15px; font-size: 0.9rem; }
    .category-grid-modern { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
    .category-card-pill { padding: 12px 15px; }
    .cat-icon-box { width: 40px; height: 40px; font-size: 1.25rem; }
    .modern-card { margin-bottom: 20px; }
    .row.g-5 { margin: 0; }
    .col-lg-8, .col-lg-4 { padding: 0; }
}

@media (max-width: 576px) {
    .hero-main-title { font-size: 1.85rem; }
    .hero-description { font-size: 1rem; }
    .card-content-modern { padding: 20px; }
    .card-title-modern { font-size: 1.25rem; }
    .input-group-modern i { padding: 0 10px; }
}
