/*
Theme Name: Gujarat Khabar
Theme URI: https://example.com
Author: Gujarat Khabar
Author URI: https://example.com
Description: A clean, full-width news theme for Gujarat Khabar with a navy blue and red color scheme. Homepage shows 15 posts with numeric pagination. Single post pages show logo/site name, title, meta, featured image, content and a "Next News" button. Includes header category menu and footer page links.
Version: 1.1
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: gujarat-khabar
*/

/* ---------- Colors ---------- */
:root {
    --navy: #0b1a33;
    --navy-dark: #071224;
    --navy-light: #13284d;
    --red: #e12a3d;
    --red-dark: #b3202f;
    --white: #ffffff;
    --muted: #b9c3d6;
}

/* ---------- Reset / Base ---------- */
* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
}

body {
    font-family: "Noto Sans Gujarati", Arial, sans-serif;
    background: var(--navy);
    color: var(--white);
    line-height: 1.6;
}

a {
    color: var(--white);
    text-decoration: none;
}

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

.container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 16px;
}

/* ---------- Site Header ---------- */
.site-header {
    background: var(--navy-dark);
    padding: 16px 0 0;
    border-bottom: 3px solid var(--red);
}

.site-branding {
    text-align: center;
    padding-bottom: 14px;
}

.site-title {
    margin: 0;
    font-size: 32px;
    font-weight: 800;
    letter-spacing: 1px;
}

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

.site-title a span {
    color: var(--red);
}

.site-logo img {
    max-height: 70px;
    margin: 0 auto;
}

/* ---------- Primary Menu ---------- */
.primary-nav {
    background: var(--red);
}

.primary-nav .container {
    max-width: 900px;
}

.primary-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.primary-nav li {
    position: relative;
}

.primary-nav li a {
    display: block;
    padding: 12px 16px;
    color: var(--white);
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
}

.primary-nav li a:hover {
    background: var(--red-dark);
}

.menu-toggle {
    display: none;
    background: var(--red);
    color: var(--white);
    border: none;
    width: 100%;
    padding: 12px 16px;
    font-size: 16px;
    font-weight: 700;
    text-align: left;
}

@media (max-width: 700px) {
    .menu-toggle {
        display: block;
    }
    .primary-nav ul {
        display: none;
        flex-direction: column;
        text-align: left;
    }
    .primary-nav ul.is-open {
        display: flex;
    }
    .primary-nav li a {
        border-top: 1px solid rgba(255,255,255,0.15);
    }
}

/* ---------- Homepage Post List (full width, no boxes) ---------- */
.post-list {
    padding: 10px 0 10px;
}

.post-card {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding: 18px 0;
    border-bottom: 1px solid rgba(255,255,255,0.12);
}

.post-card .post-thumb {
    flex: 0 0 220px;
    max-width: 220px;
}

.post-card .post-thumb img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 4px;
}

.post-card .post-body {
    flex: 1;
    min-width: 200px;
}

.post-card .post-title {
    margin: 0 0 8px;
    font-size: 21px;
    line-height: 1.3;
}

.post-card .post-title a {
    color: var(--white);
}

.post-card .post-title a:hover {
    color: var(--red);
}

.post-meta {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 8px;
}

.post-meta span {
    margin-right: 12px;
}

.post-excerpt {
    font-size: 15px;
    color: var(--muted);
}

@media (max-width: 600px) {
    .post-card {
        flex-direction: column;
        gap: 10px;
    }
    .post-card .post-thumb {
        max-width: 100%;
        flex: 0 0 auto;
    }
    .post-card .post-thumb img {
        height: auto;
        max-height: 220px;
    }
}

/* ---------- Numeric Pagination ---------- */
.pagination-wrap {
    text-align: center;
    padding: 20px 0 40px;
}

.pagination-wrap .page-numbers {
    display: inline-block;
    padding: 8px 14px;
    margin: 4px;
    background: var(--navy-light);
    border: 1px solid var(--red);
    border-radius: 4px;
    font-size: 14px;
    color: var(--white);
}

.pagination-wrap .page-numbers.current {
    background: var(--red);
    border-color: var(--red);
    color: var(--white);
}

.pagination-wrap .page-numbers:hover {
    background: var(--red-dark);
}

/* ---------- Archive / Category page ---------- */
.archive-title {
    font-size: 24px;
    padding: 20px 0 4px;
    margin: 0;
    border-bottom: 3px solid var(--red);
    display: inline-block;
}

/* ---------- Single Post (full width, no box) ---------- */
.single-post {
    padding: 20px 0 30px;
}

.single-post .entry-title {
    font-size: 26px;
    line-height: 1.35;
    margin: 0 0 12px;
    color: var(--white);
}

.single-post .entry-meta {
    font-size: 14px;
    color: var(--muted);
    border-bottom: 1px solid rgba(255,255,255,0.15);
    padding-bottom: 14px;
    margin-bottom: 18px;
}

.single-post .entry-meta span {
    margin-right: 14px;
}

.single-post .entry-thumbnail {
    margin-bottom: 20px;
}

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

.single-post .entry-content {
    font-size: 17px;
    color: var(--white);
}

.single-post .entry-content p {
    margin: 0 0 18px;
}

.single-post .entry-content a {
    color: var(--red);
    text-decoration: underline;
}

.single-post .entry-content img {
    border-radius: 4px;
    margin: 16px 0;
}

/* ---------- Next News Button ---------- */
.next-news-wrap {
    text-align: center;
    margin: 30px 0 10px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.15);
}

.next-news-btn {
    display: inline-block;
    background: var(--red);
    color: var(--white) !important;
    font-size: 17px;
    font-weight: 700;
    padding: 14px 34px;
    border-radius: 50px;
    letter-spacing: 0.5px;
    transition: background 0.2s ease;
}

.next-news-btn:hover {
    background: var(--red-dark);
}

.next-news-btn .arrow {
    margin-left: 6px;
}

/* ---------- Static Page ---------- */
.page-content-wrap {
    padding: 20px 0 40px;
}

/* ---------- Footer ---------- */
.site-footer {
    background: var(--navy-dark);
    color: var(--muted);
    text-align: center;
    padding: 24px 0;
    font-size: 14px;
    border-top: 3px solid var(--red);
}

.footer-menu ul {
    list-style: none;
    margin: 0 0 14px;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px 0;
}

.footer-menu li a {
    padding: 6px 14px;
    color: var(--white);
    font-size: 14px;
    display: block;
}

.footer-menu li a:hover {
    color: var(--red);
}

.site-footer .copyright a {
    color: var(--white);
}
