/*
Theme Name: Sonela Blog
Theme URI: https://sonelablog.com
Author: Codexpert
Author URI: https://codexpert.io
Description: Plain classic theme for Sonela Blog. Presentation only — site features come from the sonelablog-core plugin.
Version: 2.0.0
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sonelablog
Domain Path: /languages
*/

/* ---------- Font ---------- */
@font-face {
	font-family: "SolaimanLipi";
	src: url("assets/fonts/SolaimanLipi.woff") format("woff"),
		url("assets/fonts/SolaimanLipi.ttf") format("truetype");
	font-weight: normal;
	font-style: normal;
	font-display: swap;
}

/* ---------- Tokens (values carried over from the previous theme) ---------- */
:root {
	--sb-font: "SolaimanLipi", sans-serif;

	--sb-color-text: #292828;
	--sb-color-heading: #313131;
	--sb-color-title: #2a2a2a;
	--sb-color-muted: #6c757d;
	--sb-color-label: #7e7e7e;
	--sb-color-border: #ddd;
	--sb-color-bg: #fff;

	--sb-color-primary: #1696e7;
	--sb-color-primary-hover: #2b96cc;
	--sb-color-button-hover: #0069d9;
	--sb-color-on-primary: #fff;

	--sb-color-accent: #d63;          /* post title links, pagination */
	--sb-color-widget-title: #900;    /* widget headings */
	--sb-color-quote: #dd6936;        /* blockquote border */

	--sb-font-size: 14px;
	--sb-line-height: 24px;
	--sb-content-font-size: 16px;     /* post content + excerpts */

	--sb-h1: 40px;
	--sb-h2: 35px;
	--sb-h3: 28px;
	--sb-h4: 22px;
	--sb-h5: 18px;
	--sb-h6: 16px;

	--sb-container: 1280px;
	--sb-gutter: 30px;
	--sb-radius: 4px;
}

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

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

body {
	margin: 0;
	background: var(--sb-color-bg);
	color: var(--sb-color-text);
	font-family: var(--sb-font);
	font-size: var(--sb-font-size);
	font-weight: normal;
	line-height: 1.5;
	overflow-wrap: break-word;
}

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

/* Keep the iframe's own height attribute (embeds); only cap the width. */
iframe {
	max-width: 100%;
}

a,
button {
	color: var(--sb-color-primary);
}

a {
	text-decoration: none;
	transition: all 0.3s ease-out 0s;
}

a:hover,
a:focus {
	color: var(--sb-color-primary-hover);
	text-decoration: none;
}

:focus-visible {
	outline: 2px solid var(--sb-color-primary);
	outline-offset: 2px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0 0 0.5rem;
	color: var(--sb-color-heading);
	font-family: var(--sb-font);
	font-weight: normal;
	font-style: normal;
	line-height: 1.2;
}

h1 a,
h2 a,
h3 a,
h4 a,
h5 a,
h6 a {
	color: inherit;
}

h1 { font-size: var(--sb-h1); }
h2 { font-size: var(--sb-h2); }
h3 { font-size: var(--sb-h3); }
h4 { font-size: var(--sb-h4); }
h5 { font-size: var(--sb-h5); }
h6 { font-size: var(--sb-h6); }

p {
	margin: 0 0 15px;
	color: var(--sb-color-text);
	font-size: var(--sb-font-size);
	line-height: var(--sb-line-height);
}

ul,
ol {
	margin: 0 0 1rem;
}

hr {
	margin: 30px 0;
	padding: 0;
	border: 0;
	border-bottom: 1px solid #eceff8;
}

label {
	color: var(--sb-color-label);
	font-size: 14px;
	cursor: pointer;
}

blockquote {
	margin: 0 0 1rem 24px;
	padding-left: 5px;
	border-left: 4px solid var(--sb-color-quote);
}

blockquote p {
	color: #4d4d4d;
	font-size: 16px;
	font-style: italic;
}

pre {
	overflow-x: auto;
}

table {
	width: 100%;
	margin-bottom: 1rem;
	border-collapse: collapse;
}

/* Content tables: natural width, scroll sideways when wider than the column. */
.entry-content table,
.comment-content table {
	display: block;
	width: max-content;
	max-width: 100%;
	overflow-x: auto;
	overflow-wrap: normal;
}

th,
td {
	padding: 0.5rem;
	border: 1px solid var(--sb-color-border);
	text-align: left;
}

::selection {
	background: #444;
	color: #fff;
	text-shadow: none;
}

::placeholder {
	color: #555;
	font-size: 14px;
	opacity: 1;
}

/* ---------- Forms ---------- */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
select,
textarea {
	width: 100%;
	padding: 8px;
	border: 1px solid var(--sb-color-border);
	border-radius: var(--sb-radius);
	background: #fff;
	color: inherit;
	font: inherit;
}

button,
input[type="submit"],
input[type="button"],
.button {
	display: inline-block;
	padding: 8px 14px;
	border: 1px solid var(--sb-color-primary);
	border-radius: var(--sb-radius);
	background: var(--sb-color-primary);
	color: var(--sb-color-on-primary);
	font: inherit;
	cursor: pointer;
	transition: 0.4s;
}

button:hover,
input[type="submit"]:hover,
input[type="button"]:hover,
.button:hover {
	border-color: var(--sb-color-button-hover);
	background: var(--sb-color-button-hover);
	color: var(--sb-color-on-primary);
}

/* ---------- Accessibility ---------- */
.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.skip-link:focus {
	z-index: 1000;
	top: 5px;
	left: 5px;
	width: auto;
	height: auto;
	padding: 8px 14px;
	clip: auto;
	background: #fff;
}

/* ---------- Layout ---------- */
/* Whole page sits in one 1280px box, flush on wide screens (as before). */
.site {
	width: 100%;
	max-width: var(--sb-container);
	margin-inline: auto;
	padding-inline: 15px;
}

@media (min-width: 1200px) {
	.site {
		padding-inline: 0;
	}
}

.container {
	width: 100%;
}

.site-content {
	display: grid;
	gap: var(--sb-gutter);
	padding-block: 40px;
	grid-template-columns: minmax(0, 1fr);
	grid-template-areas:
		"main"
		"left"
		"right";
}

.site-main {
	grid-area: main;
	min-width: 0;
}

.sidebar--left {
	grid-area: left;
	min-width: 0;
}

.sidebar--right {
	grid-area: right;
	min-width: 0;
}

/* Same proportions as before: 3/6/3 columns, then 2/8/2 on large screens. */
@media (min-width: 576px) {
	.site-content {
		grid-template-columns: minmax(0, 3fr) minmax(0, 6fr) minmax(0, 3fr);
		grid-template-areas: "left main right";
	}
}

@media (min-width: 992px) {
	.site-content {
		grid-template-columns: minmax(0, 2fr) minmax(0, 8fr) minmax(0, 2fr);
	}
}

/* ---------- Header ---------- */
.site-banner {
	text-align: center;
}

.site-banner img {
	display: block;
	width: 100%;
	max-width: 100%;
	margin: 0 auto;
}

.site-header__bar {
	background-color: #fff;
	box-shadow: 0 0 7px 0 rgba(0, 0, 0, 0.2);
}

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

.site-branding {
	display: flex;
	padding-left: 10px;
	align-items: center;
	gap: 10px;
	padding-block: 5px;
}

.custom-logo {
	display: block;
	width: auto;
	max-height: 50px;
}

.site-title {
	margin: 0;
	color: var(--sb-color-title);
	font-size: 20px;
	line-height: 1.5;
}

.site-title a {
	color: inherit;
}

/* ---------- Navigation ---------- */
.menu-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	padding: 4px 12px;
	border: 1px solid rgba(0, 0, 0, 0.1);
	background: transparent;
	color: rgba(0, 0, 0, 0.5);
}

.menu-toggle:hover {
	border-color: rgba(0, 0, 0, 0.2);
	background: transparent;
	color: rgba(0, 0, 0, 0.7);
}

.menu-toggle__icon,
.menu-toggle__icon::before,
.menu-toggle__icon::after {
	display: block;
	width: 22px;
	height: 2px;
	background: currentColor;
	content: "";
}

.menu-toggle__icon {
	position: relative;
	margin-block: 8px;
}

.menu-toggle__icon::before {
	position: absolute;
	top: -7px;
}

.menu-toggle__icon::after {
	position: absolute;
	top: 7px;
}

.menu-toggle__label {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
}

.main-navigation {
	display: none;
	flex-basis: 100%;
	padding: 10px 0;
}

.main-navigation.is-open {
	display: block;
}

.main-navigation .menu,
.main-navigation .sub-menu {
	margin: 0;
	padding: 0;
	list-style: none;
}

.main-navigation a {
	display: block;
	padding: 16px 12px;
	border-bottom: 1px solid #fff;
	color: #2a2a2a;
	text-transform: uppercase;
	transition: 0.4s;
}

.main-navigation a:hover,
.main-navigation a:focus,
.main-navigation .current-menu-item > a {
	background-color: var(--sb-color-primary);
	color: #fff;
}

/* Mobile: submenus are always expanded, shown as indented rows. */
.main-navigation .sub-menu a {
	padding-left: 28px;
	border-bottom: 1px solid #eee;
}

.main-navigation .sub-menu .sub-menu a {
	padding-left: 44px;
}

@media (min-width: 768px) {
	.main-navigation a {
		padding: 10px 12px;
	}
}

@media (min-width: 992px) {
	.menu-toggle,
	.site-branding {
		display: none;
	}

	.main-navigation {
		display: block;
		flex-basis: auto;
		padding: 0;
	}

	.main-navigation .menu {
		display: flex;
		flex-wrap: wrap;
	}

	.main-navigation li {
		position: relative;
	}

	.main-navigation a {
		border-right: 1px solid #fff;
		border-bottom: 0;
	}

	.main-navigation .sub-menu {
		position: absolute;
		z-index: 9999;
		top: 150%;
		left: 0;
		width: 200px;
		background: var(--sb-color-primary);
		visibility: hidden;
		opacity: 0;
		text-align: left;
		transition: all 0.5s ease 0s;
	}

	.main-navigation li:hover > .sub-menu,
	.main-navigation li:focus-within > .sub-menu {
		top: 100%;
		visibility: visible;
		opacity: 1;
	}

	.main-navigation .sub-menu .sub-menu {
		top: 0;
		left: 100%;
	}

	.main-navigation .sub-menu li:hover > .sub-menu,
	.main-navigation .sub-menu li:focus-within > .sub-menu {
		top: 0;
	}

	.main-navigation .sub-menu li {
		border-bottom: 1px solid #fff;
	}

	.main-navigation .sub-menu li:last-child {
		border-bottom: 0;
	}

	.main-navigation .sub-menu a,
	.main-navigation .sub-menu .sub-menu a {
		padding-left: 12px;
		border: 0;
		color: #fff;
	}

	.main-navigation .sub-menu .sub-menu li {
		border-left: 1px solid #fff;
	}
}

/* ---------- Page header (archive, author, search) ---------- */
.page-header {
	margin-bottom: 20px;
	padding: 10px;
	border: 1px solid var(--sb-color-primary);
}

.page-header .page-title {
	margin-bottom: 0;
	color: var(--sb-color-primary);
	font-size: var(--sb-h4);
}

.archive-description {
	margin-top: 10px;
}

.archive-description > *:last-child {
	margin-bottom: 0;
}

.author-header {
	display: flex;
	gap: 15px;
	align-items: flex-start;
}

.author-header img {
	flex-shrink: 0;
}

.author-header .page-title {
	margin-bottom: 10px;
	padding-bottom: 10px;
	border-bottom: 1px dotted var(--sb-color-primary);
}

/* ---------- Entries ---------- */
.post-list .entry {
	margin-bottom: 10px;
	padding-top: 10px;
	border-top: 1px solid var(--sb-color-border);
}

.post-list .entry:last-of-type {
	padding-bottom: 10px;
	border-bottom: 1px solid var(--sb-color-border);
}

.entry-header {
	display: flex;
	gap: 15px;
	align-items: flex-start;
	margin-bottom: 10px;
}

.entry-header__text {
	min-width: 0;
}

.entry-avatar img {
	display: block;
}

.entry-title {
	margin-bottom: 6px;
	color: var(--sb-color-title);
	font-size: var(--sb-h4);
	overflow-wrap: anywhere;
}

.entry-title a {
	color: var(--sb-color-accent);
}

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

.entry--single .entry-title {
	color: var(--sb-color-accent);
}

.entry--page .entry-header {
	display: block;
}

.entry--page .entry-title {
	margin-top: 0;
	margin-bottom: 20px;
	font-size: var(--sb-h2);
	text-align: center;
}

.entry-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0 10px;
	margin-bottom: 10px;
	color: var(--sb-color-muted);
}

.entry-meta__item {
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

.entry-meta .icon {
	flex-shrink: 0;
	color: var(--sb-color-muted);
}

.entry-summary::after {
	display: block;
	clear: both;
	content: "";
}

.entry-summary,
.entry-summary p,
.entry-content,
.entry-content p,
.entry-content li {
	font-size: var(--sb-content-font-size);
}

.entry-thumbnail {
	float: right;
	margin: 0 0 10px 15px;
}

.entry-thumbnail img {
	display: block;
	width: 120px;
	height: 120px;
	object-fit: cover;
}

@media (min-width: 768px) {
	.entry-thumbnail img {
		width: 180px;
		height: 180px;
	}
}

.entry-featured-image {
	width: 100%;
	max-width: 400px;
	margin: 10px 0 15px;
	padding: 5px;
	border: 1px solid var(--sb-color-border);
	border-radius: var(--sb-radius);
	box-shadow: 4px 4px 15px 0 #8d8d8c;
}

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

.entry-content,
.entry-summary,
.comment-content,
.page-title {
	overflow-wrap: anywhere;
}

.entry-content > *:last-child {
	margin-bottom: 0;
}

.entry-footer {
	margin-top: 10px;
	color: var(--sb-color-muted);
}

.page-links {
	margin-top: 10px;
}

.sticky.entry {
	padding-left: 10px;
	padding-bottom: 10px;
	border: 2px dashed #f00 !important;
	background: #00f6ff1a;
}

/* WordPress core alignment classes. */
.alignleft {
	float: left;
	margin: 0 15px 10px 0;
}

.alignright {
	float: right;
	margin: 0 0 10px 15px;
}

.aligncenter {
	display: block;
	margin-inline: auto;
}

.wp-caption {
	max-width: 100%;
}

.wp-caption-text,
figcaption {
	color: var(--sb-color-muted);
	text-align: center;
}

/* ---------- Pagination ---------- */
.pagination {
	margin: 20px 0;
}

.nav-links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 5px;
}

.page-numbers {
	padding: 4px 9px;
	border: 1px solid var(--sb-color-accent);
	border-radius: 15px;
	background-color: #fff;
	color: var(--sb-color-accent);
	transition: 0.4s;
}

.page-numbers.current,
a.page-numbers:hover {
	background-color: var(--sb-color-accent);
	color: #fff;
}

.page-numbers.dots {
	border-color: transparent;
}

.post-navigation {
	margin: 20px 0;
}

.post-navigation .nav-links {
	justify-content: space-between;
}

.post-navigation .nav-label {
	display: block;
	color: var(--sb-color-muted);
}

/* ---------- Widgets ---------- */
.widget {
	margin-bottom: 20px;
	overflow-wrap: anywhere;
}

.widget-title {
	margin-bottom: 10px;
	padding: 6px 10px;
	border-bottom: 2px solid var(--sb-color-widget-title);
	color: var(--sb-color-widget-title);
	font-size: 16px;
	text-align: center;
	text-transform: uppercase;
}

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

.widget ul li {
	padding-bottom: 10px;
}

.widget ul li::before {
	padding-right: 6px;
	color: var(--sb-color-primary);
	content: "\203A";
}

.widget ul ul {
	margin-top: 10px;
	padding-left: 15px;
}

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

/* ---------- Search form ---------- */
.search-form {
	display: flex;
}

.search-form__field {
	flex: 1;
	min-width: 0;
	padding: 10px;
	border-right: 0;
	border-radius: var(--sb-radius) 0 0 var(--sb-radius);
}

.search-form__submit {
	display: inline-flex;
	align-items: center;
	padding: 8px 14px;
	border-radius: 0 var(--sb-radius) var(--sb-radius) 0;
}

.search-form__submit .icon {
	width: 18px;
	height: 18px;
}

/* ---------- Comments ---------- */
.comments-area {
	padding-top: 20px;
}

/* Same look as the previous count banner. */
.comments-title {
	margin-bottom: 1rem;
	padding: 0.75rem 1.25rem;
	border: 1px solid #ffeeba;
	border-radius: 0.25rem;
	background-color: #fff3cd;
	color: #856404;
	font-size: var(--sb-h4);
}

.comment-list,
.comment-list .children {
	margin: 0;
	padding: 0;
	list-style: none;
}

.comment-list li.comment,
.comment-list li.pingback,
.comment-list li.trackback {
	margin-bottom: 10px;
	padding: 10px;
	border: 1px solid var(--sb-color-border);
}

.comment-list li:last-child {
	margin-bottom: 0;
}

.comment-list .children {
	margin-top: 10px;
	margin-left: 8px;
}

@media (max-width: 479px) {
	.comment-list li.comment,
	.comment-list li.pingback,
	.comment-list li.trackback {
		padding: 8px;
	}
}

@media (min-width: 480px) {
	.comment-list .children {
		margin-left: 20px;
	}
}

@media (min-width: 580px) {
	.comment-list .children {
		margin-left: 25px;
	}
}

@media (min-width: 768px) {
	.comment-list .children {
		margin-left: 30px;
	}
}

@media (min-width: 992px) {
	.comment-list .children {
		margin-left: 40px;
	}
}

@media (min-width: 1200px) {
	.comment-list .children {
		margin-left: 65px;
	}
}

.comment-author {
	display: flex;
	gap: 10px;
	align-items: center;
	font-size: 18px;
}

.comment-author .says {
	display: none;
}

.comment-metadata {
	margin-bottom: 6px;
}

.comment-metadata a {
	color: var(--sb-color-muted);
}

.comment-content p {
	font-size: var(--sb-font-size);
}

.reply {
	padding-right: 2px;
	text-align: right;
}

.comment-respond {
	margin-top: 20px;
}

.comment-reply-title {
	font-size: 20px;
}

.comment-form label {
	display: block;
	width: 100%;
}

.comment-form-cookies-consent label {
	display: inline;
	width: auto;
}

.comment-form textarea {
	height: 150px;
	padding: 2px 10px;
}

.comment-form .form-submit {
	margin-top: 10px;
	margin-bottom: 0;
}

/* ---------- Footer ---------- */
.site-footer {
	padding: 10px 10px 0;
	border-top: 1px solid var(--sb-color-border);
	background-color: #fff;
}

.footer-navigation {
	text-align: center;
}

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

.footer-navigation li {
	position: relative;
	display: inline-block;
	padding: 0 20px;
}

.footer-navigation li:first-child {
	padding-left: 0;
}

.footer-navigation li:last-child {
	padding-right: 0;
}

.footer-navigation li::after {
	position: absolute;
	right: 0;
	width: 1px;
	height: 26px;
	background-color: var(--sb-color-border);
	content: "";
}

.footer-navigation li:last-child::after {
	display: none;
}

.footer-navigation a {
	color: #2a2a2a;
	font-size: 11px;
	letter-spacing: 1px;
	line-height: 26px;
	text-transform: uppercase;
}

.site-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 5px 20px;
	padding-block: 10px;
}

.site-footer__bottom p {
	margin: 0;
	line-height: 18px;
}
