/* Modern Hero Section */
:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --accent-color: #20c997;
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

/* Global font family for all elements */
* {
    font-family: 'Nunito', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    font-family: 'Nunito', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
}

main {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Modern Navbar Styles */
.navbar-nav .nav-link {
    transition: all 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    transform: translateY(-1px);
}

.navbar-nav .nav-link.active {
    background: rgba(255, 255, 255, 0.2) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    transition: all 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.05);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.dropdown-menu {
    border-radius: 12px !important;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
    border: none !important;
}

.dropdown-item {
    transition: all 0.3s ease;
    border-radius: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dropdown-item:hover {
    background: rgba(102, 126, 234, 0.1) !important;
    transform: translateX(5px);
}

.dropdown-item.active {
    background: rgba(102, 126, 234, 0.2) !important;
    color: #495057;
    font-weight: 500;
}

/* Category dropdown specific styles */
.dropdown-toggle {
    border: 2px solid #dee2e6 !important;
    transition: all 0.3s ease;
}

.dropdown-toggle:hover {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.1);
}

.dropdown-toggle:focus {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* Background gradient classes */
.bg-gradient-primary {
    background: var(--gradient-primary) !important;
}

.bg-gradient-secondary {
    background: var(--gradient-secondary) !important;
}

/* Responsive Profile Image */
.profile-image {
    width: 200px;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-image:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
}

/* Mobile responsive adjustments */
@media (min-width: 576px) {
    .profile-image {
        width: 240px;
        height: 240px;
    }
}

@media (min-width: 992px) {
    .profile-image {
        width: 280px;
        height: 280px;
    }
}

/* Hero section responsive text alignment */
@media (max-width: 991.98px) {
    .hero-minimal .display-5 {
        font-size: 2.5rem;
    }
    
    .hero-minimal .lead {
        font-size: 1.1rem;
    }
    
    .hero-minimal .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
}

/* Article Cards Styling */
.article-card {
    transition: all 0.3s ease;
    border-radius: 16px !important;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 0 !important; /* Remove padding to eliminate gap */
}

.article-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15) !important;
}

/* Article Image Styling */
.article-card {
    overflow: hidden;
    padding: 0 !important; /* Remove any card padding */
}

.article-image-container {
    position: relative;
    overflow: hidden;
    border-radius: 16px 16px 0 0;
    margin: 0 !important; /* Remove any margin */
    padding: 0 !important; /* Remove any padding */
    display: block; /* Ensure block display */
}

.article-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block; /* Remove any inline spacing */
    margin: 0 !important; /* Remove any margin */
    padding: 0 !important; /* Remove any padding */
    border: none; /* Remove any border */
    border-radius: 0; /* Remove border radius from image itself */
}

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

/* Ensure card body has proper spacing */
.article-card .card-body {
    padding: 1.25rem !important;
    margin-top: 0 !important;
}

/* Category badge overlay on image */
.article-image-container .badge {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    font-weight: 500;
    font-size: 0.75rem;
    z-index: 2;
}

/* Article Content Image Styling - for images within article text */
.card-body img {
    max-width: 100% !important;
    height: auto !important;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin: 1rem 0;
    display: block;
}

/* Ensure images in article content are responsive */
.fs-6 img {
    max-width: 100% !important;
    height: auto !important;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin: 1rem auto;
    display: block;
}

/* Additional safety for any image in article content */
.container img:not(.article-image):not(.card-img-top) {
    max-width: 100% !important;
    height: auto !important;
    border-radius: 8px;
    /* margin: 1rem 0; */
}

/* Quill editor image styling */
.ql-editor img {
    max-width: 100% !important;
    height: auto !important;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin: 0.5rem 0;
    display: block;
}

/* Ensure all content images are responsive */
article img, .article-content img, [role="main"] img {
    max-width: 100% !important;
    height: auto !important;
    border-radius: 8px;
    margin: 1rem auto;
    display: block;
}

.article-title {
    transition: color 0.3s ease;
}

.article-card:hover .article-title {
    color: var(--bs-primary) !important;
}

/* Responsive image adjustments */
@media (max-width: 768px) {
    .article-image {
        height: 180px;
    }
}

@media (max-width: 576px) {
    .article-image {
        height: 160px;
    }
}

/* Hover lift utility class */
.hover-lift {
    transition: all 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12) !important;
}

/* Enhanced badges */
.badge {
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Empty state styling */
.empty-state-icon {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}

/* Responsive adjustments for articles */
@media (max-width: 768px) {
    .article-card {
        margin-bottom: 1rem;
    }
    
    .display-6 {
        font-size: 2rem;
    }
    
    .lead {
        font-size: 1.1rem;
    }
}

/* Modern Pagination Styling */
.pagination-lg .page-link {
    border: 2px solid transparent;
    transition: all 0.3s ease;
    font-weight: 500;
}

.pagination-lg .page-link:hover {
    background-color: rgba(102, 126, 234, 0.1);
    border-color: var(--bs-primary);
    transform: translateY(-2px);
}

.pagination-lg .page-item.active .page-link {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.pagination-lg .page-item.disabled .page-link {
    background-color: #f8f9fa;
    border-color: #dee2e6;
    color: #6c757d;
    opacity: 0.5;
}

.pagination-lg .page-item.disabled .page-link:hover {
    transform: none;
    background-color: #f8f9fa;
    border-color: #dee2e6;
}

/* Category Filter Pills - Modern Floating Design */
.category-filters {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 1rem 1.5rem;
    margin: 1.5rem auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    max-width: fit-content;
}

.btn.rounded-pill {
    transition: all 0.3s ease;
    font-weight: 500;
    border: 2px solid transparent;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(5px);
    margin: 0.25rem;
}

.btn-sm.rounded-pill {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    border-radius: 25px !important;
}

.btn.rounded-pill:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

.btn-outline-primary.rounded-pill {
    color: #667eea;
    border-color: rgba(102, 126, 234, 0.3);
    background: rgba(255, 255, 255, 0.8);
}

.btn-outline-primary.rounded-pill:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: transparent;
    color: white;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.btn-primary.rounded-pill {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-primary.rounded-pill:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

/* Articles page responsive */
@media (max-width: 768px) {
    .h2 {
        font-size: 1.75rem;
    }
    
    .btn-sm.rounded-pill {
        font-size: 0.8rem;
        padding: 0.25rem 0.6rem;
    }
    
    .badge {
        font-size: 0.65rem !important;
    }
}

/* Timeline Styles */
.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0.75rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e9ecef;
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
    padding-left: 2rem;
}

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

.timeline-marker {
    position: absolute;
    left: -2rem;
    top: 0.5rem;
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 0 0 3px var(--bs-gray-300);
}

.timeline-content {
    background: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-left: 3px solid var(--bs-primary);
}

/* Simple Timeline for About Page */
.timeline-simple-item {
    padding-left: 1rem;
    border-left: 2px solid #f8f9fa;
    position: relative;
}

.timeline-simple-item::before {
    content: '';
    position: absolute;
    left: -5px;
    top: 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #f5576c;
}

.hero-section {
    background: var(--gradient-primary);
    color: white;
    padding: 40px 0;
    position: relative;
    overflow: hidden;
}

.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 1000 100" fill="white" opacity="0.1"><polygon points="1000,100 1000,0 0,100"/></svg>');
    background-size: cover;
}

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

.feature-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    border-radius: 15px;
    overflow: hidden;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 24px;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

.btn-primary-gradient {
    background: linear-gradient(135deg, #f5576c 0%, #ff6b7a 50%, #f5576c 100%);
    border: none;
    border-radius: 30px;
    padding: 15px 35px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    color: white;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(245, 87, 108, 0.3);
    text-transform: capitalize;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-primary-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s ease;
}

.btn-primary-gradient:hover::before {
    left: 100%;
}

.btn-primary-gradient:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 30px rgba(245, 87, 108, 0.5);
    color: white;
    background: linear-gradient(135deg, #e74c3c 0%, #f5576c 50%, #e74c3c 100%);
    filter: brightness(1.1) saturate(1.2);
}

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.experience-summary {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.summary-item {
    font-size: 0.9rem;
}

.navbar {
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.95) !important;
}

.section-padding {
    padding: 80px 0;
}

.article-card {
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.article-card:hover {
    transform: translateY(-5px);
}

.hero-modern {
    position: relative;
    min-height: 80vh;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 60px 0;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

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

.text-gradient {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== MINIMAL HERO SECTION ===== */
.hero-minimal {
    background: white;
    min-height: 60vh;
    display: flex;
    align-items: center;
}

/* Particle background canvas */
#particle-background {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 40%, #ffffff 0%, #f5f6f8 60%, #eef0f3 100%);
    z-index: 0;
}

.hero-minimal .container { z-index: 2; }

canvas.particle-canvas { position:absolute; inset:0; width:100%; height:100%; z-index:1; pointer-events:none; }

.profile-intro {
    margin-bottom: 3rem;
}

.profile-content {
    margin-bottom: 1rem;
}

.intro-text-content {
    max-width: 600px;
    margin: 0 auto;
}

.intro-text-content .name-title {
    margin-bottom: 0.75rem;
}

.intro-text-content .role-subtitle {
    margin: 0;
}

.profile-img {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    border: 3px solid #f5576c;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 8px 24px rgba(245, 87, 108, 0.2);
    margin-bottom: 1rem;
}

.name-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.accent-text {
    color: #f5576c;
}

.role-subtitle {
    color: #6c757d;
    font-size: 1.1rem;
    font-weight: 500;
    margin: 0;
}

.intro-text {
    color: #495057;
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto 2rem auto;
}

/* Quick Actions */
.quick-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.btn-action {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.btn-action.primary {
    background: #f5576c;
    color: white;
}

.btn-action.primary:hover {
    background: #e74c3c;
    color: white;
    transform: translateY(-2px);
}

.btn-action.secondary {
    background: transparent;
    color: #f5576c;
    border: 1px solid #f5576c;
}

.btn-action.secondary:hover {
    background: #f5576c;
    color: white;
}

.btn-action.tertiary {
    background: #6c757d;
    color: white;
}

.btn-action.tertiary:hover {
    background: #5a6268;
    color: white;
    transform: translateY(-2px);
}

/* Essential Links */
.essential-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.link-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: #f8f9fa;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.link-icon:hover {
    background: #f5576c;
    color: white;
    transform: translateY(-2px);
}

.location-text {
    color: #6c757d;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.location-text i {
    color: #f5576c;
}

/* Tech Stack Section */
.tech-section {
    border-top: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
}

.tech-label {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.tech-stack-minimal {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.tech-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #495057;
    font-weight: 500;
    font-size: 0.9rem;
}

.tech-icon {
    width: 18px;
    height: 18px;
}

.tech-icon-text {
    color: #f5576c;
    font-size: 1rem;
}

/* Responsive Design for Minimal Hero */
@media (max-width: 768px) {
    .hero-minimal {
        min-height: 50vh;
        padding: 3rem 0;
    }
    
    .profile-content {
        gap: 2rem !important;
    }
    
    .intro-text-content {
        text-align: center !important;
    }
    
    .profile-img {
        width: 120px;
        height: 120px;
        margin-bottom: 0.5rem;
    }
    
    .name-title {
        font-size: 2rem;
    }
    
    .intro-text {
        max-width: 100%;
        font-size: 1rem;
    }
    
    .quick-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-action {
        width: 100%;
        max-width: 240px;
        text-align: center;
    }
    
    .essential-links {
        flex-direction: column;
        gap: 1rem;
    }
    
    .tech-stack-minimal {
        gap: 1rem;
    }
    
    .tech-item {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .profile-img {
        width: 100px;
        height: 100px;
        margin-bottom: 0.5rem;
    }
    
    .name-title {
        font-size: 1.8rem;
    }
    
    .intro-text {
        font-size: 0.95rem;
    }
    
    .tech-stack-minimal {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }
}

/* Profile Card */
.hero-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-card {
    position: relative;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease;
}

.profile-card:hover {
    transform: translateY(-10px);
}

.card-glow {
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #f093fb, #f5576c, #667eea, #764ba2);
    border-radius: 20px;
    z-index: -1;
    opacity: 0.5;
    filter: blur(10px);
}

.profile-image img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.3);
}

.profile-placeholder {
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0 auto;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 1rem;
}

.tech-badge {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: white;
    padding: 10px 16px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.tech-badge:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.hero-stats {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: bold;
    color: #20c997;
    line-height: 1;
}

.stat-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 0.25rem;
}

/* --- Navigation Dropdown Fix (ensure it fully covers hero/stat pills) --- */
.navbar { position: relative; z-index: 500; }

.navbar .dropdown-item {
    display: flex;
    align-items: center;
    gap: .6rem;
    font-size: .9rem;
    font-weight: 500;
    color: #e9ecef;
    padding: .55rem 1rem;
    position: relative;
    border-radius: 8px;
    transition: background .18s ease, color .18s ease;
    z-index: 1;
}

.navbar .dropdown-item i { opacity: .85; font-size: 1rem; }

.navbar .dropdown-item:hover,
.navbar .dropdown-item:focus {
    background: linear-gradient(90deg,#5b3cc4,#7d4ce0);
    color: #fff;
}

.navbar .dropdown-divider { border-color: rgba(255,255,255,0.08); margin: .4rem 0 .35rem; }

/* Put logout (last item) in subtle bar */
.navbar .dropdown-item:last-child {
    margin-top: .25rem;
    background: #2a2c31;
    border-top: 1px solid rgba(255,255,255,0.07);
    border-radius: 0;
}
.navbar .dropdown-item:last-child:hover { background: #32353b; }

/* Lower z-index for hero/minimal sections so dropdown sits above */
.hero-minimal, .hero-modern, .hero-section { position: relative; z-index: 0; }
.hero-stats, .article-count-badge { z-index: 0; }

/* Remove any accidental pointer events interference */
.hero-stats, .article-count-badge { pointer-events: none; }

/* About Preview Section */
.bg-gradient-light {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

/* Profile card improvements */
.profile-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.profile-image img {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.85rem;
}

.contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.85rem;
}

.personal-highlights {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
}

.highlight-badge {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 6px 12px;
    font-size: 0.8rem;
    color: white;
    display: flex;
    align-items: center;
    gap: 6px;
    backdrop-filter: blur(5px);
}

.slogan {
    text-align: center;
    font-style: italic;
}

.certifications {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
}

.cert-link {
    color: #20c997;
    text-decoration: none;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.3s ease;
}

.cert-link:hover {
    color: #17a085;
    text-decoration: underline;
}

/* Hero title section with profile image */
.hero-title-section {
    align-items: flex-start;
}

.hero-profile-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
}

.hero-subtitle {
    font-size: 1.2rem;
    font-weight: 600;
}

.hero-experience {
    font-weight: 500;
}

.personal-motto {
    margin: 2rem 0;
}

.motto-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 1.25rem;
    border-left: 4px solid #20c997;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.motto-icon {
    font-size: 1.5rem;
    color: #20c997;
    flex-shrink: 0;
}

.motto-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    line-height: 1.4;
}

/* Contact card styles */
.contact-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    height: fit-content;
    max-width: 350px;
}

.contact-header h3 {
    font-size: 1.3rem;
    font-weight: 700;
}

.contact-detail {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    transition: background 0.3s ease;
}

.contact-detail:hover {
    background: rgba(255, 255, 255, 0.1);
}

.contact-icon {
    font-size: 1.2rem;
    color: #20c997;
    flex-shrink: 0;
}

.contact-text {
    display: flex;
    flex-direction: column;
}

.contact-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
}

.contact-value {
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
}

.contact-link {
    color: #20c997;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: #17a085;
}

.certifications-section h5,
.social-section h5 {
    font-size: 1.1rem;
    font-weight: 600;
}

.cert-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.cert-link-clean {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.cert-link-clean:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    color: white;
}

.cert-link-clean i:first-child {
    color: #0078d4;
    font-size: 1.1rem;
}

.cert-link-clean i:last-child {
    margin-left: auto;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
}

.social-links-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.social-link-modern {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
}

.social-link-modern:hover {
    transform: translateY(-2px);
    color: white;
}

.social-link-modern.github:hover {
    background: rgba(33, 37, 41, 0.8);
    box-shadow: 0 4px 15px rgba(33, 37, 41, 0.3);
}

.social-link-modern.linkedin:hover {
    background: rgba(0, 119, 181, 0.8);
    box-shadow: 0 4px 15px rgba(0, 119, 181, 0.3);
}

.social-link-modern.email:hover {
    background: rgba(220, 53, 69, 0.8);
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

.social-link-modern.instagram:hover {
    background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%);
    box-shadow: 0 4px 15px rgba(188, 24, 136, 0.3);
}

/* Mobile contact styles */
.mobile-contact {
    display: none;
}

.mobile-contact-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.mobile-social-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.mobile-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.mobile-social-link:hover {
    transform: translateY(-3px);
    color: white;
}

.mobile-social-link.github:hover {
    background: rgba(33, 37, 41, 0.8);
}

.mobile-social-link.linkedin:hover {
    background: rgba(0, 119, 181, 0.8);
}

.mobile-social-link.email:hover {
    background: rgba(220, 53, 69, 0.8);
}

.mobile-social-link.instagram:hover {
    background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%);
}

.mobile-contact-info {
    text-align: center;
}

.mobile-certs {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
}

.mobile-cert {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.mobile-cert:hover {
    transform: translateY(-2px);
    color: white;
}

.cert-badge {
    display: inline-flex;
    align-items: center;
    padding: 12px 20px;
    margin: 8px 0;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    position: relative;
    overflow: hidden;
}

.cert-badge::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.5s;
}

.cert-badge:hover::before {
    left: 100%;
}

.azure-cert {
    background: linear-gradient(135deg, #0078d4 0%, #00bcf2 100%);
    box-shadow: 0 4px 15px rgba(0, 120, 212, 0.3);
}

.azure-cert:hover {
    background: linear-gradient(135deg, #106ebe 0%, #00a1d9 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 120, 212, 0.4);
    color: white;
}

.linux-cert {
    background: linear-gradient(135deg, #f7941e 0%, #fbb040 100%);
    box-shadow: 0 4px 15px rgba(247, 148, 30, 0.3);
}

.linux-cert:hover {
    background: linear-gradient(135deg, #e8851b 0%, #f2a538 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(247, 148, 30, 0.4);
    color: white;
}

/* Mobile profile design */
.mobile-profile {
    display: none;
}

.mobile-hero-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.mobile-profile-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.mobile-profile-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.mobile-info h3 {
    font-size: 1.3rem;
    font-weight: 700;
}

.mobile-badges {
    display: flex;
    gap: 0.5rem;
}

.mobile-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
}

.mobile-slogan {
    text-align: center;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border-left: 3px solid #20c997;
}

.mobile-slogan em {
    font-size: 0.85rem;
    line-height: 1.4;
}

.mobile-certs {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
}

.mobile-cert-link {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(240, 147, 251, 0.3);
}

.mobile-cert-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(240, 147, 251, 0.4);
    color: white;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .hero-modern {
        padding: 60px 0;
        min-height: auto;
    }
    
    .hero-modern .row {
        min-height: auto;
    }
    
    .display-2 {
        font-size: 2.5rem;
    }
    
    .lead {
        font-size: 1.1rem;
    }
    
    .hero-stats {
        gap: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .stat-number {
        font-size: 1.4rem;
    }
    
    .stat-label {
        font-size: 0.75rem;
    }
    
    .profile-card {
        margin-top: 2rem;
        padding: 1.5rem;
    }
    
    .profile-image img {
        width: 150px;
        height: 150px;
    }
    
    .hero-buttons {
        text-align: center;
        margin-top: 1.5rem;
    }
    
    .btn-primary-gradient {
        font-size: 1rem;
        padding: 12px 25px;
    }
    
    .personal-highlights {
        gap: 6px;
    }
    
    .highlight-badge {
        font-size: 0.75rem;
        padding: 4px 10px;
    }
    
    .tech-stack {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }
    
    .tech-badge {
        font-size: 0.8rem;
        padding: 8px 12px;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 250px;
    }
    
    .experience-highlights {
        gap: 1rem;
    }
    
    .highlight-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .contact-item {
        font-size: 0.8rem;
    }
    
    .certifications {
        gap: 6px;
    }
    
    .cert-badge {
        font-size: 0.8rem;
        padding: 10px 16px;
        margin: 6px 0;
    }
    
    .cert-badge span {
        display: none;
    }
    
    .cert-badge .bi-microsoft::after {
        content: " AZ-204";
        font-family: 'Nunito', 'Segoe UI', sans-serif;
        font-style: normal;
    }
    
    .cert-badge .bi-laptop::after {
        content: " LPIC-1";
        font-family: 'Nunito', 'Segoe UI', sans-serif;
        font-style: normal;
    }
    
    /* Show mobile contact design */
    .mobile-contact {
        display: block !important;
        margin-top: 0;
    }
    
    /* Hide desktop contact on mobile */
    .contact-card {
        display: none !important;
    }
    
    /* Adjust hero title for mobile */
    .hero-title-section {
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin-bottom: 1.5rem;
    }
    
    .hero-profile-img {
        width: 70px;
        height: 70px;
        margin-bottom: 1rem;
        margin-right: 0 !important;
    }
    
    .display-2 {
        font-size: 2rem;
        margin-bottom: 0.5rem !important;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .personal-motto {
        margin: 1.5rem 0;
    }
    
    .motto-card {
        padding: 1rem;
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    
    .motto-text {
        font-size: 0.9rem;
    }
    }
    
    /* Improve mobile layout spacing */
    .col-lg-6:first-child {
        margin-bottom: 1.5rem;
    }
    
    /* Adjust hero section for mobile */
    .hero-modern {
        padding: 40px 0 60px 0;
    }
    
    .display-2 {
        font-size: 2.2rem;
        margin-bottom: 1rem !important;
    }
    
    .lead {
        font-size: 1rem;
        margin-bottom: 1.5rem !important;
    }
    
    .hero-buttons {
        margin-bottom: 2rem;
    }
    
    .hero-buttons .btn {
        max-width: 220px;
        padding: 12px 20px;
    }


.experience-highlights {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.highlight-item:hover {
    transform: translateX(10px);
}

.highlight-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

/* Skills Visualization */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.skill-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.skill-card:hover {
    transform: translateY(-5px);
}

.skill-card i {
    font-size: 2.5rem;
    color: #667eea;
    margin-bottom: 1rem;
}

.skill-card span {
    font-weight: 600;
    color: #333;
}

/* Articles Grid */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.article-card-modern {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-card-modern:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.article-image {
    height: 200px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.article-content {
    padding: 1.5rem;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #666;
}

.article-title a {
    color: #333;
    text-decoration: none;
    font-weight: 600;
    line-height: 1.3;
}

.article-title a:hover {
    color: #667eea;
}

.article-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    background: #f8f9fa;
    color: #666;
    padding: 0.25rem 0.5rem;
    border-radius: 10px;
    font-size: 0.8rem;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-icon i {
    font-size: 4rem;
    color: #ccc;
    margin-bottom: 1rem;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 4rem 0;
}

.social-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.social-link {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: white;
    color: #667eea;
    transform: translateY(-3px);
}

/* Button Styles */
.btn-primary-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-modern {
        min-height: auto;
        padding: 2rem 0;
    }
    
    .display-2 {
        font-size: 2.5rem;
    }
    
    .profile-image img,
    .profile-placeholder {
        width: 150px;
        height: 150px;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .social-links {
        justify-content: center;
        margin-top: 2rem;
    }
}

/* Featured Article Section Styles */
.featured-article-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

.featured-article-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, rgba(245, 87, 108, 0.1), rgba(240, 147, 251, 0.1));
    border-radius: 50%;
    transform: translate(50%, -50%);
}

.section-badge {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #f5576c, #f093fb);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(245, 87, 108, 0.3);
}

.featured-article-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1.2;
}

.featured-article-excerpt {
    font-size: 1.1rem;
    color: #6c757d;
    line-height: 1.6;
}

.article-meta-info {
    display: flex;
    gap: 2rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #6c757d;
    font-size: 0.9rem;
}

.meta-item i {
    color: #f5576c;
}

.featured-article-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.featured-tag {
    background: rgba(245, 87, 108, 0.1);
    color: #f5576c;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.featured-read-btn {
    border: 2px solid #f5576c;
    color: #f5576c;
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.featured-read-btn:hover {
    background: #f5576c;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245, 87, 108, 0.3);
}

.article-visual-modern {
    position: relative;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
}

.float-element {
    position: absolute;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    opacity: .05;
}

.element-1 {
    background: linear-gradient(135deg, #f5576c, #ff6b7a);
    top: 20%;
    left: 10%;
}

.element-2 {
    background: linear-gradient(135deg, #667eea, #764ba2);
    top: 60%;
    right: 15%;
}

.element-3 {
    background: linear-gradient(135deg, #f093fb, #f5576c);
    bottom: 20%;
    left: 20%;
}

.visual-center {
    position: relative;
    z-index: 10;
}

.article-count-badge {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    min-width: 120px;
}

.count-number {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, #f5576c, #f093fb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.count-label {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: #6c757d;
    margin-top: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Articles Horizontal Section */
.articles-horizontal-section {
    position: relative;
}

.section-header .section-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    color: #6c757d;
    font-size: 1.1rem;
    margin: 0;
}

.articles-slider-container {
    position: relative;
}

.articles-slider {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-bottom: 1rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.articles-slider::-webkit-scrollbar {
    display: none;
}

.article-slide {
    flex: 0 0 320px;
}

.article-card-modern {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.article-card-modern:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.article-thumbnail {
    position: relative;
    height: 200px;
    overflow: hidden;
}

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

.article-card-modern:hover .thumbnail-image {
    transform: scale(1.05);
}

.article-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(245, 87, 108, 0.8), rgba(240, 147, 251, 0.8));
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-end;
    padding: 1rem;
}

.article-card-modern:hover .article-overlay {
    opacity: 1;
}

.article-date-badge {
    background: rgba(255, 255, 255, 0.9);
    color: #2c3e50;
    padding: 8px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.article-content {
    padding: 1.5rem;
}

.article-category {
    margin-bottom: 0.75rem;
}

.article-category span {
    background: rgba(245, 87, 108, 0.1);
    color: #f5576c;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.article-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.article-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-title a:hover {
    color: #f5576c;
}

.article-excerpt {
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.read-time {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: #adb5bd;
    font-size: 0.8rem;
}

.read-more {
    color: #f5576c;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    transition: all 0.3s ease;
}

.read-more:hover {
    color: #e74c3c;
    gap: 0.5rem;
}

.slider-navigation {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 10;
}

.nav-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: white;
    border: 2px solid #f5576c;
    color: #f5576c;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: all;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.nav-btn:hover {
    background: #f5576c;
    color: white;
    transform: scale(1.1);
}

.prev-btn {
    transform: translateX(-25px);
}

.next-btn {
    transform: translateX(25px);
}

.empty-articles-state {
    padding: 4rem 0;
}

.empty-icon {
    font-size: 4rem;
    color: #dee2e6;
    margin-bottom: 2rem;
}

/* Mobile-First Article Responsive Design */
@media (max-width: 768px) {
    .section-header .section-title {
        font-size: 1.8rem;
    }

    .article-slide {
        flex: 0 0 280px;
    }

    .articles-slider {
        gap: 1rem;
        padding: 0 1rem;
    }

    .article-card-modern {
        border-radius: 15px;
    }

    .article-thumbnail {
        height: 160px;
    }

    .article-content {
        padding: 1rem;
    }

    .nav-btn {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }

    .prev-btn {
        transform: translateX(-10px);
    }

    .next-btn {
        transform: translateX(10px);
    }

    .slider-navigation {
        display: none; /* Hide navigation buttons on mobile, rely on touch scroll */
    }
}

@media (max-width: 480px) {
    .article-slide {
        flex: 0 0 260px;
    }

    .section-header .section-title {
        font-size: 1.6rem;
    }

    .article-content {
        padding: 0.75rem;
    }

    .article-thumbnail {
        height: 140px;
    }
}

/* Touch-friendly mobile scrolling */
@media (hover: none) and (pointer: coarse) {
    .articles-slider {
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
    }

    .article-slide {
        scroll-snap-align: start;
    }
}

/* ===== COMPACT ARTICLES PAGE STYLES ===== */

/* Compact Articles Header */
.articles-header-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    min-height: auto;
}

.articles-title {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff 0%, #f5576c 50%, #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.articles-subtitle {
    opacity: 0.9;
    font-size: 1rem;
}

.quick-stats {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

.stat-chip {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 0.75rem 1rem;
    border-radius: 15px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #f5576c;
}

.stat-label {
    display: block;
    font-size: 0.8rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Filters Section */
.filters-section {
    border-bottom: 1px solid #e9ecef;
}

.search-container {
    max-width: 600px;
    margin: 0 auto;
}

.search-form-compact {
    width: 100%;
}

.search-input-wrapper {
    display: flex;
    align-items: center;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 25px;
    padding: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.search-input-wrapper:focus-within {
    border-color: #f5576c;
    box-shadow: 0 4px 20px rgba(245, 87, 108, 0.15);
}

.search-icon {
    padding: 0 0.75rem;
    color: #6c757d;
}

.search-input-compact {
    flex: 1;
    border: none;
    background: transparent;
    padding: 0.5rem 0;
    outline: none;
    font-size: 0.95rem;
}

.search-btn-compact {
    background: #f5576c;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.search-btn-compact:hover {
    background: #e74c3c;
    transform: scale(1.05);
}

.clear-search-btn {
    background: #6c757d;
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 0.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.8rem;
}

.clear-search-btn:hover {
    background: #5a6268;
    color: white;
}

/* Filter Titles */
.filter-title {
    color: #495057;
    font-weight: 600;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-title i {
    color: #f5576c;
}

/* Filter Pills */
.filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.filter-pill {
    background: white;
    color: #6c757d;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-pill:hover {
    background: #f5576c;
    color: white;
    border-color: #f5576c;
    transform: translateY(-2px);
    text-decoration: none;
}

.filter-pill.active {
    background: #f5576c;
    color: white;
    border-color: #f5576c;
}

.tag-pill {
    background: rgba(245, 87, 108, 0.1);
    color: #f5576c;
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid rgba(245, 87, 108, 0.2);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.tag-pill:hover {
    background: #f5576c;
    color: white;
    border-color: #f5576c;
    transform: translateY(-2px);
    text-decoration: none;
}

.tag-pill.active {
    background: #f5576c;
    color: white;
    border-color: #f5576c;
}

.pill-count {
    background: rgba(255, 255, 255, 0.8);
    color: #495057;
    padding: 0.1rem 0.4rem;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 600;
    min-width: 20px;
    text-align: center;
}

.filter-pill.active .pill-count,
.tag-pill.active .pill-count {
    background: rgba(255, 255, 255, 0.9);
    color: #f5576c;
}

/* Active Filters */
.active-filters {
    padding: 1rem;
    background: rgba(245, 87, 108, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(245, 87, 108, 0.1);
}

.filter-label {
    color: #6c757d;
    font-size: 0.9rem;
    font-weight: 600;
}

.active-filter-chip {
    background: #f5576c;
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.remove-filter {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    margin-left: 0.2rem;
    font-size: 0.7rem;
    transition: color 0.3s ease;
}

.remove-filter:hover {
    color: white;
}

.results-summary {
    color: #6c757d;
    font-size: 0.85rem;
    font-style: italic;
}

/* Articles Grid - Keep existing styles but remove old hero styles */
.articles-grid-section {
    background: white;
    padding-top: 2rem;
}

/* Responsive Updates */
@media (max-width: 768px) {
    .articles-title {
        font-size: 2rem;
    }
    
    .quick-stats {
        justify-content: center;
        margin-top: 1rem;
    }
    
    .search-input-wrapper {
        padding: 0.75rem;
    }
    
    .search-btn-compact {
        padding: 0.75rem 1.25rem;
    }
    
    .filter-pills {
        justify-content: center;
    }
    
    .stat-chip {
        flex: 1;
        max-width: 120px;
    }
}

@media (max-width: 480px) {
    .articles-header-section {
        text-align: center;
    }
    
    .quick-stats {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .filter-title {
        justify-content: center;
    }
}

/* Articles Grid Section */
.articles-grid-section {
    background: white;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.article-card-enhanced {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
}

.article-card-enhanced:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.article-thumbnail-container {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.article-thumbnail-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.article-card-enhanced:hover .article-thumbnail-image {
    transform: scale(1.08);
}

.article-category-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(245, 87, 108, 0.9);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
}

.article-date-overlay {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.95);
    color: #2c3e50;
    padding: 0.5rem 1rem;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.article-hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(245, 87, 108, 0.8), rgba(240, 147, 251, 0.8));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.article-card-enhanced:hover .article-hover-overlay {
    opacity: 1;
}

.article-quick-read {
    background: white;
    color: #f5576c;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
    transform: scale(0.8);
}

.article-card-enhanced:hover .article-quick-read {
    transform: scale(1);
}

.article-content-enhanced {
    padding: 2rem;
}

.article-title-enhanced {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.article-title-enhanced a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-title-enhanced a:hover {
    color: #f5576c;
}

.article-excerpt-enhanced {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.article-tag-modern {
    background: rgba(245, 87, 108, 0.1);
    color: #f5576c;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.article-tag-modern:hover {
    background: #f5576c;
    color: white;
    transform: translateY(-2px);
}

.more-tags {
    color: #adb5bd;
    font-size: 0.8rem;
    padding: 0.4rem 0;
}

/* Article Category Badge */
.article-category-info {
    margin-bottom: 1rem;
}

.category-badge {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.category-badge:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.category-badge i {
    font-size: 0.75rem;
}

.article-footer-enhanced {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid #f8f9fa;
}

.article-meta {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.article-date-text {
    color: #6c757d;
    font-size: 0.85rem;
}

.reading-time {
    color: #adb5bd;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.read-more-enhanced {
    background: #f5576c;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.read-more-enhanced:hover {
    background: #e74c3c;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(245, 87, 108, 0.3);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    max-width: 500px;
    margin: 0 auto;
}

.empty-icon {
    font-size: 4rem;
    color: #dee2e6;
    margin-bottom: 2rem;
}

.empty-title {
    color: #6c757d;
    margin-bottom: 1rem;
    font-size: 2rem;
}

.empty-description {
    color: #adb5bd;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

/* Responsive Design for Articles Page */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .stats-row {
        flex-direction: column;
        gap: 1rem;
    }
    
    .stat-divider {
        display: none;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .search-card {
        padding: 1.5rem;
        margin: 0 1rem;
    }
    
    .search-input-group {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
        border-radius: 20px;
    }
    
    .search-btn {
        width: 100%;
        border-radius: 15px;
    }
    
    .article-content-enhanced {
        padding: 1.5rem;
    }
    
    .article-thumbnail-container {
        height: 200px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .article-card-enhanced {
        border-radius: 15px;
    }
    
    .article-content-enhanced {
        padding: 1rem;
    }
    
    .search-card {
        margin: 0 0.5rem;
        padding: 1rem;
    }
}

/* Mobile Responsiveness for Articles */
@media (max-width: 768px) {
    .featured-article-title {
        font-size: 1.8rem;
    }
    
    .article-meta-info {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .article-visual-modern {
        transform: none;
        margin-top: 2rem;
        height: 200px;
    }
    
    .float-element {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
    
    .article-count-badge {
        padding: 1.5rem;
        min-width: 100px;
    }
    
    .count-number {
        font-size: 2.5rem;
    }
    
    .cta-content {
        padding: 2rem 0;
    }
    
    .cta-title {
        font-size: 1.6rem;
    }
}

/* Unified Dropdown Styling Override (final wins) */
.navbar .dropdown-menu,
.dropdown-menu { /* ensure any generic usage gets unified look */
        background: #1f2023 !important;
        border: 1px solid rgba(255,255,255,0.08) !important;
        border-radius: 14px !important;
        padding: .6rem 0 .5rem !important;
        margin-top: 10px !important;
        min-width: 230px;
        box-shadow: 0 18px 48px -10px rgba(0,0,0,.45), 0 6px 18px rgba(0,0,0,.30) !important;
        position: absolute;
        top: 100%;
        right: 0;
        left: auto;
        z-index: 4000 !important; /* ensure above hero/cards */
        backdrop-filter: none !important; /* remove translucency causing bleed */
}

.nav-item.dropdown .nav-link { position: relative; }
.nav-item.dropdown .nav-link::after { transition: transform .2s ease; }
.nav-item.dropdown.show .nav-link::after { transform: rotate(180deg); }

.dropdown-item {
        padding: .55rem 1rem !important;
        font-size: .9rem !important;
        font-weight: 500;
        color: #e9ecef !important;
        background: none !important;
        border: none;
        display: flex;
        align-items: center;
        gap: .65rem;
        border-radius: 8px;
        position: relative;
        z-index: 1;
        transition: background .18s ease, color .18s ease, transform .18s ease;
}
.dropdown-item i { opacity: .85; width: 1rem; font-size: 1rem; }
.dropdown-item:hover, .dropdown-item:focus {
        background: linear-gradient(90deg,#5b3cc4,#7d4ce0) !important;
        color: #fff !important;
        transform: translateX(2px);
}
.dropdown-divider { margin: .45rem 0 .4rem; border-top: 1px solid rgba(255,255,255,.07) !important; }
.dropdown-item:last-child { margin-top:.35rem; background:#2a2c31; border-top:1px solid rgba(255,255,255,.07); border-radius:0; }
.dropdown-item:last-child:hover { background:#32353b; }

@media (prefers-color-scheme: light) {
    .navbar .dropdown-menu, .dropdown-menu { background:#1f2023 !important; }
}

@media (max-width: 576px) {
    .navbar .dropdown-menu, .dropdown-menu { min-width: 88vw; right: 50%; transform: translateX(50%); }
}

/* Card Hover Effects */
.hover-lift {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1) !important;
}

/* Sticky Footer */
.min-vh-100 {
    min-height: 100vh;
}

/* About Page Enhancements */
.prose p {
    line-height: 1.7;
}

.timeline .bg-primary {
    background-color: var(--bs-primary) !important;
}

.timeline .bg-secondary {
    background-color: var(--bs-secondary) !important;
}

.timeline .bg-info {
    background-color: var(--bs-info) !important;
}

/* =================================
   ARTICLE DETAIL PAGE - MEDIUM STYLE
   ================================= */

/* Main Article Page Layout */
.article-page {
    padding: 2rem 0 4rem;
    background-color: #fefefe;
    min-height: 100vh;
}

/* Minimal Breadcrumb */
.article-breadcrumb {
    font-size: 0.9rem;
    color: #6c757d;
    padding: 1rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.breadcrumb-link {
    color: #6f42c1;
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb-link:hover {
    color: #5a359a;
    text-decoration: underline;
}

.breadcrumb-separator {
    margin: 0 0.75rem;
    color: #adb5bd;
}

.breadcrumb-current {
    color: #495057;
    font-weight: 500;
}

/* Article Header */
.article-header {
    text-align: center;
    margin: 0 auto;
}

.article-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    color: #212529;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.article-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    color: #6c757d;
    font-size: 0.95rem;
}

.article-date {
    font-weight: 500;
}

.article-category a {
    color: #6f42c1;
    text-decoration: none;
    font-weight: 500;
    padding: 0.25rem 0.75rem;
    background-color: #f8f9fa;
    border-radius: 20px;
    border: 1px solid #e9ecef;
    transition: all 0.2s ease;
}

.article-category a:hover {
    background-color: #6f42c1;
    color: white;
    border-color: #6f42c1;
}

/* Article Content */
.article-content {
    margin: 0 auto 3rem;
    font-size: 1.1rem;
    line-height: 1.7;
    color: #333;
}

.article-content p {
    margin-bottom: 1.5rem;
}

.article-content h1, .article-content h2, .article-content h3, 
.article-content h4, .article-content h5, .article-content h6 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
    line-height: 1.3;
    color: #212529;
}

.article-content h1 { font-size: 2rem; }
.article-content h2 { font-size: 1.75rem; }
.article-content h3 { font-size: 1.5rem; }
.article-content h4 { font-size: 1.25rem; }

.article-content ul, .article-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.article-content li {
    margin-bottom: 0.5rem;
}

.article-content blockquote {
    margin: 2rem 0;
    padding: 1.5rem 2rem;
    background-color: #f8f9fa;
    border-left: 4px solid #6f42c1;
    font-style: italic;
    color: #495057;
}

.article-content code {
    background-color: #f8f9fa;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.9em;
    color: #e83e8c;
}

.article-content pre {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1.5rem 0;
}

/* Article Images */
.article-content img {
    max-width: 80%;
    height: auto;
    display: block;
    margin: 2rem auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Share Section */
.article-share {
    max-width: 750px;
    margin: 0 auto 3rem;
    padding: 2rem;
    background-color: #f8f9fa;
    border-radius: 12px;
    text-align: center;
}

.share-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 1.5rem;
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.share-twitter {
    background-color: #000000;
    color: white;
}

.share-twitter:hover {
    background-color: #333333;
    color: white;
    transform: translateY(-2px);
}

.share-linkedin {
    background-color: #0077b5;
    color: white;
}

.share-linkedin:hover {
    background-color: #005885;
    color: white;
    transform: translateY(-2px);
}

.share-copy {
    background-color: #6c757d;
    color: white;
}

.share-copy:hover {
    background-color: #5a6268;
    transform: translateY(-2px);
}

.share-copy.copied {
    background-color: #28a745;
}

/* Related Articles */
.related-articles {
    max-width: 900px;
    margin: 0 auto 3rem;
}

.related-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #212529;
    margin-bottom: 2rem;
    text-align: center;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.related-article {
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.related-article:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.related-article-title a {
    color: #212529;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    line-height: 1.3;
}

.related-article-title a:hover {
    color: #6f42c1;
}

.related-article-excerpt {
    color: #6c757d;
    margin: 0.75rem 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

.related-article-date {
    color: #adb5bd;
    font-size: 0.9rem;
}

/* Navigation */
.article-navigation {
    text-align: center;
    margin-top: 2rem;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background-color: #6f42c1;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.back-link:hover {
    background-color: #5a359a;
    color: white;
    transform: translateY(-2px);
}

/* Not Found Page */
.article-not-found {
    padding: 4rem 0;
    text-align: center;
}

.not-found-content {
    max-width: 500px;
    margin: 0 auto;
}

.not-found-title {
    font-size: 2rem;
    font-weight: 600;
    color: #212529;
    margin-bottom: 1rem;
}

.not-found-description {
    color: #6c757d;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* Responsive Design for Article Detail */
@media (max-width: 768px) {
    .article-title {
        font-size: 2rem;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .article-content {
        font-size: 1rem;
        padding: 0 1rem;
    }
    
    .article-content img {
        max-width: 95%;
    }
    
    .share-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .share-btn {
        width: 200px;
        justify-content: center;
    }
}

/* Breadcrumb Navigation */
.breadcrumb-nav {
    font-size: 0.9rem;
    color: #6b7280;
    margin-bottom: 2rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem;
}

.breadcrumb-link {
    color: #6b7280;
    text-decoration: none;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.breadcrumb-link:hover {
    color: #6366f1;
    text-decoration: none;
}

.breadcrumb-separator {
    margin: 0 0.25rem;
    color: #d1d5db;
}

.breadcrumb-current {
    color: #374151;
    font-weight: 500;
    word-break: break-word;
}

/* Article Container - Medium-style card */
.article-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    margin-bottom: 3rem;
    margin-left: auto;
    margin-right: auto;
    border: 1px solid #f3f4f6;
}

/* Article Header */
.article-header {
    text-align: left;
    border-bottom: 1px solid #f3f4f6;
}

.article-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    color: #111827;
    margin-bottom: 1rem;
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.article-meta {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.95rem;
    color: #6b7280;
    margin-top: 1rem;
    justify-content: flex-start;
}

.article-date {
    color: #6b7280;
}

.article-separator {
    color: #d1d5db;
    margin: 0 0.25rem;
}

.article-category {
    color: #6366f1;
    font-weight: 500;
    background: #f0f9ff;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
}

/* Article Content - Improved Typography */
.article-content {
    font-family: 'Nunito', Georgia, 'Times New Roman', serif;
    font-size: 1.125rem;
    line-height: 1.7;
    color: #374151;
    margin-bottom: 3rem;
}

.article-content p {
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6 {
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 600;
    color: #111827;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.article-content h2 {
    font-size: 1.875rem;
    border-bottom: 1px solid #f3f4f6;
    padding-bottom: 0.5rem;
}

.article-content h3 {
    font-size: 1.5rem;
}

.article-content h4 {
    font-size: 1.25rem;
}

/* Article Images - Medium Style */
.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 2rem auto;
    display: block;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    width: 85%;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Lists */
.article-content ul,
.article-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.article-content li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

/* Blockquotes */
.article-content blockquote {
    border-left: 4px solid #6366f1;
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    font-size: 1.1rem;
    color: #4b5563;
    background: #f9fafb;
    padding: 1.5rem;
    border-radius: 8px;
}

/* Code */
.article-content code {
    background: #f3f4f6;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.9rem;
    color: #dc2626;
    font-family: 'Monaco', 'Consolas', monospace;
}

.article-content pre {
    background: #1f2937;
    color: #f9fafb;
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 2rem 0;
}

.article-content pre code {
    background: transparent;
    color: inherit;
    padding: 0;
}

/* Article Tags */
.article-tags {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #f3f4f6;
}

.article-tag {
    display: inline-block;
    background: #f3f4f6;
    color: #6b7280;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

/* Share Section */
.article-share {
    text-align: center;
    padding: 2rem 0;
}

.share-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 1.5rem;
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
}

.share-btn.twitter {
    background: #000000;
    color: white;
}

.share-btn.twitter i:before {
    content: "𝕏";
    font-family: sans-serif;
    font-weight: bold;
    font-size: 1.1em;
}

.share-btn.linkedin {
    background: #0077b5;
    color: white;
}

.share-btn.copy {
    background: #6b7280;
    color: white;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    text-decoration: none;
    color: white;
}

/* Related Articles */
.related-articles {
    margin-top: 4rem;
    padding: 2rem;
    background: #f9fafb;
    border-radius: 12px;
    border: 1px solid #f3f4f6;
}

.related-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 2rem;
    text-align: center;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.related-article {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.related-article:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.related-article-title a {
    color: #111827;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    line-height: 1.4;
}

.related-article-title a:hover {
    color: #6366f1;
}

.related-article-excerpt {
    color: #6b7280;
    font-size: 0.9rem;
    margin: 0.75rem 0;
    line-height: 1.5;
}

.related-article-date {
    color: #9ca3af;
    font-size: 0.85rem;
}

/* Back Navigation */
.back-navigation {
    text-align: center;
    margin-top: 2rem;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #6366f1;
    text-decoration: none;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border: 2px solid #6366f1;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.back-link:hover {
    background: #6366f1;
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
}

/* Article Not Found */
.article-not-found {
    padding: 4rem 0;
    text-align: center;
}

.not-found-content {
    max-width: 500px;
    margin: 0 auto;
}

.not-found-title {
    font-size: 2rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 1rem;
}

.not-found-description {
    color: #6b7280;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Responsive Design for New Article Detail */
@media (max-width: 768px) {
    .article-container {
        padding: 2rem 1.5rem;
        margin: 0 1rem 2rem;
        border-radius: 8px;
    }

    .article-title {
        font-size: 2rem;
    }

    .article-content {
        font-size: 1.05rem;
    }

    .article-content img {
        width: 95%;
        margin: 1.5rem auto;
        margin-left: auto;
        margin-right: auto;
    }

    .share-buttons {
        gap: 0.75rem;
    }

    .share-btn {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }

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

    .article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .breadcrumb-nav {
        font-size: 0.8rem;
        margin-bottom: 1rem;
        flex-wrap: wrap;
    }

    .breadcrumb-separator {
        margin: 0 0.2rem;
    }

    .breadcrumb-current {
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}


