/*!
Theme Name: SimpCity News
Theme URI: https://simpcity.com
Author: SimpCity Team
Author URI: https://simpcity.com
Description: A modern, SEO-optimized news theme inspired by BBC's design. Features responsive layout, structured data, performance optimization, and professional news presentation. Perfect for news websites, magazines, and media outlets.
Version: 1.0.0
Tested up to: 6.4
Requires at least: 5.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: simpcity
Tags: news, magazine, blog, two-columns, custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, rtl-language-support, accessibility-ready

SimpCity News - Professional news theme with BBC-inspired design.
Features: SEO optimization, structured data, responsive design, performance optimized.

Based on Underscores https://underscores.me/, (C) 2012-2020 Automattic, Inc.
*/

/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
# Generic
	- Normalize
	- Box sizing
# Base
	- Typography
	- Elements
	- Links
	- Forms
## Layouts
# Components
	- Navigation
	- Posts and pages
	- Comments
	- Widgets
	- Media
	- Captions
	- Galleries
# plugins
	- Jetpack infinite scroll
# Utilities
	- Accessibility
	- Alignments

--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Generic
--------------------------------------------------------------*/

/* Normalize
--------------------------------------------- */

/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */

/* Document
	 ========================================================================== */

/**
 * 1. Correct the line height in all browsers.
 * 2. Prevent adjustments of font size after orientation changes in iOS.
 */
html {
	line-height: 1.15;
	-webkit-text-size-adjust: 100%;
}

/* Sections
	 ========================================================================== */

/**
 * Remove the margin in all browsers.
 */
body {
	margin: 0;
}

/**
 * Render the `main` element consistently in IE.
 */
main {
	display: block;
}

/**
 * Correct the font size and margin on `h1` elements within `section` and
 * `article` contexts in Chrome, Firefox, and Safari.
 */
h1 {
	font-size: 2em;
	margin: 0.67em 0;
}

/* Grouping content
	 ========================================================================== */

/**
 * 1. Add the correct box sizing in Firefox.
 * 2. Show the overflow in Edge and IE.
 */
hr {
	box-sizing: content-box;
	height: 0;
	overflow: visible;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */
pre {
	font-family: monospace, monospace;
	font-size: 1em;
}

/* Text-level semantics
	 ========================================================================== */

/**
 * Remove the gray background on active links in IE 10.
 */
a {
	background-color: transparent;
}

/**
 * 1. Remove the bottom border in Chrome 57-
 * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
 */
abbr[title] {
	border-bottom: none;
	text-decoration: underline;
	text-decoration: underline dotted;
}

/**
 * Add the correct font weight in Chrome, Edge, and Safari.
 */
b,
strong {
	font-weight: bolder;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */
code,
kbd,
samp {
	font-family: monospace, monospace;
	font-size: 1em;
}

/**
 * Add the correct font size in all browsers.
 */
small {
	font-size: 80%;
}

/**
 * Prevent `sub` and `sup` elements from affecting the line height in
 * all browsers.
 */
sub,
sup {
	font-size: 75%;
	line-height: 0;
	position: relative;
	vertical-align: baseline;
}

sub {
	bottom: -0.25em;
}

sup {
	top: -0.5em;
}

/* Embedded content
	 ========================================================================== */

/**
 * Remove the border on images inside links in IE 10.
 */
img {
	border-style: none;
}

/* Forms
	 ========================================================================== */

/**
 * 1. Change the font styles in all browsers.
 * 2. Remove the margin in Firefox and Safari.
 */
button,
input,
optgroup,
select,
textarea {
	font-family: inherit;
	font-size: 100%;
	line-height: 1.15;
	margin: 0;
}

/**
 * Show the overflow in IE.
 * 1. Show the overflow in Edge.
 */
button,
input {
	overflow: visible;
}

/**
 * Remove the inheritance of text transform in Edge, Firefox, and IE.
 * 1. Remove the inheritance of text transform in Firefox.
 */
button,
select {
	text-transform: none;
}

/**
 * Correct the inability to style clickable types in iOS and Safari.
 */
button,
[type="button"],
[type="reset"],
[type="submit"] {
	-webkit-appearance: button;
}

/**
 * Remove the inner border and padding in Firefox.
 */
button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
	border-style: none;
	padding: 0;
}

/**
 * Restore the focus styles unset by the previous rule.
 */
button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
	outline: 1px dotted ButtonText;
}

/**
 * Correct the padding in Firefox.
 */
fieldset {
	padding: 0.35em 0.75em 0.625em;
}

/**
 * 1. Correct the text wrapping in Edge and IE.
 * 2. Correct the color inheritance from `fieldset` elements in IE.
 * 3. Remove the padding so developers are not caught out when they zero out
 *		`fieldset` elements in all browsers.
 */
legend {
	box-sizing: border-box;
	color: inherit;
	display: table;
	max-width: 100%;
	padding: 0;
	white-space: normal;
}

/**
 * Add the correct vertical alignment in Chrome, Firefox, and Opera.
 */
progress {
	vertical-align: baseline;
}

/**
 * Remove the default vertical scrollbar in IE 10+.
 */
textarea {
	overflow: auto;
}

/**
 * 1. Add the correct box sizing in IE 10.
 * 2. Remove the padding in IE 10.
 */
[type="checkbox"],
[type="radio"] {
	box-sizing: border-box;
	padding: 0;
}

/**
 * Correct the cursor style of increment and decrement buttons in Chrome.
 */
[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
	height: auto;
}

/**
 * 1. Correct the odd appearance in Chrome and Safari.
 * 2. Correct the outline style in Safari.
 */
[type="search"] {
	-webkit-appearance: textfield;
	outline-offset: -2px;
}

/**
 * Remove the inner padding in Chrome and Safari on macOS.
 */
[type="search"]::-webkit-search-decoration {
	-webkit-appearance: none;
}

/**
 * 1. Correct the inability to style clickable types in iOS and Safari.
 * 2. Change font properties to `inherit` in Safari.
 */
::-webkit-file-upload-button {
	-webkit-appearance: button;
	font: inherit;
}

/* Interactive
	 ========================================================================== */

/*
 * Add the correct display in Edge, IE 10+, and Firefox.
 */
details {
	display: block;
}

/*
 * Add the correct display in all browsers.
 */
summary {
	display: list-item;
}

/* Misc
	 ========================================================================== */

/**
 * Add the correct display in IE 10+.
 */
template {
	display: none;
}

/**
 * Add the correct display in IE 10.
 */
[hidden] {
	display: none;
}

/* Box sizing
--------------------------------------------- */

/* Inherit box-sizing to more easily change it's value on a component level.
@link http://css-tricks.com/inheriting-box-sizing-probably-slightly-better-best-practice/ */
*,
*::before,
*::after {
	box-sizing: inherit;
}

html {
	box-sizing: border-box;
}

/*--------------------------------------------------------------
# Base
--------------------------------------------------------------*/

/* Typography
--------------------------------------------- */
body,
button,
input,
select,
optgroup,
textarea {
	color: #404040;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
	font-size: 1rem;
	line-height: 1.5;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	clear: both;
}

p {
	margin-bottom: 1.5em;
}

dfn,
cite,
em,
i {
	font-style: italic;
}

blockquote {
	margin: 0 1.5em;
}

address {
	margin: 0 0 1.5em;
}

pre {
	background: #eee;
	font-family: "Courier 10 Pitch", courier, monospace;
	line-height: 1.6;
	margin-bottom: 1.6em;
	max-width: 100%;
	overflow: auto;
	padding: 1.6em;
}

code,
kbd,
tt,
var {
	font-family: monaco, consolas, "Andale Mono", "DejaVu Sans Mono", monospace;
}

abbr,
acronym {
	border-bottom: 1px dotted #666;
	cursor: help;
}

mark,
ins {
	background: #fff9c0;
	text-decoration: none;
}

big {
	font-size: 125%;
}

/* Elements
--------------------------------------------- */
body {
	background: #fff;
}

hr {
	background-color: #ccc;
	border: 0;
	height: 1px;
	margin-bottom: 1.5em;
}

ul,
ol {
	margin: 0 0 1.5em 3em;
}

ul {
	list-style: disc;
}

ol {
	list-style: decimal;
}

li > ul,
li > ol {
	margin-bottom: 0;
	margin-left: 1.5em;
}

dt {
	font-weight: 700;
}

dd {
	margin: 0 1.5em 1.5em;
}

/* Make sure embeds and iframes fit their containers. */
embed,
iframe,
object {
	max-width: 100%;
}

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

figure {
	margin: 1em 0;
}

table {
	margin: 0 0 1.5em;
	width: 100%;
}

/* Links
--------------------------------------------- */
a {
	color: #4169e1;
}

a:visited {
	color: #800080;
}

a:hover,
a:focus,
a:active {
	color: #191970;
}

a:focus {
	outline: thin dotted;
}

a:hover,
a:active {
	outline: 0;
}

/* Forms
--------------------------------------------- */
button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
	border: 1px solid;
	border-color: #ccc #ccc #bbb;
	border-radius: 3px;
	background: #e6e6e6;
	color: rgba(0, 0, 0, 0.8);
	line-height: 1;
	padding: 0.6em 1em 0.4em;
}

button:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover {
	border-color: #ccc #bbb #aaa;
}

button:active,
button:focus,
input[type="button"]:active,
input[type="button"]:focus,
input[type="reset"]:active,
input[type="reset"]:focus,
input[type="submit"]:active,
input[type="submit"]:focus {
	border-color: #aaa #bbb #bbb;
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="range"],
input[type="date"],
input[type="month"],
input[type="week"],
input[type="time"],
input[type="datetime"],
input[type="datetime-local"],
input[type="color"],
textarea {
	color: #666;
	border: 1px solid #ccc;
	border-radius: 3px;
	padding: 3px;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
input[type="range"]:focus,
input[type="date"]:focus,
input[type="month"]:focus,
input[type="week"]:focus,
input[type="time"]:focus,
input[type="datetime"]:focus,
input[type="datetime-local"]:focus,
input[type="color"]:focus,
textarea:focus {
	color: #111;
}

select {
	border: 1px solid #ccc;
}

textarea {
	width: 100%;
}

/*--------------------------------------------------------------
# Layouts
--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Components
--------------------------------------------------------------*/

/* Navigation
--------------------------------------------- */
.main-navigation {
	display: block;
	width: 100%;
}

.main-navigation ul {
	display: none;
	list-style: none;
	margin: 0;
	padding-left: 0;
}

.main-navigation ul ul {
	box-shadow: 0 3px 3px rgba(0, 0, 0, 0.2);
	float: left;
	position: absolute;
	top: 100%;
	left: -999em;
	z-index: 99999;
}

.main-navigation ul ul ul {
	left: -999em;
	top: 0;
}

.main-navigation ul ul li:hover > ul,
.main-navigation ul ul li.focus > ul {
	display: block;
	left: auto;
}

.main-navigation ul ul a {
	width: 200px;
}

.main-navigation ul li:hover > ul,
.main-navigation ul li.focus > ul {
	left: auto;
}

.main-navigation li {
	position: relative;
}

.main-navigation a {
	display: block;
	text-decoration: none;
}

/* Small menu. */
.menu-toggle,
.main-navigation.toggled ul {
	display: block;
}

@media screen and (min-width: 37.5em) {

	.menu-toggle {
		display: none;
	}

	.main-navigation ul {
		display: flex;
	}
}

.site-main .comment-navigation,
.site-main
.posts-navigation,
.site-main
.post-navigation {
	margin: 0 0 1.5em;
}

.comment-navigation .nav-links,
.posts-navigation .nav-links,
.post-navigation .nav-links {
	display: flex;
}

.comment-navigation .nav-previous,
.posts-navigation .nav-previous,
.post-navigation .nav-previous {
	flex: 1 0 50%;
}

.comment-navigation .nav-next,
.posts-navigation .nav-next,
.post-navigation .nav-next {
	text-align: end;
	flex: 1 0 50%;
}

/* Posts and pages
--------------------------------------------- */
.sticky {
	display: block;
}

.post,
.page {
	margin: 0 0 1.5em;
}

.updated:not(.published) {
	display: none;
}

.page-content,
.entry-content,
.entry-summary {
	margin: 1.5em 0 0;
}

.page-links {
	clear: both;
	margin: 0 0 1.5em;
}

/* Comments
--------------------------------------------- */
.comment-content a {
	word-wrap: break-word;
}

.bypostauthor {
	display: block;
}

/* Widgets
--------------------------------------------- */
.widget {
	margin: 0 0 1.5em;
}

.widget select {
	max-width: 100%;
}

/* Media
--------------------------------------------- */
.page-content .wp-smiley,
.entry-content .wp-smiley,
.comment-content .wp-smiley {
	border: none;
	margin-bottom: 0;
	margin-top: 0;
	padding: 0;
}

/* Make sure logo link wraps around logo image. */
.custom-logo-link {
	display: inline-block;
}

/* Captions
--------------------------------------------- */
.wp-caption {
	margin-bottom: 1.5em;
	max-width: 100%;
}

.wp-caption img[class*="wp-image-"] {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

.wp-caption .wp-caption-text {
	margin: 0.8075em 0;
}

.wp-caption-text,
figcaption,
.wp-block-image figcaption,
.blocks-gallery-caption,
.wp-element-caption {
	padding: 9px 9px 0;
	font-size: 12px;
	color: #343a40;
}

/* Galleries
--------------------------------------------- */
.gallery {
	margin-bottom: 1.5em;
	display: grid;
	grid-gap: 1.5em;
}

.gallery-item {
	display: inline-block;
	text-align: center;
	width: 100%;
}

.gallery-columns-2 {
	grid-template-columns: repeat(2, 1fr);
}

.gallery-columns-3 {
	grid-template-columns: repeat(3, 1fr);
}

.gallery-columns-4 {
	grid-template-columns: repeat(4, 1fr);
}

.gallery-columns-5 {
	grid-template-columns: repeat(5, 1fr);
}

.gallery-columns-6 {
	grid-template-columns: repeat(6, 1fr);
}

.gallery-columns-7 {
	grid-template-columns: repeat(7, 1fr);
}

.gallery-columns-8 {
	grid-template-columns: repeat(8, 1fr);
}

.gallery-columns-9 {
	grid-template-columns: repeat(9, 1fr);
}

.gallery-caption {
	display: block;
}

/*--------------------------------------------------------------
# Plugins
--------------------------------------------------------------*/

/* Jetpack infinite scroll
--------------------------------------------- */

/* Hide the Posts Navigation and the Footer when Infinite Scroll is in use. */
.infinite-scroll .posts-navigation,
.infinite-scroll.neverending .site-footer {
	display: none;
}

/* Re-display the Theme Footer when Infinite Scroll has reached its end. */
.infinity-end.neverending .site-footer {
	display: block;
}

/*--------------------------------------------------------------
# Utilities
--------------------------------------------------------------*/

/* Accessibility
--------------------------------------------- */

/* Text meant only for screen readers. */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background-color: #f1f1f1;
	border-radius: 3px;
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
	clip: auto !important;
	clip-path: none;
	color: #21759b;
	display: block;
	font-size: 0.875rem;
	font-weight: 700;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000;
}

/* Do not show the outline on the skip link target. */
#primary[tabindex="-1"]:focus {
	outline: 0;
}

/* Alignments
--------------------------------------------- */
.alignleft {

	/*rtl:ignore*/
	float: left;

	/*rtl:ignore*/
	margin-right: 1.5em;
	margin-bottom: 1.5em;
}

.alignright {

	/*rtl:ignore*/
	float: right;

	/*rtl:ignore*/
	margin-left: 1.5em;
	margin-bottom: 1.5em;
}

.aligncenter {
	clear: both;
	display: block;
	margin-left: auto;
	margin-right: auto;
	margin-bottom: 1.5em;
}

/*--------------------------------------------------------------
# SimpCity News - BBC-Inspired Design
--------------------------------------------------------------*/

/* CSS Variables */
:root {
    --color-primary: #000000;
    --color-background: #ffffff;
    --color-text: #3f3f42;
    --color-text-light: #6e6e73;
    --color-border: #e6e6e6;
    --color-hover: #f5f5f5;
    --color-link: #1e1e1e;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --container-max-width: 1280px;
}

/* Base Improvements */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--color-text);
}

.site-header {
    background-color: var(--color-background);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

/* Logo Styling - BBC Style */
.site-branding {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.logo-blocks {
    display: flex;
    gap: 4px;
}

.logo-block {
    background-color: var(--color-primary);
    color: white;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: -0.5px;
}

/* Navigation */
.main-navigation {
    font-weight: 500;
    font-size: 0.9375rem;
}

.main-navigation a {
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.main-navigation a:hover {
    background-color: var(--color-hover);
}

/* News Grid Layout */
.site-main {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: var(--spacing-lg);
}

.news-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--spacing-lg);
}

/* Article Cards */
.post {
    margin-bottom: var(--spacing-lg);
}

.entry-header {
    margin-bottom: var(--spacing-md);
}

.entry-title {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
}

.entry-title a {
    color: var(--color-primary);
    text-decoration: none;
}

.entry-title a:hover {
    color: var(--color-link);
}

.entry-meta {
    display: flex;
    gap: var(--spacing-sm);
    font-size: 0.875rem;
    color: var(--color-text-light);
}

.entry-content,
.entry-summary {
    font-size: 1.125rem;
    line-height: 1.7;
}

/* Featured Images */
.post-thumbnail {
    margin-bottom: var(--spacing-md);
    overflow: hidden;
}

.post-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

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

/* Single Post */
.single .entry-header {
    margin-bottom: var(--spacing-xl);
}

.single .entry-title {
    font-size: 2.5rem;
}

.single .entry-content {
    max-width: 800px;
    margin: 0 auto;
}

/* Sidebar */
.widget-area {
    border-left: 1px solid var(--color-border);
    padding-left: var(--spacing-lg);
}

.widget {
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-lg);
    border-bottom: 1px solid var(--color-border);
}

.widget:last-child {
    border-bottom: none;
}

.widget-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
}

/* Footer */
.site-footer {
    background-color: #1e1e1e;
    color: #ffffff;
    padding: var(--spacing-xl) 0 var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.site-footer a {
    color: #b0b0b0;
}

.site-footer a:hover {
    color: #ffffff;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .widget-area {
        border-left: none;
        border-top: 1px solid var(--color-border);
        padding-left: 0;
        padding-top: var(--spacing-lg);
    }
}

@media (max-width: 768px) {
    .entry-title {
        font-size: 1.5rem;
    }
    
    .single .entry-title {
        font-size: 2rem;
    }
    
    .site-main {
        padding: var(--spacing-md);
    }
}

/* Accessibility */
.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    color: #21759b;
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/*--------------------------------------------------------------
# BBC-Style Homepage Layout
--------------------------------------------------------------*/

/* Header - BBC Style */
.bbc-header {
    background: #ffffff;
    border-bottom: 1px solid #e6e6e6;
}

.header-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.logo-link {
    text-decoration: none;
    display: block;
}

.logo-blocks {
    display: flex;
    gap: 2px;
    align-items: center;
}

.logo-block {
    background-color: #000000;
    color: #ffffff;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 28px;
    font-family: Arial, Helvetica, sans-serif;
    letter-spacing: -1px;
}

/* Navigation - BBC Style */
.header-navigation {
    background: #ffffff;
    margin-bottom: 40px;
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.main-navigation {
    display: block;
}

.main-navigation .nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 4px;
    align-items: center;
    justify-content: center;
}

.main-navigation .nav-menu > li {
    margin: 0;
    padding: 0;
}

.main-navigation .nav-menu > li > a {
    display: block;
    padding: 10px 20px;
    text-decoration: none;
    color: #000000;
    font-weight: 500;
    font-size: 15px;
    transition: background-color 0.2s ease;
    border-bottom: 4px solid transparent;
    border-radius: 6px;
}

.main-navigation .nav-menu > li > a:hover,
.main-navigation .nav-menu > li.current-menu-item > a {
    background-color: #f5f5f5;
}

.main-navigation .nav-menu > li.current-menu-item > a {
    border-bottom-color: #000000;
}

/* Homepage Container */
.bbc-homepage {
    max-width: 1280px;
    margin: 0 auto;
    padding: 24px;
}

.homepage-container {
    display: grid;
    gap: 32px;
}

/* Featured Main Story */
.featured-main-section {
    margin-bottom: 32px;
}

.featured-main-article {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
}

.featured-main-article .featured-image {
    width: 100%;
}

.featured-main-article .featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.featured-main-article .featured-content {
    padding: 0;
}

.article-category {
    display: inline-block;
    color: #1e1e1e;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.featured-main-article .entry-title {
    font-size: 40px;
    line-height: 1.1;
    font-weight: 700;
    margin: 0 0 16px 0;
}

.featured-main-article .entry-title a {
    color: #000000;
    text-decoration: none;
}

.featured-main-article .entry-title a:hover {
    color: #404040;
}

.featured-main-article .entry-excerpt {
    font-size: 18px;
    line-height: 1.5;
    color: #3f3f42;
    margin-bottom: 12px;
}

/* Secondary Stories Grid */
.secondary-stories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid #e6e6e6;
}

.secondary-article {
    display: flex;
    flex-direction: column;
}

.secondary-article .article-thumbnail {
    margin-bottom: 12px;
}

.secondary-article .article-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

.secondary-article .entry-title {
    font-size: 18px;
    line-height: 1.3;
    font-weight: 700;
    margin: 8px 0;
}

.secondary-article .entry-title a {
    color: #000000;
    text-decoration: none;
}

.secondary-article .entry-title a:hover {
    color: #404040;
}

/* More Stories Grid */
.more-stories-section {
    margin-top: 32px;
}

.stories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px 24px;
}

.grid-article {
    display: flex;
    flex-direction: column;
    padding-bottom: 24px;
    border-bottom: 1px solid #e6e6e6;
}

.grid-article .article-thumbnail {
    margin-bottom: 12px;
}

.grid-article .article-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

.grid-article .entry-title {
    font-size: 18px;
    line-height: 1.3;
    font-weight: 700;
    margin: 8px 0;
}

.grid-article .entry-title a {
    color: #000000;
    text-decoration: none;
}

.grid-article .entry-title a:hover {
    color: #404040;
}

/* Entry Meta */
.entry-meta {
    font-size: 14px;
    color: #6e6e73;
    margin-top: 8px;
}

.entry-meta time {
    color: #6e6e73;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .featured-main-article {
        grid-template-columns: 1fr;
    }
    
    .secondary-stories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .logo-block {
        width: 40px;
        height: 40px;
        font-size: 24px;
    }
    
    .main-navigation .nav-menu {
        flex-wrap: wrap;
        justify-content: flex-start;
    }
    
    .main-navigation .nav-menu > li > a {
        padding: 12px 16px;
        font-size: 14px;
    }
    
    .featured-main-article .entry-title {
        font-size: 28px;
    }
    
    .secondary-stories-grid {
        grid-template-columns: 1fr;
    }
    
    .stories-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .bbc-homepage {
        padding: 16px;
    }
    
    .logo-block {
        width: 36px;
        height: 36px;
        font-size: 20px;
    }
    
    .featured-main-article .entry-title {
        font-size: 24px;
    }
    
    .secondary-article .entry-title,
    .grid-article .entry-title {
        font-size: 16px;
    }
}

/* Hide sidebar on homepage */
.home .widget-area {
    display: none;
}

/*--------------------------------------------------------------
# Mobile Header & Menu - BBC Style
--------------------------------------------------------------*/

/* Hide mobile header on desktop */
.mobile-header {
    display: none;
}

.mobile-menu-overlay {
    display: none;
}

/* Desktop: Show full SIMPCITY logo */
.logo-full .logo-block {
    width: 48px;
    height: 48px;
    font-size: 28px;
}

/* Mobile Styles */
@media (max-width: 768px) {
    /* Hide desktop header on mobile */
    .desktop-header {
        display: none !important;
    }
    
    /* Show mobile header */
    .mobile-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 12px 16px;
        background: #ffffff;
        border-bottom: 1px solid #e6e6e6;
    }
    
    /* Mobile hamburger menu button */
    .mobile-menu-toggle {
        background: none;
        border: none;
        padding: 8px;
        cursor: pointer;
        display: flex;
        flex-direction: column;
        gap: 4px;
    }
    
    .hamburger-line {
        width: 24px;
        height: 3px;
        background: #000000;
        transition: all 0.3s ease;
    }
    
    /* Mobile logo - smaller SIM */
    .mobile-logo .logo-blocks {
        display: flex;
        gap: 1px;
    }
    
    .mobile-logo .logo-block {
        width: 24px;
        height: 24px;
        font-size: 14px;
        background: #000000;
        color: #ffffff;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 800;
    }
    
    /* Mobile search and account buttons */
    .mobile-search-toggle,
    .mobile-account-toggle {
        background: none;
        border: none;
        padding: 8px;
        cursor: pointer;
        color: #000000;
    }
    
    /* Mobile Menu Overlay */
    .mobile-menu-overlay {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background: #ffffff;
        z-index: 9999;
        transition: left 0.3s ease;
        overflow-y: auto;
    }
    
    .mobile-menu-overlay.active {
        left: 0;
        display: block;
    }
    
    /* Mobile menu header */
    .mobile-menu-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 12px 16px;
        border-bottom: 1px solid #e6e6e6;
    }
    
    .mobile-menu-close {
        background: #ffffff;
        border: 2px solid #000000;
        padding: 4px 10px;
        cursor: pointer;
        border-radius: 4px;
        transition: all 0.2s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 28px;
        line-height: 1;
        font-weight: 300;
    }
    
    .mobile-menu-close:hover {
        background: #f0f0f0;
    }
    
    .mobile-menu-close .close-x {
        display: block;
        color: #000000;
        font-size: 32px;
        line-height: 1;
    }
    
    .mobile-menu-logo .logo-blocks {
        display: flex;
        gap: 1px;
    }
    
    .mobile-menu-logo .logo-block {
        width: 28px;
        height: 28px;
        font-size: 16px;
        background: #000000;
        color: #ffffff;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 800;
    }
    
    .mobile-account-link {
        background: none;
        border: none;
        padding: 8px;
        cursor: pointer;
    }
    
    /* Mobile search bar */
    .mobile-search-bar {
        padding: 16px;
        background: #f5f5f5;
    }
    
    .mobile-search-bar .search-form {
        display: flex;
        align-items: center;
        background: #ffffff;
        border: 1px solid #e6e6e6;
        border-radius: 4px;
        overflow: hidden;
    }
    
    .mobile-search-bar .search-field {
        flex: 1;
        padding: 12px 16px;
        border: none;
        font-size: 16px;
        outline: none;
    }
    
    .mobile-search-bar .search-submit {
        background: #000000;
        border: none;
        padding: 12px 16px;
        color: #ffffff;
        cursor: pointer;
    }
    
    /* Mobile navigation menu */
    .mobile-navigation {
        padding: 0;
    }
    
    .mobile-nav-menu {
        list-style: none;
        margin: 0;
        padding: 0;
    }
    
    .mobile-nav-menu > li {
        border-bottom: 1px solid #e6e6e6;
    }
    
    .mobile-nav-menu > li > a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 20px 16px;
        color: #000000;
        text-decoration: none;
        font-size: 18px;
        font-weight: 500;
    }
    
    .mobile-nav-menu > li.current-menu-item {
        background: #f5f5f5;
    }
    
    .mobile-nav-menu > li > a::after {
        content: "›";
        font-size: 24px;
        color: #666666;
    }
    
    /* Body scroll lock when menu open */
    body.mobile-menu-open {
        overflow: hidden;
    }
}

/* Tablet adjustments */
@media (min-width: 769px) and (max-width: 1024px) {
    .logo-full .logo-block {
        width: 40px;
        height: 40px;
        font-size: 24px;
    }
}

/*--------------------------------------------------------------
# Footer - Professional Design
--------------------------------------------------------------*/

.site-footer {
    background: #1a1d2e;
    color: #ffffff;
    padding: 60px 0 30px;
    margin-top: 60px;
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.footer-content {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 60px;
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Footer Logo */
.footer-logo {
    display: flex;
    align-items: flex-start;
}

.footer-logo .logo-blocks {
    display: flex;
    gap: 2px;
}

.footer-logo .logo-block {
    background-color: #ffffff;
    color: #1a1d2e;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 28px;
}

/* Footer Navigation */
.footer-navigation {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-nav-column {
    display: flex;
    flex-direction: column;
}

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

.footer-menu li {
    margin-bottom: 16px;
}

.footer-menu a {
    color: #b8b8b8;
    text-decoration: none;
    font-size: 15px;
    transition: color 0.2s ease;
    display: block;
}

.footer-menu a:hover {
    color: #ffffff;
}

/* Footer Copyright */
.footer-copyright {
    text-align: left;
}

.footer-copyright p {
    color: #808080;
    font-size: 14px;
    margin: 0;
}

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

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-navigation {
        grid-template-columns: 1fr;
        gap: 30px;
        justify-items: center;
    }
    
    .footer-nav-column {
        text-align: center;
    }
    
    .footer-menu {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .footer-logo {
        justify-content: center;
    }
    
    .footer-copyright {
        text-align: center;
    }
    
    .site-footer {
        padding: 40px 0 20px;
    }
}

/*--------------------------------------------------------------
# Single Post Page Styling
--------------------------------------------------------------*/

.single-post-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 24px;
}

.single-post-container {
    background: #ffffff;
}

/* Single Post Header */
.single-post-page .entry-header {
    margin-bottom: 32px;
}

.article-category-single {
    margin-bottom: 16px;
}

.article-category-single a {
    display: inline-block;
    color: #0066cc;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    padding: 4px 12px;
    background: #f0f7ff;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.article-category-single a:hover {
    background: #e0efff;
}

.single-post-page .entry-title {
    font-size: 42px;
    line-height: 1.1;
    font-weight: 700;
    margin-bottom: 20px;
    color: #000000;
}

.entry-meta-single {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: #6e6e73;
}

.meta-separator {
    color: #d0d0d0;
}

/* Featured Image */
.entry-featured-image {
    margin-bottom: 32px;
}

.entry-featured-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

/* Post Content */
.single-post-page .entry-content {
    font-size: 18px;
    line-height: 1.7;
    color: #3f3f42;
}

.single-post-page .entry-content p {
    margin-bottom: 24px;
}

.single-post-page .entry-content h2 {
    font-size: 32px;
    font-weight: 700;
    margin: 40px 0 20px;
    color: #000000;
}

.single-post-page .entry-content h3 {
    font-size: 26px;
    font-weight: 600;
    margin: 32px 0 16px;
    color: #000000;
}

.single-post-page .entry-content ul,
.single-post-page .entry-content ol {
    margin-left: 24px;
    margin-bottom: 24px;
}

.single-post-page .entry-content li {
    margin-bottom: 8px;
}

.single-post-page .entry-content blockquote {
    border-left: 4px solid #0066cc;
    padding-left: 24px;
    margin: 32px 0;
    font-style: italic;
    color: #4a4a4a;
}

.single-post-page .entry-content a {
    color: #0066cc;
    text-decoration: underline;
}

.single-post-page .entry-content a:hover {
    color: #004499;
}

/* Entry Footer (Tags) */
.entry-footer {
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid #e6e6e6;
}

.post-tags {
    font-size: 15px;
}

.tags-label {
    font-weight: 600;
    color: #3f3f42;
}

.post-tags a {
    color: #0066cc;
    text-decoration: none;
    transition: color 0.2s ease;
}

.post-tags a:hover {
    color: #004499;
    text-decoration: underline;
}

/*--------------------------------------------------------------
# Post Navigation - Beautiful Previous/Next Buttons
--------------------------------------------------------------*/

.post-navigation {
    margin: 60px 0;
    padding: 40px 0;
    border-top: 2px solid #e6e6e6;
    border-bottom: 2px solid #e6e6e6;
}

.post-navigation .nav-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.nav-previous,
.nav-next {
    display: block;
}

.nav-previous a,
.nav-next a {
    display: flex;
    flex-direction: column;
    padding: 24px;
    background: #f8f8f8;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    height: 100%;
}

.nav-previous a:hover,
.nav-next a:hover {
    background: #ffffff;
    border-color: #0066cc;
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.1);
    transform: translateY(-2px);
}

.nav-direction {
    font-size: 14px;
    font-weight: 600;
    color: #0066cc;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-title {
    font-size: 18px;
    font-weight: 600;
    color: #000000;
    line-height: 1.3;
}

.nav-previous a:hover .nav-title,
.nav-next a:hover .nav-title {
    color: #0066cc;
}

/* Next button - align text to right */
.nav-next a {
    align-items: flex-end;
    text-align: right;
}

/* Only one navigation item */
.post-navigation .nav-links:has(.nav-previous:only-child) {
    grid-template-columns: 1fr;
}

.post-navigation .nav-links:has(.nav-next:only-child) {
    grid-template-columns: 1fr;
}

.post-navigation .nav-links:has(.nav-next:only-child) .nav-next {
    grid-column: 2;
}

/* Responsive */
@media (max-width: 768px) {
    .single-post-page .entry-title {
        font-size: 32px;
    }
    
    .single-post-page .entry-content {
        font-size: 17px;
    }
    
    .post-navigation .nav-links {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .post-navigation .nav-links:has(.nav-next:only-child) .nav-next {
        grid-column: 1;
    }
    
    .nav-next a {
        align-items: flex-start;
        text-align: left;
    }
}

/* Hide default WordPress navigation */
.nav-previous:not(.post-navigation .nav-previous),
.nav-next:not(.post-navigation .nav-next) {
    display: none;
}

/*--------------------------------------------------------------
# Dark Header - Matching Footer
--------------------------------------------------------------*/

/* Desktop Header */
.bbc-header,
.site-header {
    background: #1a1d2e !important;
}

.desktop-header {
    background: #1a1d2e;
}

.header-container {
    background: #1a1d2e;
}

/* Desktop Logo - White blocks on dark */
.desktop-header .logo-block {
    background-color: #ffffff;
    color: #1a1d2e;
}

/* Desktop Navigation */
.header-navigation {
    background: #1a1d2e;
}

.main-navigation .nav-menu > li > a {
    color: #ffffff;
}

.main-navigation .nav-menu > li > a:hover {
    background-color: #ffffff;
    color: #1a1d2e;
}

.main-navigation .nav-menu > li > a:hover:not(.current-menu-item a) {
    color: #1a1d2e;
}

.main-navigation .nav-menu > li.current-menu-item > a {
    border-bottom-color: #ffffff;
    background-color: #ffffff;
    color: #1a1d2e;
}

/* Mobile Header - Dark */
.mobile-header {
    background: #1a1d2e !important;
}

/* Mobile buttons - White icons */
.mobile-menu-toggle .hamburger-line {
    background: #ffffff;
}

.mobile-search-toggle,
.mobile-account-toggle {
    color: #ffffff;
}

/* Mobile logo - White blocks */
.mobile-logo .logo-block {
    background-color: #ffffff;
    color: #1a1d2e;
}

/* Mobile Menu Overlay - Dark theme */
.mobile-menu-overlay {
    background: #1a1d2e;
}

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

.mobile-menu-logo .logo-block {
    background-color: #ffffff;
    color: #1a1d2e;
}

.mobile-menu-close {
    color: #ffffff;
}

.mobile-account-link {
    color: #ffffff;
}

.mobile-search-bar {
    background: rgba(255, 255, 255, 0.05);
}

.mobile-search-bar .search-form {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.mobile-search-bar .search-field {
    background: transparent;
    color: #ffffff;
}

.mobile-search-bar .search-field::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.mobile-search-bar .search-submit {
    background: #ffffff;
    color: #1a1d2e;
}

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

.mobile-nav-menu > li > a {
    color: #ffffff;
}

.mobile-nav-menu > li.current-menu-item {
    background: rgba(255, 255, 255, 0.05);
}

.mobile-nav-menu > li > a::after {
    color: rgba(255, 255, 255, 0.5);
}

/*--------------------------------------------------------------
# SimpCity Platforms Section
--------------------------------------------------------------*/

.simpcity-platforms {
    margin: 60px 0;
    padding: 60px 0;
    background: #1a1d2e;
    border-radius: 12px;
}

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

.platforms-title {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 40px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.platforms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
}

.platform-box {
    background: rgba(255, 255, 255, 0.95);
    padding: 32px 24px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 2px solid transparent;
}

.platform-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
    border-color: #ffffff;
    background: #ffffff;
}

.platform-icon {
    font-size: 48px;
    margin-bottom: 16px;
    color: #667eea;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.platform-name {
    font-size: 24px;
    font-weight: 700;
    color: #1a1d2e;
    margin-bottom: 12px;
}

.platform-link {
    display: inline-block;
    color: #1a1d2e;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    padding: 12px 24px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.platform-link:hover {
    background: #667eea;
    color: #ffffff;
    transform: scale(1.05);
}

/* Responsive */
@media (max-width: 768px) {
    .platforms-title {
        font-size: 28px;
        margin-bottom: 32px;
    }
    
    .platforms-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .simpcity-platforms {
        margin: 40px 0;
        padding: 40px 0;
        border-radius: 8px;
    }
    
    .platform-box {
        padding: 28px 20px;
    }
    
    .platform-icon {
        font-size: 40px;
    }
    
    .platform-name {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .platforms-title {
        font-size: 24px;
    }
    
    .platform-name {
        font-size: 18px;
    }
    
    .platform-link {
        font-size: 14px;
        padding: 10px 20px;
    }
}

/*--------------------------------------------------------------
# Category Archive Pages - Verge Style
--------------------------------------------------------------*/

.category-archive {
    max-width: 100%;
    margin: 0;
    padding: 0;
}

/* Category Header */
.category-header {
    background: linear-gradient(180deg, #1a1d2e 0%, #1a1d2e 70%, transparent 100%);
    padding: 80px 24px 100px;
    margin-bottom: 20px;
    position: relative;
}

.category-header-content {
    max-width: 1200px;
    margin: 0 auto;
}

.category-title {
    font-size: 72px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 24px 0;
    text-transform: uppercase;
    letter-spacing: -2px;
    line-height: 1;
}

.category-follow-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #667eea;
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    border-radius: 24px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.category-follow-btn:hover {
    background: #5568d3;
    transform: scale(1.05);
}

.follow-icon {
    font-size: 20px;
    font-weight: 700;
}

.category-description {
    color: #e0e0e0;
    font-size: 18px;
    line-height: 1.6;
    max-width: 800px;
}

.category-description p {
    margin: 0;
}

/* Category Posts Container */
.category-posts-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px 80px;
}

.category-posts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

/* Featured Post (First Post - Large) */
.category-post.featured-post {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 20px;
}

.featured-post .post-thumbnail-link {
    display: block;
    overflow: hidden;
    border-radius: 12px;
}

.featured-post .post-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.featured-post .post-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-post .post-title {
    font-size: 42px;
    font-weight: 700;
    line-height: 1.1;
    margin: 0 0 16px 0;
}

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

.featured-post .post-title a:hover {
    color: #667eea;
}

.featured-post .post-excerpt {
    font-size: 18px;
    line-height: 1.6;
    color: #4a4a4a;
    margin: 0 0 20px 0;
}

/* Regular Posts (Grid) */
.category-post.regular-post {
    display: flex;
    flex-direction: column;
}

.regular-post .post-thumbnail-link {
    display: block;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 16px;
}

.regular-post .post-thumbnail {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.regular-post .post-title {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 12px 0;
}

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

.regular-post .post-title a:hover {
    color: #667eea;
}

.regular-post .post-excerpt {
    font-size: 15px;
    line-height: 1.5;
    color: #666666;
    margin: 0 0 12px 0;
}

/* Post Meta */
.post-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #00c853;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.featured-post .post-meta {
    font-size: 14px;
}

.post-author {
    color: #1a1d2e;
}

.meta-separator {
    color: #d0d0d0;
}

.post-date {
    color: #999999;
}

/* Pagination */
.pagination {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid #e6e6e6;
}

.pagination .nav-links {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.pagination a,
.pagination .current {
    padding: 12px 20px;
    background: #f5f5f5;
    color: #000000;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.pagination a:hover {
    background: #1a1d2e;
    color: #ffffff;
}

.pagination .current {
    background: #1a1d2e;
    color: #ffffff;
}

/* No Posts Found */
.no-posts-found {
    max-width: 800px;
    margin: 80px auto;
    text-align: center;
    padding: 60px 24px;
}

.no-posts-found h1 {
    font-size: 36px;
    margin-bottom: 16px;
}

.no-posts-found p {
    font-size: 18px;
    color: #666666;
}

/* Responsive */
@media (max-width: 1024px) {
    .category-title {
        font-size: 56px;
    }
    
    .featured-post .post-title {
        font-size: 32px;
    }
}

@media (max-width: 768px) {
    .category-header {
        padding: 60px 20px 40px;
        margin-bottom: 40px;
    }
    
    .category-title {
        font-size: 42px;
    }
    
    .category-posts-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .category-post.featured-post {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .featured-post .post-title {
        font-size: 28px;
    }
    
    .featured-post .post-excerpt {
        font-size: 16px;
    }
    
    .regular-post .post-title {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .category-title {
        font-size: 32px;
        letter-spacing: -1px;
    }
    
    .category-description {
        font-size: 16px;
    }
    
    .featured-post .post-title {
        font-size: 24px;
    }
}

/*--------------------------------------------------------------
# 404 Error Page - Dark Blue Design
--------------------------------------------------------------*/

.error-404-page {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 24px;
}

.error-404 {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.error-404-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

/* 404 Number */
.error-404-number {
    font-size: 180px;
    font-weight: 800;
    color: #1a1d2e;
    line-height: 1;
    margin: 0;
    letter-spacing: -8px;
}

/* Page Title */
.error-404-title {
    font-size: 42px;
    font-weight: 700;
    color: #000000;
    margin: 0;
}

/* Error Message */
.error-404-message {
    font-size: 18px;
    color: #4a4a4a;
    margin: 0;
}

/* Search Form */
.error-404-search {
    width: 100%;
    max-width: 600px;
    margin: 20px 0;
}

.error-404-search .search-form {
    display: flex;
    align-items: center;
    background: #f5f5f5;
    border-radius: 50px;
    overflow: hidden;
    padding: 4px;
}

.error-404-search .search-field {
    flex: 1;
    padding: 16px 24px;
    border: none;
    background: transparent;
    font-size: 16px;
    outline: none;
}

.error-404-search .search-field::placeholder {
    color: #999999;
}

.error-404-search .search-submit {
    background: #1a1d2e;
    color: #ffffff;
    border: none;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.error-404-search .search-submit:hover {
    background: #2d3250;
    transform: scale(1.05);
}

/* Back to Home Button */
.error-404-actions {
    margin-top: 20px;
}

.back-to-home-btn {
    display: inline-block;
    background: #1a1d2e;
    color: #ffffff !important;
    text-decoration: none;
    padding: 16px 40px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(26, 29, 46, 0.2);
}

.back-to-home-btn:hover {
    background: #2d3250;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(26, 29, 46, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .error-404-number {
        font-size: 120px;
        letter-spacing: -4px;
    }
    
    .error-404-title {
        font-size: 32px;
    }
    
    .error-404-message {
        font-size: 16px;
    }
    
    .error-404-page {
        padding: 60px 20px;
        min-height: 60vh;
    }
}

@media (max-width: 480px) {
    .error-404-number {
        font-size: 90px;
    }
    
    .error-404-title {
        font-size: 28px;
    }
    
    .back-to-home-btn {
        padding: 14px 32px;
        font-size: 15px;
    }
}

/* Remove underline from logo links */
.mobile-logo a,
.mobile-menu-logo a,
.site-branding a,
.logo-link {
    text-decoration: none !important;
}

.mobile-logo a:hover,
.mobile-menu-logo a:hover,
.site-branding a:hover,
.logo-link:hover {
    text-decoration: none !important;
}

.logo-blocks {
    text-decoration: none !important;
}

/* Transform hamburger to X when menu is open */
.mobile-header.menu-is-open .mobile-menu-toggle {
    position: relative;
}

.mobile-header.menu-is-open .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-header.menu-is-open .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-header.menu-is-open .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}
/* ===== UNIQUE CLASSES FROM HTML ===== */

/* Main container */
.post-guide-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 20px;
}

/* Data box - Deal boxes and Trust boxes */
.data-box {
    background-color: #1A1D2E;
    padding: 22px 25px;
    margin: 30px 0;
    border-radius: 8px;
    position: relative;
}

.data-box::before {
    content: "💡";
    position: absolute;
    top: -12px;
    left: 20px;
    font-size: 1.2rem;
    background-color: #fff;
    padding: 0 8px;
}

.data-box h2,
.data-box h3 {
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 12px 0;
}

.data-box p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.88rem;
    line-height: 1.6;
    margin-bottom: 10px;
}

.data-box p:last-child {
    margin-bottom: 0;
}

.data-box ul {
    list-style: none;
    padding-left: 0;
    margin: 12px 0;
}

.data-box ul li {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.88rem;
    margin-bottom: 8px;
    padding-left: 24px;
    position: relative;
}

.data-box ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #fff;
}

.data-box a {
    display: inline-block;
    background-color: #fff;
    color: #1A1D2E !important;
    padding: 12px 24px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 10px;
    border-radius: 4px;
}

.data-box a:hover {
    opacity: 0.9;
}

@media (max-width: 600px) {
    .post-guide-container {
        padding: 15px;
    }
}
/* ========================================
   SC Author Box - Clean Minimal Style
   ======================================== */

.sc-author-box {
background: #ffffff !important;
	border-radius: 0 !important;
	padding: 30px !important;
	margin: 48px 0 !important;
	border-top: 3px solid #1A1D2E !important;
}

.sc-author-inner {
	display: flex !important;
	align-items: flex-start !important;
	gap: 24px !important;
}

.sc-author-img {
	flex-shrink: 0 !important;
}

.sc-author-img a {
	display: block !important;
	text-decoration: none !important;
}

.sc-author-img img {
	width: 80px !important;
	height: 80px !important;
	border-radius: 50% !important;
	object-fit: cover !important;
	object-position: center top !important;
	border: 3px solid #1A1D2E !important;
	display: block !important;
}

.sc-author-details {
	flex: 1 !important;
	min-width: 0 !important;
}

.sc-author-tag {
	display: none !important;
}

.sc-author-title {
	margin: 0 0 8px 0 !important;
	font-size: 22px !important;
	font-weight: 700 !important;
	line-height: 1.2 !important;
}

.sc-author-title a {
	color: #1A1D2E !important;
	text-decoration: none !important;
}

.sc-author-title a:hover {
	color: #1A1D2E !important;
}

.sc-author-desc {
	margin: 0 !important;
	font-size: 14px !important;
	line-height: 1.6 !important;
	color: #1A1D2E !important;
}

.sc-author-btn {
	display: none !important;
}

/* SC Author Box - Mobile Responsive */
@media (max-width: 640px) {
	.sc-author-box {
		padding: 24px 20px !important;
		margin: 32px 0 !important;
	}
	
	.sc-author-inner {
		flex-direction: column !important;
		text-align: center !important;
		gap: 16px !important;
	}
	
	.sc-author-img img {
		width: 70px !important;
		height: 70px !important;
		margin: 0 auto !important;
	}
	
	.sc-author-title {
		font-size: 20px !important;
	}
}