/*
Theme Name: Your Theme Name
Theme URI: https://yoursite.com/theme
Author: Your Name
Author URI: https://yoursite.com
Description: A brief description of your theme
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: your-theme-name
*/

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f0f2f5;
}

/* Header styles */
.site-header {
    background: #fff;
    border-bottom: 1px solid #ddd;
    padding: 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    height: 60px;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 1rem;
}

.site-branding {
    margin: 0;
}

.site-title {
    margin: 0;
}

.site-title a {
    color: #222;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: bold;
}

/* Navigation */
.main-navigation {
    margin: 0;
    flex: 1;
    padding: 0 2rem;
}

.primary-menu-container {
    height: 100%;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
    height: 100%;
}

.main-navigation li {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.main-navigation a {
    color: #222;
    text-decoration: none;
    padding: 0 0.5rem;
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.main-navigation a:hover {
    color: #e91802;
}

/* Header actions */
.header-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.search-toggle,
.menu-toggle {
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    color: #fff;
}

.search-toggle svg {
    fill: currentColor;
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    position: relative;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: #fff;
    left: 0;
}

.hamburger::before {
    top: -6px;
}

.hamburger::after {
    bottom: -6px;
}

/* Main content adjustments */
.site-main {
    margin-top: 60px;
    padding: 2rem 1rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* Posts grid */
.posts-grid {
    display: block;
    max-width: 800px;
    margin: 0 auto;
}

.post-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
    display: flex;
    flex-direction: row;
    height: 240px;
}

.post-thumbnail {
    width: 300px;
    height: 100%;
    object-fit: cover;
}

.post-content {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.post-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.post-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s;
}

.post-title a:hover {
    color: #0066cc;
}

.post-excerpt {
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.read-more {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: #0066cc;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    transition: background-color 0.2s;
    text-transform: uppercase;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.read-more:hover {
    background: #0052a3;
}

/* Footer */
.site-footer {
    background: #333;
    color: #fff;
    margin-top: 3rem;
}

.site-info {
    padding: 2rem;
    text-align: center;
    background: #333;
}

/* Responsive styles */
@media (max-width: 1024px) {
    .main-navigation {
        display: none;
    }

    .menu-toggle {
        display: block;
    }
}

@media (min-width: 1025px) {
    .menu-toggle {
        display: none;
    }
}

/* Featured News Section */
.featured-news {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 1rem;
    margin-top: 1rem;
}

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

.main-story-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    overflow: hidden;
    height: 100%;
    padding: 0;
}

.main-story-card .story-image {
    position: relative;
    width: 100%;
    padding-bottom: 66.67%;
    margin-bottom: 0;
}

.main-story-card .story-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
}

.main-story-card .story-content {
    position: relative;
    padding: 12px;
    background: #fff;
}

.main-story-card .story-title {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.main-story-card .story-title a {
    color: #333;
    text-decoration: none;
}

.main-story-card .story-title a:hover {
    color: #ff0000;
}

.main-story-card .story-excerpt {
    color: #666;
    font-size: 1rem;
    line-height: 1.4;
}

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

.secondary-story-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    overflow: hidden;
    height: 100%;
    padding: 0;
}

.secondary-story-card .story-image {
    width: 100%;
    padding-bottom: 66.67%;
    position: relative;
    margin-bottom: 0;
}

.secondary-story-card .story-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
}

.secondary-story-card .story-title {
    font-size: 1.1rem;
    margin: 0;
    line-height: 1.3;
}

.secondary-story-card .story-title a {
    color: #333;
    text-decoration: none;
}

.secondary-story-card .story-title a:hover {
    color: #ff0000;
}

/* Regular News List */
.news-list {
    flex: 1;
    padding-left: calc((100% - 1200px) / 2 + 1rem);
    padding-right: 0;
}

.news-card {
    width: 800px;
    display: flex;
    gap: 1.5rem;
    padding: 12px;
    border-radius: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border-bottom: none;
    margin-bottom: 1.5rem;
    position: relative;
    align-items: center;
    background: #fff;
}

.news-card .news-image {
    width: 200px;
    height: 134px;
}

.news-card .news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
}

.news-card .news-content {
    flex: 1;
}

.news-card .news-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.news-card .news-title a {
    color: #333;
    text-decoration: none;
}

.news-card .news-excerpt {
    color: #666;
    font-size: 0.95rem;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .featured-news {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .secondary-stories {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .secondary-stories {
        grid-template-columns: 1fr;
    }
}

.latest-news-section {
    display: none;
}

.news-header {
    padding-left: calc((100% - 1200px) / 2 + 1rem);
    padding-right: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    background: transparent;
    margin-top: 2rem;
}

.news-header h2 {
    color: #333;
    font-size: 1.75rem;
    margin: 0;
    font-weight: 700;
}

.view-all-link {
    color: #0066cc;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
}

.view-all-link:hover {
    color: #0052a3;
}

.view-all-link::after {
    content: '→';
    margin-left: 8px;
}

/* Change header background to white and text color */
.site-header {
    background: #fff;
}

.site-title a,
.main-navigation a {
    color: #222;
}

/* Remove all border-radius */
.main-story-card,
.secondary-story-card,
.news-card,
.news-card .news-image img {
    border-radius: 0;
}

/* Adjust card padding */
.main-story-card .story-content,
.secondary-story-card .story-content,
.news-card {
    padding: 12px;
}

/* Add styles for the news container with ad space */
.news-section-wrapper {
    display: flex;
    gap: 2rem;
}

.news-list {
    flex: 1;
    max-width: 900px;
}

/* Single post styles */
.single-news {
    background: #fff;
    margin-bottom: 2rem;
    display: block;
    height: auto;
}

.single-news .news-image {
    width: 100%;
    height: 500px;
    position: relative;
}

.single-news .news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.single-news .news-content {
    padding: 2rem;
}

.single-news .meta-info {
    margin-bottom: 1rem;
}

.single-news .category {
    color: #e91802;
    font-weight: 500;
    margin-right: 1rem;
}

.single-news .date {
    color: #666;
}

.single-news .news-title {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 2rem;
    color: #222;
}

.single-news .news-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
}

.single-news .news-body p {
    margin-bottom: 1.5rem;
}

.single-news .news-body img {
    max-width: 100%;
    height: auto;
    margin: 2rem 0;
}

/* Navigation cards */
.post-navigation {
    margin-bottom: 2rem;
}

.navigation-wrapper {
    display: flex;
    gap: 1rem;
}

.nav-card {
    flex: 1;
    background: #fff;
    padding: 1.5rem;
    text-decoration: none;
    transition: transform 0.2s;
}

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

.nav-label {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    color: #666;
    margin-bottom: 0.5rem;
}

.nav-title {
    font-size: 1.1rem;
    color: #222;
    font-weight: 500;
    line-height: 1.4;
}

/* News tags */
.news-tags {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

.news-tags a {
    display: inline-block;
    padding: 0.5rem 1rem;
    margin: 0 0.5rem 0.5rem 0;
    background: #f5f5f5;
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
}

.news-tags a:hover {
    background: #e91802;
    color: #fff;
}

/* Ad space */
.news-ad-space {
    width: 300px;
    background: #f8f8f8;
    height: 600px;
    position: sticky;
    top: 80px;
}

/* Responsive styles */
@media (max-width: 1024px) {
    .site-main {
        padding: 1rem;
    }

    .news-section-wrapper {
        flex-direction: column;
    }

    .news-list {
        max-width: 100%;
    }

    .news-ad-space {
        width: 100%;
        height: 200px;
        position: static;
    }

    .single-news .news-title {
        font-size: 2rem;
    }

    .single-news .news-image {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .navigation-wrapper {
        flex-direction: column;
    }

    .single-news .news-content {
        padding: 1.5rem;
    }

    .single-news .news-title {
        font-size: 1.75rem;
    }
}