/*
Theme Name: Classic Minimal
Theme URI: https://example.com/classic-minimal
Author: Your Name
Author URI: https://example.com
Description: A clean, minimal, traditional PHP WordPress theme suitable for blogs, portfolios, and small business sites. Fully responsive with a simple, easy-to-customize layout.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: classic-minimal
Tags: blog, portfolio, custom-menu, custom-logo, featured-images, threaded-comments, translation-ready
*/

/* -----------------------------------------
   0. Reset / Base
------------------------------------------ */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 17px;
	line-height: 1.65;
	color: #232323;
	background: #ffffff;
}

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

a {
	color: #1a5276;
	text-decoration: none;
}

a:hover,
a:focus {
	text-decoration: underline;
}

h1, h2, h3, h4, h5, h6 {
	font-family: Georgia, "Times New Roman", serif;
	line-height: 1.25;
	margin: 1.4em 0 0.5em;
	font-weight: 700;
	color: #111;
}

h1 { font-size: 2.2rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.15rem; }

p { margin: 0 0 1.2em; }

ul, ol { padding-left: 1.4em; }

blockquote {
	margin: 1.5em 0;
	padding: 0.5em 1.2em;
	border-left: 4px solid #ddd;
	color: #555;
	font-style: italic;
}

code, pre {
	font-family: Consolas, Monaco, "Courier New", monospace;
	background: #f5f5f5;
	border-radius: 3px;
}

code { padding: 0.15em 0.4em; }

pre {
	padding: 1em;
	overflow-x: auto;
}

table {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 1.5em;
}

th, td {
	padding: 0.6em 0.8em;
	border: 1px solid #e2e2e2;
	text-align: left;
}

hr {
	border: none;
	border-top: 1px solid #e2e2e2;
	margin: 2em 0;
}

/* -----------------------------------------
   1. Layout
------------------------------------------ */
.site {
	max-width: 1100px;
	margin: 0 auto;
	padding: 0 24px;
}

.site-content {
	display: flex;
	flex-wrap: wrap;
	gap: 48px;
	padding: 40px 0 60px;
}

#primary {
	flex: 1 1 620px;
	min-width: 0;
}

#secondary {
	flex: 0 1 280px;
}

@media (max-width: 780px) {
	.site-content {
		flex-direction: column;
		gap: 32px;
	}
	#secondary {
		flex-basis: auto;
	}
}

/* -----------------------------------------
   2. Header
------------------------------------------ */
.site-header {
	border-bottom: 1px solid #eee;
	padding: 28px 0;
}

.site-header .site-branding {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 16px;
}

.site-title {
	margin: 0;
	font-size: 1.7rem;
	letter-spacing: -0.02em;
}

.site-title a {
	color: #111;
}

.site-title a:hover {
	text-decoration: none;
}

.site-description {
	margin: 4px 0 0;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	font-size: 0.9rem;
	color: #777;
}

.custom-logo {
	max-height: 60px;
	width: auto;
}

/* Primary nav */
.main-navigation {
	margin-top: 18px;
}

.main-navigation ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 4px 24px;
}

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

.main-navigation a {
	display: inline-block;
	padding: 6px 0;
	color: #333;
	font-size: 0.95rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a {
	color: #1a5276;
	text-decoration: none;
	border-bottom: 2px solid #1a5276;
}

.menu-toggle {
	display: none;
	background: none;
	border: 1px solid #ccc;
	border-radius: 4px;
	padding: 8px 14px;
	font-size: 0.9rem;
	cursor: pointer;
}

@media (max-width: 700px) {
	.menu-toggle {
		display: inline-block;
	}
	.main-navigation ul {
		display: none;
		flex-direction: column;
		gap: 0;
	}
	.main-navigation.toggled ul {
		display: flex;
	}
	.main-navigation a {
		padding: 10px 0;
		border-bottom: 1px solid #f0f0f0;
	}
}

/* -----------------------------------------
   3. Posts / Archive
------------------------------------------ */
.entry {
	margin-bottom: 3em;
	padding-bottom: 2.5em;
	border-bottom: 1px solid #f0f0f0;
}

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

.entry-title {
	margin-top: 0;
	font-size: 1.9rem;
}

.entry-title a {
	color: #111;
}

.entry-meta {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 0.85rem;
	color: #888;
	margin-bottom: 1em;
}

.entry-meta a {
	color: #888;
}

.entry-thumbnail {
	margin: 0 0 1.4em;
	border-radius: 6px;
	overflow: hidden;
}

.entry-summary,
.entry-content {
	font-size: 1rem;
}

.read-more {
	display: inline-block;
	margin-top: 0.5em;
	font-weight: 600;
}

.entry-footer {
	margin-top: 1.5em;
	font-size: 0.85rem;
	color: #888;
}

.entry-tags a,
.entry-categories a {
	display: inline-block;
	margin: 0 6px 6px 0;
	padding: 3px 10px;
	background: #f4f4f4;
	border-radius: 20px;
	font-size: 0.8rem;
	color: #555;
}

.entry-tags a:hover,
.entry-categories a:hover {
	background: #e8e8e8;
	text-decoration: none;
}

/* Pagination */
.pagination,
.post-navigation,
.pagination-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 10px;
	margin: 2.5em 0;
	font-size: 0.9rem;
}

.pagination .page-numbers {
	display: inline-block;
	padding: 6px 12px;
	margin-right: 4px;
	border: 1px solid #e2e2e2;
	border-radius: 4px;
	color: #333;
}

.pagination .page-numbers.current {
	background: #1a5276;
	color: #fff;
	border-color: #1a5276;
}

.pagination a:hover {
	text-decoration: none;
	border-color: #1a5276;
}

/* -----------------------------------------
   4. Sidebar / Widgets
------------------------------------------ */
.widget {
	margin-bottom: 2.5em;
}

.widget-title {
	font-size: 1.1rem;
	margin-top: 0;
	padding-bottom: 0.5em;
	border-bottom: 2px solid #eee;
}

.widget ul {
	list-style: none;
	padding-left: 0;
	margin: 0;
}

.widget li {
	padding: 6px 0;
	border-bottom: 1px solid #f5f5f5;
}

/* -----------------------------------------
   5. Comments
------------------------------------------ */
.comments-area {
	margin-top: 3em;
}

.comment-list {
	list-style: none;
	padding-left: 0;
}

.comment-list .children {
	list-style: none;
	padding-left: 2em;
}

.comment-body {
	padding: 1.2em 0;
	border-bottom: 1px solid #f0f0f0;
}

.comment-author {
	font-weight: 700;
	font-size: 0.95rem;
}

.comment-metadata {
	font-size: 0.8rem;
	color: #888;
	margin-bottom: 0.6em;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-family: inherit;
	font-size: 0.95rem;
	margin-bottom: 1em;
}

.comment-form textarea {
	min-height: 120px;
}

.comment-reply-title {
	margin-top: 0;
}

/* -----------------------------------------
   6. Buttons / Forms
------------------------------------------ */
button,
input[type="submit"],
.button {
	display: inline-block;
	background: #1a5276;
	color: #fff;
	border: none;
	border-radius: 4px;
	padding: 10px 22px;
	font-size: 0.95rem;
	font-weight: 600;
	cursor: pointer;
}

button:hover,
input[type="submit"]:hover,
.button:hover {
	background: #154360;
	text-decoration: none;
}

.search-form {
	display: flex;
	gap: 8px;
}

.search-form input[type="search"] {
	flex: 1;
	padding: 8px 10px;
	border: 1px solid #ddd;
	border-radius: 4px;
}

/* -----------------------------------------
   7. Footer
------------------------------------------ */
.site-footer {
	border-top: 1px solid #eee;
	margin-top: 40px;
	padding: 30px 0;
	text-align: center;
	font-size: 0.85rem;
	color: #888;
}

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

/* -----------------------------------------
   8. Utility / Accessibility
------------------------------------------ */
.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

.alignleft { float: left; margin: 0.5em 1.5em 1em 0; }
.alignright { float: right; margin: 0.5em 0 1em 1.5em; }
.aligncenter { display: block; margin: 1em auto; }

.sticky {
	border-left: 3px solid #1a5276;
	padding-left: 1em;
}
