/* ==================== */
/* Reset & Variables    */
/* ==================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #FF6B35;
    --secondary-color: #004E89;
    --dark-color: #1A1A2E;
    --light-gray: #F5F5F5;
    --medium-gray: #E0E0E0;
    --text-dark: #333333;
    --text-light: #666666;
    --white: #FFFFFF;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 5px 20px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

/* Dark Mode Variables */
.dark-mode {
    --light-gray: #1A1A2E;
    --medium-gray: #2D2D44;
    --text-dark: #E8E8E8;
    --text-light: #B8B8B8;
    --white: #16213E;
    --dark-color: #0F1419;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 5px 20px rgba(0, 0, 0, 0.4);
}

.dark-mode .header,
.dark-mode .sidebar-section,
.dark-mode .modal-content {
    background-color: var(--white);
}

.dark-mode .hero,
.dark-mode .article-card,
.dark-mode .hero-article {
    background-color: transparent;
}

.dark-mode .header-top {
    border-bottom-color: var(--medium-gray);
}

.dark-mode .search-bar {
    background-color: var(--dark-color);
}

.dark-mode .search-input-wrapper input,
.dark-mode .form-group input {
    background-color: var(--dark-color);
    border-color: var(--medium-gray);
    color: var(--text-dark);
}

.dark-mode .footer {
    background-color: #0A0A0F;
    color: #E8E8E8;
}

.dark-mode .footer-links a {
    color: #E8E8E8;
}

.dark-mode .article-detail-header h1,
.dark-mode .article-detail-body {
    color: var(--text-dark);
}

.dark-mode .article-detail-body blockquote {
    background-color: var(--medium-gray);
}

.dark-mode .article-detail-tags {
    border-top-color: var(--medium-gray);
}

.dark-mode .article-detail-sources {
    border-top-color: var(--medium-gray);
}

.dark-mode .article-detail-sources h3 {
    color: var(--text-dark);
}

.dark-mode .contact-section {
    border-top-color: var(--medium-gray);
}

.dark-mode .pagination-info {
    color: var(--text-light);
}

.dark-mode .empty-state {
    color: var(--text-light);
}

body {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-dark);
    background-color: var(--light-gray);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
    transition: var(--transition);
}

/* ==================== */
/* Header               */
/* ==================== */

.header {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    border-bottom: 1px solid var(--medium-gray);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    gap: 30px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    font-weight: 800;
    color: var(--secondary-color);
    cursor: pointer;
}

.logo i {
    font-size: 32px;
    color: var(--primary-color);
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.main-nav a {
    font-weight: 600;
    font-size: 15px;
    padding: 8px 0;
    position: relative;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--primary-color);
}

.main-nav a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--primary-color);
}

.main-nav a.premium-link {
    color: var(--primary-color);
    font-weight: 700;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.search-btn,
.login-btn {
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 600;
}

.search-btn {
    font-size: 18px;
    color: var(--text-light);
}

.search-btn:hover {
    color: var(--primary-color);
}

/* Theme Toggle */
.theme-toggle {
    padding: 10px;
    font-size: 18px;
    color: var(--text-light);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.theme-toggle:hover {
    color: var(--primary-color);
    background-color: rgba(255, 107, 53, 0.1);
    transform: rotate(15deg);
}

.theme-toggle i {
    transition: transform 0.3s ease;
}

.dark-mode .theme-toggle i.fa-moon {
    display: none;
}

.dark-mode .theme-toggle i.fa-sun {
    display: block;
}

.theme-toggle i.fa-sun {
    display: none;
}

.dark-mode .theme-toggle i.fa-sun {
    animation: rotate 0.5s ease;
}

@keyframes rotate {
    from {
        transform: rotate(-180deg);
    }

    to {
        transform: rotate(0deg);
    }
}

.login-btn {
    background-color: var(--primary-color);
    color: var(--white);
}

.login-btn:hover {
    background-color: #E55A2B;
    transform: translateY(-2px);
}

.burger-menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 5px;
}

.burger-menu span {
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    border-radius: 2px;
    transition: var(--transition);
}

.burger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.burger-menu.active span:nth-child(2) {
    opacity: 0;
}

.burger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Search Bar */
.search-bar {
    background-color: var(--light-gray);
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.search-bar.active {
    padding: 15px 0;
    max-height: 100px;
}

.search-input-wrapper {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.search-input-wrapper input {
    width: 100%;
    padding: 12px 45px 12px 20px;
    border: 2px solid var(--medium-gray);
    border-radius: 25px;
    font-size: 15px;
    outline: none;
    transition: var(--transition);
}

.search-input-wrapper input:focus {
    border-color: var(--primary-color);
}

.search-input-wrapper i {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
}

/* ==================== */
/* Hero Section         */
/* ==================== */

.hero {
    background-color: transparent;
    padding: 30px 0;
    margin-bottom: 30px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 20px;
}

.hero-article {
    background-color: transparent;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
}

.hero-article:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-5px);
}

.hero-article.featured {
    grid-row: span 1;
}

.hero-article .article-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.hero-article.featured .article-image {
    height: 400px;
}

.hero-article .article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.hero-article:hover .article-image img {
    transform: scale(1.05);
}

.article-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.hero-article .article-content {
    padding: 20px;
}

.hero-article.featured .article-content {
    padding: 25px;
}

.hero-article .article-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-dark);
    line-height: 1.4;
}

.hero-article.featured .article-title {
    font-size: 26px;
    margin-bottom: 15px;
}

.article-excerpt {
    color: var(--text-light);
    font-size: 15px;
    margin-bottom: 15px;
    line-height: 1.6;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 13px;
    color: var(--text-light);
}

.article-meta i {
    margin-right: 5px;
}

.article-meta .comments {
    display: flex;
    align-items: center;
}

/* ==================== */
/* Main Content         */
/* ==================== */

.main-content {
    padding: 30px 0 60px;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
}

/* Section Header */
.section-header {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    padding: 20px 25px;
    border-radius: 10px;
    margin-bottom: 30px;
    color: var(--white);
}

.section-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 5px;
}

.section-subtitle {
    font-size: 14px;
    opacity: 0.9;
}

/* Articles List */
.articles-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.article-card {
    background-color: transparent;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
}

.article-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-5px);
}

.article-card .article-image {
    height: 220px;
    overflow: hidden;
}

.article-card .article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.article-card:hover .article-image img {
    transform: scale(1.08);
}

.article-card .article-content {
    padding: 20px;
}

.article-card .article-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-dark);
    line-height: 1.4;
}

.article-card .article-title:hover {
    color: var(--primary-color);
}

.article-card .article-excerpt {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 15px;
    line-height: 1.6;
}

/* Load More Button */
.load-more-btn {
    display: block;
    margin: 30px auto;
    padding: 15px 40px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 25px;
    font-weight: 700;
    font-size: 15px;
}

.load-more-btn:hover {
    background-color: #E55A2B;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.load-more-btn i {
    margin-right: 10px;
}

/* ==================== */
/* Sidebar              */
/* ==================== */

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.sidebar-section {
    background-color: var(--white);
    border-radius: 10px;
    padding: 25px;
    box-shadow: var(--shadow);
}

.sidebar-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-dark);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
}

/* Premium Section */
.premium-section {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    color: var(--white);
    text-align: center;
}

.premium-box i {
    font-size: 40px;
    margin-bottom: 15px;
    color: #FFD700;
}

.premium-box h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    margin-bottom: 10px;
}

.premium-box p {
    font-size: 14px;
    margin-bottom: 15px;
    opacity: 0.95;
}

.premium-box .price {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
}

.premium-btn {
    background-color: var(--white);
    color: var(--primary-color);
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 700;
    width: 100%;
}

.premium-btn:hover {
    background-color: var(--light-gray);
    transform: scale(1.05);
}

/* Sidebar Articles */
.sidebar-articles {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.sidebar-article {
    display: flex;
    gap: 12px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--medium-gray);
    cursor: pointer;
    transition: var(--transition);
}

.sidebar-article:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.sidebar-article:hover {
    transform: translateX(5px);
}

.sidebar-article-image {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
}

.sidebar-article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sidebar-article-content h4 {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.sidebar-article:hover h4 {
    color: var(--primary-color);
}

.sidebar-article .article-meta {
    font-size: 12px;
}

/* Promo Section */
.promo-box {
    text-align: center;
}

.promo-tag {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 15px;
}

.promo-box h4 {
    font-size: 16px;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.promo-price {
    margin-bottom: 15px;
}

.old-price {
    text-decoration: line-through;
    color: var(--text-light);
    font-size: 16px;
    margin-right: 10px;
}

.new-price {
    color: var(--primary-color);
    font-size: 24px;
    font-weight: 700;
}

.promo-btn {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 700;
    width: 100%;
}

.promo-btn:hover {
    background-color: #E55A2B;
    transform: scale(1.05);
}

/* Trending Tags */
.trending-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    transition: var(--transition);
}

.tag:hover {
    background-color: #E55A2B;
    color: var(--white);
    transform: scale(1.05);
}

/* ==================== */
/* Footer               */
/* ==================== */

.footer {
    background-color: var(--dark-color);
    color: var(--white);
    padding: 40px 0 20px;
    margin-top: 50px;
}

.footer-content {
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 25px;
}

.footer-links a {
    color: var(--white);
    font-size: 14px;
    opacity: 0.8;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--primary-color);
}

.footer-bottom {
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    font-size: 13px;
    opacity: 0.7;
}

/* ==================== */
/* Modal                */
/* ==================== */

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-content {
    background-color: var(--white);
    padding: 40px;
    border-radius: 15px;
    max-width: 450px;
    width: 90%;
    position: relative;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 30px;
    color: var(--text-light);
    cursor: pointer;
}

.modal-close:hover {
    color: var(--primary-color);
}

.modal-content h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 26px;
    margin-bottom: 25px;
    color: var(--text-dark);
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-dark);
}

.form-group input {
    padding: 12px 15px;
    border: 2px solid var(--medium-gray);
    border-radius: 8px;
    font-size: 15px;
    outline: none;
    transition: var(--transition);
}

.form-group input:focus {
    border-color: var(--primary-color);
}

.submit-btn {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 14px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 16px;
    margin-top: 10px;
}

.submit-btn:hover {
    background-color: #E55A2B;
    transform: translateY(-2px);
}

.form-footer {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
}

.form-footer a {
    color: var(--secondary-color);
}

.form-footer a:hover {
    color: var(--primary-color);
}

/* ==================== */
/* User Menu Dropdown   */
/* ==================== */

.user-menu {
    position: relative;
}

.user-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--white);
    box-shadow: var(--shadow-hover);
    border-radius: 8px;
    min-width: 200px;
    z-index: 1001;
    overflow: hidden;
    margin-top: 8px;
}

.user-dropdown.active {
    display: block;
}

.user-dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    transition: var(--transition);
}

.user-dropdown a:hover {
    background-color: var(--light-gray);
    color: var(--primary-color);
}

/* User Avatar in Header */
.user-avatar-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 30px;
    background: rgba(255,255,255,0.9);
    border: 2px solid var(--primary-color);
    transition: all 0.3s ease;
}

.user-avatar-btn:hover {
    background: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.2);
}

.user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid white;
}

.user-avatar-initial {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    border: 2px solid white;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.username {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-dark);
}

/* Dark mode support */
.dark-mode .user-avatar-btn {
    background: rgba(30, 30, 46, 0.95);
    border-color: var(--primary-color);
}

.dark-mode .username {
    color: white;
}

/* ==================== */
/* Responsive Design    */
/* ==================== */

@media screen and (max-width: 1200px) {
    .content-wrapper {
        grid-template-columns: 1fr 300px;
    }

    .articles-list {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media screen and (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr 1fr;
    }

    .hero-article.featured {
        grid-column: span 2;
    }

    .content-wrapper {
        grid-template-columns: 1fr;
    }

    .sidebar {
        grid-template-columns: repeat(2, 1fr);
        display: grid;
    }
}

@media screen and (max-width: 768px) {
    .main-nav {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background-color: var(--white);
        padding: 20px;
        box-shadow: var(--shadow);
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    .main-nav.active {
        transform: translateX(0);
    }

    .main-nav ul {
        flex-direction: column;
        gap: 15px;
    }

    .burger-menu {
        display: flex;
    }

    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-article.featured {
        grid-column: span 1;
    }

    .hero-article .article-image,
    .hero-article.featured .article-image {
        height: 220px;
    }

    .hero-article.featured .article-title {
        font-size: 22px;
    }

    .articles-list {
        grid-template-columns: 1fr;
    }

    .sidebar {
        grid-template-columns: 1fr;
    }

    .footer-links {
        flex-direction: column;
        gap: 12px;
    }
}

@media screen and (max-width: 480px) {
    .logo span {
        font-size: 20px;
    }

    .logo i {
        font-size: 26px;
    }

    .login-btn {
        padding: 10px 15px;
        font-size: 14px;
    }

    .section-title {
        font-size: 20px;
    }

    .article-card .article-title {
        font-size: 16px;
    }

    .modal-content {
        padding: 30px 20px;
    }
}

/* ==================== */
/* Article Detail       */
/* ==================== */

.article-detail {
    max-width: 800px;
    margin: 0 auto 40px;
}

.article-detail-header {
    margin-bottom: 30px;
}

.article-detail-header .article-badge {
    display: inline-block;
    margin-bottom: 15px;
}

.article-detail-header h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 32px;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.article-detail-header .article-meta {
    font-size: 14px;
}

.article-detail-image {
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 30px;
}

.article-detail-image img {
    width: 100%;
    height: auto;
    display: block;
}

.article-detail-body {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 30px;
}

.article-detail-body p {
    margin-bottom: 1.2em;
}

/* Titres de chapitres (strong) — contenu dans un seul div avec strong + br + texte */
.article-detail-body strong {
    font-size: 15pt !important;
    display: block !important;
    margin: 1em 0 0.5em 0;
}

.article-detail-body h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    font-weight: 700;
    margin: 30px 0 15px;
}

.article-detail-body h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    font-weight: 700;
    margin: 25px 0 10px;
}

.article-detail-body img {
    max-width: 50%;
    height: auto;
    border-radius: 8px;
    margin: 20px auto;
    display: block;
}

/* Images avec légende (Trix figure/figcaption) - alignement comme sur le back-office */
.article-detail-body figure {
    margin: 20px auto;
    max-width: 50%;
}

.article-detail-body figure img {
    margin: 0 auto;
    display: block;
    max-width: 100%;
}

.article-detail-body figcaption {
    text-align: center;
    font-size: 0.75em;
    color: color-mix(in srgb, var(--text-dark) 60%, transparent);
    margin-top: 8px;
    line-height: 1.4;
}

.article-detail-body blockquote {
    border-left: 4px solid var(--primary-color);
    padding: 15px 20px;
    margin: 20px 0;
    background-color: var(--light-gray);
    border-radius: 0 8px 8px 0;
    font-style: italic;
}

.contact-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--medium-gray);
}

.contact-section:first-of-type {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.contact-section h2 {
    margin-bottom: 10px;
}

.contact-section .contact-email {
    font-family: monospace;
    font-weight: 600;
    color: var(--text-dark);
}

.article-detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.article-detail-sources {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.article-detail-sources h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.article-detail-sources ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.article-detail-sources li {
    margin-bottom: 6px;
}

.article-detail-sources a {
    color: var(--primary-color);
    text-decoration: none;
}

.article-detail-sources a:hover {
    text-decoration: underline;
}

.related-articles {
    margin-top: 40px;
}

/* ==================== */
/* Pagination           */
/* ==================== */

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
    padding: 20px 0;
}

.pagination-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pagination-btn:hover {
    background-color: #E55A2B;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.pagination-info {
    font-size: 14px;
    color: var(--text-light);
    font-weight: 600;
}

/* ==================== */
/* Empty State          */
/* ==================== */

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state p {
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
}

.empty-state span {
    font-size: 14px;
}

/* ==================== */
/* Animations           */
/* ==================== */

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.load-more-btn:active {
    animation: pulse 0.3s ease;
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Selection */
::selection {
    background-color: var(--primary-color);
    color: var(--white);
}