/* ==========================================================================
   Echo News Template - Full Stylesheet
   A business news magazine template with dark header, blue/red accents
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Font-Face Declarations
   -------------------------------------------------------------------------- */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url(/templates/echo/inter-latin.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Bona Nova';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url(/templates/echo/bona-nova-latin.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --------------------------------------------------------------------------
   2. CSS Custom Properties
   -------------------------------------------------------------------------- */
:root {
    --primary: #537FE7;
    --accent: #FF390E;
    --heading: #181823;
    --body-text: #5E5E5E;
    --bg-dark: #181823;
    --bg-light: #f8f9fa;
    --white: #fff;
    --border: #e8e8e8;
    --font-heading: 'Bona Nova', serif;
    --font-body: 'Inter', sans-serif;
    --max-width: 1200px;
    --transition: 0.3s;
    --shadow: 0 2px 8px rgba(0,0,0,0.08);
    --radius: 4px;
}

/* --------------------------------------------------------------------------
   3. Reset & Base
   -------------------------------------------------------------------------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    color: var(--body-text);
    line-height: 1.6;
    font-size: 16px;
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--heading);
    line-height: 1.3;
}

a {
    color: var(--heading);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--primary);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* --------------------------------------------------------------------------
   4. Typography
   -------------------------------------------------------------------------- */
h1 { font-size: 40px; }
h2 { font-size: 32px; }
h3 { font-size: 26px; }
h4 { font-size: 22px; }
h5 { font-size: 18px; }
h6 { font-size: 16px; }
p  { margin-bottom: 16px; }

/* --------------------------------------------------------------------------
   5. Header & Navigation
   -------------------------------------------------------------------------- */
.site-header {
    background: var(--bg-dark);
    padding: 0;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}

.site-logo {
    display: flex;
    align-items: center;
}

.site-logo img {
    height: 40px;
    width: auto;
}

.site-logo .site-name {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    color: var(--white);
}

.logo-svg {
    color: var(--white);
}

.logo-svg svg {
    height: 40px;
    width: auto;
}

/* Navigation bar */
.main-nav {
    background: var(--bg-dark);
    border-top: 1px solid rgba(255,255,255,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.main-nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0;
    flex: 1;
}

.nav-item a {
    display: block;
    padding: 14px 18px;
    color: rgba(255,255,255,0.8);
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color var(--transition);
}

.nav-item a:hover,
.nav-item.active a {
    color: var(--white);
    background: rgba(255,255,255,0.05);
}

/* Mobile hamburger toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    flex-direction: column;
    gap: 5px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    transition: var(--transition);
}

/* Search button in nav */
.nav-search {
    margin-left: auto;
}

.search-toggle {
    background: none;
    border: none;
    cursor: pointer;
    color: rgba(255,255,255,0.8);
    padding: 14px 10px;
    transition: color var(--transition);
}

.search-toggle:hover {
    color: var(--white);
}

/* --------------------------------------------------------------------------
   6. Hero Section (Homepage)
   -------------------------------------------------------------------------- */
.hero-section {
    padding: 40px 0;
    background: var(--white);
}

.hero-grid {
    display: grid;
    grid-template-columns: 7fr 5fr;
    gap: 30px;
}

.hero-main {
    position: relative;
}

.hero-main .hero-image {
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 20px;
}

.hero-main .hero-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform var(--transition);
}

.hero-main .hero-image:hover img {
    transform: scale(1.03);
}

.hero-main h2 {
    font-size: 30px;
    margin-bottom: 12px;
}

.hero-main h2 a {
    color: var(--heading);
}

.hero-main h2 a:hover {
    color: var(--primary);
}

.hero-main .hero-excerpt {
    color: var(--body-text);
    margin-bottom: 16px;
    line-height: 1.6;
}

.hero-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: var(--body-text);
}

.hero-meta .author-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

/* Top stories sidebar (hero right) */
.top-stories .section-subtitle {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    color: var(--heading);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary);
}

.top-story-card {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid var(--border);
}

.top-story-card:last-child {
    border-bottom: none;
}

.top-story-card .card-thumb {
    flex-shrink: 0;
    width: 100px;
    height: 75px;
    border-radius: var(--radius);
    overflow: hidden;
}

.top-story-card .card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition);
}

.top-story-card:hover .card-thumb img {
    transform: scale(1.05);
}

.top-story-card .card-info {
    flex: 1;
}

.top-story-card .category-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 4px;
}

.top-story-card h4 {
    font-size: 15px;
    line-height: 1.3;
    margin-bottom: 4px;
}

.top-story-card h4 a {
    color: var(--heading);
}

.top-story-card h4 a:hover {
    color: var(--primary);
}

.top-story-card .card-meta {
    font-size: 12px;
    color: var(--body-text);
}

/* --------------------------------------------------------------------------
   7. Section Titles
   -------------------------------------------------------------------------- */
.section-title {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    color: var(--heading);
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary);
    display: inline-block;
}

/* --------------------------------------------------------------------------
   8. Latest News Grid (3 columns)
   -------------------------------------------------------------------------- */
.latest-news-section {
    padding: 40px 0;
    background: var(--bg-light);
}

.latest-news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.latest-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform var(--transition), box-shadow var(--transition);
}

.latest-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.latest-card .card-image {
    position: relative;
    overflow: hidden;
}

.latest-card .card-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform var(--transition);
}

.latest-card:hover .card-image img {
    transform: scale(1.05);
}

.latest-card .card-image .category-badge {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: var(--primary);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.latest-card .card-content {
    padding: 18px;
}

.latest-card h5 {
    margin-bottom: 8px;
    font-size: 17px;
}

.latest-card h5 a {
    color: var(--heading);
}

.latest-card h5 a:hover {
    color: var(--primary);
}

.latest-card .card-meta {
    font-size: 13px;
    color: var(--body-text);
}

/* --------------------------------------------------------------------------
   9. Editor's Pick / Feature Section (8/4 layout)
   -------------------------------------------------------------------------- */
.editors-pick-section {
    padding: 40px 0;
}

.editors-pick-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.feature-card {
    display: flex;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
}

.feature-card:last-child {
    border-bottom: none;
}

.feature-card .card-image {
    flex-shrink: 0;
    width: 250px;
    height: 170px;
    border-radius: var(--radius);
    overflow: hidden;
}

.feature-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition);
}

.feature-card:hover .card-image img {
    transform: scale(1.05);
}

.feature-card .card-content {
    flex: 1;
}

.feature-card .category-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 6px;
}

.feature-card h3 {
    font-size: 20px;
    margin-bottom: 8px;
}

.feature-card h3 a {
    color: var(--heading);
}

.feature-card h3 a:hover {
    color: var(--primary);
}

.feature-card .card-meta {
    font-size: 13px;
    color: var(--body-text);
}

/* --------------------------------------------------------------------------
   10. Category Badge (generic)
   -------------------------------------------------------------------------- */
.category-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--primary);
    transition: color var(--transition);
}

.category-badge:hover {
    color: var(--accent);
}

.category-badge.small {
    font-size: 10px;
}

/* --------------------------------------------------------------------------
   11. Most Popular Section (2 columns)
   -------------------------------------------------------------------------- */
.popular-section {
    padding: 40px 0;
    background: var(--bg-light);
}

.popular-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.popular-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.popular-card .card-image {
    overflow: hidden;
}

.popular-card .card-image img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: transform var(--transition);
}

.popular-card:hover .card-image img {
    transform: scale(1.05);
}

.popular-card .card-content {
    padding: 20px;
}

.popular-card h4 {
    font-size: 20px;
    margin-bottom: 10px;
}

.popular-card h4 a {
    color: var(--heading);
}

.popular-card h4 a:hover {
    color: var(--primary);
}

.popular-card .card-meta {
    font-size: 13px;
    color: var(--body-text);
    display: flex;
    gap: 15px;
}

/* --------------------------------------------------------------------------
   12. Article Cards Grid (2 columns, used across multiple pages)
   -------------------------------------------------------------------------- */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.article-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform var(--transition), box-shadow var(--transition);
}

.article-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.article-card .card-image {
    display: block;
    overflow: hidden;
}

.article-card .card-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform var(--transition);
}

.article-card:hover .card-image img {
    transform: scale(1.05);
}

.article-card .card-content {
    padding: 16px;
}

.article-card .card-content h3,
.article-card .card-content h4 {
    font-size: 17px;
    margin-bottom: 6px;
    line-height: 1.3;
}

.article-card .card-content h3 a,
.article-card .card-content h4 a {
    color: var(--heading);
}

.article-card .card-content h3 a:hover,
.article-card .card-content h4 a:hover {
    color: var(--primary);
}

.article-card .card-meta {
    font-size: 13px;
    color: var(--body-text);
}

/* --------------------------------------------------------------------------
   13. Content Grid Layout (main + sidebar)
   -------------------------------------------------------------------------- */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 40px;
    padding: 40px 0;
}

.content-main {
    min-width: 0;
}

/* --------------------------------------------------------------------------
   14. Article Page
   -------------------------------------------------------------------------- */
.article-header {
    margin-bottom: 25px;
}

.article-header h1 {
    font-size: 36px;
    margin: 12px 0 16px;
    line-height: 1.25;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--body-text);
    margin-bottom: 20px;
}

.article-meta .author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.article-meta .author-initial {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    font-weight: 700;
    font-size: 16px;
}

.article-meta .author-name {
    font-weight: 600;
    color: var(--heading);
}

.article-meta .meta-sep {
    color: var(--border);
}

.article-hero-image {
    margin-bottom: 30px;
    border-radius: var(--radius);
    overflow: hidden;
}

.article-hero-image img {
    width: 100%;
    height: auto;
}

.article-content {
    font-size: 17px;
    line-height: 1.8;
    color: var(--body-text);
}

.article-content h2 {
    font-size: 28px;
    margin: 30px 0 15px;
}

.article-content h3 {
    font-size: 22px;
    margin: 25px 0 12px;
}

.article-content p {
    margin-bottom: 18px;
}

.article-content img {
    border-radius: var(--radius);
    margin: 20px 0;
}

.article-content ul,
.article-content ol {
    padding-left: 24px;
    margin-bottom: 18px;
}

.article-content li {
    margin-bottom: 6px;
}

.article-content blockquote {
    border-left: 4px solid var(--primary);
    padding: 16px 20px;
    margin: 20px 0;
    background: var(--bg-light);
    font-style: italic;
}

/* --------------------------------------------------------------------------
   15. Social Share
   -------------------------------------------------------------------------- */
.article-share {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin: 30px 0;
}

.article-share span {
    font-weight: 600;
    font-size: 14px;
    color: var(--heading);
}

.article-share a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-light);
    color: var(--body-text);
    transition: background var(--transition), color var(--transition);
}

.article-share a:hover {
    background: var(--primary);
    color: var(--white);
}

/* --------------------------------------------------------------------------
   16. Author Box
   -------------------------------------------------------------------------- */
.author-box {
    display: flex;
    gap: 20px;
    padding: 25px;
    background: var(--bg-light);
    border-radius: var(--radius);
    margin: 30px 0;
}

.author-box-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.author-box-initial {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    font-size: 28px;
    font-weight: 700;
    flex-shrink: 0;
}

.author-box-info h4 {
    margin-bottom: 6px;
}

.author-box-info h4 a {
    color: var(--heading);
}

.author-box-info h4 a:hover {
    color: var(--primary);
}

.author-box-info p {
    font-size: 14px;
    color: var(--body-text);
    margin-bottom: 8px;
}

.author-articles-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
}

.author-articles-link:hover {
    color: var(--accent);
}

/* --------------------------------------------------------------------------
   17. Related Articles
   -------------------------------------------------------------------------- */
.related-articles {
    margin-top: 40px;
}

.related-articles h3 {
    font-size: 22px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary);
    display: inline-block;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

/* --------------------------------------------------------------------------
   18. Sidebar & Widgets
   -------------------------------------------------------------------------- */
.widget {
    background: var(--white);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: var(--shadow);
}

.widget-title {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    color: var(--heading);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary);
}

/* Social stats widget */
.widget-social .social-stats {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.social-stat {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--radius);
    color: var(--white);
    font-size: 13px;
    transition: opacity var(--transition);
}

.social-stat:hover {
    opacity: 0.9;
    color: var(--white);
}

.social-stat.facebook {
    background: #3B5997;
}

.social-stat.twitter {
    background: #1BA1F2;
}

.social-stat.instagram {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.social-stat.youtube {
    background: #ED4141;
}

.social-stat .count {
    font-weight: 700;
    margin-left: auto;
}

.social-stat .label {
    margin-left: 4px;
    opacity: 0.8;
}

/* Newsletter widget */
.widget-newsletter p {
    font-size: 14px;
    color: var(--body-text);
    margin-bottom: 12px;
}

.newsletter-form input[type="email"] {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 14px;
    margin-bottom: 10px;
    outline: none;
    transition: border-color var(--transition);
}

.newsletter-form input[type="email"]:focus {
    border-color: var(--primary);
}

.newsletter-form button {
    width: 100%;
    padding: 10px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition);
}

.newsletter-form button:hover {
    background: var(--accent);
}

/* Categories widget */
.categories-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.categories-list li {
    border-bottom: 1px solid var(--border);
}

.categories-list li:last-child {
    border-bottom: none;
}

.categories-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    font-size: 14px;
    color: var(--body-text);
}

.categories-list a:hover {
    color: var(--primary);
}

.category-count {
    background: var(--bg-light);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

/* Popular posts widget */
.widget-popular .popular-post {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.widget-popular .popular-post:last-child {
    border-bottom: none;
}

.widget-popular .popular-post .post-thumb {
    flex-shrink: 0;
    width: 70px;
    height: 55px;
    border-radius: var(--radius);
    overflow: hidden;
}

.widget-popular .popular-post .post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.widget-popular .popular-post h5 {
    font-size: 14px;
    margin-bottom: 4px;
    line-height: 1.3;
}

.widget-popular .popular-post h5 a {
    color: var(--heading);
}

.widget-popular .popular-post h5 a:hover {
    color: var(--primary);
}

.widget-popular .popular-post .post-meta {
    font-size: 12px;
    color: var(--body-text);
}

/* --------------------------------------------------------------------------
   19. Breadcrumb
   -------------------------------------------------------------------------- */
.breadcrumb-nav {
    padding: 15px 0;
    background: var(--bg-light);
    border-bottom: 1px solid var(--border);
}

.breadcrumb {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    margin: 0;
    font-size: 13px;
}

.breadcrumb li {
    display: flex;
    align-items: center;
    gap: 8px;
}

.breadcrumb li + li::before {
    content: '/';
    color: var(--body-text);
}

.breadcrumb a {
    color: var(--body-text);
}

.breadcrumb a:hover {
    color: var(--primary);
}

.breadcrumb [aria-current="page"] {
    color: var(--heading);
    font-weight: 500;
}

/* --------------------------------------------------------------------------
   20. Pagination
   -------------------------------------------------------------------------- */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 40px;
    padding: 20px 0;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    color: var(--body-text);
    transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.pagination a:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.pagination .active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.pagination .disabled {
    opacity: 0.4;
    pointer-events: none;
}

/* --------------------------------------------------------------------------
   21. Footer
   -------------------------------------------------------------------------- */
.site-footer {
    background: var(--bg-dark);
    color: rgba(255,255,255,0.7);
    padding: 50px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    padding-bottom: 40px;
}

.footer-section h3 {
    font-family: var(--font-heading);
    color: var(--white);
    font-size: 18px;
    margin-bottom: 15px;
}

.footer-description {
    font-size: 14px;
    line-height: 1.6;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    transition: color var(--transition);
}

.footer-links a:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
    text-align: center;
    font-size: 14px;
}

/* --------------------------------------------------------------------------
   22. Category Page
   -------------------------------------------------------------------------- */
.category-header {
    padding: 40px 0 30px;
    background: var(--bg-light);
}

.category-header h1 {
    font-size: 36px;
    margin-bottom: 10px;
}

.category-description {
    color: var(--body-text);
    max-width: 600px;
    margin-bottom: 8px;
}

.category-articles-count {
    font-size: 14px;
    color: var(--body-text);
    font-weight: 500;
}

.featured-category-article {
    margin-bottom: 30px;
}

.featured-category-article .featured-image {
    display: block;
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 18px;
}

.featured-category-article .featured-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform var(--transition);
}

.featured-category-article:hover .featured-image img {
    transform: scale(1.03);
}

.featured-category-article h2 {
    font-size: 28px;
    margin-bottom: 10px;
}

.featured-category-article h2 a {
    color: var(--heading);
}

.featured-category-article h2 a:hover {
    color: var(--primary);
}

.no-articles {
    text-align: center;
    padding: 40px;
    color: var(--body-text);
    font-size: 16px;
}

/* --------------------------------------------------------------------------
   23. Author Page
   -------------------------------------------------------------------------- */
.author-profile {
    padding: 50px 0 30px;
    background: var(--bg-light);
}

.author-profile-card {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.author-profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 16px;
    border: 4px solid var(--white);
    box-shadow: var(--shadow);
}

.author-profile-initial {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    font-size: 42px;
    font-weight: 700;
    margin: 0 auto 16px;
}

.author-profile-card h1 {
    font-size: 32px;
    margin-bottom: 10px;
}

.author-bio {
    color: var(--body-text);
    line-height: 1.6;
    margin-bottom: 10px;
}

.author-articles-count {
    font-size: 14px;
    color: var(--body-text);
    font-weight: 500;
}

/* --------------------------------------------------------------------------
   24. Contact Page
   -------------------------------------------------------------------------- */
.contact-section {
    padding: 60px 0;
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.contact-content h1 {
    font-size: 36px;
    margin-bottom: 16px;
}

.contact-intro {
    color: var(--body-text);
    margin-bottom: 30px;
    line-height: 1.6;
}

.contact-email-box {
    background: var(--bg-light);
    padding: 30px;
    border-radius: var(--radius);
    display: inline-block;
}

.contact-email-box a {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary);
}

.contact-email-box a:hover {
    color: var(--accent);
}

/* --------------------------------------------------------------------------
   25. Static Page
   -------------------------------------------------------------------------- */
.page-content-section {
    padding: 40px 0;
}

.page-content-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.page-content-wrapper h1 {
    font-size: 36px;
    margin-bottom: 16px;
}

.page-description {
    color: var(--body-text);
    font-size: 18px;
    margin-bottom: 30px;
}

.page-body {
    font-size: 17px;
    line-height: 1.8;
    color: var(--body-text);
}

.page-body h2 {
    margin: 30px 0 15px;
}

.page-body h3 {
    margin: 25px 0 12px;
}

.page-body p {
    margin-bottom: 16px;
}

.page-body img {
    border-radius: var(--radius);
    margin: 20px 0;
    max-width: 100%;
}

.page-body ul,
.page-body ol {
    padding-left: 24px;
    margin-bottom: 16px;
}

/* --------------------------------------------------------------------------
   26. Back to Top
   -------------------------------------------------------------------------- */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition), visibility var(--transition), background var(--transition);
    z-index: 50;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

#back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

#back-to-top:hover {
    background: var(--accent);
}

/* --------------------------------------------------------------------------
   27. Search Overlay
   -------------------------------------------------------------------------- */
.search-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition), visibility var(--transition);
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.search-close {
    position: absolute;
    top: 30px;
    right: 30px;
    background: none;
    border: none;
    color: var(--white);
    font-size: 36px;
    cursor: pointer;
}

.search-box {
    width: 100%;
    max-width: 600px;
    padding: 0 20px;
}

.search-box input {
    width: 100%;
    padding: 16px 20px;
    background: var(--white);
    border: none;
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 18px;
    outline: none;
}

/* --------------------------------------------------------------------------
   28. All News Grid Section (homepage bottom)
   -------------------------------------------------------------------------- */
.all-news-section {
    padding: 40px 0;
}

.all-news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

/* --------------------------------------------------------------------------
   29. Bottom Posts Area (3-column with category headers)
   -------------------------------------------------------------------------- */
.bottom-posts-section {
    padding: 40px 0;
    background: var(--bg-light);
}

.bottom-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.bottom-posts-column h5.column-title {
    font-size: 18px;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary);
}

.bottom-post-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.bottom-post-item:last-child {
    border-bottom: none;
}

.bottom-post-item .post-thumb {
    flex-shrink: 0;
    width: 80px;
    height: 60px;
    border-radius: var(--radius);
    overflow: hidden;
}

.bottom-post-item .post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bottom-post-item .post-info {
    flex: 1;
}

.bottom-post-item .post-info .category-badge {
    font-size: 10px;
    display: block;
    margin-bottom: 2px;
}

.bottom-post-item .post-info h5 {
    font-size: 14px;
    line-height: 1.3;
}

.bottom-post-item .post-info h5 a {
    color: var(--heading);
}

.bottom-post-item .post-info h5 a:hover {
    color: var(--primary);
}

/* --------------------------------------------------------------------------
   30. Media Queries
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .editors-pick-grid {
        grid-template-columns: 1fr;
    }

    .content-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .popular-grid {
        grid-template-columns: 1fr;
    }

    .bottom-posts-grid {
        grid-template-columns: 1fr;
    }

    .feature-card .card-image {
        width: 200px;
        height: 140px;
    }

    .sidebar {
        margin-top: 30px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-dark);
        flex-direction: column;
        border-top: 1px solid rgba(255,255,255,0.1);
        z-index: 100;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-item a {
        padding: 12px 20px;
    }

    .latest-news-grid {
        grid-template-columns: 1fr;
    }

    .all-news-grid {
        grid-template-columns: 1fr;
    }

    .articles-grid {
        grid-template-columns: 1fr;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .feature-card {
        flex-direction: column;
    }

    .feature-card .card-image {
        width: 100%;
        height: 200px;
    }

    .hero-main h2 {
        font-size: 24px;
    }

    .hero-main .hero-image img {
        height: 260px;
    }

    .article-header h1 {
        font-size: 28px;
    }

    .category-header h1 {
        font-size: 28px;
    }

    .author-box {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    h1 {
        font-size: 28px;
    }

    h2 {
        font-size: 24px;
    }

    .container {
        padding: 0 15px;
    }

    .featured-category-article .featured-image img {
        height: 250px;
    }
}

@media (max-width: 480px) {
    .top-story-card .card-thumb {
        width: 80px;
        height: 60px;
    }

    .latest-card .card-image img {
        height: 180px;
    }

    .popular-card .card-image img {
        height: 200px;
    }
}
