/*!
Theme Name: News Site
Theme URI: https://newssite1.weebly.com/
Author: Achyut Kumar De
Author URI: https://achyutkumarde.github.io/
Description: Theme for an awesome news site
Version: 1.0.23
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: news-site
Tags: news, custom-background, custom-menu, featured-images, threaded-comments

This theme, like WordPress, is licensed under the GPL.

news-site is based on Underscores https://underscores.me/, (C) 2012-2017 Automattic, Inc.
Underscores is distributed under the terms of the GNU GPL v2 or later.

Normalizing styles have been helped along thanks to the fine work of
Nicolas Gallagher and Jonathan Neal https://necolas.github.io/normalize.css/
*/

/* Compatibility for classic theme structure */
.site-content {
    flex: 1;
    width: 100%;
}

.content-area {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 40px 20px 80px;
}

.site-main {
    display: grid;
    gap: 40px;
}

.entry-title a,
.post-card .wp-block-post-title a,
.hero-post .wp-block-post-title a {
    color: #ffffff;
}

.entry-title a:hover,
.post-card .wp-block-post-title a:hover,
.hero-post .wp-block-post-title a:hover {
    color: #10b981;
}

.entry-content,
.content-area p,
.post-content,
.site-description,
.footer-description {
    color: #cccccc;
}

.post-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}


/* Base Styles */
body {
    background-color: #111111;
    color: #ffffff;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header Styles */
.site-header {
    background-color: #111;
    border-bottom: 1px solid #86EFAC;
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 70px;
}

/* Site Branding */
.site-branding {
    flex-shrink: 0;
}

.site-title {
    font-size: 28px;
    font-weight: 700;
    margin: 0;
}

.site-title a {
    text-decoration: none;
    color: #ffffff;
    transition: color 0.3s ease;
}

.site-title a:hover {
    color: #10b981;
}

/* Navigation */
.site-navigation {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: #ffffff;
    font-weight: 500;
    font-size: 16px;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link:focus {
    color: #10b981;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #10b981;
    transition: width 0.3s ease;
}

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

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.search-toggle,
.icon-button {
    background: none;
    border: none;
    color: #ffffff;
    cursor: pointer;
    padding: 10px;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-button img {
    filter: brightness(0) invert(1); /* White */
    transition: filter 0.3s ease;
}

.search-toggle:hover,
.icon-button:hover {
    background-color: #333;
    color: #86EFAC;
}

.icon-button:hover img {
    filter: invert(0.7) sepia(1) saturate(5) hue-rotate(80deg) brightness(1.2); /* Approximate #86EFAC green */
}

/* Search Overlay */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

.search-overlay.active {
    display: flex;
}

.search-overlay-content {
    background-color: #1a1a1a;
    padding: 40px;
    border-radius: 12px;
    width: 100%;
    max-width: 600px;
    position: relative;
}

.search-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 30px;
    cursor: pointer;
    padding: 5px;
    line-height: 1;
}

.search-form {
    display: flex;
    gap: 15px;
    align-items: center;
}

.search-input {
    flex: 1;
    padding: 15px 20px;
    background-color: #111;
    border: 2px solid #333;
    border-radius: 8px;
    color: #ffffff;
    font-size: 18px;
    outline: none;
    transition: border-color 0.3s ease;
}

.search-input:focus {
    border-color: #86EFAC;
}

.search-submit {
    padding: 15px 25px;
    background-color: #86EFAC;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-submit:hover {
    background-color: #4ade80;
}

/* Main Content */
.main-content {
    flex: 1;
}

/* Hero Section */
.hero-section {
    background-color: #111;
}

.hero-post {
    display: flex;
    align-items: center;
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 20px;
}

.hero-post .wp-block-columns {
    align-items: center;
    gap: 40px;
}

.hero-post .wp-block-post-featured-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
}

.hero-post .wp-block-post-title {
    margin: 20px 0;
    font-size: 36px;
    line-height: 1.2;
}

.hero-post .wp-block-post-excerpt {
    font-size: 18px;
    color: #cccccc;
    margin-bottom: 20px;
}

/* Post Grid */
.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 20px;
    text-align: left;
}

.post-card {
    background-color: #1a1a1a;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(134, 239, 172, 0.2);
}

.post-card .wp-block-post-featured-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.post-content {
    padding: 20px;
}

.post-card .wp-block-post-title {
    font-size: 18px;
    line-height: 1.3;
    margin: 12px 0;
}

.post-card .wp-block-post-title a {
    text-decoration: none;
    color: #ffffff;
    transition: color 0.3s ease;
}

.post-card .wp-block-post-title a:hover {
    color: #86EFAC;
}

.post-card .wp-block-post-excerpt {
    font-size: 14px;
    color: #cccccc;
    line-height: 1.4;
}

.post-meta {
    font-size: 12px;
    color: #888;
    margin-top: 12px;
}

/* Single Post */
.post-header {
    border-bottom: 1px solid #333;
    padding-bottom: 40px;
    margin-bottom: 40px;
}

.post-header .wp-block-post-title {
    font-size: 48px;
    line-height: 1.1;
    margin: 20px 0;
}

.post-header .wp-block-post-excerpt {
    font-size: 20px;
    color: #cccccc;
    margin-bottom: 20px;
}

.post-content {
    font-size: 18px;
    line-height: 1.7;
    color: #ffffff;
}

.post-content h2,
.post-content h3,
.post-content h4 {
    color: #ffffff;
    margin-top: 40px;
    margin-bottom: 20px;
}

.post-content p {
    margin-bottom: 20px;
}

.post-content a {
    color: #10b981;
    text-decoration: none;
}

.post-content a:hover {
    text-decoration: underline;
}

.post-footer {
    padding-top: 40px;
    margin-top: 40px;
}

/* Pagination */
.wp-block-query-pagination {
    margin-top: 40px;
}

.wp-block-query-pagination .page-numbers {
    color: #ffffff;
    text-decoration: none;
    padding: 8px 16px;
    border: 1px solid #333;
    border-radius: 4px;
    margin: 0 4px;
    transition: all 0.3s ease;
}

.wp-block-query-pagination .page-numbers:hover,
.wp-block-query-pagination .page-numbers.current {
    background-color: #86EFAC;
    border-color: #86EFAC;
}

/* Footer */
.site-footer {
    background-color: #0a0a0a;
    border-top: 1px solid #86EFAC;
    margin-top: auto;
    width: 100%;
}

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

.footer-main {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 60px;
    padding: 60px 0;
    border-bottom: 1px solid #333;
}

.footer-brand h3 {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 15px 0;
    color: #ffffff;
}

.footer-description {
    color: #cccccc;
    margin: 0 0 25px 0;
    line-height: 1.6;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.social-link {
    color: #cccccc;
    text-decoration: none;
    padding: 10px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.social-link:hover {
    color: #10b981;
    background-color: #333;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-section h4 {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 20px 0;
    color: #ffffff;
}

.footer-section ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-section li {
    margin-bottom: 10px;
}

.footer-section a {
    color: #cccccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #10b981;
}

.footer-bottom {
    padding: 25px 0;
}

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

.footer-tagline {
    color: #888;
    font-size: 14px;
}

/* Main Content */
.main-content {
    flex: 1;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .header-container {
        padding: 0 15px;
    }

    .nav-links {
        gap: 20px;
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: 40px;
    }

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

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 15px;
        min-height: 60px;
        padding: 15px;
    }

    .site-navigation {
        position: static;
        transform: none;
        order: 3;
        width: 100%;
    }

    .nav-links {
        justify-content: center;
        flex-wrap: wrap;
    }

    .header-actions {
        order: 2;
    }

    .site-title {
        font-size: 24px;
        text-align: center;
    }

    .hero-post .wp-block-columns {
        flex-direction: column;
        gap: 20px;
    }

    .hero-post .wp-block-column {
        flex-basis: 100% !important;
    }

    .post-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .post-header .wp-block-post-title {
        font-size: 32px;
    }

    .footer-main {
        padding: 40px 0;
    }

    .footer-links {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-bottom-content {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .search-overlay-content {
        padding: 30px 20px;
        margin: 20px;
    }

    .search-form {
        flex-direction: column;
        gap: 15px;
    }

    .search-input {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .header-container {
        padding: 10px;
    }

    .nav-links {
        gap: 10px;
    }

    .nav-link {
        font-size: 14px;
    }

    .site-title {
        font-size: 20px;
    }

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

    .footer-main {
        padding: 30px 0;
    }
}

/* Category Colors */
.category-games { color: #4caf50; }
.category-reviews { color: #2196f3; }
.category-news { color: #ff9800; }
.category-guides { color: #9c27b0; }

/* Category/Page Hero */
.category-hero-section,
.page-hero-section {
    background-color: #111;
    padding: 60px 20px;
    text-align: center;
    position: relative;
    background-size: cover;
    background-position: center;
    min-height: 400px;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.page-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

/* Post List */
.post-list {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
}

.post-item {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #333;
}

.post-item:last-child {
    border-bottom: none;
}

.post-item-content {
    flex: 1;
}

.post-category {
    font-size: 12px;
    font-weight: 600;
    color: #86EFAC;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.post-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 15px 0;
}

.post-title a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-title a:hover {
    color: #10b981;
}

.post-excerpt {
    color: #cccccc;
    line-height: 1.6;
    margin-bottom: 15px;
}

.post-meta {
    font-size: 14px;
    color: #888;
}

.post-thumbnail {
    flex-shrink: 0;
    width: 300px;
}

/* Carousel Styles */
.carousel-section {
    margin-bottom: 60px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.carousel-title {
    font-size: 32px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 20px;
    text-align: center;
}

.carousel-container {
    position: relative;
    display: flex;
    align-items: center;
}

.carousel {
    flex: 1;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    gap: 20px;
    transition: transform 0.3s ease;
}

.carousel-item {
    flex-shrink: 0;
    width: 250px;
    text-align: center;
}

.carousel-thumbnail img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 10px;
}

.carousel-item-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.carousel-item-title a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.carousel-item-title a:hover {
    color: #10b981;
}

.carousel-prev,
.carousel-next {
    background: #333;
    border: none;
    color: #ffffff;
    font-size: 24px;
    padding: 10px;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.3s ease;
    z-index: 10;
}

.carousel-prev:hover,
.carousel-next:hover {
    background: #86EFAC;
    margin-bottom: 24px;
}

.hero-author {
    margin-top: 20px;
}

.category-header,
.latest-page-section {
    padding: 40px 0 24px;
    border-bottom: 1px solid #333;
    margin-bottom: 40px;
}

.category-header .page-title,
.latest-page-section .section-title {
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.category-header .page-description,
.latest-page-section p {
    max-width: 720px;
    color: #cccccc;
    line-height: 1.8;
}

.related-posts {
    border-top: 1px solid #333;
    padding-top: 60px;
}

.related-title {
    margin-bottom: 30px;
    text-align: center;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.related-card {
    transition: transform 0.3s ease;
}

.related-card:hover {
    transform: translateY(-2px);
}

.related-thumbnail {
    transition: transform 0.3s ease;
}

.related-thumbnail:hover {
    transform: scale(1.05);
}

.archive-title {
    text-align: center;
    margin-bottom: 20px;
}

.archive-description {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.posts-pagination {
    margin-top: 50px;
}

.comments-section,
.comments-area {
    border-top: 1px solid #333;
    padding-top: 60px;
    max-width: 900px;
    margin: 0 auto;
}

.comments-area .comments-title,
.comments-area .comment-list,
.comments-area .comment-respond {
    max-width: 900px;
    margin: 0 auto;
}

.comments-area .comment-list {
    padding-left: 0;
}

.comments-area .comment-respond {
    width: 100%;
}

/* Column Layout for Latest Posts */
.latest-page-section {
    max-width: 900px;
    margin: 0 auto;
}

.latest-page-section .section-title {
    margin-bottom: 16px;
    font-size: 40px;
}

.latest-page-section p {
    margin-bottom: 32px;
    color: #cccccc;
}

.latest-page-section .column-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 40px;
}

.column-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.column-post-card {
    background-color: #1a1a1a;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: fit-content;
}

.column-post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(134, 239, 172, 0.2);
}

.column-thumbnail {
    transition: transform 0.3s ease;
}

.column-thumbnail:hover {
    transform: scale(1.05);
}

.column-category {
    margin-bottom: 8px;
}

.column-title {
    margin-bottom: 12px;
    font-size: 18px;
    line-height: 1.3;
}

.column-excerpt {
    margin-bottom: 16px;
    font-size: 14px;
    line-height: 1.5;
}

.column-meta {
    font-size: 12px;
    color: #888;
    margin-top: 12px;
}

.home-hero-section {
    background-image: linear-gradient(180deg, rgba(17,17,17,1) 0%, rgba(14,14,14,1) 100%);
    padding-bottom: 60px;
    position: relative;
    background-size: cover;
    background-position: center;
    min-height: 500px;
    display: flex;
    align-items: center;
}

.home-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-post {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-copy {
    max-width: 600px;
    color: #ffffff;
}

.hero-copy h1 a {
    color: #ffffff;
    text-decoration: none;
}

.hero-copy h1 a:hover {
    color: #86EFAC;
}

.hero-category {
    margin-bottom: 12px;
    font-size: 14px;
    color: #86EFAC;
    text-transform: uppercase;
    font-weight: 600;
}

.hero-excerpt {
    margin-bottom: 20px;
    font-size: 18px;
    line-height: 1.6;
    color: #cccccc;
}

.hero-author {
    font-size: 14px;
    color: #888;
}

.home-highlights {
    margin-top: 40px;
}

.highlight-card {
    background-color: #111111;
    border: 1px solid #222;
    border-radius: 16px;
    padding: 30px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.highlight-card:hover {
    transform: translateY(-4px);
    border-color: #86EFAC;
}

.highlight-card h2 {
    margin-bottom: 12px;
}

.highlight-card p {
    margin: 0;
    color: #cccccc;
}

/* Enhanced Post Cards */
.post-thumbnail {
    transition: transform 0.3s ease;
}

.post-thumbnail:hover {
    transform: scale(1.05);
}

.post-category {
    margin-bottom: 8px;
}

.post-title {
    margin-bottom: 12px;
}

.post-excerpt {
    margin-bottom: 16px;
}

/* News/Latest Page Links */
.post-list a {
    color: #10b981;
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-list a:hover {
    color: #86EFAC;
    text-decoration: underline;
}

/* Post Title - Keep White */
.post-list .post-title a {
    color: #ffffff;
}

.post-list .post-title a:hover {
    color: #10b981;
    text-decoration: none;
}

.post-thumbnail a {
    display: inline-block;
    transition: all 0.3s ease;
}

.post-thumbnail a:hover img {
    opacity: 0.8;
}

/* Archive/News List Entry Title Links */
.entry-title a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.entry-title a:hover {
    color: #10b981;
}

/* Content Links */
.entry-content a,
.post-content a {
    color: #10b981;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.entry-content a:hover,
.post-content a:hover {
    color: #86EFAC;
}

/* Utility Classes */
.alignwide {
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.alignfull {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

/* Single Post Styles */
.post-content-section {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 20px;
}

.post-content {
    background-color: #1a1a1a;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.post-content .entry-content {
    font-size: 18px;
    line-height: 1.7;
    color: #e0e0e0;
}

.post-content .entry-content h1,
.post-content .entry-content h2,
.post-content .entry-content h3,
.post-content .entry-content h4,
.post-content .entry-content h5,
.post-content .entry-content h6 {
    color: #ffffff;
    margin-top: 30px;
    margin-bottom: 15px;
}

.post-content .entry-content p {
    margin-bottom: 20px;
}

.post-content .entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

.post-content .entry-footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #333;
    color: #888;
}

/* Responsive for Single Post */
@media (max-width: 768px) {
    .post-content-section {
        padding: 40px 20px;
    }

    .post-content {
        padding: 30px 20px;
    }

    .post-content .entry-content {
        font-size: 16px;
    }
}
.media-tabs {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.media-tab-list {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-bottom: 30px;
  list-style: none;
  padding: 0;
}

.media-tab-item {
  padding: 10px 25px;
  cursor: pointer;
  background-color: #1a1a1a;
  border-radius: 8px;
  font-weight: 600;
  color: #cccccc;
  transition: all 0.3s ease;
}

.media-tab-item.active,
.media-tab-item:hover {
  background-color: #86EFAC;
  color: #111111;
}

.media-tab-panel {
  display: none;
}

.media-tab-panel.active {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.post-card {
  background-color: #1a1a1a;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(134, 239, 172, 0.2);
}

.post-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
}

.post-title {
  margin: 12px;
  font-size: 16px;
}

.post-title a {
  color: #ffffff;
  text-decoration: none;
}

.post-title a:hover {
  color: #10b981;
}

/* --- Media Tabs --- */
.media-tabs {
    margin: 30px 0;
}

.media-tab-list {
    display: flex;
    gap: 20px;
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    border-bottom: 2px solid #ccc;
}

.media-tab-item {
    cursor: pointer;
    padding: 10px 15px;
    font-weight: bold;
    color: #333;
    border-bottom: 2px solid transparent;
    transition: 0.3s;
}

.media-tab-item.active {
    border-color: #0073aa;
    color: #0073aa;
}

.media-tab-content .media-tab-panel {
    display: none;
}

.media-tab-content .media-tab-panel.active {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.post-card {
    border: 1px solid #333;
    padding: 15px;
    text-align: center;
}

.post-card img {
    max-width: 100%;
    height: auto;
}

.post-card .post-title {
    margin-top: 10px;
    font-size: 1rem;
}

/* --- News List --- */
.post-list {
    display: grid;
    gap: 30px;
}

.post-item {
    display: flex;
    flex-wrap: wrap;
    padding-bottom: 20px;
}

.post-item-content {
    flex: 1 1 300px;
}

.post-thumbnail {
    flex: 0 0 200px;
    margin-left: 20px;
}

.post-thumbnail img {
    width: 100%;
    height: auto;
}

/* --- Responsive Breakpoints --- */
/* Mobile */
@media (max-width: 768px) {
    .media-tab-list {
        flex-direction: column;
        gap: 10px;
    }
    .post-item {
        flex-direction: column;
    }
    .post-thumbnail {
        margin-left: 0;
        margin-top: 15px;
        width: 100%;
    }
}

/* Tablet */
@media (min-width: 769px) and (max-width: 1024px) {
    .post-thumbnail {
        flex: 0 0 150px;
    }
}

/* Desktop */
@media (min-width: 1025px) {
    .media-tab-content .media-tab-panel {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Center the entire media tabs section */
.media-tabs {
    display: flex;
    flex-direction: column;
    align-items: center; /* Centers tab list and content */
    max-width: 1200px;  /* Optional: limit width */
    margin: 0 auto;     /* Centers section on page */
}

/* Center the tab list items */
.media-tab-list {
    display: flex;
    justify-content: center; /* Center tabs horizontally */
    gap: 20px;
    list-style: none;
    padding: 0;
    margin-bottom: 20px; /* Space below tabs */
}

/* Center the posts inside each tab panel */
.media-tab-panel .post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    justify-content: center; /* Center the grid itself */
}
