/*========================================================================
   Negahe English Theme - Main Stylesheet
   Based on negaheiraniannews.ir (Adapted to LTR)
========================================================================*/

/*--------------------------------------------------------------
# Variables & Resets
--------------------------------------------------------------*/
:root {
    /* Colors mirroring the original site */
    --primary-color: #0d47a1;
    /* typical dark blue used in many news sites */
    --secondary-color: #e53935;
    /* typical red for accents */
    --text-main: #333333;
    --text-light: #777777;
    --bg-light: #f5f5f5;
    --bg-white: #ffffff;
    --border-color: #e0e0e0;

    /* Layout */
    --container-width: 1200px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-main);
    background-color: var(--bg-light);
    direction: ltr;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

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

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

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 0.5em;
    color: #111;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 15px;
}

/*--------------------------------------------------------------
# Top Bar & Header
--------------------------------------------------------------*/
.top-bar {
    background-color: var(--primary-color);
    color: #fff;
    padding: 10px 0;
    font-size: 14px;
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.menu-toggle {
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    display: none;
    /* hidden on desktop */
}

.site-header {
    background-color: var(--bg-white);
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
}

.site-branding-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-title {
    font-size: 32px;
    margin: 0;
}

.site-title a {
    color: var(--text-main);
}

.header-ad-banner {
    width: 728px;
    height: 90px;
    background-color: #eee;
    border: 1px dashed #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
}

/*--------------------------------------------------------------
# Navigation
--------------------------------------------------------------*/
.main-navigation {
    background-color: var(--bg-white);
    border-bottom: 3px solid var(--primary-color);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.nav-menu-wrapper ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.nav-menu-wrapper li {
    position: relative;
}

.nav-menu-wrapper a {
    display: block;
    padding: 15px 20px;
    color: var(--text-main);
    font-weight: 600;
    font-size: 15px;
}

.nav-menu-wrapper a:hover,
.nav-menu-wrapper .current-menu-item>a {
    background-color: var(--primary-color);
    color: #fff;
}

/*--------------------------------------------------------------
# Content Area & Grid
--------------------------------------------------------------*/
.site-content {
    padding: 40px 15px;
}

.content-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.site-main {
    flex: 1;
    background: var(--bg-white);
    padding: 25px;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* Articles */
.articles-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.lead-article {
    grid-column: 1 / -1;
    /* spans full width */
    margin-bottom: 30px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 25px;
}

.lead-article .post-thumbnail img {
    width: 100%;
    border-radius: 4px;
}

.lead-article .entry-title {
    font-size: 28px;
    margin-top: 15px;
}

.grid-article {
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.grid-article .post-thumbnail {
    border-bottom: 1px solid var(--border-color);
}

.grid-article .post-content {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.grid-article .entry-title {
    font-size: 18px;
    line-height: 1.4;
    margin-top: 5px;
}

.entry-meta {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 8px;
}

/*--------------------------------------------------------------
# Single View
--------------------------------------------------------------*/
.single-post-layout .entry-title {
    font-size: 34px;
    line-height: 1.4;
    margin-bottom: 10px;
}

.single-post-layout .entry-meta {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.single-thumbnail {
    margin-bottom: 25px;
}

.single-thumbnail img {
    width: 100%;
    border-radius: 4px;
}

.entry-content {
    font-size: 18px;
    line-height: 1.8;
}

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

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
.site-footer {
    background-color: #222;
    color: #bbb;
    padding: 40px 0 20px;
    margin-top: 40px;
}

.site-info {
    text-align: center;
    border-top: 1px solid #444;
    padding-top: 20px;
    margin-top: 30px;
    font-size: 14px;
}

.site-info a {
    color: #fff;
}

.site-info a:hover {
    color: var(--secondary-color);
}

/*--------------------------------------------------------------
# Responsive
--------------------------------------------------------------*/
@media (max-width: 992px) {
    .header-ad-banner {
        display: none;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-menu-wrapper {
        display: none;
        width: 100%;
    }

    .nav-menu-wrapper.toggled {
        display: block;
    }

    .nav-menu-wrapper ul {
        flex-direction: column;
    }

    .nav-menu-wrapper a {
        border-bottom: 1px solid #eee;
    }

    .articles-container {
        grid-template-columns: 1fr;
    }
}