/*
Theme Name: MagOne WP
Theme URI: https://example.com/magone-wp
Author: MagOne WP
Description: A responsive newspaper / magazine WordPress theme, converted from the MagOne Blogger template. Includes home page post blocks (slider, sticky, complex, carousel, columns, lists), dark mode, mega-friendly dropdown menu, Customizer colors and widgets.
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: magone-wp
Tags: blog, news, magazine, two-columns, right-sidebar, left-sidebar, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, rtl-language-support, theme-options
*/

/* ==========================================================================
   1. Variables (colors can be changed in Appearance > Customize)
   ========================================================================== */
:root {
	--key: #ff3d00;
	--on-key: #ffffff;
	--text: #111111;
	--body-bg: #efefef;
	--content-bg: #efefef;
	--header-bg: #ffffff;
	--widget-bg: #ffffff;
	--menu-bg: #ffffff;
	--menu-color: #000000;
	--menu-sub-bg: #333333;
	--menu-sub-color: #cccccc;
	--font: "Hind Siliguri", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
	--wrap: 1100px;
	--side: 28%;
	--line: rgba(127, 127, 127, .25);
}
[data-mode="dark"] {
	--key: #f6aa63;
	--on-key: #000000;
	--text: #ffffff;
	--body-bg: #333333;
	--content-bg: #212121;
	--header-bg: #181818;
	--widget-bg: #181818;
	--menu-bg: #181818;
	--menu-color: #eeeeee;
	--menu-sub-bg: #333333;
	--menu-sub-color: #cccccc;
}

/* ==========================================================================
   2. Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	font: 15px/1.65 var(--font);
	color: var(--text);
	background: var(--body-bg);
	word-wrap: break-word;
}
img, video, iframe, embed, object { max-width: 100%; }
img { height: auto; vertical-align: middle; }
a { color: var(--key); text-decoration: none; transition: color .2s, background .2s, opacity .2s; }
a:hover { opacity: .8; }
h1, h2, h3, h4, h5, h6 { line-height: 1.3; margin: 0 0 .6em; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.4em; }
button { font: inherit; cursor: pointer; }
input, select, textarea {
	font: inherit;
	color: var(--text);
	background: transparent;
	border: 1px solid var(--line);
	padding: 9px 12px;
	max-width: 100%;
	border-radius: 2px;
}
[data-mode="dark"] input, [data-mode="dark"] select, [data-mode="dark"] textarea { background: #111; }
input:focus, textarea:focus, select:focus { outline: 2px solid var(--key); outline-offset: -1px; }
.clear::after, .clear { clear: both; }
.color { color: var(--key); }
.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; width: 1px; word-wrap: normal !important;
}
.screen-reader-text:focus {
	background: #fff; clip: auto !important; clip-path: none; color: #000; display: block; height: auto;
	left: 6px; padding: 12px 20px; top: 6px; width: auto; z-index: 100000;
}

/* ==========================================================================
   3. Layout
   ========================================================================== */
.wrapper {
	width: var(--wrap);
	max-width: 100%;
	margin: 0 auto;
	padding: 20px 20px 30px;
	background: var(--content-bg);
}
#inner-primary { display: flex; gap: 3%; align-items: flex-start; margin-top: 20px; }
#content { flex: 1 1 0; min-width: 0; }
#main-sidebar { flex: 0 0 var(--side); max-width: var(--side); min-width: 0; }
.sb-left #inner-primary { flex-direction: row-reverse; }
.sb-none #main-sidebar { display: none; }
#sidebar { padding-top: .1px; }
@media (min-width: 901px) {
	.sb-right #sidebar, .sb-left #sidebar { position: sticky; top: 70px; }
}
@media (max-width: 900px) {
	#inner-primary { display: block; }
	#main-sidebar { max-width: 100%; margin-top: 10px; }
}
@media (max-width: 600px) { .wrapper { padding: 10px 10px 20px; } }

/* ==========================================================================
   4. Header & menu
   ========================================================================== */
.top-page-wrapper { text-align: center; margin: 0 0 15px; overflow: hidden; }
.top-page-wrapper .widget { margin: 0; }
.header-bar { position: relative; z-index: 60; }
.sticky-header .header-bar { position: sticky; top: 0; }
.admin-bar.sticky-header .header-bar { top: 32px; }
@media (max-width: 782px) { .admin-bar.sticky-header .header-bar { top: 46px; } }
@media (max-width: 600px) { .admin-bar.sticky-header .header-bar { top: 0; } }

.header-section {
	display: flex; align-items: center; gap: 12px;
	min-height: 58px; padding: 6px 15px;
	background: var(--header-bg);
}
.blog-title { margin: 0; font-size: 28px; font-weight: 700; line-height: 1.1; flex: 1 1 auto; }
.blog-title a { color: var(--text); }
.blog-title img, .custom-logo { max-height: 46px; width: auto; display: block; }
.header-actions { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.header-button {
	display: inline-flex; align-items: center; height: 40px; padding: 0 10px;
	background: none; border: 0; color: var(--text); font-weight: 700; font-size: 13px; text-transform: uppercase;
}
.header-button .inner { display: inline-flex; align-items: center; gap: 6px; }
.header-button:hover { opacity: .75; }
.main-menu-toggle { display: none; }
.header-social-icons { display: flex; list-style: none; margin: 0 6px 0 0; padding: 0; }
.header-social-icons a { display: block; padding: 0 8px; line-height: 40px; color: var(--text); font-size: 15px; }
.header-social-icons a:hover { color: var(--key); opacity: 1; }
.mode-toggle { width: 40px; justify-content: center; font-size: 16px; }
[data-mode="dark"] .mode-toggle .fa-moon, [data-mode="light"] .mode-toggle .fa-sun { display: none; }
.search-overlay {
	position: absolute; left: 0; right: 0; top: 100%;
	padding: 14px 15px; background: var(--header-bg); border-top: 1px solid var(--key);
	box-shadow: 0 8px 18px rgba(0, 0, 0, .2);
}
.search-overlay[hidden] { display: none; }

.search-form { display: flex; max-width: 100%; }
.search-form .search-field { flex: 1; min-width: 0; border-right: 0; }
.search-form .search-submit { background: var(--key); color: var(--on-key); border: 0; padding: 0 16px; }

.main-menu { background: var(--menu-bg); border-top: 1px solid var(--key); }
.main-menu ul { list-style: none; margin: 0; padding: 0; }
.main-menu ul.menu { display: flex; flex-wrap: wrap; }
.main-menu li { position: relative; }
.main-menu ul.menu > li > a {
	display: block; padding: 0 16px; line-height: 46px;
	color: var(--menu-color); font-weight: 700; font-size: 14px; text-transform: uppercase;
}
.main-menu ul.menu > li:hover > a, .main-menu ul.menu > li:focus-within > a { opacity: 1; background: rgba(127, 127, 127, .12); }
.main-menu ul.menu > li.current-menu-item > a,
.main-menu ul.menu > li.current-menu-ancestor > a,
.main-menu ul.menu > li.current_page_item > a,
.main-menu ul.menu > li.current-menu-parent > a { background: var(--key); color: var(--on-key); }
.main-menu .sub-menu, .main-menu .children {
	position: absolute; left: 0; top: 100%; z-index: 70; min-width: 210px;
	background: var(--menu-sub-bg); border-top: 2px solid var(--key);
	opacity: 0; visibility: hidden; transform: translateY(6px); transition: all .2s;
}
.main-menu li:hover > .sub-menu, .main-menu li:focus-within > .sub-menu,
.main-menu li:hover > .children, .main-menu li:focus-within > .children { opacity: 1; visibility: visible; transform: none; }
.main-menu .sub-menu a, .main-menu .children a {
	display: block; padding: 10px 16px; color: var(--menu-sub-color); font-size: 13px; border-left: 2px solid transparent;
}
.main-menu .sub-menu li:hover > a, .main-menu .children li:hover > a { color: #fff; border-left-color: var(--key); opacity: 1; background: rgba(255, 255, 255, .06); }
.main-menu .sub-menu .sub-menu, .main-menu .children .children { left: 100%; top: 0; }
.main-menu ul.menu > li.menu-item-has-children > a::after,
.main-menu ul.menu > li.page_item_has_children > a::after {
	content: ""; display: inline-block; margin-left: 7px; vertical-align: middle;
	border: 4px solid transparent; border-top-color: currentColor; border-bottom: 0;
}
.sub-toggle { display: none; }

@media (max-width: 1009px) {
	.main-menu-toggle { display: inline-flex; }
	.header-section { gap: 6px; padding: 4px 8px; }
	.blog-title { font-size: 22px; }
	.header-social-icons, .search-label { display: none; }
	.main-menu { display: none; max-height: 75vh; overflow-y: auto; }
	.menu-open .main-menu { display: block; }
	.main-menu ul.menu { display: block; }
	.main-menu ul.menu > li > a { line-height: 44px; border-bottom: 1px solid var(--line); }
	.main-menu .sub-menu, .main-menu .children {
		position: static; display: none; opacity: 1; visibility: visible; transform: none; min-width: 0; border-top: 0; padding-left: 14px;
	}
	.main-menu li.sub-open > .sub-menu, .main-menu li.sub-open > .children { display: block; }
	.main-menu ul.menu > li > a::after { display: none; }
	.main-menu li { position: relative; }
	.sub-toggle {
		display: block; position: absolute; right: 0; top: 0; width: 46px; height: 44px;
		background: none; border: 0; color: var(--menu-color);
	}
	.main-menu .sub-menu .sub-toggle, .main-menu .children .sub-toggle { color: var(--menu-sub-color); height: 40px; }
}

/* ==========================================================================
   5. Widgets (sidebar, footer)
   ========================================================================== */
.widget { margin: 0 0 24px; }
#sidebar .widget { background: var(--widget-bg); padding: 16px; }
#sidebar .widget ul { list-style: none; margin: 0; padding: 0; }
#sidebar .widget li { padding: 6px 0; border-bottom: 1px solid var(--line); }
#sidebar .widget li:last-child { border-bottom: 0; }
.widget a { color: var(--text); }
.widget a:hover { color: var(--key); opacity: 1; }
.widget-title { margin: 0 0 14px; font-size: 18px; font-weight: 700; text-transform: uppercase; line-height: 1.2; }
#sidebar .widget-title { padding-bottom: 8px; border-bottom: 2px solid var(--key); }
#sidebar .widget-title span { border-bottom: 2px solid var(--key); display: inline-block; margin-bottom: -10px; padding-bottom: 8px; }
.tagcloud a { display: inline-block; margin: 0 4px 6px 0; padding: 3px 10px; border: 1px solid var(--line); font-size: 13px !important; }
.tagcloud a:hover { background: var(--key); color: var(--on-key); border-color: var(--key); }
.widget select { width: 100%; }

.magone-tabs .tab-links { display: flex; list-style: none; margin: 0 0 12px; padding: 0; border-bottom: 2px solid var(--key); }
.magone-tabs .tab-links li { padding: 0; border: 0; flex: 1; }
.magone-tabs .tab-links a { display: block; padding: 8px 6px; text-align: center; font-weight: 700; font-size: 13px; text-transform: uppercase; }
.magone-tabs .tab-links a.active { background: var(--key); color: var(--on-key); }
.magone-tabs .tab-panel { display: none; }
.magone-tabs .tab-panel.active { display: block; }
.recent-comments li { display: flex; gap: 10px; }
.recent-comments .rc-avatar img { border-radius: 50%; display: block; }
.recent-comments .rc-text { min-width: 0; font-size: 13px; }
.recent-comments .rc-text p { margin: 2px 0 0; opacity: .75; }

.newsletter-desc { font-size: 13px; opacity: .8; }
.newsletter-form { display: flex; flex-direction: column; gap: 8px; }
.newsletter-submit { background: var(--key); color: var(--on-key); border: 0; padding: 10px 14px; font-weight: 700; text-transform: uppercase; }

/* ==========================================================================
   6. Post blocks (slider, sticky, complex, carousel ...)
   ========================================================================== */
.feed.widget { margin: 0 0 30px; background: none; padding: 0; }
.feed-widget-header { border-bottom: 2px solid var(--key); margin: 0 0 15px; line-height: 1; }
.feed-widget-header .widget-title { margin: 0; font-size: 20px; display: flex; align-items: center; justify-content: space-between; }
.feed-widget-header .widget-title > span, .feed-widget-header .widget-title > a > span { display: inline-block; }
.feed-widget-header .widget-title span {
	background: var(--key); color: var(--on-key); padding: 8px 14px; border: 0; margin: 0;
}
.feed-widget-header .widget-title a { color: var(--on-key); }
.feed-widget-header .widget-title a:hover { opacity: .85; }
#sidebar .feed-widget-header .widget-title { font-size: 16px; }
#sidebar .feed.widget .widget-title { padding-bottom: 0; border: 0; }
#sidebar .feed-widget-header .widget-title span { border: 0; margin: 0; padding: 8px 14px; }
.latest-header { margin-top: 5px; }
.carousel-nav { display: inline-flex; gap: 4px; margin-left: auto; }
.carousel-nav button { width: 30px; height: 30px; border: 1px solid var(--line); background: var(--widget-bg); color: var(--text); }
.carousel-nav button:hover { background: var(--key); color: var(--on-key); border-color: var(--key); }
.feed-widget-header { display: flex; align-items: flex-end; justify-content: space-between; }

.item { position: relative; background: var(--widget-bg); overflow: hidden; }
.item .thumbnail { display: block; position: relative; overflow: hidden; background: #000; aspect-ratio: 16 / 10; }
.item .thumbnail img {
	display: block; width: 100%; height: 100%; object-fit: cover;
	transition: transform .5s, opacity .3s;
}
.item:hover .thumbnail img { transform: scale(1.07); opacity: .85; }
.thumb-ph { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, var(--key), #444); }
.item-content { padding: 12px 14px 14px; }
.item-title { margin: 6px 0 4px; font-size: 17px; line-height: 1.35; font-weight: 700; }
.item-title a { color: var(--text); }
.item-title a:hover { color: var(--key); opacity: 1; }
.item-labels { display: block; }
.item-labels a.label {
	display: inline-block; background: var(--key); color: var(--on-key);
	font-size: 11px; font-weight: 700; line-height: 1; text-transform: uppercase; padding: 4px 8px; margin: 0 4px 2px 0;
}
.item-meta { display: flex; flex-wrap: wrap; gap: 2px 12px; font-size: 12px; opacity: .75; margin-top: 4px; }
.item-meta i { margin-right: 4px; }
.item-snippet { margin: 8px 0 0; font-size: 14px; opacity: .85; }

/* overlay items (text on image) */
.item.overlay { aspect-ratio: var(--ar, 16 / 9); background: #000; }
.item.overlay .thumbnail { position: absolute; inset: 0; aspect-ratio: auto; }
.item.overlay .item-content {
	position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
	padding: 60px 16px 14px; background: linear-gradient(transparent, rgba(0, 0, 0, .88));
	pointer-events: none;
}
.item.overlay .item-content a { pointer-events: auto; }
.item.overlay .item-title a, .item.overlay .item-meta, .item.overlay .item-snippet { color: #fff; }
.item.overlay .item-title a:hover { color: #fff; opacity: .85; }
.item.overlay .item-title { font-size: 18px; }

/* One / Two / Three */
.feed.one .widget-content { display: grid; gap: 20px; }
.feed.one .item-title { font-size: 22px; }
.feed.two .widget-content { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.feed.three .widget-content { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feed.three .item-title { font-size: 15px; }

/* Blogging + List (thumb at left) */
.feed.blogging .widget-content, .feed.list .widget-content { display: grid; gap: 14px; }
.feed.blogging .item { display: flex; gap: 16px; padding: 12px; }
.feed.blogging .thumbnail { flex: 0 0 36%; max-width: 280px; aspect-ratio: 4 / 3; align-self: flex-start; }
.feed.blogging .item-content { padding: 0; flex: 1; min-width: 0; }
.feed.blogging .item-title { margin-top: 0; }
.feed.list .widget-content { gap: 0; }
.feed.list .item { display: flex; gap: 12px; padding: 9px 0; background: none; border-bottom: 1px solid var(--line); }
.feed.list .item:last-child { border-bottom: 0; }
.feed.list .thumbnail { flex: 0 0 80px; width: 80px; aspect-ratio: 1 / 1; }
.feed.list .item-content { padding: 0; flex: 1; min-width: 0; }
.feed.list .item-title { font-size: 14px; margin: 0 0 3px; }
.feed.list .item-meta { margin: 0; }
.feed.list .item-labels { display: none; }

/* Sticky: 1 big + 4 small */
.feed.sticky .widget-content { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.feed.sticky .item { --ar: 4 / 3; }
.feed.sticky .item-0 { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; --ar: auto; }
.feed.sticky .item-0 .item-title { font-size: 22px; }
.feed.sticky .item:not(.item-0) .item-title { font-size: 13px; }
.feed.sticky .item:not(.item-0) .item-meta, .feed.sticky .item:not(.item-0) .item-labels { display: none; }
.feed.sticky .item:not(.item-0) .item-content { padding: 30px 10px 10px; }

/* Complex: 1 big + cards */
.feed.complex .widget-content { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.feed.complex .item-0 { grid-column: 1 / -1; --ar: 16 / 7; }
.feed.complex .item-0 .item-title { font-size: 26px; }
.feed.complex .item:not(.item-0) .item-title { font-size: 15px; }

/* Left / Right: 1 big + list */
.feed.left .widget-content, .feed.right .widget-content { display: grid; grid-template-columns: 1.15fr 1fr; gap: 14px; align-items: start; }
.feed.left .item-0, .feed.right .item-0 { --ar: 4 / 3.4; grid-row: span 2; }
.feed.left .item-0 { grid-column: 1; }
.feed.right .widget-content { grid-template-columns: 1fr 1.15fr; }
.feed.right .item-0 { grid-column: 2; }
.feed.left .item:not(.item-0), .feed.right .item:not(.item-0) { display: flex; gap: 12px; padding: 10px; }
.feed.left .item:not(.item-0) .thumbnail, .feed.right .item:not(.item-0) .thumbnail { flex: 0 0 38%; aspect-ratio: 1 / 1; }
.feed.left .item:not(.item-0) .item-content, .feed.right .item:not(.item-0) .item-content { padding: 0; min-width: 0; }
.feed.left .item:not(.item-0) .item-title, .feed.right .item:not(.item-0) .item-title { font-size: 14px; margin-top: 0; }

/* Carousel */
.feed.carousel .widget-content {
	display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
}
.feed.carousel .widget-content::-webkit-scrollbar { display: none; }
.feed.carousel .item { flex: 0 0 calc((100% - 24px) / 3); scroll-snap-align: start; --ar: 4 / 3.3; }
.feed.carousel .item-title { font-size: 15px; }

/* Slider */
.feed.slider .widget-content { position: relative; }
.feed.slider .item { display: none; --ar: 16 / 7.2; }
.feed.slider .item.active, .feed.slider:not(.js-slider) .item:first-child { display: block; animation: mgFade .6s; }
@keyframes mgFade { from { opacity: .3; } to { opacity: 1; } }
.feed.slider .item-title { font-size: 28px; line-height: 1.25; }
.feed.slider .item-content { padding: 80px 24px 34px; }
.slider-arrow {
	position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
	width: 40px; height: 54px; border: 0; background: rgba(0, 0, 0, .45); color: #fff; font-size: 18px;
}
.slider-arrow:hover { background: var(--key); color: var(--on-key); }
.slider-arrow.prev { left: 0; }
.slider-arrow.next { right: 0; }
.slider-dots { position: absolute; z-index: 5; left: 0; right: 0; bottom: 10px; text-align: center; line-height: 1; }
.slider-dot { width: 9px; height: 9px; margin: 0 4px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .55); }
.slider-dot.active { background: var(--key); }

@media (max-width: 767px) {
	.feed.three .widget-content { grid-template-columns: repeat(2, 1fr); }
	.feed.complex .widget-content { grid-template-columns: repeat(2, 1fr); }
	.feed.complex .item-0 { --ar: 16 / 9; }
	.feed.sticky .widget-content { grid-template-columns: repeat(2, 1fr); }
	.feed.sticky .item-0 { grid-column: 1 / -1; grid-row: auto; aspect-ratio: 16 / 9; }
	.feed.left .widget-content, .feed.right .widget-content { grid-template-columns: 1fr; }
	.feed.left .item-0, .feed.right .item-0 { grid-column: 1; grid-row: auto; --ar: 16 / 10; }
	.feed.carousel .item { flex-basis: calc((100% - 12px) / 2); }
	.feed.slider .item { --ar: 16 / 10; }
	.feed.slider .item-title { font-size: 19px; }
	.feed.slider .item-content { padding: 50px 14px 28px; }
	.feed.blogging .thumbnail { flex-basis: 34%; }
}
@media (max-width: 480px) {
	.feed.two .widget-content, .feed.three .widget-content, .feed.complex .widget-content { grid-template-columns: 1fr; }
	.feed.carousel .item { flex-basis: 78%; }
	.feed.blogging .item-snippet { display: none; }
}

/* ==========================================================================
   7. Single post & page
   ========================================================================== */
.post { background: var(--widget-bg); padding: 22px 26px 26px; margin-bottom: 24px; }
.post-header { margin-bottom: 16px; }
.post-breadcrumb { font-size: 12px; text-transform: uppercase; margin-bottom: 8px; opacity: .85; }
.post-breadcrumb a { color: var(--text); }
.post-breadcrumb a:hover { color: var(--key); opacity: 1; }
.post-breadcrumb .sep { margin: 0 6px; opacity: .5; }
.post-title { font-size: clamp(26px, 4vw, 38px); font-weight: 700; margin: 0 0 12px; }
.post-meta-wrapper { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 13px; opacity: .85; }
.post-meta, .post-meta a { color: var(--text); }
.post-meta i { margin-right: 5px; color: var(--key); }
.post-featured-image { margin: 0 -26px 18px; }
.post-featured-image img { width: 100%; display: block; }
.post-featured-image figcaption { padding: 6px 26px 0; font-size: 12px; opacity: .7; }
.post-body { font-size: 17px; line-height: 1.8; }
.post-body-inner { overflow-wrap: break-word; }
.post-body-inner a { text-decoration: underline; text-underline-offset: 2px; }
.post-body-inner h2 { font-size: 28px; margin-top: 1.4em; }
.post-body-inner h3 { font-size: 23px; margin-top: 1.3em; }
.post-body-inner h4 { font-size: 19px; }
.post-body-inner blockquote {
	margin: 1.4em 0; padding: 10px 22px; border-left: 4px solid var(--key); background: rgba(127, 127, 127, .1); font-style: italic;
}
.post-body-inner pre { background: #111; color: #eee; padding: 14px; overflow: auto; font-size: 14px; line-height: 1.5; }
.post-body-inner code { background: rgba(127, 127, 127, .18); padding: 1px 5px; font-size: .9em; }
.post-body-inner pre code { background: none; padding: 0; }
.post-body-inner table { width: 100%; border-collapse: collapse; margin: 1em 0; display: block; overflow-x: auto; }
.post-body-inner th, .post-body-inner td { border: 1px solid var(--line); padding: 8px 12px; }
.post-body-inner img { height: auto; }
.post-body-inner figure { margin: 1em 0; }
.alignleft { float: left; margin: 4px 20px 10px 0; }
.alignright { float: right; margin: 4px 0 10px 20px; }
.aligncenter { display: block; margin: 0 auto 1em; }
.alignwide, .alignfull { max-width: 100%; }
.wp-caption { max-width: 100%; }
.wp-caption-text, figcaption { font-size: 13px; opacity: .75; text-align: center; margin-top: 4px; }
.gallery { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.gallery-item { margin: 0; }
.sticky .post-title::before { content: "\f08d"; font-family: "Font Awesome 6 Free"; font-weight: 900; margin-right: 8px; color: var(--key); font-size: .7em; }
.post-pagination { margin: 1.2em 0; }
.post-pagination > span, .post-pagination a { display: inline-block; padding: 3px 10px; margin-right: 4px; border: 1px solid var(--line); }

.post-footer { margin-top: 24px; }
.post-section { margin: 0 0 20px; }
.post-section-title { font-size: 14px; text-transform: uppercase; margin: 0 0 10px; }
.post-section-title i { color: var(--key); margin-right: 5px; }
.post-label { display: inline-block; margin: 0 6px 6px 0; }
.post-label .label-name { display: inline-block; background: var(--key); color: var(--on-key); padding: 4px 11px; font-size: 13px; }
.post-label.tag .label-name { background: rgba(127, 127, 127, .2); color: var(--text); }
.post-label:hover { opacity: .8; }
.post-share-buttons ul { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.post-share-buttons a, .post-share-buttons button {
	display: flex; align-items: center; justify-content: center; width: 40px; height: 40px;
	border: 0; color: #fff; font-size: 16px; background: #555;
}
.post-share-buttons a:hover, .post-share-buttons button:hover { opacity: .8; color: #fff; }
.share-facebook { background: #1877f2 !important; }
.share-x { background: #000 !important; }
.share-whatsapp { background: #25d366 !important; }
.share-telegram { background: #229ed9 !important; }
.share-linkedin { background: #0a66c2 !important; }
.share-email { background: #777 !important; }
.share-copy { background: var(--key) !important; color: var(--on-key) !important; }
.author-profile { display: flex; gap: 14px; align-items: flex-start; }
.author-profile-avatar { border-radius: 50%; flex: none; }
.author-profile-description p { margin: 4px 0 0; font-size: 14px; opacity: .85; }
.post-navigation .nav-links { display: flex; gap: 12px; margin-bottom: 22px; }
.post-navigation .nav-previous, .post-navigation .nav-next { flex: 1; border: 1px solid var(--line); }
.post-navigation .nav-next { text-align: right; }
.post-navigation a { display: block; padding: 12px 14px; color: var(--text); }
.post-navigation a:hover { background: rgba(127, 127, 127, .1); opacity: 1; }
.post-navigation .nav-sub { display: block; font-size: 12px; text-transform: uppercase; color: var(--key); }
.post-navigation .nav-title { display: block; font-weight: 700; line-height: 1.3; }
.post-footer .feed.widget { margin-bottom: 0; }
.after-post-content { margin-top: 20px; }
@media (max-width: 600px) {
	.post { padding: 16px 14px 18px; }
	.post-featured-image { margin: 0 -14px 14px; }
	.post-featured-image figcaption { padding: 6px 14px 0; }
	.post-body { font-size: 16px; }
	.post-navigation .nav-links { flex-direction: column; }
}

/* Archives, search, 404 */
.archive-header { background: var(--widget-bg); padding: 18px 22px; margin-bottom: 20px; border-left: 4px solid var(--key); }
.archive-title { margin: 0; font-size: 24px; }
.archive-title span { color: var(--key); }
.archive-description { margin-top: 6px; opacity: .8; font-size: 14px; }
.archive-header .search-form { margin-top: 12px; }
.error-404, .no-results { background: var(--widget-bg); padding: 30px; margin-bottom: 24px; text-align: center; }
.error-code { font-size: 90px; line-height: 1; color: var(--key); margin: 0 0 10px; }
.error-404 .search-form, .no-results .search-form { max-width: 420px; margin: 16px auto 0; }

/* Pagination */
.pagination { margin: 26px 0; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.pagination .page-numbers {
	min-width: 38px; height: 38px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center;
	background: var(--widget-bg); color: var(--text);
}
.pagination .page-numbers.current, .pagination a.page-numbers:hover { background: var(--key); color: var(--on-key); opacity: 1; }

/* ==========================================================================
   8. Comments
   ========================================================================== */
.comments-area { background: var(--widget-bg); padding: 22px 26px; margin-bottom: 24px; }
.comments-title, .comment-reply-title { font-size: 20px; text-transform: uppercase; margin: 0 0 16px; border-bottom: 2px solid var(--key); padding-bottom: 8px; }
.comment-list, .comment-list .children { list-style: none; margin: 0; padding: 0; }
.comment-list .children { margin-left: 28px; }
.comment-body { padding: 14px 0; border-bottom: 1px solid var(--line); position: relative; }
.comment-author { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.comment-author .avatar { border-radius: 50%; }
.comment-author .says { display: none; }
.comment-metadata { font-size: 12px; opacity: .7; margin: 2px 0 8px 58px; }
.comment-metadata a { color: var(--text); }
.comment-content { margin-left: 58px; }
.reply { margin-left: 58px; font-size: 13px; font-weight: 700; text-transform: uppercase; }
.comment-form label { display: block; font-size: 13px; margin-bottom: 4px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea { width: 100%; }
.comment-form .form-submit input[type="submit"] {
	background: var(--key); color: var(--on-key); border: 0; padding: 11px 24px; font-weight: 700; text-transform: uppercase; cursor: pointer;
}
.comment-form-cookies-consent { display: flex; gap: 8px; align-items: center; }
.comment-form-cookies-consent label { margin: 0; }
.bypostauthor > .comment-body .comment-author .fn::after { content: "Author"; margin-left: 8px; background: var(--key); color: var(--on-key); font-size: 10px; padding: 2px 6px; text-transform: uppercase; }
@media (max-width: 600px) {
	.comments-area { padding: 16px 14px; }
	.comment-list .children { margin-left: 12px; }
}

/* ==========================================================================
   9. Footer
   ========================================================================== */
#footer { margin-top: 20px; }
.footer-inner { display: flex; gap: 4%; flex-wrap: wrap; padding: 26px; background: var(--widget-bg); }
.footer-col { flex: 1 1 220px; min-width: 0; }
.footer-site-name { font-size: 24px; font-weight: 700; color: var(--text); }
.footer-copyright { font-size: 13px; opacity: .75; margin-top: 10px; }
.footer-col .widget { margin-bottom: 16px; }
.footer-col .widget-title { font-size: 15px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
#footer-menu { display: flex; flex-wrap: wrap; }
#footer-menu li { width: 50%; padding: 4px 0; }
#footer-menu a { color: var(--text); }
#footer-menu a:hover { color: var(--key); opacity: 1; }
.footer-social-icons { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px !important; }
.footer-social-icons a {
	display: flex; align-items: center; justify-content: center; width: 36px; height: 36px;
	border: 1px solid var(--line); color: var(--text);
}
.footer-social-icons a:hover { background: var(--key); border-color: var(--key); color: var(--on-key); opacity: 1; }
.scroll-up {
	position: fixed; right: 18px; bottom: 18px; z-index: 90;
	width: 42px; height: 42px; display: flex; align-items: center; justify-content: center;
	background: var(--key); color: var(--on-key); font-size: 18px; box-shadow: 0 2px 10px rgba(0, 0, 0, .3);
	opacity: 0; visibility: hidden; transition: all .3s;
}
.scroll-up.show { opacity: 1; visibility: visible; }
.scroll-up:hover { color: var(--on-key); }
.copy-toast {
	position: fixed; left: 50%; bottom: 30px; transform: translateX(-50%); z-index: 9999;
	background: #000; color: #fff; padding: 8px 16px; font-size: 13px; border-radius: 3px;
}

@media print {
	.header-bar, #main-sidebar, #footer, .scroll-up, .post-share-buttons, .comments-area { display: none !important; }
	.wrapper { width: 100%; }
}
