/*
Theme Name: Breaking News Tech
Theme URI: https://example.com/breaking-news-tech
Author: You
Author URI: https://example.com
Description: A modern tech news theme assembled from provided HTML/CSS/JS.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: breaking-news-tech
*/

/* Base layout styles from provided HTML */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

/* Header */
.header {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 20px 0;
    position: relative;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header.scrolled {
    padding: 10px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

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

.logo {
    font-size: 24px;
    font-weight: bold;
    letter-spacing: -1px;
}

.search-widget {
    /* display: flex; */
    align-items: center;
    background: rgba(255,255,255,0.1);
    border-radius: 25px;
    padding: 5px 15px;
    width: 300px;
}

.search-widget input {
    background: none;
    border: none;
    color: white;
    width: 100%;
    padding: 5px;
    outline: none;
}

.search-widget input::placeholder {
    color: rgba(255,255,255,0.7);
}

/* Side Menu */
.menu-button {
    position: sticky;
    left: 0px;
    top: 100px;
    transform: translateY(-50%);
    z-index: 999;
    background: rgba(44, 62, 80, 0.7);
    border: none;
    color: white;
    padding: 12px;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.menu-button.hidden {
    transform: translateX(-100%) translateY(-50%);
}

.menu-button:hover {
    background: rgba(44, 62, 80, 0.9);
}

.side-menu {
    position: fixed;
    left: -300px;
    top: 0;
    width: 300px;
    height: 100vh;
    background: #2c3e50;
    transition: all 0.3s ease;
    z-index: 998;
    overflow-y: auto;
    padding-top: 80px;
}

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

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 997;
    display: none;
}

.menu-overlay.active {
    display: block;
}

.category-menu {
    list-style: none;
}

.category-menu li {
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.category-menu a {
    color: white;
    text-decoration: none;
    padding: 15px 20px;
    display: block;
    transition: all 0.3s ease;
}

.category-menu a:hover {
    background: rgba(255,255,255,0.1);
    padding-left: 30px;
}

.category-description {
    color: rgba(255,255,255,0.7);
    font-size: 12px;
    margin-top: 5px;
}

/* Main Content */
.main-content {
    margin-top: 80px;
    min-height: 100vh;
}

/* Banner */
.banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
    margin-bottom: 40px;
}

.banner h1 {
    font-size: 32px;
    margin-bottom: 20px;
    font-weight: 700;
}

.banner p {
    font-size: 20px;
    opacity: 0.9;
}

/* News Carousel */
.carousel-section {
    margin-bottom: 40px;
}

.carousel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.carousel-header h2 {
    font-size: 28px;
    color: #2c3e50;
}

.carousel-controls {
    display: flex;
    gap: 10px;
}

.carousel-prev, .carousel-next {
    background: #2c3e50;
    color: white;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.carousel-prev:hover, .carousel-next:hover {
    background: #34495e;
}

.carousel {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-bottom: 10px;
}

.carousel::-webkit-scrollbar {
    height: 8px;
}

.carousel::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.carousel::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

.carousel-item {
    min-width: 300px;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.carousel-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.carousel-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    object-position: center;
}

.carousel-item-content {
    padding: 15px;
}

.carousel-item h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #2c3e50;
}

.carousel-item .date {
    color: #7f8c8d;
    font-size: 12px;
}

/* Category Sections */
.category-section {
    margin-bottom: 50px;
}

.category-header {
    /* display: flex; */
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0e0e0;
}

.category-header h2 {
    font-size: 32px;
    color: #2c3e50;
    margin-right: 15px;
}

.category-header .view-all {
    color: #667eea;
    text-decoration: none;
    font-size: 14px;
    margin-left: auto;
    transition: all 0.3s ease;
}

.category-header .view-all:hover {
    color: #764ba2;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.post-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.post-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: center;
}

.post-content {
    padding: 20px;
}

.post-category {
    display: inline-block;
    background: #667eea;
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    margin-bottom: 10px;
}

.post-title {
    font-size: 20px;
    color: #2c3e50;
    margin-bottom: 10px;
    line-height: 1.4;
}

.post-excerpt {
    color: #7f8c8d;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.post-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #95a5a6;
}

/* Footer */
.footer {
    background: #2c3e50;
    color: white;
    padding: 40px 0 20px;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h3 {
    margin-bottom: 15px;
    color: white;
}

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

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

.footer-section ul li a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-section ul li a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.7);
}

/* Responsive */
@media (max-width: 768px) {
    .search-widget {
        width: 200px;
    }

    .banner h1 {
        font-size: 32px;
    }

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

    .carousel-item {
        min-width: 250px;
    }
}

@media (max-width: 480px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
    }

    .search-widget {
        width: 100%;
    }

    .banner {
        padding: 40px 20px;
    }

    .banner h1 {
        font-size: 24px;
    }

    .banner p {
        font-size: 16px;
    }
}
.carousel-item a {text-decoration: none}
.category-section a {text-decoration: none}
p.post-excerpt ~ p {color: #7f8c8d}
.post-title a {color: #2c3e50}

.side-menu {
    position: fixed;
    left: -300px;
    top: 0;
    width: 300px;
    height: auto;
}

.side-menu .active {
    left: 0;
}
.side-menu {
    padding: 20px;
    background: #fff;
    border-radius: 12px;
}

.side-menu h3 {
    font-size: 18px;
    margin-bottom: 15px;
    font-weight: 600;
    color: #2c3e50;
}

.category-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.category-list li {
    margin-bottom: 10px;
}

.category-list li h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 500;
}

.category-list li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-decoration: none;
    padding: 10px 14px;
    border-radius: 8px;
    background: #f8f9fa;
    color: #333;
    transition: all 0.3s ease;
    font-size: 15px;
}

.category-list li a:hover {
    background: #e6f4ff;
    color: #0077ff;
    box-shadow: 0 2px 6px rgba(0, 119, 255, 0.15);
    transform: translateX(4px);
}

.category-list li a span {
    font-size: 13px;
    color: var(--text-muted);
}

.logo a, .logo a:visited {
    color: rgb(255, 255, 255);
    text-decoration: none;
}

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

wp-post-image {margin-bottom: 1.5em}
.wp-block-heading {margin-top: 1.5em; margin-bottom: 0.5em;}
.wp-block-list {margin-top: 0.5em; margin-bottom: 1em;}
[class*='wp-image'] {margin-bottom: 1em;}
.wp-block-table {margin-top: 0.5em; margin-bottom: 1.5em;}