/*
Theme Name: Blog Theme
Author: Syed Ashaar Ali
Version: 1.0
*/
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&display=swap');
:root {
	/* Backgrounds */
	--bg: #0f0f0f;
	--bg-soft: #1a1a1a;
	--card: #1f1f1f;

	/* Text */
	--text: #ffffff;
	--text-muted: #b5b5b5;

	/* Primary Accent */
	--primary: #ff6600;
	--primary-hover: #ff7a1a;

	/* Borders */
	--border: #2a2a2a;

	/* Primary Font Family */
	--primary-font-family: "DM Sans", sans-serif;
}
/* =====================
HEADINGS SYSTEM
===================== */

h1, h2, h3, h4, h5, h6 {
	font-weight: 700;
	color: var(--text);
	margin-bottom: 15px;
	line-height: 1.2;
}

/* Desktop sizes */
h1 {
	font-size: 80px;
	text-align: center;
}

h2 {
	font-size: 55px;
	text-align: center;
}

h3 {
	font-size: 45px;
}

h4 {
	font-size: 35px;
}

h5 {
	font-size: 25px;
}

h6 {
	font-size: 14px;
	color: var(--text-muted);
}

/* Apply globally */
body {
	margin: 0;
	padding: 0;
	background: var(--bg);
	color: var(--text);
	font-size: 16px;
	/* 	font-family: "Open Sans", sans-serif; */
	font-family: var(--primary-font-family);
}

/* Links */
a {
	color: var(--primary);
	text-decoration: none;
}
button{
	font-family: var(--primary-font-family);
}
a:hover {
	color: var(--primary-hover);
}

/* Container */
.container {
	width: 100%;
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 2rem;
}



/* GRID */
.posts-grid {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	gap: 20px;
}

/* CARD */
.post-card {
	background: var(--card);
	border: 1px solid var(--border);
	border-radius: 14px;
	overflow: hidden;
	transition: 0.3s ease;
}

/* hover effect */
.post-card:hover {
	transform: translateY(-6px);
	border-color: var(--primary);
	box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

/* IMAGE */
.post-img img {
	width: 100%;
	height: 350px;
	object-fit: cover;
	display: block;
}

/* CONTENT */
.post-content {
	padding: 15px;
}

.post-content h3 {
	font-size: 16px;
	margin-bottom: 10px;
}

.post-content h3 a {
	color: var(--text);
}

.post-content p {
	font-size: 13px;
	color: var(--text-muted);
	margin-bottom: 12px;
}

/* READ MORE */
.read-more {
	font-size: 13px;
	color: var(--primary);
	font-weight: bold;
}

.read-more:hover {
	color: var(--primary-hover);
}
/* Buttons */
.btn {
	display: inline-block;
	background: var(--primary);
	color: #fff;
	padding: 12px 18px;
	border-radius: 6px;
	transition: 0.3s;
}

.btn:hover {
	background: var(--primary-hover);
}
.site-header {
	background: transparent;
	padding: 20px 0;

}
.home .site-header{
	position: absolute;
	width: 100%;
	left: 0;
	top: 0;
	z-index: 1;
}
/* inner container styling */
.header-inner {
	border: 1px solid var(--border);
	border-radius: 14px;
	padding: 15px 20px;

	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;

	box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
}

/* Logo */
.logo a {
	color: var(--text);
	font-size: 20px;
	font-weight: bold;
}

/* Search bar center */
.header-search {
	flex: 1;
	display: flex;
	justify-content: center;
}


/* Menu */
.menu ul {
	list-style: none;
	display: flex;
	gap: 15px;
	margin: 0;
	padding: 0;
}

.menu a {
	color: var(--text);
	font-size: 14px;
}

.header-search {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	flex: 1;
}

/* Input */
#blogSearch {
	width: 100%;
	max-width: 380px;
	padding: 11px 14px;
	border-radius: 8px;
	border: 1px solid var(--border);
	background: var(--card);
	color: var(--text);
	outline: none;
	transition: 0.2s ease;
	font-size: 14px;
	font-family: var(--primary-font-family);
}

/* Focus effect */
#blogSearch:focus {
	border-color: var(--primary);
	box-shadow: 0 0 0 2px rgba(255, 102, 0, 0.2);
}

/* Button */
#searchBtn {
	padding: 11px 16px;
	border: none;
	border-radius: 8px;
	background: var(--primary);
	color: #fff;
	cursor: pointer;
	font-size: 14px;
	transition: 0.2s ease;
}

/* Hover */
#searchBtn:hover {
	background: var(--primary-hover);
}

/* Active click */
#searchBtn:active {
	transform: scale(0.96);
}


/* =====================
HERO SECTION
===================== */
.hero {
	text-align: center;
	background: var(--bg);
	position: relative;
	overflow: hidden;
	min-height: 500px;
	display: grid;
	place-items: center;
	/* 	padding-top: 50px; */
}

.hero::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: radial-gradient(circle at top, rgba(255,102,0,0.2), transparent 55%);
	pointer-events: none;
}

.hero p {
	color: var(--text-muted);
	max-width: 650px;
	margin: 0 auto 25px;
	font-size: 16px;
}

.hero-buttons {
	display: flex;
	justify-content: center;
	gap: 12px;
	flex-wrap: wrap;
}

/* Buttons */
.btn {
	display: inline-block;
	background: var(--primary);
	color: #fff;
	padding: 12px 18px;
	border-radius: 8px;
	transition: 0.2s ease;
	font-weight: 500;
}

.btn:hover {
	background: var(--primary-hover);
	transform: translateY(-2px);
}

.btn.secondary {
	background: transparent;
	border: 1px solid var(--border);
	color: var(--text);
}

/* =====================
SECTIONS BASE
===================== */
.categories,
.latest-posts,
.trending,
.newsletter {
	padding: 70px 0;
}



/* =====================
CATEGORIES
===================== */
.cat-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 15px;
}

.cat-grid a {
	background: var(--card);
	padding: 15px;
	border-radius: 10px;
	border: 1px solid var(--border);
	text-align: center;
	color: var(--text);
	transition: 0.2s ease;
}

.cat-grid a:hover {
	background: var(--bg-soft);
	transform: translateY(-3px);
	border-color: var(--primary);
}

/* =====================
BLOG CARDS
===================== */
.card {
	background: var(--card);
	padding: 18px;
	border-radius: 12px;
	border: 1px solid var(--border);
	margin-bottom: 15px;
	transition: 0.2s ease;
}

.card:hover {
	transform: translateY(-3px);
	border-color: var(--primary);
}

.card h3 {
	margin-bottom: 10px;
	font-size: 18px;
}

.card h3 a {
	color: var(--text);
}

.card p {
	color: var(--text-muted);
	font-size: 14px;
}

/* =====================
PRODUCT GRID
===================== */
.product-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 15px;
}

.product-grid .card {
	text-align: center;
}

/* =====================
NEWSLETTER
===================== */
.newsletter {
	text-align: center;
	background: var(--bg-soft);
	border-top: 1px solid var(--border);
	border-bottom: 1px solid var(--border);
}

.newsletter input {
	padding: 12px;
	width: 280px;
	max-width: 90%;
	border-radius: 8px;
	border: 1px solid var(--border);
	background: var(--card);
	color: var(--text);
	margin-top: 15px;
	outline: none;
}

.newsletter button {
	margin-left: 8px;
}

.single-post .container > div h2{
	text-align: left;
}

/* =====================
RESPONSIVE
===================== */
@media (max-width: 768px) {

	.hero h1 {
		font-size: 28px;
	}

	.hero-buttons {
		flex-direction: column;
		align-items: center;
	}

	.newsletter button {
		margin-top: 10px;
		margin-left: 0;
	}
}