﻿/* ====== Reset and Base Styles ====== */
:root {
    --primary: #1a365d;
    --secondary: #2d3748;
    --accent: #3182ce;
    --accent-light: #90cdf4;
    --light: #f7fafc;
    --gray: #718096;
    --light-gray: #e2e8f0;
    --border: #cbd5e0;
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-hover: 0 10px 15px rgba(0, 0, 0, 0.1);
    --radius: 8px;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    color: var(--secondary);
    background-color: var(--white);
    overflow-x: hidden;
}

.line-clamp-1 {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
}

.line-clamp-2 {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.line-clamp-3 {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.line-clamp-4 {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ====== Typography ====== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.5em;
    color: var(--primary);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary);
}

ul,
li {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.section-title {
    position: relative;
    margin-bottom: 2rem;
    padding-bottom: 0.75rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--accent);
}

/* ====== Navigation ====== */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--white);
    z-index: 1000;
    transition: all 0.3s ease;
}

.main-nav.scrolled {
    background-color: var(--white);
    box-shadow: var(--shadow);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
    transition: padding 0.3s ease;
}



.nav-logo {
    display: flex;
    flex-direction: column;
}

.nav-logo h1 {
    font-size: 1.5rem;
    margin: 0;
    color: var(--primary);
    transition: color 0.3s ease;
}


.tagline {
    font-size: 0.75rem;
    color: var(--gray);
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.main-nav:not(.scrolled) .tagline {
    color: rgba(255, 255, 255, 0.8);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: var(--secondary);
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.3s ease;
}


.nav-menu a.active {
    color: var(--accent);
}

.main-nav:not(.scrolled) .nav-menu a.active {
    color: var(--accent-light);
}

.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--accent);
}

.main-nav:not(.scrolled) .nav-menu a.active::after {
    background-color: var(--accent-light);
}

.nav-menu a:hover {
    color: var(--accent);
}

.main-nav:not(.scrolled) .nav-menu a:hover {
    color: var(--accent-light);
}

.nav-cta {
    background-color: var(--accent);
    color: var(--white);
    padding: 0.5rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 600;
    transition: var(--transition);
}

.nav-cta:hover {
    background-color: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

/* ====== Hamburger Menu ====== */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger-menu span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--primary);
    border-radius: 3px;
    transition: var(--transition);
}



.hamburger-menu.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* ====== Main Content ====== */
main {
    margin-top: 80px;
    padding: 2rem 0;
}

/* ====== Home Page Specific ====== */

/* Top Stories */
.top-stories {
    margin-bottom: 4rem;
}

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

.story-card {
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--white);
    transition: var(--transition);
}

.story-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.feature-story {
    grid-row: span 2;
}

.story-image {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.feature-story .story-image {
    height: 400px;
}

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

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

.category-label {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background-color: var(--white);
    color: var(--primary);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.category-label.world {
    background-color: #bee3f8;
}

.category-label.politics {
    background-color: #fed7d7;
}

.category-label.business {
    background-color: #c6f6d5;
}

.category-label.technology {
    background-color: #e9d8fd;
}

.story-content {
    padding: 1.5rem;
}

.story-content time {
    font-size: 0.875rem;
    color: var(--gray);
    display: block;
    margin-bottom: 0.5rem;
}

.feature-story h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.secondary-story h4 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.story-content p {
    color: var(--gray);
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.story-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    color: var(--gray);
    padding-top: 1rem;
    border-top: 1px solid var(--light-gray);
}

/* Category Grid */
.category-grid {
    margin-bottom: 4rem;
}

.categories {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.category-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent);
}

.category-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.category-card h3 {
    margin-bottom: 0.5rem;
}

.category-card p {
    color: var(--gray);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.article-count {
    display: inline-block;
    background-color: var(--light);
    color: var(--primary);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Special Reports */
.special-reports {
    margin-bottom: 4rem;
}

.reports-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.report-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
}

.report-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.report-card.horizontal {
    display: grid;
    grid-template-columns: 1fr 2fr;
}

.report-image {
    height: 250px;
    overflow: hidden;
}

.report-card.horizontal .report-image {
    aspect-ratio: 4 / 3;
    width: 100%;
    height: 100%;
}

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

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

.report-content {
    padding: 1.5rem;
}

.report-label {
    display: inline-block;
    background-color: var(--accent-light);
    color: var(--primary);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.report-content h3 {
    margin-bottom: 1rem;
}

.report-content h4 {
    margin-bottom: 0.75rem;
}

.report-content .report-desc {
    color: var(--gray);
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.report-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    color: var(--gray);
}

.series {
    background-color: var(--light);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

/* Latest Updates */
.latest-updates {
    margin-bottom: 4rem;
}

.updates-header {
    display: flex;
    justify-content: space-between;
    align-items: center;

}

.time-filter {
    display: flex;
    gap: 0.5rem;
}

.filter-btn {
    background: var(--light);
    border: 1px solid var(--border);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    cursor: pointer;
    transition: var(--transition);
}

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

.filter-btn:hover:not(.active) {
    background-color: var(--light-gray);
}

.updates-grid {
    display: grid;
    gap: 1rem;
}

.update-card {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--white);
    border-radius: var(--radius);
    border-left: 4px solid var(--accent);
    transition: var(--transition);
}

.update-card:hover {
    box-shadow: var(--shadow);
    transform: translateX(5px);
}

.update-card h3 {
    font-size: 1.6rem;
}

.update-time {
    font-size: 1rem;
    color: var(--gray);
    font-weight: 600;
    margin-right: 15px;
}

.updates-img {
    aspect-ratio: 4 / 3;
}

.updates-img img {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    object-fit: cover;
}

.update-content h4 {
    margin-bottom: 0.5rem;
}

.update-desc {
    color: var(--gray);
    font-size: 1.2rem;
}

.update-category {
    display: inline-block;
    font-size: 1rem;
    padding: 0.125rem 0.5rem;
    border-radius: 12px;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.update-category.world {
    background-color: #bee3f8;
}

.update-category.politics {
    background-color: #fed7d7;
}

.update-category.business {
    background-color: #c6f6d5;
}

.update-category.technology {
    background-color: #e9d8fd;
}

.view-all {
    text-align: center;
    margin-top: 2rem;
}

.view-all-btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    background-color: var(--white);
    color: var(--accent);
    border: 2px solid var(--accent);
    border-radius: var(--radius);
    font-weight: 600;
    transition: var(--transition);
}

.view-all-btn:hover {
    background-color: var(--accent);
    color: var(--white);
}

/* ====== List Page Specific ====== */

/* Breadcrumb */
.breadcrumb {
    background-color: #f8f9fa;
    padding: 1rem 0;
    border-bottom: 1px solid #e9ecef;
    margin-top: 70px;
}

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

.breadcrumb-item {
    display: flex;
    align-items: center;
}

.breadcrumb-item+.breadcrumb-item::before {
    content: "/";
    display: inline-block;
    padding: 0 0.5rem;
    color: #6c757d;
}

.breadcrumb-item a {
    color: #3182ce;
    text-decoration: none;
}

.breadcrumb-item a:hover {
    text-decoration: underline;
}

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

/* Page Header */
.list-header {
    padding: 2rem 0 1rem;
    background-color: #fff;
}

.page-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: #1a365d;
}

.page-subtitle {
    color: #718096;
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    max-width: 600px;
}

.articles-count {
    font-size: 0.875rem;
    color: #6c757d;
    margin-top: 0.5rem;
}

/* Filter Section */
.filter-section {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    border: 1px solid #e9ecef;
}

.filter-header {
    margin-bottom: 1rem;
}

.filter-title {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
    color: #1a365d;
}

.filter-description {
    color: #718096;
    font-size: 0.875rem;
}

.filter-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

.filter-group {
    position: relative;
}

.filter-group input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.filter-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background-color: #fff;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    height: 100%;
}

.filter-label:hover {
    border-color: #3182ce;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
}

.filter-group input[type="radio"]:checked+.filter-label {
    border-color: #3182ce;
    background-color: rgba(49, 130, 206, 0.05);
    color: #3182ce;
    font-weight: 600;
}

.filter-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.filter-count {
    font-size: 0.75rem;
    color: #718096;
    margin-top: 0.25rem;
    font-weight: normal;
}

/* Sort Section */
.sort-section {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

.sort-label {
    font-size: 0.875rem;
    color: #718096;
}

.sort-select {
    padding: 0.5rem 2rem 0.5rem 0.75rem;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    background-color: #fff;
    font-size: 0.875rem;
    color: #2d3748;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23718096' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 12px;
}

.sort-select:hover {
    border-color: #3182ce;
}

/* Content Area */
.content-area {
    display: grid;
    grid-template-columns: 66% 30%;
    gap: 3rem;
    padding: 2rem 0 4rem;
}

/* Article Cards */
.articles-grid {
    display: grid;
    gap: 2rem;
}

/* Base Article Card */
.article-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: #3182ce;
}

/* Featured Article Card */
.article-card.featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr;
}

.article-card.featured .article-image {
    height: 300px;
}

.article-card.featured .article-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.article-label {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: #3182ce;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 2;
}

/* Horizontal Article Card */
.article-card.horizontal {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 1.5rem;
}

.article-card.horizontal.reverse {
    grid-template-columns: 2fr 1fr;
}

.article-card.horizontal .article-image {
    height: 100%;
}

.article-card.horizontal .article-content {
    padding: 1.5rem 1.5rem 1.5rem 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.article-card.horizontal.reverse .article-content {
    padding: 1.5rem 0 1.5rem 1.5rem;
}

/* Compact Article Card */
.article-card.compact {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 1.5rem;
}

.article-card.compact .article-image {
    height: 120px;
}

.article-card.compact .article-content {
    padding: 0.5rem 1.5rem 0.5rem 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* List Article Card */
.article-card.list {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    gap: 1.5rem;
}

.article-card.list .article-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #3182ce;
    min-width: 40px;
}

/* Image-Only Article Card */
.article-card.image-only {
    position: relative;
    overflow: hidden;
}

.article-card.image-only .article-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: white;
    padding: 2rem;
}

.article-card.image-only .article-title a {
    color: white;
}

.article-card.image-only .article-footer {
    color: rgba(255, 255, 255, 0.8);
}

/* Detailed Article Card */
.article-card.detailed {
    padding: 2rem;
}

.article-card.detailed .article-content {
    padding: 0;
}

.article-highlights {
    background-color: #f8f9fa;
    border-left: 3px solid #3182ce;
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 0 4px 4px 0;
}

.highlight {
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.highlight:last-child {
    margin-bottom: 0;
}

/* Quote Article Card */
.article-card.quote {
    background-color: #f8f9fa;
    border-left: 4px solid #3182ce;
    padding: 2rem;
}

.article-quote {
    font-size: 1.25rem;
    font-style: italic;
    color: #1a365d;
    margin: 0 0 1.5rem 0;
    padding: 0;
    quotes: "“" "”";
}

.article-quote::before {
    content: open-quote;
    font-size: 2rem;
    color: #3182ce;
    line-height: 0;
    vertical-align: -0.4em;
    margin-right: 0.25rem;
}

/* Article Stats Card */
.article-card .article-stats {
    display: flex;
    justify-content: space-around;
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 1rem;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #3182ce;
}

.stat-label {
    font-size: 0.75rem;
    color: #718096;
    margin-top: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Common Article Elements */
.article-image {
    position: relative;
    overflow: hidden;
}

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

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

.article-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background-color: white;
    color: #1a365d;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.article-content {
    padding: 1.5rem;

}

.article-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
    color: #718096;
}

.article-meta time {
    display: flex;
    align-items: center;
}

.article-meta time::before {
    content: "🕒";
    margin-right: 0.25rem;
    font-size: 0.75rem;
}

.article-region {
    background-color: #e2e8f0;
    color: #4a5568;
    padding: 0.125rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.article-title {
    margin-bottom: 1rem;
    line-height: 1.3;
}

.article-title a {
    color: #1a365d;
    text-decoration: none;
}

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

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

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

.tag {
    display: inline-block;
    background-color: #e2e8f0;
    color: #4a5568;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.tag:hover {
    background-color: #3182ce;
    color: white;
}

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

.article-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.author-avatar {
    width: 100px;
    height: 100px;
    background-color: #3182ce;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
}

.author-name {
    font-weight: 600;
    color: #2d3748;
}

.author-role {
    display: block;
    font-size: 0.75rem;
    color: #718096;
}

.article-stats {
    display: flex;
    gap: 1rem;
    color: #718096;
}

.read-time::before {
    content: "⏱️";
    margin-right: 0.25rem;
    font-size: 0.75rem;
}

.view-count::before {
    content: "👁️";
    margin-right: 0.25rem;
    font-size: 0.75rem;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e9ecef;
    flex-wrap: wrap;
}

.pagination-info {
    text-align: center;
    margin-bottom: 1rem;
    color: #6c757d;
    font-size: 0.875rem;
    width: 100%;
}

.pagination-numbers {
    display: flex;
    gap: 0.25rem;
}

.pagination-btn {
    padding: 0.5rem 1rem;
    background-color: #fff;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    color: #3182ce;
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pagination-btn:hover {
    background-color: #f8f9fa;
    border-color: #3182ce;
}

.pagination-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    color: #2d3748;
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.pagination-number:hover {
    background-color: #f8f9fa;
    border-color: #3182ce;
    color: #3182ce;
}

.pagination-number.active {
    background-color: #3182ce;
    border-color: #3182ce;
    color: white;
}

.pagination-ellipsis {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: #718096;
}

/* Sidebar */
.author-byline {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.author-mini-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.author-byline .author-name {
    font-weight: 600;
    color: #0b1c2f;
    font-size: 1rem;
    margin: 0;
}

.author-widget .author-header {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1.2rem;
    margin-top: 0;
    padding: 0;
    border: none;
    background: none;
    box-shadow: none;
}

.author-widget .author-header::before {
    content: none;
}

.author-widget .author-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.author-widget .author-name-title h3 {
    font-size: 1.2rem;
    margin: 0 0 0.2rem;
    border: none;
    padding: 0;
    color: #333;
}

.author-name-title p {
    font-size: 0.9rem;
    color: #6b7f94;
}

.author-widget .author-bio {
    font-size: 0.95rem;
    color: #34495e;
    line-height: 1.5;
    margin: 0;
}

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-section {
    background-color: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1.5rem;
}

.sidebar-title {
    font-size: 1.125rem;
    margin-bottom: 1.25rem;
    color: #1a365d;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e9ecef;
}

/* Recommended Articles */
.recommended-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.recommended-item {
    padding-bottom: 1rem;
    border-bottom: 1px solid #e9ecef;
}

.recommended-item:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.recommended-category {
    display: inline-block;
    background-color: #e2e8f0;
    color: #4a5568;
    padding: 0.125rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.recommended-title {
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.recommended-title a {
    color: #2d3748;
    text-decoration: none;
}

.recommended-title a:hover {
    color: #3182ce;
}

.recommended-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.75rem;
    color: #718096;
}

/* Tags Cloud */
.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag-link {
    display: inline-block;
    background-color: #f8f9fa;
    color: #4a5568;
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid #e9ecef;
}

.tag-link:hover {
    background-color: #3182ce;
    color: white;
    border-color: #3182ce;
    transform: translateY(-2px);
}

.tag-link.large {
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
}

/* Newsletter Sidebar */
.newsletter-description {
    color: #718096;
    font-size: 0.875rem;
    margin-bottom: 1.25rem;
}

.sidebar-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.sidebar-input {
    padding: 0.75rem;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    font-size: 0.875rem;
    transition: border-color 0.2s ease;
}

.sidebar-input:focus {
    outline: none;
    border-color: #3182ce;
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.1);
}

.sidebar-btn {
    padding: 0.75rem;
    background-color: #3182ce;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.sidebar-btn:hover {
    background-color: #2b6cb0;
}

/* Editorial Picks */
.editorial-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.editorial-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e9ecef;
}

.editorial-item:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.editorial-number {
    width: 30px;
    height: 30px;
    background-color: #f8f9fa;
    color: #3182ce;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.editorial-title {
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
    line-height: 1.4;
}

.editorial-title a {
    color: #2d3748;
    text-decoration: none;
}

.editorial-title a:hover {
    color: #3182ce;
}

.editorial-meta {
    font-size: 0.75rem;
    color: #718096;
}

/* ====== Detail Page Specific ====== */

/* Article Header */
.article-header {
    padding: 2rem 0;
    border-bottom: 1px solid #e9ecef;
    margin-bottom: 2rem;
}

.article-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.article-header .article-category {
    display: inline-block;
    background-color: #e2e8f0;
    color: #4a5568;
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.article-header .article-category:hover {
    background-color: #3182ce;
    color: white;
}

.article-header .article-title {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #1a365d;
}

.article-header .article-subtitle {
    font-size: 1.25rem;
    color: #718096;
    margin-bottom: 1.5rem;
    line-height: 1.5;
    max-width: 800px;
}

.article-meta-bar {
    display: flex;
    flex-wrap: wrap;

    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
    gap: 1rem;
}

.article-author-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.article-header .author-avatar {
    width: 40px;
    height: 40px;
    background-color: #3182ce;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 600;
    flex-shrink: 0;
}

.article-header .author-info {
    display: flex;
    flex-direction: column;
}

.article-header .author-name {
    font-weight: 600;
    color: #2d3748;
}

.article-header .author-role {
    font-size: 0.875rem;
    color: #718096;
}

.article-date-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.875rem;
    color: #718096;
}

.article-header .article-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    color: #718096;
}

/* Featured Image */
.article-featured-image {
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 2rem;
    position: relative;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
}

.article-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.image-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
}

/* Share Bar */
.share-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    margin: 2rem 0;
    gap: 1rem;
}

.share-label {
    font-weight: 600;
    color: #2d3748;
}

.share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: white;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    color: #4a5568;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.share-btn i{
    font-size: 22px;
}

.share-btn:hover {
    background-color: #f8f9fa;
    border-color: #3182ce;
    color: #3182ce;
    transform: translateY(-2px);
}

.share-icon {
    font-size: 1rem;
}

/* Article Content */
.article-content {
    font-size: 0.985rem;
    letter-spacing: 0.2px;
    color: #171717;
    line-height: 1.75;
    max-width: 800px;
    margin: 0 auto;
}

.article-lead {
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e9ecef;
}

.article-content img {
    margin: 0 auto;
}

.article-highlights {
    background-color: #f8f9fa;
    border-left: 4px solid #3182ce;
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0 8px 8px 0;
}

.article-highlights h3 {
    margin-top: 0;
    color: #1a365d;
}

.article-highlights ul {
    list-style-type: none;
    padding-left: 0;
    margin-bottom: 0;
}

.article-highlights li {
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
}

.article-highlights li:before {
    content: "•";
    color: #3182ce;
    font-size: 1.5rem;
    position: absolute;
    left: 0;
    top: -0.25rem;
}

.detail .article-quote {
    margin: 2.5rem 0;
    padding: 2rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #3182ce;
}

.detail .article-quote blockquote {
    font-size: 1.25rem;
    font-style: italic;
    color: #1a365d;
    margin: 0 0 1rem 0;
    padding: 0;
    quotes: "“" "”";
}

.detail .article-quote blockquote::before {
    content: open-quote;
    font-size: 2.5rem;
    color: #3182ce;
    line-height: 0;
    vertical-align: -0.4em;
    margin-right: 0.25rem;
}

.detail .article-quote cite {
    display: block;
    font-size: 0.875rem;
    color: #718096;
    font-style: normal;
    text-align: right;
}

.article-data {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 2rem 0;
}

.data-point {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    border: 1px solid #e9ecef;
}

.data-value {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #3182ce;
    margin-bottom: 0.25rem;
}

.data-label {
    display: block;
    font-size: 0.875rem;
    color: #718096;
    line-height: 1.4;
}

.article-image-inline {
    margin: 2rem 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
}

.article-image-inline img {
    width: 100%;
    height: auto;
    display: block;
}

.article-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    font-size: 0.875rem;
}

.article-table th {
    background-color: #f8f9fa;
    color: #1a365d;
    font-weight: 600;
    text-align: left;
    padding: 1rem;
    border-bottom: 2px solid #e9ecef;
}

.article-table td {
    padding: 1rem;
    border-bottom: 1px solid #e9ecef;
}

.article-table tr:hover {
    background-color: #f8f9fa;
}

.detail .article-tags {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e9ecef;
}

.detail .article-tags strong {
    display: block;
    margin-bottom: 0.75rem;
    color: #2d3748;
}

/* Author Card */
.author-card {
    display: block;
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 2rem;
    margin: 0 0 3rem;
    border: 1px solid #e9ecef;
}

.author-card .author-header {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.author-card .author-details {
    flex: 1;
}

.author-card .author-name {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.author-card .author-title {
    font-size: 0.875rem;
    color: #718096;
    margin-bottom: 0.75rem;
}

.author-card .author-bio {
    color: #4a5568;
    line-height: 1.6;
}

.author-card .author-stats {
    display: flex;
    justify-content: space-around;
    margin: 1.5rem 0;
    padding: 1.5rem 0;
    border-top: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
}

.author-card .author-stat {
    text-align: center;
}

.author-card .author-stat .stat-value {
    font-size: 1.5rem;
    color: #3182ce;
    margin-bottom: 0.25rem;
}

.author-card .author-stat .stat-label {
    font-size: 0.75rem;
    color: #718096;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.author-card .social-link {
    padding: 0.5rem 1rem;
    background-color: white;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    color: #4a5568;
    font-size: 0.875rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.author-card .social-link:hover {
    background-color: #3182ce;
    color: white;
    border-color: #3182ce;
}

/* Comments Section */
.comments-section {
    background-color: #fff;
    border-radius: 8px;
    padding: 2rem;
    margin-top: 3rem;
    border: 1px solid #e9ecef;
}

.comments-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #1a365d;
}

.comments-count {
    color: #718096;
    font-size: 1rem;
    font-weight: normal;
}

.comment-form {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.comment-form h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    color: #1a365d;
}

.form-description {
    font-size: 0.875rem;
    color: #718096;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #2d3748;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    font-size: 0.875rem;
    transition: border-color 0.2s ease;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: #3182ce;
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.1);
}

.form-note {
    display: block;
    font-size: 0.75rem;
    color: #718096;
    margin-top: 0.25rem;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
}

.checkbox-group label {
    font-size: 0.875rem;
    color: #4a5568;
    cursor: pointer;
}

.submit-btn {
    background-color: #3182ce;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.submit-btn:hover {
    background-color: #2b6cb0;
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.comment {
    padding: 1.5rem;
    border-bottom: 1px solid #e9ecef;
}

.comment:last-child {
    border-bottom: none;
}

.comment.reply {
    margin-left: 2rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.comment-avatar {
    width: 32px;
    height: 32px;
    background-color: #e2e8f0;
    color: #4a5568;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    flex-shrink: 0;
}

.comment-author-info {
    display: flex;
    flex-direction: column;
}

.comment-author-name {
    font-weight: 600;
    color: #2d3748;
}

.comment-author-title {
    font-size: 0.75rem;
    color: #718096;
}

.comment-time {
    font-size: 0.75rem;
    color: #718096;
}

.comment-content {
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.comment-actions {
    display: flex;
    gap: 1rem;
}

.comment-action {
    background: none;
    border: none;
    color: #718096;
    font-size: 0.875rem;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.comment-action:hover {
    background-color: #f8f9fa;
    color: #3182ce;
}

/* Related Articles */
.related-articles {
    margin-top: 4rem;
}

.related-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #1a365d;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e9ecef;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.related-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.related-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: #3182ce;
}

.related-image {
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

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

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

.related-content {
    padding: 1.25rem;
}

.related-category {
    display: inline-block;
    background-color: #e2e8f0;
    color: #4a5568;
    padding: 0.125rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.related-headline {
    font-size: 1rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.related-headline a {
    color: #2d3748;
    text-decoration: none;
}

.related-headline a:hover {
    color: #3182ce;
}

.related-excerpt {
    color: #718096;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: #718096;
}

/* ====== Author Page Specific ====== */

/* Author Header */
.author-header-page {
    background: linear-gradient(135deg, #1a365d 0%, #2d3748 100%);
    color: white;
    padding: 3rem 0;
    margin-bottom: 3rem;
    margin-top: 6rem;
}

.author-profile-header {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 3rem;
    align-items: center;
}

.author-avatar-container {
    position: relative;
    text-align: center;
}

.author-avatar-large {
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, #3182ce 0%, #90cdf4 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: 700;
    margin: 0 auto;
    border: 4px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.author-badge {
    display: inline-block;
    background-color: #3182ce;
    color: white;
    padding: 0.25rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.author-header-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.author-detail-name {
    font-size: 2.5rem;
    margin: 0;
    color: white;
}

.author-title {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

.author-tagline {
    font-size: 1rem;

    margin: 0;
    max-width: 600px;
}

.author-header-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 0.5rem;
}

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

.meta-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.meta-value {
    font-size: 0.875rem;
    color: white;
    font-weight: 500;
}

.author-social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.author-social-links .social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.author-social-links .social-link:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.author-social-links .social-icon {
    font-size: 1rem;
}

/* Author Bio Section */
.author-bio-section {
    background-color: #fff;
    border-radius: 12px;
    padding: 2.5rem;
    margin-bottom: 3rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
}



.author-bio-content h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #1a365d;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid #3182ce;
}

.author-bio-content h3 {
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
    color: #2d3748;
}

.author-bio-content p {
    line-height: 1.7;
    margin-bottom: 1.5rem;
    color: #4a5568;
}

.author-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
}

.author-stat-card {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    border: 1px solid #e9ecef;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.author-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    border-color: #3182ce;
}

.author-stat-card .stat-value {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #3182ce;
    margin-bottom: 0.25rem;
}

.author-stat-card .stat-label {
    display: block;
    font-size: 0.875rem;
    color: #718096;
    line-height: 1.4;
}

.author-expertise {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 1.5rem 0;
}

.expertise-tag {
    display: inline-block;
    background-color: #e2e8f0;
    color: #4a5568;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.expertise-tag:hover {
    background-color: #3182ce;
    color: white;
    transform: translateY(-2px);
}

/* Author Timeline */
.author-timeline {
    position: relative;
    padding-left: 2rem;
    margin: 2rem 0;
}

.author-timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: #3182ce;
}

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

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

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2.5rem;
    top: 0.5rem;
    width: 12px;
    height: 12px;
    background-color: #3182ce;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.2);
}

.timeline-year {
    font-weight: 700;
    color: #3182ce;
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.timeline-content h4 {
    font-size: 1.125rem;
    margin: 0 0 0.25rem;
    color: #2d3748;
}

.timeline-org {
    font-size: 0.875rem;
    color: #718096;
    margin-bottom: 0.5rem;
    font-style: italic;
}

.timeline-content p {
    margin: 0;
    color: #4a5568;
    font-size: 0.875rem;
}

/* Author Education */
.author-education {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.author-education li {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.author-education li:before {
    content: "🎓";
    position: absolute;
    left: 0;
    top: 0;
}

.author-education strong {
    color: #2d3748;
    display: block;
    margin-bottom: 0.25rem;
}

.author-education em {
    color: #718096;
    font-size: 0.875rem;
}

/* Author Awards */
.author-awards {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin: 2rem 0;
}

.award-card {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #3182ce;
    transition: transform 0.3s ease;
}

.award-card:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.award-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.award-content h4 {
    font-size: 1.125rem;
    margin: 0 0 0.25rem;
    color: #2d3748;
}

.award-org {
    font-size: 0.875rem;
    color: #718096;
    margin-bottom: 0.25rem;
}

.award-year {
    display: inline-block;
    background-color: #e2e8f0;
    color: #4a5568;
    padding: 0.125rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.award-desc {
    color: #4a5568;
    font-size: 0.875rem;
    margin: 0;
}

/* Author Quote */
.author-quote {
    margin: 3rem 0;
    padding: 2rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #3182ce;
}

.author-quote blockquote {
    font-size: 1.25rem;
    font-style: italic;
    color: #1a365d;
    margin: 0 0 1rem 0;
    padding: 0;
    line-height: 1.6;
}

.author-quote blockquote::before {
    content: "❝";
    font-size: 2.5rem;
    color: #3182ce;
    line-height: 0;
    vertical-align: -0.4em;
    margin-right: 0.5rem;
}

.author-quote cite {
    display: block;
    font-size: 0.875rem;
    color: #718096;
    font-style: normal;
    text-align: right;
}

/* Author Articles Grid */
.author-articles-section {
    margin-bottom: 4rem;
}

.author-articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.author-article-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    position: relative;
}

.author-article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: #3182ce;
}

.author-article-card.featured {
    border: 2px solid #3182ce;
}

.author-article-card.interview {
    border-left: 4px solid #38a169;
}

.author-article-card.analysis {
    border-left: 4px solid #d69e2e;
}

.featured-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: #3182ce;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 2;
}

.interview-label,
.analysis-label {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background-color: white;
    color: #4a5568;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 2;
    border: 1px solid #e9ecef;
}

/* Author Insights */
.author-insights-section {
    margin-bottom: 4rem;
}

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

.insight-card {
    background-color: #fff;
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid #e9ecef;
    text-align: center;
    transition: all 0.3s ease;
}

.insight-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    border-color: #3182ce;
}

.insight-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.insight-title {
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
    color: #2d3748;
}

.insight-content {
    color: #718096;
    font-size: 0.875rem;
    line-height: 1.5;
    margin: 0;
}

/* Contact Author */
.contact-author-section {
    margin-bottom: 4rem;
}

.contact-card {
    background-color: #fff;
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
}

.contact-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.contact-title {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    color: #1a365d;
}

.contact-subtitle {
    color: #718096;
    font-size: 1rem;
    margin: 0;
    max-width: 600px;
    margin: 0 auto;
}

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

.contact-method {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.contact-method:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    border-color: #3182ce;
}

.method-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.method-title {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    color: #2d3748;
}

.method-detail {
    color: #3182ce;
    font-weight: 600;
    margin-bottom: 0.25rem;
    font-size: 0.875rem;
}

.method-note {
    color: #718096;
    font-size: 0.75rem;
    margin: 0;
}

.contact-form {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 2rem;
}

.form-title {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: #2d3748;
}

.message-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

/* ====== Footer ====== */
.main-footer {
    background-color: var(--primary);
    color: var(--white);
}

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

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1rem;
    display: inline-block;
}

.footer-description {
    color: var(--light-gray);
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
}

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

.social-links a {
    color: var(--light-gray);
    font-size: 0.875rem;
}

.social-links a:hover {
    color: var(--white);
}

.footer-column h3 {
    color: var(--white);
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--light-gray);
    font-size: 0.875rem;
}

.footer-links a:hover {
    color: var(--white);
}

.subscribe-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group input,
.form-group select {
    padding: 0.75rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background-color: var(--white);
    font-size: 0.875rem;
}

.subscribe-btn {
    background-color: var(--accent);
    color: var(--white);
    border: none;
    padding: 0.75rem;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.subscribe-btn:hover {
    background-color: var(--accent-light);
}

.form-note {
    font-size: 0.75rem;
    color: var(--light-gray);
    margin-top: 0.5rem;
}

.subscription-success {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: var(--radius);
    margin-top: 1rem;
}

.footer-bottom {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 1.5rem 0;
}

.footer-bottom .container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-bottom p {
    margin: 0;
}

.footer-bottom a {
    color: var(--white);
}

.footer-legal {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.footer-legal a {
    color: var(--light-gray);
    font-size: 0.875rem;
}

.footer-legal a:hover {
    color: var(--white);
}

/* ====== Back to Top Button ====== */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background-color: var(--accent);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    display: none;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 999;
    box-shadow: var(--shadow);
}

.back-to-top:hover {
    background-color: var(--primary);
    transform: translateY(-3px);
}

/* ====== Utility Classes ====== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

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

/* Large Desktop */
@media (min-width: 1200px) {
    .container {
        max-width: 1240px;
    }
}

/* Desktop */
@media (max-width: 1199px) {
    .container {
        max-width: 960px;
    }

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

    .feature-story {
        grid-column: span 2;
    }

    .categories {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .report-card.horizontal {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .author-stats-grid,
    .author-articles-grid,
    .related-grid,
    .insights-grid,
    .contact-methods {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablet */
@media (max-width: 991px) {
    .container {
        max-width: 720px;
    }

    .hamburger-menu {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: var(--white);
        flex-direction: column;
        padding: 5rem 2rem 2rem;
        box-shadow: var(--shadow);
        transition: left 0.3s ease;
        overflow-y: auto;
    }

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

    .main-nav:not(.scrolled) .nav-menu {
        background-color: var(--primary);
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-menu a {
        display: block;
        padding: 0.75rem 0;
        border-bottom: 1px solid var(--border);
        width: 100%;
    }

    .main-nav:not(.scrolled) .nav-menu a {
        border-bottom-color: rgba(255, 255, 255, 0.1);
    }

    .nav-cta {
        display: none;
    }

    main {
        margin-top: 60px;
    }

    .breadcrumb {
        margin-top: 0px;
    }

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

    .feature-story {
        grid-column: span 1;
    }

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

    .updates-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .update-card {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .content-area {
        grid-template-columns: 1fr;
    }

    .article-card.featured {
        grid-template-columns: 1fr;
    }

    .article-card.horizontal,
    .article-card.horizontal.reverse {
        grid-template-columns: 1fr;
    }

    .article-card.compact {
        grid-template-columns: 1fr;
    }

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

    .pagination {
        flex-direction: column;
        align-items: stretch;
    }

    .pagination-numbers {
        justify-content: center;
        margin: 0.5rem 0;
    }

    .author-profile-header {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .author-header-meta {
        justify-content: center;
    }

    .author-social-links {
        justify-content: center;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.5rem;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .main-nav {
        position: relative;
        padding: 10px 0;
    }

    .nav-menu a {
        color: var(--light);
    }

    main {
        margin-top: 0;
    }

    .list-header {
        padding: 15px 0 0;
    }

    .article-card.horizontal .article-content {
        padding: 15px;
    }

    .article-card.horizontal {
        gap: 0;
    }

    .article-header {
        padding: 0;
        margin: 0;
    }

    .author-header-page {
        margin-top: 0;
    }

    .content-area {
        grid-template-columns: 100%;
    }

    .container {
        padding: 0 15px;
    }

    .story-image {
        height: 200px;
    }

    .feature-story .story-image {
        height: 250px;
    }

    .story-content {
        padding: 1rem;
    }

    .feature-story h3 {
        font-size: 1.5rem;
    }

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

    .page-subtitle {
        font-size: 1rem;
    }

    .filter-options {
        grid-template-columns: 1fr;
    }

    .article-card.horizontal .article-image {
        aspect-ratio: 4 / 3;
    }

    .article-card.compact .article-image {
        height: 100px;
    }

    .article-card.featured .article-content {
        padding: 1.5rem;
    }



    .article-header .article-title {
        font-size: 1.4rem;
    }

    .author-card .author-header {
        align-items: center;
    }

    .article-header .article-subtitle {
        font-size: 1.125rem;
    }

    .article-meta-bar {
        gap: 0.3rem;
        padding: 10px 0;
    }

    .author-mini-avatar {
        display: none;
    }

    .publish-date,
    .update-date,
    .meta-detail,
    .article-header .author-name {
        font-size: 0.7rem;
    }

    .article-date-info {
        width: 100%;
    }

    .image-caption {
        position: relative;
        background: #f8f9fa;
        color: #4a5568;
        padding: 0.75rem;
        font-size: 0.875rem;
    }

    .share-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .share-buttons {
        width: 100%;
    }

    .share-btn {
        flex: 1;
        justify-content: center;
    }

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

    .article-data {
        grid-template-columns: 1fr;
    }

    .author-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .author-stats {
        flex-direction: column;
        gap: 1rem;
    }

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

    .author-social {
        justify-content: center;
    }

    .comment-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .comment.reply {
        margin-left: 1rem;
    }

    .author-stats-grid,
    .author-articles-grid,
    .related-grid,
    .insights-grid,
    .contact-methods {
        grid-template-columns: 1fr;
    }

    .author-avatar-large {
        width: 120px;
        height: 120px;
        font-size: 2.5rem;
    }

    .filter-tabs {
        justify-content: center;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .back-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }
}

/* Small Mobile */
@media (max-width: 575px) {
    .article-title {
        font-size: 1.75rem;
    }

    .article-categories {
        justify-content: center;
    }

    .article-author-meta {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .article-quote {
        padding: 1.5rem;
    }

    .article-quote blockquote {
        font-size: 1.125rem;
    }

    .article-table {
        font-size: 0.75rem;
    }

    .article-table th,
    .article-table td {
        padding: 0.75rem 0.5rem;
    }

    .comments-section {
        padding: 1.5rem;
    }

    .footer-bottom .container {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .footer-legal {
        flex-wrap: wrap;
        justify-content: center;
    }

    .author-awards {
        gap: 1rem;
    }

    .award-card {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
}