/*
Theme Name: Nobu
Description: A professional, secure, and optimized foundation theme.
Author: Duda
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nobu
*/

/*--------------------------------------------------------------
# Normalize & Variables
--------------------------------------------------------------*/
:root {
	--nobu-color-primary: #4338ca;
	--nobu-color-primary-hover: #3730a3;
	--nobu-color-text-main: #0f172a;
	--nobu-color-text-muted: #64748b;
	--nobu-color-bg-main: #ffffff;
	--nobu-color-bg-alt: #f8fafc;
	--nobu-color-bg-beige: #F9F6F1;
	--nobu-color-border: #e2e8f0;
	--nobu-font-main: "Hedvig Letters Serif", serif;
	--nobu-container-width: 1320px;
}

@media (min-width: 1400px) {
	.container, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl {
		max-width: var(--nobu-container-width);
	}
}

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

html {
	font-family: var(--nobu-font-main);
	line-height: 1.6;
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	color: var(--nobu-color-text-main);
	background-color: var(--nobu-color-bg-main);
	font-family: var(--nobu-font-main);
	font-size: 16px;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/*--------------------------------------------------------------
# Typography
--------------------------------------------------------------*/
h1, h2, h3, h4, h5, h6 {
	clear: both;
	margin: 0 0 1rem;
	font-weight: 700;
	color: var(--nobu-color-text-main);
	line-height: 1.2;
	letter-spacing: -0.02em;
}

p {
	margin: 0 0 1.5rem;
	color: var(--nobu-color-text-muted);
}

a {
	color: var(--nobu-color-primary);
	text-decoration: none;
	transition: color 0.2s ease;
}

a:hover, a:focus {
	color: var(--nobu-color-primary-hover);
}

/*--------------------------------------------------------------
# Lucide Icons
--------------------------------------------------------------*/
[data-lucide],
.lucide {
	width: 1.25em;
	height: 1.25em;
	stroke-width: 1.5;
	vertical-align: middle;
}

/*--------------------------------------------------------------
# Header & Navigation
--------------------------------------------------------------*/
.site-header {
	background-color: var(--nobu-color-bg-main);
	border-bottom: 1px solid var(--nobu-color-border);
	z-index: 1000;
}

.main-navigation .nav-link {
	color: #444;
	font-weight: 500;
	font-size: 15px;
	padding: 0.5rem 1rem !important;
	transition: color 0.2s ease;
}

.main-navigation .nav-link:hover {
	color: #000;
}

.dropdown-menu {
	border: 1px solid #eee;
	box-shadow: 0 4px 12px rgba(0,0,0,0.08);
	border-radius: 8px;
}

.dropdown-item:hover {
	background-color: #f8f9fa;
	color: var(--nobu-color-primary);
}

.dropdown-toggle::after {
	display: none !important;
}

.site-branding .custom-logo-link img {
	max-height: 50px;
	width: auto;
}

.site-branding .site-title {
	margin: 0;
	font-size: 24px;
	font-weight: 800;
	letter-spacing: -0.5px;
}

.site-branding .site-title a {
	color: var(--nobu-color-text-main);
}

/* Header Buttons */
.btn-dark {
	background-color: #1a1a1a;
	border-color: #1a1a1a;
	color: #fff !important;
	font-size: 14px;
	letter-spacing: 0.2px;
	border-radius: 4px;
	padding: 8px 24px;
	font-weight: 600;
}

.btn-dark:hover {
	background-color: #000 !important;
	color: #fff !important;
}

.btn-search,
.navbar-toggler {
	background-color: var(--nobu-color-bg-beige);
	border: none;
	border-radius: 4px;
	color: #1a1a1a;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.2s ease;
	width: 42px;
	height: 42px;
	padding: 0;
	line-height: 1;
	font-size: 16px;
}

.btn-search:hover {
	background-color: #e0e0e0 !important;
	color: #000;
}

.navbar-toggler:focus {
	box-shadow: none;
}

/* Mobile Header Overrides */
@media (max-width: 991.98px) {
	.navbar-toggler {
		background-color: transparent !important;
		width: auto;
		height: auto;
		padding: 0;
	}
	
	.navbar-toggler:hover {
		background-color: transparent !important;
		color: var(--nobu-color-primary) !important;
	}
}

/*--------------------------------------------------------------
# Single Article Page
--------------------------------------------------------------*/
.single-article-hero {
	background-color: var(--nobu-color-bg-beige);
}

.breadcrumb-item, 
.breadcrumb-item a {
	font-size: 13px;
	color: #999;
	text-decoration: none;
}

.breadcrumb-item.active {
	color: #666;
}

.reviewer-meta {
	border-color: #f0f0f0 !important;
}

.x-small {
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.reviewer-avatar-wrapper {
	position: relative;
	display: inline-block;
}

.reviewer-avatar-wrapper .badge-icon {
	position: absolute;
	bottom: -2px;
	right: -2px;
	background: #4338ca;
	color: #fff;
	border-radius: 50%;
	width: 18px;
	height: 18px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 2px solid #fff;
	font-size: 10px;
}

.reviewer-avatar-wrapper.small .badge-icon {
	width: 14px;
	height: 14px;
	font-size: 8px;
}

/* Captions & Typography */
figcaption, 
.wp-element-caption {
	font-size: 13px;
	font-style: italic;
	color: #64748b;
	padding-top: 10px;
	border-top: 1px solid rgba(0,0,0,0.05);
	margin-top: 10px;
}

.article-rich-content blockquote {
	border-left: 3px solid #1a1a1a;
	padding: 10px 0 10px 30px;
	margin: 40px 0;
	font-style: italic;
	font-size: 20px;
	color: #1a1a1a;
	line-height: 1.5;
}

.article-rich-content h2 + p {
	font-weight: 500;
	color: #1e293b;
}

/* Timeline history dots */
.timeline-item .dot-line .dot {
	width: 8px;
	height: 8px;
	background: #fff;
	border: 2px solid #cbd5e1;
	border-radius: 50%;
}

.timeline-item:first-child .dot-line .dot {
	background: #4338ca;
	border-color: #4338ca;
}

/* Sidebar & TOC */
.sidebar-block {
	border: 1px solid rgba(0,0,0,0.03);
}

.letter-spacing-1 {
	letter-spacing: 0.1em;
}

.toc-navigation a {
	display: block;
	padding: 8px 0;
	color: #666;
	font-size: 14px;
	border-bottom: 1px solid rgba(0,0,0,0.05);
	transition: all 0.2s ease;
}

.toc-navigation a:hover,
.toc-navigation a.active {
	color: var(--nobu-color-primary);
	padding-left: 5px;
}

.hover-primary:hover {
	color: var(--nobu-color-primary) !important;
}

/* Content Typography */
.article-rich-content {
	font-size: 18px;
	line-height: 1.7;
	color: #334155;
}

.article-rich-content h2 {
	font-size: 32px;
	margin: 40px 0 20px;
}

.article-rich-content p {
	margin-bottom: 1.8rem;
}

/* FAQ Accordion Customization */
.article-faq .accordion-button:not(.collapsed) {
	color: var(--nobu-color-primary);
	box-shadow: none;
}

.article-faq .accordion-button:focus {
	box-shadow: none;
}

/* Timeline History */
.timeline-item {
	position: relative;
	padding-bottom: 10px;
}

.dot-line {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.dot-line .dot {
	width: 10px;
	height: 10px;
	background: #ddd;
	border-radius: 50%;
	display: block;
}

/* Helpful Reading section spacing */
.related-reading {
	margin-top: 80px;
}

@media (max-width: 991.98px) {
	.single-article-hero h1 {
		font-size: 32px;
	}
	
	.article-rich-content {
		font-size: 16px;
	}
}

.site {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

.site-main {
	flex: 1;
	width: 100%;
	max-width: var(--nobu-container-width);
	margin: 0 auto;
	padding: 0;
}

/*--------------------------------------------------------------
# Archive & Articles Page
--------------------------------------------------------------*/
.archive-hero {
	background-color: var(--nobu-color-bg-beige);
	padding: 80px 0;
}

.archive-hero .archive-label {
	font-size: 14px;
	color: #666;
	margin-bottom: 20px;
	display: block;
}

.archive-hero h1 {
	font-size: 42px;
	line-height: 1.1;
	max-width: 600px;
}

.load-more-btn {
	background-color: #3b5998;
	border-color: #3b5998;
	color: #fff;
	transition: opacity 0.2s ease;
}

.load-more-btn:hover {
	background-color: #2d4373;
	border-color: #2d4373;
	color: #fff;
	opacity: 0.9;
}

.load-more-btn.loading {
	opacity: 0.7;
	cursor: not-allowed;
}

/* Sidebar Filters */
.filter-sidebar {
	background: var(--nobu-color-bg-beige);
	padding: 25px;
	border-radius: 8px;
}

.filter-sidebar h3 {
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: #999;
	margin-bottom: 20px;
}

.filter-group {
	margin-bottom: 20px;
}

.filter-group-title {
	font-weight: 600;
	font-size: 16px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 10px 0;
	cursor: pointer;
	border-bottom: 1px solid rgba(0,0,0,0.05);
}

.filter-list {
	list-style: none;
	padding: 10px 0 0 0;
	margin: 0;
}

.filter-list li {
	margin-bottom: 8px;
}

.filter-list a {
	color: #666;
	font-size: 14px;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.filter-list a:hover {
	color: var(--nobu-color-primary);
}

.filter-list a .dot {
	width: 14px;
	height: 14px;
	border: 1px solid #ddd;
	border-radius: 50%;
	display: inline-block;
}

.filter-list li.active a .dot,
.filter-list a:hover .dot {
	background-color: var(--nobu-color-primary);
	border-color: var(--nobu-color-primary);
}

.lucide-sm {
	width: 14px;
	height: 14px;
	stroke-width: 2;
}

/* Article Cards */
.article-card {
	margin-bottom: 40px;
	transition: transform 0.2s ease;
}

.article-card:hover {
	transform: translateY(-5px);
}

.article-card .post-thumbnail {
	background-color: #eee;
	aspect-ratio: 4/3;
	border-radius: 4px;
	overflow: hidden;
	margin-bottom: 15px;
}

.article-card .post-thumbnail img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.article-card .card-meta {
	font-size: 12px;
	color: #999;
	margin-bottom: 10px;
}

.article-card .card-meta span {
	margin-right: 10px;
}

.article-card h2 {
	font-size: 18px;
	line-height: 1.4;
	margin-bottom: 0;
}

.article-card h2 a {
	color: #1a1a1a;
}

.article-card h2 a:hover {
	color: var(--nobu-color-primary);
}

@media (max-width: 767.98px) {
	.archive-hero {
		padding: 40px 0;
	}
	.archive-hero h1 {
		font-size: 32px;
	}
}

/*--------------------------------------------------------------
# Before Footer CTA
--------------------------------------------------------------*/
.before-footer-cta {
	background-color: var(--nobu-color-bg-beige);
	text-align: center;
}

.before-footer-cta .cta-title {
	font-size: 36px;
	font-weight: 700;
	color: #1a1a1a;
}

.before-footer-cta .cta-text {
	font-size: 16px;
	color: #444;
	max-width: 650px;
	margin-left: auto;
	margin-right: auto;
	line-height: 1.6;
}

@media (min-width: 992px) {
	.py-lg-6 {
		padding-top: 100px !important;
		padding-bottom: 100px !important;
	}
	.before-footer-cta .cta-title {
		font-size: 48px;
	}
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
.site-footer {
	background-color: #eef2f5; /* Light blueish grey background from design */
	border-top: 1px solid rgba(0,0,0,0.05);
	color: #1a1a1a;
}

.site-footer .widget-title {
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	font-weight: 700;
	margin-bottom: 20px;
	color: #1a1a1a;
	border-bottom: 2px solid #1a1a1a;
	display: inline-block;
	padding-bottom: 2px;
}

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

.site-footer .widget ul li {
	margin-bottom: 10px;
}

.site-footer .widget ul li a {
	color: #444;
	font-size: 14px;
	transition: color 0.2s ease;
}

.site-footer .widget ul li a:hover {
	color: var(--nobu-color-primary);
}

.footer-divider {
	border-color: rgba(0,0,0,0.1);
	opacity: 1;
}

.footer-socials a {
	color: #1a1a1a;
	font-size: 18px;
	transition: transform 0.2s ease, color 0.2s ease;
}

.footer-socials a:hover {
	color: var(--nobu-color-primary);
	transform: translateY(-2px);
}

.footer-socials svg {
	width: 20px;
	height: 20px;
	stroke-width: 1.5;
}

/* Newsletter Form */
.newsletter-form .form-control {
	border: 1px solid #ddd;
	padding: 12px 15px;
	background: #fff;
}

.newsletter-form .btn-dark {
	background-color: #1a1a1a;
	text-transform: none;
	padding: 12px 30px;
}

.x-small {
	font-size: 12px;
}

@media (max-width: 991.98px) {
	.footer-navigation .widget {
		margin-bottom: 30px;
	}
	
	.site-footer .widget-title {
		width: 100%;
		display: flex;
		justify-content: space-between;
		align-items: center;
		cursor: pointer;
		margin-bottom: 0;
		padding: 15px 0;
	}
	
	.site-footer .widget ul {
		display: none; /* For mobile accordion */
		padding: 10px 0 20px;
	}
}


/*--------------------------------------------------------------
# Forms & General Components
--------------------------------------------------------------*/
button,
input[type="button"],
input[type="reset"],
input[type="submit"],
.button {
	background-color: var(--nobu-color-primary);
	color: #fff;
	border: none;
	border-radius: 6px;
	padding: 8px 16px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 0.2s ease, transform 0.1s ease;
	display: inline-block;
}

button:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover,
.button:hover {
	background-color: var(--nobu-color-primary-hover);
	color: #fff;
}

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: var(--nobu-color-text-main);
	border: 1px solid var(--nobu-color-border);
	border-radius: 6px;
	padding: 8px 12px;
	background: var(--nobu-color-bg-main);
	width: 100%;
	max-width: 100%;
	font-family: inherit;
	font-size: 15px;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
textarea:focus {
	border-color: var(--nobu-color-primary);
	outline: none;
	box-shadow: 0 0 0 3px rgba(67, 56, 202, 0.1);
}

/* Screen Reader Text */
.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;
}
