/* ===================================
   Article View Styles
   SpeedPresta Design System
   =================================== */

/* ===================================
   CSS Reset & Base Styles
   =================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-dark: #050505;
    --bg-darker: #101213;
    --bg-hover: #33333f;
    --text-white: #ffffff;
    --text-light: #c6c6c6;
    --text-gray: #9d9d9d;
    --border-color: #c6c6c6;
    --accent-green: #acff6c;
    --transition: 0.3s ease;
}

/* Screen Reader Only - Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f8f9fa;
    padding-top: 90px;
}

a {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

/* ===================================
   Container
   =================================== */

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
}

/* ===================================
   Navigation Bar
   =================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.25rem 0;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(16, 18, 19, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar.scrolled {
    background: rgba(16, 18, 19, 0.95);
    padding: 0.75rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ===================================
   Logo
   =================================== */

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 1001;
}

.logo-icon {
    width: 48px;
    height: 48px;
}

.logo-text {
    height: 30px;
}

@media (max-width: 768px) {
    .logo-icon {
        width: 40px;
        height: 40px;
    }
    
    .logo-text {
        height: 24px;
    }
}

/* ===================================
   Navigation Menu
   =================================== */

.nav-menu {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.5rem 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #ffffff, rgba(255, 255, 255, 0.5));
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover {
    color: var(--text-white);
}

.nav-link:hover::after {
    width: 100%;
}

.navbar.scrolled .nav-link {
    color: rgba(255, 255, 255, 0.85);
}

/* ===================================
   Dropdown Menus
   =================================== */

.dropdown {
    position: relative;
}

.dropdown-btn {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.dropdown-btn i {
    font-size: 0.85rem;
    transition: transform var(--transition);
}

.dropdown:hover .dropdown-btn i {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    margin-top: 1rem;
    background: rgba(16, 18, 19, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 12px;
    padding: 0.75rem;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 0.85rem 1.25rem;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
    border-radius: 8px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.dropdown-menu a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dropdown-menu a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-white);
}

.dropdown-menu a:hover::before {
    transform: translateX(0);
}

/* ===================================
   Navigation Actions
   =================================== */

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.btn-signin {
    padding: 0.625rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-white);
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-signin:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.language-switcher {
    position: relative;
}

.language-btn {
    padding: 0.5rem;
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
}

.language-btn:hover {
    color: var(--text-white);
}

.language-menu {
    min-width: 140px;
}

/* ===================================
   Mobile Menu Toggle
   =================================== */

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle .bar {
    width: 25px;
    height: 2px;
    background: var(--text-white);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.menu-toggle.active .bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 1024px) {
    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 300px;
        background: rgba(16, 18, 19, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 100px 2rem 2rem;
        gap: 2rem;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.3);
        overflow-y: auto;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }

    .nav-actions {
        flex-direction: column;
        width: 100%;
        align-items: stretch;
    }

    .btn-signin {
        text-align: center;
    }

    .dropdown-menu {
        position: static;
        transform: none;
        margin-top: 0.5rem;
        opacity: 0;
        max-height: 0;
        overflow: hidden;
        visibility: visible;
        padding: 0;
    }

    .dropdown.active .dropdown-menu {
        opacity: 1;
        max-height: 500px;
        padding: 0.75rem;
    }

    .dropdown-btn {
        width: 100%;
        justify-content: space-between;
    }
}

/* ===================================
   Loading State
   =================================== */
.article-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    text-align: center;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top: 4px solid var(--accent-green);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.article-loading p {
    color: #666;
    font-size: 16px;
}

/* ===================================
   Articles List View
   =================================== */
.articles-list-container {
    min-height: 100vh;
    background: white;
}

.articles-header {
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-hover) 100%);
    padding: 80px 0 60px;
    text-align: center;
    color: white;
}

.articles-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    color: white;
}

.articles-description {
    font-size: 20px;
    color: var(--text-light);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.articles-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 24px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    color: white;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: var(--accent-green);
    color: var(--bg-dark);
    border-color: var(--accent-green);
}

.articles-grid-section {
    padding: 60px 0 100px;
    background: #f8f9fa;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 35px;
}

.article-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    border: 1px solid #e9ecef;
    cursor: pointer;
}

.article-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
    border-color: var(--accent-green);
}

.article-card-image-container {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
    background: #f0f0f0;
}

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

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

.article-card-category {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--bg-dark);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.article-card-content {
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-card-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 14px;
    color: #6c757d;
}

.article-card-date {
    display: flex;
    align-items: center;
    gap: 5px;
}

.article-card-reading-time {
    display: flex;
    align-items: center;
    gap: 5px;
}

.article-card-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #1a1a1a;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-card-excerpt {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.article-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.article-card-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.article-card-author-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--bg-dark), var(--bg-hover));
    display: flex;
    align-items: center;
    justify-content: center;
}

.article-card-author-avatar i {
    font-size: 18px;
    color: white;
}

.article-card-author-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.article-card-author-name {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.article-card-read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--bg-dark);
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.article-card-read-more i {
    transition: transform 0.3s ease;
}

.article-card:hover .article-card-read-more {
    color: var(--accent-green);
}

.article-card:hover .article-card-read-more i {
    transform: translateX(4px);
}

.no-articles {
    text-align: center;
    padding: 80px 20px;
}

.no-articles i {
    font-size: 80px;
    color: #ccc;
    margin-bottom: 20px;
}

.no-articles h3 {
    font-size: 28px;
    color: #333;
    margin-bottom: 12px;
}

.no-articles p {
    font-size: 16px;
    color: #666;
}

/* ===================================
   Error State
   =================================== */
.article-error {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.error-content {
    text-align: center;
    max-width: 500px;
}

.error-content i {
    font-size: 60px;
    color: #dc3545;
    margin-bottom: 20px;
}

.error-content h2 {
    font-size: 28px;
    margin-bottom: 15px;
    color: #333;
}

.error-content p {
    font-size: 16px;
    color: #666;
    margin-bottom: 30px;
}

.btn-back-home {
    display: inline-block;
    padding: 12px 30px;
    background: var(--bg-dark);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-back-home:hover {
    background: var(--bg-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* ===================================
   Breadcrumb Navigation
   =================================== */
.breadcrumb-nav {
    background: white;
    padding: 25px 0;
    border-bottom: 1px solid #e9ecef;
    margin-bottom: 40px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
}

.breadcrumb-item {
    font-size: 14px;
    color: #6c757d;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "/";
    padding: 0 10px;
    color: #6c757d;
}

.breadcrumb-item a {
    color: var(--bg-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
    color: var(--accent-green);
}

.breadcrumb-item.active {
    color: #6c757d;
}

/* ===================================
   Article Container
   =================================== */
.article-container {
    background: white;
    min-height: 100vh;
}

.article-content {
    background: white;
    padding: 40px 0;
}

/* ===================================
   Article Metadata
   =================================== */
.article-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 25px;
    font-size: 14px;
}

.article-category {
    background: var(--bg-dark);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 12px;
}

.article-date {
    color: #6c757d;
    display: flex;
    align-items: center;
    font-weight: 500;
}

.article-reading-time {
    color: #6c757d;
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 500;
}

.article-reading-time i {
    font-size: 16px;
}

/* ===================================
   Article Title & Excerpt
   =================================== */
.article-title {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #1a1a1a;
}

.article-excerpt {
    font-size: 22px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 30px;
    font-weight: 400;
}

/* ===================================
   Author Info
   =================================== */
.article-author {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px 0;
    margin-bottom: 30px;
    border-bottom: 1px solid #e9ecef;
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--bg-dark), var(--bg-hover));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.author-avatar i {
    font-size: 32px;
    color: white;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.author-details {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 600;
    font-size: 16px;
    color: #1a1a1a;
}

.author-role {
    font-size: 14px;
    color: #6c757d;
}

/* ===================================
   Featured Image
   =================================== */
.article-featured-image {
    margin-bottom: 50px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.article-featured-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 600px;
}

.image-caption {
    padding: 15px 20px;
    background: #f8f9fa;
    font-size: 14px;
    color: #6c757d;
    font-style: italic;
    text-align: center;
}

.image-caption:empty {
    display: none;
}

/* ===================================
   Article Body
   =================================== */
.article-body {
    max-width: 800px;
    margin: 0 auto 50px;
    font-size: 18px;
    line-height: 1.8;
    color: #333;
}

.article-body h2 {
    font-size: 36px;
    font-weight: 700;
    margin: 50px 0 25px;
    color: #1a1a1a;
    line-height: 1.3;
}

.article-body h3 {
    font-size: 28px;
    font-weight: 600;
    margin: 40px 0 20px;
    color: #1a1a1a;
}

.article-body h4 {
    font-size: 24px;
    font-weight: 600;
    margin: 35px 0 18px;
    color: #1a1a1a;
}

.article-body p {
    margin-bottom: 24px;
}

.article-body a {
    color: var(--bg-dark);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.article-body a:hover {
    color: var(--accent-green);
}

.article-body ul,
.article-body ol {
    margin: 24px 0;
    padding-left: 30px;
}

.article-body li {
    margin-bottom: 12px;
}

.article-body blockquote {
    border-left: 4px solid var(--accent-green);
    padding-left: 24px;
    margin: 35px 0;
    font-style: italic;
    color: #555;
    background: #f8f9fa;
    padding: 24px 24px 24px 28px;
    border-radius: 8px;
}

.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 35px 0;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.article-body code {
    background: #f8f9fa;
    padding: 3px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 16px;
    color: #d63384;
}

.article-body pre {
    background: #1a1a1a;
    color: #f8f9fa;
    padding: 24px;
    border-radius: 12px;
    overflow-x: auto;
    margin: 35px 0;
}

.article-body pre code {
    background: none;
    padding: 0;
    color: #f8f9fa;
}

.article-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 35px 0;
}

.article-body table th,
.article-body table td {
    padding: 14px;
    border: 1px solid #dee2e6;
    text-align: left;
}

.article-body table th {
    background: #f8f9fa;
    font-weight: 600;
}

/* ===================================
   Article Tags
   =================================== */
.article-tags {
    max-width: 800px;
    margin: 0 auto 50px;
    padding-top: 35px;
    border-top: 2px solid #e9ecef;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.tags-label {
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
}

.tags-label i {
    color: var(--bg-dark);
    font-size: 18px;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-item {
    background: #f8f9fa;
    color: #495057;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid #dee2e6;
}

.tag-item:hover {
    background: var(--bg-dark);
    color: white;
    border-color: var(--bg-dark);
    transform: translateY(-2px);
}

/* ===================================
   Share Buttons
   =================================== */
.article-share {
    max-width: 800px;
    margin: 0 auto 70px;
    padding: 35px;
    background: #f8f9fa;
    border-radius: 16px;
    text-align: center;
    border: 1px solid #e9ecef;
}

.share-label {
    display: block;
    font-weight: 600;
    margin-bottom: 25px;
    color: #333;
    font-size: 18px;
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.share-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 20px;
    color: white;
}

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

.share-linkedin:hover {
    background: #005885;
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 119, 181, 0.3);
}

.share-twitter {
    background: #1da1f2;
}

.share-twitter:hover {
    background: #0d8bd9;
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(29, 161, 242, 0.3);
}

.share-facebook {
    background: #4267B2;
}

.share-facebook:hover {
    background: #2d4373;
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(66, 103, 178, 0.3);
}

.share-email {
    background: #6c757d;
}

.share-email:hover {
    background: #545b62;
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(108, 117, 125, 0.3);
}

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

.share-copy:hover {
    background: #1e7e34;
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(40, 167, 69, 0.3);
}

.share-copy.copied {
    background: var(--accent-green);
    color: var(--bg-dark);
}

/* ===================================
   Related Articles
   =================================== */
.related-articles {
    background: #f8f9fa;
    padding: 80px 0;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 50px;
    color: #1a1a1a;
}

.related-articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.related-article-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: block;
    border: 1px solid #e9ecef;
}

.related-article-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
    border-color: var(--accent-green);
}

.related-article-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.related-article-content {
    padding: 25px;
}

.related-article-date {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 12px;
    font-weight: 500;
}

.related-article-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #1a1a1a;
    line-height: 1.4;
}

.related-article-excerpt {
    font-size: 15px;
    color: #666;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===================================
   Back to News Button
   =================================== */
.back-to-news {
    padding: 50px 0 80px;
    text-align: center;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 35px;
    background: var(--bg-dark);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-back:hover {
    background: var(--bg-hover);
    transform: translateX(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.btn-back i {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.btn-back:hover i {
    transform: translateX(-4px);
}

/* ===================================
   Footer Styles (SpeedPresta Design)
   =================================== */

#footer {
    background: var(--bg-dark);
    color: var(--text-light);
    padding: 4rem 0 0;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

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

.footer-col h4,
.footer-col h6 {
    color: var(--text-white);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.footer-logo-icon {
    width: 58px;
    height: 58px;
}

.footer-logo-text {
    width: 200px;
    height: 40px;
}

.footer-description {
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.newsletter-title {
    font-size: 1rem;
    margin-bottom: 1rem;
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
}

.newsletter-input {
    flex: 1;
    padding: 0.875rem 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-white);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.newsletter-input::placeholder {
    color: var(--text-gray);
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--accent-green);
    background: rgba(255, 255, 255, 0.08);
}

.newsletter-submit {
    padding: 0.875rem 1.25rem;
    background: var(--accent-green);
    border: none;
    border-radius: 8px;
    color: var(--bg-dark);
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-submit:hover {
    background: #9aff54;
    transform: translateY(-2px);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.875rem;
}

.footer-col ul li a {
    color: var(--text-gray);
    transition: color 0.3s ease;
}

.footer-col ul li a:hover {
    color: var(--accent-green);
}

.footer-divider {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin: 1.5rem 0;
}

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

.social-links a {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    color: var(--text-white);
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--accent-green);
    color: var(--bg-dark);
    transform: translateY(-4px);
}

.subfooter {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.95rem;
}

.subfooter-left {
    color: var(--text-gray);
}

.subfooter-left a {
    color: var(--text-white);
    font-weight: 500;
    transition: color 0.3s ease;
}

.subfooter-left a:hover {
    color: var(--accent-green);
}

.subfooter-right {
    display: flex;
    gap: 2rem;
}

.subfooter-right a {
    color: var(--text-gray);
    transition: color 0.3s ease;
}

.subfooter-right a:hover {
    color: var(--accent-green);
}

/* ===================================
   Responsive Design
   =================================== */

@media (max-width: 1200px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }

    .articles-title {
        font-size: 36px;
    }

    .articles-description {
        font-size: 18px;
    }

    .articles-header {
        padding: 60px 0 40px;
    }

    .articles-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .article-card-image-container {
        height: 200px;
    }

    .article-title {
        font-size: 36px;
    }

    .article-excerpt {
        font-size: 18px;
    }

    .article-body {
        font-size: 16px;
    }

    .article-body h2 {
        font-size: 28px;
    }

    .article-body h3 {
        font-size: 24px;
    }

    .article-body h4 {
        font-size: 20px;
    }

    .article-meta {
        gap: 15px;
    }

    .article-share {
        padding: 25px 20px;
    }

    .share-buttons {
        gap: 12px;
    }

    .share-btn {
        width: 48px;
        height: 48px;
        font-size: 18px;
    }

    .related-articles-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .section-title {
        font-size: 28px;
    }

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

    .subfooter {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .subfooter-right {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .articles-title {
        font-size: 28px;
    }

    .articles-description {
        font-size: 16px;
    }

    .articles-filters {
        gap: 10px;
    }

    .filter-btn {
        padding: 8px 18px;
        font-size: 13px;
    }

    .article-card-content {
        padding: 20px;
    }

    .article-card-title {
        font-size: 20px;
    }

    .article-card-excerpt {
        font-size: 15px;
    }

    .article-title {
        font-size: 28px;
    }

    .article-excerpt {
        font-size: 16px;
    }

    .article-body {
        font-size: 15px;
    }

    .container {
        padding: 0 1rem;
    }

    .breadcrumb-nav {
        padding: 18px 0;
        margin-bottom: 30px;
    }

    .article-content {
        padding: 30px 0;
    }
}

/* ===================================
   Print Styles
   =================================== */
@media print {
    nav,
    .breadcrumb-nav,
    .article-share,
    .related-articles,
    .back-to-news,
    footer {
        display: none !important;
    }

    body {
        padding-top: 0;
        background: white;
    }

    .article-content {
        padding: 0;
    }

    .article-title {
        font-size: 32px;
    }

    .article-body {
        max-width: 100%;
    }
}
