/*
========================================
ARCHIVE PROJECT PAGE STYLES - CLEAN VERSION
========================================
Description: Complete styles for project archive page with article integration
Version: 1.0.0
Author: Digital Heritage Lab
========================================
*/

/* Force header to be sticky on projects page with highest specificity */
body.post-type-archive-project .site-header {
    position: sticky !important;
    top: 0 !important;
    z-index: 9999 !important;
    background: var(--color-bg-darkest, #0B090A) !important;
    box-shadow: 0 2px 16px 0 rgba(20,20,40,0.08) !important;
    width: 100% !important;
    transition: background 0.3s, box-shadow 0.3s !important;
    transform: translateZ(0) !important; /* Force hardware acceleration */
    will-change: transform !important;
}

:root {
    /* Digital Heritage Lab Color Scheme */
    --dhl-primary: #A4161A;
    --dhl-primary-bright: #E5383B;
    --dhl-dark-red: #660708;
    --dhl-bright-red: #E5383B;
    --dhl-dark: #161A1D;
    --dhl-charcoal: #22272A;
    --dhl-white: #F5F3F4;
    --dhl-light-gray: #E5E5E5;
    --dhl-gray: #B8B8B8;
    --dhl-gradient: linear-gradient(135deg, #A4161A 0%, #660708 100%);
    --dhl-gradient-subtle: linear-gradient(135deg, rgba(164, 22, 26, 0.1) 0%, rgba(102, 7, 8, 0.1) 100%);
    --dhl-shadow: 0 10px 30px rgba(164, 22, 26, 0.15);
    --dhl-shadow-hover: 0 20px 40px rgba(164, 22, 26, 0.25);
}

/* ===== GENERAL STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body.post-type-archive-project {
    background: var(--dhl-dark);
    color: var(--dhl-white);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: 0; /* Ensure no padding conflicts */
}

/* Hide progress bar on archive-project page */
body.post-type-archive-project .reading-progress-bar,
body.post-type-archive-project .progress-bar,
body.post-type-archive-project .reading-progress,
body.post-type-archive-project .scroll-progress {
    display: none !important;
}

/* Ensure header sticks above all content on projects page but below admin bar */
body.post-type-archive-project .site-header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 9999 !important; /* Below admin bar but above everything else */
    background: var(--color-bg-darkest, #0B090A) !important;
    box-shadow: 0 2px 16px 0 rgba(20,20,40,0.08) !important;
    width: 100% !important;
    transition: background 0.3s, box-shadow 0.3s !important;
    transform: translateZ(0) !important;
    will-change: transform !important;
}

/* Adjust header position when admin bar is present */
body.admin-bar.post-type-archive-project .site-header {
    top: 32px !important; /* Space for admin bar on desktop */
}

/* Admin bar responsive - mobile */
@media screen and (max-width: 782px) {
    body.admin-bar.post-type-archive-project .site-header {
        top: 46px !important; /* Space for admin bar on mobile */
    }
}

/* Add top padding to body to compensate for fixed header */
body.post-type-archive-project .projects-hero-section {
    padding-top: 150px; /* Add space for fixed header */
}

/* Adjust hero padding when admin bar is present */
body.admin-bar.post-type-archive-project .projects-hero-section {
    padding-top: 182px; /* 150px + 32px admin bar */
}

@media screen and (max-width: 782px) {
    body.admin-bar.post-type-archive-project .projects-hero-section {
        padding-top: 196px; /* 150px + 46px admin bar */
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

body {
    background: var(--dhl-dark) !important;
}

/* ===== HERO SECTION ===== */
.projects-hero-section {
    background: var(--dhl-dark);
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(164, 22, 26, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(102, 7, 8, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(229, 56, 59, 0.2) 0%, transparent 50%);
    padding: 120px 0;
    overflow: hidden;
    position: relative;
    z-index: 1; /* Lower than header */
    min-height: 100vh;
    display: flex;
    align-items: center;
    margin-top: 0; /* Ensure no margin conflicts */
}

.projects-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(164,22,26,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--dhl-gradient);
    color: var(--dhl-white);
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 30px;
    box-shadow: var(--dhl-shadow);
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    color: var(--dhl-white);
    margin-bottom: 30px;
    line-height: 1.1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--dhl-light-gray);
    margin-bottom: 60px;
    line-height: 1.6;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.stat-item {
    text-align: center;
    padding: 30px 20px;
    background: rgba(22, 26, 29, 0.8);
    border-radius: 20px;
    border: 2px solid rgba(164, 22, 26, 0.2);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    border-color: var(--dhl-primary);
    box-shadow: var(--dhl-shadow);
}

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 900;
    color: var(--dhl-primary);
    margin-bottom: 10px;
}

.stat-label {
    color: var(--dhl-light-gray);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

/* Hero Visual Elements - Background */
.hero-visual {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    pointer-events: none;
}

.hero-visual .floating-elements {
    position: relative;
    width: 100%;
    height: 100%;
}

.float-element {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    background: rgba(22, 26, 29, 0.4);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(164, 22, 26, 0.2);
    border-radius: 20px;
    padding: 25px 20px;
    min-width: 140px;
    transition: all 0.4s ease;
    animation: floatTech 8s ease-in-out infinite;
    opacity: 0.6;
    z-index: 0;
}

.float-element:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.float-element:nth-child(2) {
    top: 15%;
    right: 8%;
    animation-delay: 2s;
}

.float-element:nth-child(3) {
    bottom: 30%;
    left: 15%;
    animation-delay: 4s;
}

.float-element:nth-child(4) {
    bottom: 25%;
    right: 12%;
    animation-delay: 6s;
}

.float-element i {
    font-size: 2rem;
    color: var(--dhl-primary);
    transition: all 0.3s ease;
}

.float-element span {
    color: var(--dhl-white);
    font-weight: 600;
    font-size: 0.85rem;
    text-align: center;
    line-height: 1.2;
}

.float-element:hover i {
    color: var(--dhl-bright-red);
    transform: scale(1.1);
}

@keyframes floatTech {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* ===== OUR APPROACH SECTION ===== */
.our-approach-section {
    padding: 120px 0;
    background: var(--dhl-charcoal);
    position: relative;
    z-index: 2;
}

.approach-header {
    text-align: center;
    margin-bottom: 80px;
    position: relative;
    z-index: 3;
}

.approach-header h2 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--dhl-white);
    margin-bottom: 20px;
}

.approach-header p {
    font-size: 1.2rem;
    color: var(--dhl-light-gray);
    max-width: 600px;
    margin: 0 auto;
}

.approach-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.approach-card {
    background: var(--dhl-dark);
    padding: 40px;
    border-radius: 25px;
    border: 2px solid rgba(164, 22, 26, 0.1);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.approach-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--dhl-gradient);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.approach-card:hover {
    transform: translateY(-10px);
    border-color: var(--dhl-primary);
    box-shadow: var(--dhl-shadow-hover);
}

.approach-card:hover::before {
    transform: scaleX(1);
}

.approach-icon {
    width: 80px;
    height: 80px;
    background: var(--dhl-gradient);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    font-size: 2rem;
    color: var(--dhl-white);
}

.approach-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dhl-white);
    margin-bottom: 20px;
}

.approach-card p {
    color: var(--dhl-light-gray);
    line-height: 1.6;
    margin-bottom: 30px;
}

.approach-features {
    list-style: none;
    padding: 0;
}

.approach-features li {
    color: var(--dhl-light-gray);
    padding: 8px 0;
    padding-left: 30px;
    position: relative;
    font-weight: 500;
}

.approach-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--dhl-primary);
    font-weight: bold;
}

/* ===== ARTICLE SECTION INTEGRATION ===== */
.article-page-section {
    padding: 120px 0;
    background: var(--dhl-charcoal);
    position: relative;
    z-index: 2;
}

/* ===== FILTER SECTION HEADER ===== */
.filter-section-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 3;
}

.filter-header-content {
    max-width: 800px;
    margin: 0 auto;
}

.filter-section-title {
    font-size: 3rem;
    font-weight: 800;
    color: var(--dhl-white);
    margin-bottom: 24px;
    line-height: 1.2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.filter-section-title i {
    color: var(--dhl-primary);
    font-size: 2.5rem;
}

.filter-section-description {
    font-size: 1.1rem;
    color: var(--dhl-light-gray);
    line-height: 1.7;
    margin: 0;
    font-weight: 400;
}

/* ===== ENHANCED FILTER SECTION ===== */
.research-filter {
    background: linear-gradient(135deg, rgba(22, 26, 29, 0.95) 0%, rgba(11, 9, 10, 0.95) 100%);
    backdrop-filter: blur(20px);
    border-radius: 30px;
    margin-bottom: 80px;
    box-shadow: var(--dhl-shadow-hover);
    border: 2px solid rgba(164, 22, 26, 0.3);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.research-filter::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--dhl-gradient);
    opacity: 0.03;
    z-index: 0;
}

.filter-container {
    position: relative;
    z-index: 1;
    padding: 40px 50px;
}

.filter-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid rgba(164, 22, 26, 0.2);
}

.filter-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 16px;
    font-weight: 700;
    color: var(--dhl-white);
    font-size: 1.3rem;
}

.filter-label i {
    color: var(--dhl-primary);
    font-size: 1.4rem;
}

.filter-description {
    margin: 0;
}

.filter-description p {
    color: var(--dhl-light-gray);
    font-size: 1rem;
    margin: 0;
    font-weight: 400;
}

.filter-buttons {
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
}

.filter-buttons-container {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    flex: 1;
    padding: 8px 0 16px 0;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Hide scrollbar for Firefox */
    -ms-overflow-style: none; /* Hide scrollbar for IE and Edge */
}

.filter-buttons-container::-webkit-scrollbar {
    display: none; /* Hide scrollbar for Chrome, Safari and Opera */
}

.filter-nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 2px solid var(--dhl-primary);
    background: rgba(164, 22, 26, 0.1);
    color: var(--dhl-primary);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-size: 16px;
    flex-shrink: 0;
    z-index: 5;
}

.filter-nav-btn:hover {
    background: var(--dhl-primary);
    color: var(--dhl-white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(164, 22, 26, 0.3);
}

.filter-nav-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(164, 22, 26, 0.2);
}

.filter-nav-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}

.filter-nav-btn:disabled:hover {
    background: rgba(164, 22, 26, 0.1);
    color: var(--dhl-primary);
    transform: none;
    box-shadow: none;
}

.filter-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    border: 2px solid rgba(164, 22, 26, 0.4);
    background: rgba(22, 26, 29, 0.8);
    color: var(--dhl-white);
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
    font-size: 1rem;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    flex-shrink: 0;
    min-width: auto;
    text-decoration: none;
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--dhl-gradient);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.filter-btn > * {
    position: relative;
    z-index: 1;
}

.filter-btn span:not(.filter-count) {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
}

.filter-btn.active,
.filter-btn:hover {
    transform: translateY(-4px);
    border-color: var(--dhl-primary);
    box-shadow: var(--dhl-shadow-hover);
    color: var(--dhl-white) !important;
}

.filter-btn.active::before,
.filter-btn:hover::before {
    opacity: 0.15;
}

.filter-count {
    background: var(--dhl-gradient);
    color: var(--dhl-white);
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 700;
    min-width: 24px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(164, 22, 26, 0.3);
    position: relative;
    z-index: 2;
}

/* ===== ARTICLE GRID ===== */
.article-content {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
    gap: 40px;
    margin-bottom: 80px;
}

/* ===== ARTICLE CARDS ===== */
.article-card {
    background: rgba(22, 26, 29, 0.95);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(164, 22, 26, 0.3);
    border-radius: 30px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
    box-shadow: var(--dhl-shadow);
    display: flex;
    flex-direction: column;
    position: relative;
}

.article-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--dhl-gradient);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.article-card:hover::before {
    opacity: 0.05;
}

.article-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: var(--dhl-shadow-hover);
    border-color: var(--dhl-primary-bright);
}

.article-card-image {
    position: relative;
    height: 280px;
    overflow: hidden;
    z-index: 1;
}

.article-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.320, 1);
}

.article-card:hover .article-card-image img {
    transform: scale(1.1);
}

.article-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(11, 9, 10, 0.7) 100%);
}

.article-type-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(22, 26, 29, 0.95);
    backdrop-filter: blur(10px);
    padding: 10px 16px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--dhl-white);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(164, 22, 26, 0.4);
}

.article-type-badge i {
    color: var(--dhl-primary);
}

/* Project Status Badge */
.project-status-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    padding: 8px 14px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.status-active {
    background: rgba(46, 160, 67, 0.9);
    color: var(--dhl-white);
}

.status-complete {
    background: rgba(30, 130, 76, 0.9);
    color: var(--dhl-white);
}

.status-hold {
    background: rgba(255, 193, 7, 0.9);
    color: #212529;
}

.status-cancelled {
    background: rgba(220, 53, 69, 0.9);
    color: var(--dhl-white);
}

.status-default {
    background: rgba(108, 117, 125, 0.9);
    color: var(--dhl-white);
}

.project-status-badge i {
    font-size: 0.75rem;
}

.article-card-content {
    padding: 40px;
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

.article-card-category {
    margin-bottom: 20px;
}

.article-card-category a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--dhl-gradient);
    color: var(--dhl-white);
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.article-card-category a:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(164, 22, 26, 0.4);
    color: var(--dhl-white) !important;
}

.article-card-title {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.3;
}

.article-card-title a {
    color: var(--dhl-white);
    text-decoration: none;
    transition: color 0.3s;
}

.article-card-title a:hover {
    color: var(--dhl-primary-bright);
}

.article-card-excerpt {
    color: var(--dhl-gray);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 30px;
    flex: 1;
    font-weight: 400;
}

/* ===== RESEARCH METADATA ===== */
.research-metadata {
    background: rgba(164, 22, 26, 0.15);
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 30px;
    border-left: 4px solid var(--dhl-primary);
    border: 1px solid rgba(164, 22, 26, 0.3);
}

.metadata-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.metadata-item:last-child {
    margin-bottom: 0;
}

.metadata-item i {
    color: var(--dhl-primary-bright);
    width: 16px;
    text-align: center;
}

.metadata-label {
    font-weight: 600;
    color: var(--dhl-gray);
    min-width: 90px;
}

.metadata-value {
    color: var(--dhl-white);
    font-weight: 500;
}

.doi-link {
    text-decoration: none;
    color: var(--dhl-primary-bright) !important;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

.doi-link:hover {
    text-decoration: underline;
}

/* Technologies List */
.technologies-list {
    background: rgba(34, 39, 42, 0.8);
    padding: 8px 12px;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    color: var(--dhl-light-gray);
    border: 1px solid rgba(164, 22, 26, 0.3);
}

/* Project Links */
.project-links {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 5px;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 12px;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid;
}

.demo-link {
    background: rgba(52, 152, 219, 0.2);
    color: #3498db;
    border-color: rgba(52, 152, 219, 0.5);
}

.demo-link:hover {
    background: rgba(52, 152, 219, 0.3);
    color: #2980b9;
    transform: translateY(-1px);
}

.github-link {
    background: rgba(51, 51, 51, 0.3);
    color: #f1f1f1;
    border-color: rgba(153, 153, 153, 0.5);
}

.github-link:hover {
    background: rgba(51, 51, 51, 0.5);
    color: #ffffff;
    transform: translateY(-1px);
}

.external-link {
    background: rgba(155, 89, 182, 0.2);
    color: #9b59b6;
    border-color: rgba(155, 89, 182, 0.5);
}

.external-link:hover {
    background: rgba(155, 89, 182, 0.3);
    color: #8e44ad;
    transform: translateY(-1px);
}

.project-link i {
    font-size: 0.75rem;
}

/* ===== ARTICLE META ===== */
.article-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    padding-top: 25px;
    border-top: 2px solid rgba(164, 22, 26, 0.1);
}

.article-card-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.article-card-author img {
    border-radius: 50%;
    width: 50px;
    height: 50px;
    border: 3px solid var(--dhl-primary);
    object-fit: cover;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 700;
    color: var(--dhl-white);
    font-size: 1rem;
}

.author-title {
    font-size: 0.85rem;
    color: var(--dhl-gray);
    font-weight: 500;
}

.article-stats-mini {
    display: flex;
    gap: 20px;
}

.stat-mini {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    color: var(--dhl-gray);
    font-weight: 500;
}

.stat-mini i {
    color: var(--dhl-primary);
    width: 14px;
    text-align: center;
}

/* ===== ARTICLE ACTIONS ===== */
.article-actions {
    display: flex;
    gap: 15px;
}

.article-read-btn {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--dhl-gradient);
    color: var(--dhl-white);
    padding: 16px 24px;
    border-radius: 20px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.4s;
    text-align: center;
    position: relative;
    overflow: hidden;
    font-size: 1rem;
}

.article-read-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.6s;
}

.article-read-btn:hover::before {
    left: 100%;
}

.article-read-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(164, 22, 26, 0.4);
    color: var(--dhl-white) !important;
}

/* ===== NO CONTENT STATE ===== */
.article-no-content {
    text-align: center;
    padding: 120px 20px;
    color: var(--dhl-gray);
}

.no-content-animation {
    position: relative;
    margin-bottom: 40px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.research-icon {
    font-size: 5rem;
    color: var(--dhl-primary);
    animation: float 3s ease-in-out infinite;
}

.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.element {
    position: absolute;
    font-size: 1.5rem;
    color: var(--dhl-primary);
    animation: float 4s ease-in-out infinite;
}

.element-1 {
    top: 20%;
    left: 20%;
    animation-delay: 0s;
}

.element-2 {
    top: 60%;
    right: 20%;
    animation-delay: 1s;
}

.element-3 {
    bottom: 20%;
    left: 30%;
    animation-delay: 2s;
}

.article-no-content h3 {
    font-size: 2.5rem;
    color: var(--dhl-white);
    margin-bottom: 20px;
    font-weight: 800;
}

.article-no-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 25px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.cta-btn.primary {
    background: var(--dhl-gradient);
    color: var(--dhl-white);
}

.cta-btn.primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--dhl-shadow-hover);
    color: var(--dhl-white);
}

.cta-btn.secondary {
    border: 2px solid var(--dhl-primary);
    color: var(--dhl-primary);
    background: transparent;
}

.cta-btn.secondary:hover {
    background: var(--dhl-primary);
    color: var(--dhl-white);
    transform: translateY(-3px);
}

/* ===== ACHIEVEMENT SECTION ===== */
.achievement-section {
    padding: 120px 0;
    background: var(--dhl-dark);
    position: relative;
    z-index: 2;
}

.achievement-section .section-header {
    text-align: center;
    margin-bottom: 80px;
}

.achievement-section .section-header h2 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--dhl-white);
    margin-bottom: 20px;
}

.achievement-section .section-header p {
    font-size: 1.2rem;
    color: var(--dhl-light-gray);
    max-width: 600px;
    margin: 0 auto;
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.achievement-card {
    background: var(--dhl-charcoal);
    padding: 30px 25px;
    border-radius: 20px;
    text-align: center;
    border: 2px solid rgba(164, 22, 26, 0.1);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    height: auto;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.achievement-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--dhl-gradient);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.achievement-card:hover {
    transform: translateY(-10px);
    border-color: var(--dhl-primary);
    box-shadow: var(--dhl-shadow-hover);
}

.achievement-card:hover::before {
    transform: scaleX(1);
}

.achievement-icon {
    width: 60px;
    height: 60px;
    background: var(--dhl-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.5rem;
    color: var(--dhl-white);
}

.achievement-card .stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--dhl-primary);
    margin-bottom: 10px;
}

.achievement-card .stat-label {
    color: var(--dhl-white);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.achievement-card .stat-description {
    color: var(--dhl-light-gray);
    line-height: 1.5;
    font-size: 0.9rem;
}

/* ===== CTA SECTION ===== */
.cta-section {
    padding: 120px 0;
    background: var(--dhl-dark);
    position: relative;
    z-index: 2;
}

.cta-header-wrapper {
    text-align: center;
    margin-bottom: 80px;
}

.cta-header h2 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--dhl-white);
    margin-bottom: 20px;
}

.cta-header p {
    font-size: 1.2rem;
    color: var(--dhl-light-gray);
    max-width: 600px;
    margin: 0 auto;
}

.cta-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cta-options {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: nowrap;
    width: 100%;
    box-sizing: border-box;
}

.cta-option {
    background: #0D1117 !important;
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    border: 2px solid rgba(164, 22, 26, 0.2);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    flex: 1;
    min-width: 280px;
    max-width: 350px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.cta-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--dhl-gradient);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.cta-option:hover {
    transform: translateY(-5px);
    border-color: var(--dhl-primary);
    box-shadow: 0 20px 40px rgba(164, 22, 26, 0.3), 0 8px 25px rgba(0, 0, 0, 0.4);
    background: #050A0F !important;
}

.cta-option:hover::before {
    transform: scaleX(1);
}

.cta-icon {
    width: 70px;
    height: 70px;
    background: var(--dhl-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 1.8rem;
    color: var(--dhl-white);
}

.cta-icon i {
    color: var(--dhl-white) !important;
}

.cta-option h3 {
    color: var(--dhl-white);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    line-height: 1.2;
}

.cta-option p {
    color: var(--dhl-light-gray);
    line-height: 1.5;
    margin-bottom: 25px;
    font-size: 0.9rem;
    opacity: 0.9;
}

.cta-btn-primary,
.cta-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    min-width: 150px;
}

.cta-btn-primary {
    background: var(--dhl-gradient);
    color: var(--dhl-white);
}

.cta-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(164, 22, 26, 0.4);
    color: var(--dhl-white);
}

.cta-btn-secondary {
    border: 2px solid var(--dhl-primary);
    color: var(--dhl-primary);
    background: transparent;
}

.cta-btn-secondary:hover {
    background: var(--dhl-primary);
    color: var(--dhl-white);
    transform: translateY(-2px);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
        text-align: center;
    }
    
    .hero-description {
        font-size: 1.1rem;
        text-align: center;
    }
    
    .hero-visual {
        display: none; /* Hide floating elements on mobile */
    }
    
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .approach-header h2,
    .achievement-section .section-header h2,
    .cta-header h2 {
        font-size: 2rem;
    }
    
    .approach-grid,
    .achievements-grid {
        grid-template-columns: 1fr;
    }
    
    .article-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .article-card-content {
        padding: 30px;
    }
    
    .article-card-title {
        font-size: 1.5rem;
    }
    
    .article-card-meta {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }
    
    .article-stats-mini {
        gap: 15px;
    }
    
    /* Filter Section Responsive */
    .filter-section-title {
        font-size: 2.2rem;
        flex-direction: column;
        gap: 12px;
    }
    
    .filter-section-title i {
        font-size: 2rem;
    }
    
    .filter-section-description {
        font-size: 1rem;
    }
    
    .filter-container {
        padding: 30px 25px;
    }
    
    .filter-header {
        margin-bottom: 30px;
        padding-bottom: 20px;
    }
    
    .filter-label {
        font-size: 1.1rem;
        flex-direction: column;
        gap: 8px;
    }
    
    .filter-buttons {
        gap: 12px;
    }
    
    .filter-buttons-container {
        gap: 12px;
        padding: 8px 0 12px 0;
    }
    
    .filter-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
    
    .filter-btn {
        padding: 14px 20px;
        font-size: 0.9rem;
        min-width: auto;
    }
    
    .filter-count {
        padding: 4px 8px;
        font-size: 0.8rem;
        min-width: 20px;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-options {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .projects-hero-section,
    .our-approach-section,
    .article-page-section,
    .achievement-section,
    .cta-section {
        padding: 60px 0;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .approach-card {
        padding: 25px;
    }
    
    .article-card-content {
        padding: 25px;
    }
    
    /* Mobile Filter Styles */
    .filter-section-title {
        font-size: 1.8rem;
    }
    
    .filter-section-description {
        font-size: 0.95rem;
    }
    
    .filter-container {
        padding: 20px 15px;
    }
    
    .filter-buttons {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .filter-btn {
        min-height: 80px;
        padding: 12px 16px;
        font-size: 0.85rem;
    }
    
    .filter-btn i {
        font-size: 1.4rem;
    }
}

/* ===== PAGINATION STYLES ===== */
.article-pagination {
    margin: 60px 0 40px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.article-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
    gap: 8px;
}

.article-pagination .page-numbers li {
    list-style: none;
}

.article-pagination .page-numbers a,
.article-pagination .page-numbers span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 16px;
    border: 2px solid rgba(245, 243, 244, 0.1);
    border-radius: 12px;
    color: var(--dhl-white);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    background: rgba(245, 243, 244, 0.05);
    backdrop-filter: blur(10px);
}

.article-pagination .page-numbers a:hover {
    background: var(--dhl-primary);
    border-color: var(--dhl-primary);
    color: var(--dhl-white);
    transform: translateY(-2px);
    box-shadow: var(--dhl-shadow);
}

.article-pagination .page-numbers .current {
    background: var(--dhl-gradient);
    border-color: var(--dhl-primary);
    color: var(--dhl-white);
    cursor: default;
    box-shadow: var(--dhl-shadow);
}

.article-pagination .page-numbers .prev,
.article-pagination .page-numbers .next {
    min-width: auto;
    padding: 0 20px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.article-pagination .page-numbers .prev:hover,
.article-pagination .page-numbers .next:hover {
    background: var(--dhl-primary-bright);
    border-color: var(--dhl-primary-bright);
}

.article-pagination .page-numbers .dots {
    background: transparent;
    border: none;
    color: var(--dhl-gray);
    cursor: default;
    font-weight: bold;
}

.article-pagination .page-numbers .dots:hover {
    background: transparent;
    border: none;
    transform: none;
    box-shadow: none;
}

/* Responsive pagination */
@media (max-width: 768px) {
    .article-pagination .page-numbers a,
    .article-pagination .page-numbers span {
        min-width: 40px;
        height: 40px;
        font-size: 13px;
        padding: 0 12px;
    }
    
    .article-pagination .page-numbers .prev,
    .article-pagination .page-numbers .next {
        padding: 0 16px;
        font-size: 12px;
    }
    
    .article-pagination {
        margin: 40px 0 30px;
    }
}

@media (max-width: 480px) {
    .article-pagination .page-numbers {
        gap: 4px;
    }
    
    .article-pagination .page-numbers a,
    .article-pagination .page-numbers span {
        min-width: 36px;
        height: 36px;
        font-size: 12px;
        padding: 0 8px;
    }
    
    .article-pagination .page-numbers .prev,
    .article-pagination .page-numbers .next {
        display: none;
    }
}

/* ===== AJAX LOADING STYLES ===== */
.ajax-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(22, 26, 29, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    border-radius: 20px;
    animation: fadeIn 0.3s ease-in-out;
}

.loading-spinner {
    text-align: center;
    color: var(--dhl-white);
}

.spinner-ring {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(164, 22, 26, 0.3);
    border-radius: 50%;
    border-top-color: var(--dhl-primary);
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

.loading-text {
    font-size: 14px;
    font-weight: 600;
    color: var(--dhl-white);
    opacity: 0.8;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Smooth transitions for AJAX content */
.article-content {
    transition: all 0.3s ease-in-out;
}

.article-grid {
    animation: slideInUp 0.5s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== CATEGORY RESULTS INFO ===== */
.category-results-info {
    text-align: center;
    margin: 40px 0;
    padding: 25px 30px;
    background: rgba(22, 26, 29, 0.8);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    border: 2px solid rgba(164, 22, 26, 0.3);
    box-shadow: var(--dhl-shadow);
}

.category-results-info h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--dhl-white);
    margin-bottom: 10px;
}

.category-results-info .category-name {
    color: var(--dhl-primary);
    font-weight: 800;
}

.category-results-info p {
    color: var(--dhl-light-gray);
    font-size: 1rem;
    margin: 0;
}

.category-results-info .project-count {
    color: var(--dhl-primary-bright);
    font-weight: 700;
}

@media (max-width: 768px) {
    .category-results-info {
        padding: 20px 25px;
    }
    
    .category-results-info h3 {
        font-size: 1.2rem;
    }
    
    .category-results-info p {
        font-size: 0.9rem;
    }
}
