/* --------------------------------------------------
   CoreFlex Theme Styles
-------------------------------------------------- */

:root{
    --container-width:1200px;
    --primary-color:#1f2937;
    --secondary-color:#2563eb;
    --light-color:#f8f9fa;
    --text-color:#333;
}

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    font-family:Arial, Helvetica, sans-serif;
    color:var(--text-color);
    line-height:1.7;
    background:#fff;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

h1, h2, h3, h4, h5, h6 {
    overflow-wrap: break-word;
    word-wrap: break-word;
}

img{
    max-width:100%;
    height:auto;
}

.container{
    width:min(var(--container-width),90%);
    margin:auto;
}

a{
    color:inherit;
    text-decoration:none;
}

ul{
    list-style:none;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.screen-reader-text:focus {
	position: fixed;
	top: 10px;
	left: 10px;
	z-index: 999999;
	width: auto;
	height: auto;
	padding: 12px 16px;
	margin: 0;
	overflow: visible;
	clip: auto;
	white-space: normal;
	background: #fff;
	color: #000;
	font-weight: 700;
	text-decoration: none;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
	outline: 3px solid #2563eb;
	outline-offset: 3px;
}

.header-top-bar {
	background: #1f2937;
	color: #fff;
	font-size: 0.85rem;
	padding: 8px 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-top-bar-inner {
	display: flex;
	justify-content: flex-end;
	align-items: center;
}

.header-contact {
	display: flex;
	align-items: center;
	gap: 20px;
}

.header-contact-item {
	color: #fff;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.header-contact-item:hover {
	color: #60a5fa;
}

.header-image {
	width: 100%;
	overflow: hidden;
}

.header-image img {
	display: block;
	width: 100%;
	height: auto;
}

.full-width-layout .full-width-content-area {
	flex: 1 1 100%;
	max-width: 100%;
}

.site-header {
	border-bottom: 1px solid #ddd;
	background: #fff;
}

.site-header .container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 30px;
	padding: 20px 0;
}

.site-branding {
	display: flex;
	align-items: center;
	gap: 15px;
	min-width: 0;
}

.site-title-description {
	min-width: 0;
}

.custom-logo {
	max-width: 160px;
	height: auto;
}

.site-title {
	margin: 0;
	font-size: 1.5rem;
	font-weight: 700;
	overflow-wrap: break-word;
	word-wrap: break-word;
}

.site-title a {
	text-decoration: none;
}

.site-description {
	margin: 3px 0 0;
	font-size: 0.9rem;
	overflow-wrap: break-word;
	word-wrap: break-word;
}

.main-navigation {
	margin-left: auto;
}

.primary-menu {
	display: flex;
	align-items: center;
	gap: 25px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.primary-menu > li {
	position: relative;
}

.primary-menu a {
	display: block;
	padding: 8px 0;
	text-decoration: none;
	transition: color 0.15s ease;
}

.primary-menu a:hover,
.primary-menu a:focus {
	color: #2563eb;
}

/* Indicators for items with submenus on desktop */
.primary-menu li.menu-item-has-children > a,
.primary-menu li.page_item_has_children > a {
	display: inline-flex;
	align-items: center;
	gap: 5px;
}

.primary-menu li.menu-item-has-children > a::after,
.primary-menu li.page_item_has_children > a::after {
	content: "";
	display: inline-block;
	width: 5px;
	height: 5px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg);
	margin-top: -3px;
	transition: transform 0.2s ease;
}

.primary-menu li.menu-item-has-children:hover > a::after,
.primary-menu li.menu-item-has-children:focus-within > a::after,
.primary-menu li.menu-item-has-children.focus > a::after,
.primary-menu li.page_item_has_children:hover > a::after,
.primary-menu li.page_item_has_children:focus-within > a::after,
.primary-menu li.page_item_has_children.focus > a::after {
	transform: rotate(-135deg);
	margin-top: 3px;
}

/* Submenu dropdown styles */
.primary-menu .sub-menu,
.primary-menu .children {
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 99999;
	min-width: 220px;
	margin: 0;
	padding: 8px 0;
	list-style: none;
	background: #ffffff;
	border: 1px solid #e5e7eb;
	border-radius: 6px;
	box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transform: translateY(8px);
	transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.primary-menu li.menu-item-has-children:hover > .sub-menu,
.primary-menu li.menu-item-has-children:focus-within > .sub-menu,
.primary-menu li.menu-item-has-children.focus > .sub-menu,
.primary-menu li.page_item_has_children:hover > .children,
.primary-menu li.page_item_has_children:focus-within > .children,
.primary-menu li.page_item_has_children.focus > .children {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: translateY(0);
}

.primary-menu .sub-menu li,
.primary-menu .children li {
	position: relative;
	width: 100%;
	margin: 0;
	padding: 0;
}

.primary-menu .sub-menu a,
.primary-menu .children a {
	display: block;
	padding: 9px 18px;
	font-size: 0.95rem;
	font-weight: 400;
	color: #374151;
	white-space: normal;
	line-height: 1.4;
	transition: background 0.15s ease, color 0.15s ease;
}

.primary-menu .sub-menu a:hover,
.primary-menu .sub-menu a:focus,
.primary-menu .children a:hover,
.primary-menu .children a:focus {
	background: #f3f4f6;
	color: #2563eb;
}

/* Level 3+ nested dropdowns */
.primary-menu .sub-menu .sub-menu,
.primary-menu .children .children {
	top: 0;
	left: 100%;
	margin-left: 2px;
}

.primary-menu .sub-menu li.menu-item-has-children > a::after,
.primary-menu .children li.page_item_has_children > a::after {
	margin-left: auto;
	transform: rotate(-45deg);
}

/* Submenu toggle button is hidden on desktop */
.submenu-toggle {
	display: none;
}

.menu-toggle {
	display: none;
	border: 0;
	background: transparent;
	font-size: 1.5rem;
	cursor: pointer;
	padding: 8px;
}
.site-footer {
	margin-top: 60px;
	padding: 50px 0 25px;
	background: #1f2937;
	color: #fff;
}

.footer-widgets {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 40px;
	padding-bottom: 40px;
}

.footer-widget-area {
	min-width: 0;
}

.footer-widget-area a {
	color: inherit;
}

.footer-navigation {
	padding: 20px 0;
	border-top: 1px solid rgba(255, 255, 255, 0.15);
	border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-menu {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 25px;
	margin: 0;
	padding: 0;
}

.footer-menu a {
	color: #fff;
}

.footer-social {
	display: flex;
	justify-content: center;
	gap: 20px;
	padding: 25px 0;
}

.footer-social a {
	color: #fff;
}

.site-info {
	text-align: center;
	font-size: 0.9rem;
	opacity: 0.8;
}

.hero-section {
	padding: 90px 0;
	background: #f8f9fa;
}

.hero-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: center;
	gap: 50px;
}

.eyebrow {
	margin-bottom: 10px;
	font-size: 0.85rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
}

.hero-content h1 {
	margin-bottom: 20px;
	font-size: clamp(2.5rem, 5vw, 4.5rem);
	line-height: 1.1;
}

.hero-text {
	margin-bottom: 30px;
	max-width: 650px;
}

.hero-image img {
	display: block;
	width: 100%;
	border-radius: 8px;
}

.hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 15px;
}

.button {
	display: inline-block;
	padding: 12px 22px;
	border-radius: 4px;
	font-weight: 700;
	text-decoration: none;
}

.button-primary {
	background: #2563eb;
	color: #fff;
}

.button-secondary {
	border: 1px solid #2563eb;
	color: #2563eb;
}

.features-section,
.about-section,
.latest-posts-section {
	padding: 80px 0;
}

.section-header {
	max-width: 700px;
	margin: 0 auto 45px;
	text-align: center;
}

.section-header h2 {
	font-size: 2.2rem;
}

.features-grid,
.posts-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 30px;
}

.feature-card {
	padding: 30px;
	border: 1px solid #ddd;
	border-radius: 8px;
}

.feature-card h3 {
	margin-bottom: 10px;
}

.about-section {
	background: #f8f9fa;
}

.about-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 50px;
	align-items: center;
}

.cta-section {
	padding: 80px 0;
	text-align: center;
	background: #1f2937;
	color: #fff;
}

.cta-section h2 {
	margin-bottom: 15px;
}

.cta-section p {
	margin-bottom: 25px;
}


@media (max-width: 768px) {

	.site-header .container {
		flex-wrap: wrap;
	}

	.menu-toggle {
		display: flex;
		align-items: center;
		gap: 8px;
		margin-left: auto;
		background: transparent;
		border: 1px solid #d1d5db;
		border-radius: 6px;
		padding: 8px 14px;
		font-size: 1rem;
		font-weight: 600;
		color: #1f2937;
		cursor: pointer;
	}

	.main-navigation {
		display: none;
		width: 100%;
		margin-left: 0;
		margin-top: 15px;
	}

	.main-navigation.is-open {
		display: block;
	}

	.primary-menu {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		width: 100%;
		border-top: 1px solid #e5e7eb;
	}

	.primary-menu > li {
		width: 100%;
		border-bottom: 1px solid #e5e7eb;
	}

	.primary-menu li.menu-item-has-children,
	.primary-menu li.page_item_has_children {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		justify-content: space-between;
	}

	.primary-menu li.menu-item-has-children > a,
	.primary-menu li.page_item_has_children > a {
		flex: 1 1 auto;
		padding: 12px 0;
	}

	.primary-menu li.menu-item-has-children > a::after,
	.primary-menu li.page_item_has_children > a::after {
		display: none;
	}

	.primary-menu a {
		padding: 12px 0;
		width: 100%;
	}

	.submenu-toggle {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 44px;
		height: 44px;
		background: transparent;
		border: 0;
		border-radius: 4px;
		cursor: pointer;
		color: #4b5563;
		padding: 0;
		margin: 0;
	}

	.submenu-toggle:hover,
	.submenu-toggle:focus {
		background: #f3f4f6;
		color: #2563eb;
	}

	.submenu-icon {
		display: inline-block;
		transition: transform 0.2s ease;
		font-size: 0.85rem;
		line-height: 1;
	}

	.submenu-toggle[aria-expanded="true"] .submenu-icon {
		transform: rotate(180deg);
	}

	.primary-menu .sub-menu,
	.primary-menu .children {
		position: static;
		width: 100%;
		min-width: 0;
		opacity: 1;
		visibility: visible;
		pointer-events: auto;
		transform: none;
		box-shadow: none;
		border: 0;
		border-top: 1px solid #e5e7eb;
		background: #f9fafb;
		padding: 0 0 0 16px;
		margin: 0;
		display: none;
	}

	.primary-menu .sub-menu.is-open,
	.primary-menu .children.is-open {
		display: block;
	}

	.primary-menu .sub-menu li,
	.primary-menu .children li {
		border-bottom: 1px solid #f3f4f6;
		border-top: 0;
	}

	.primary-menu .sub-menu li:last-child,
	.primary-menu .children li:last-child {
		border-bottom: 0;
	}

	.primary-menu .sub-menu a,
	.primary-menu .children a {
		padding: 10px 0;
		font-size: 0.95rem;
	}

	.primary-menu .sub-menu .sub-menu,
	.primary-menu .children .children {
		padding-left: 16px;
		background: #f3f4f6;
	}


	.footer-widgets {
		grid-template-columns: 1fr;
		gap: 25px;
	}

	.footer-menu {
		flex-direction: column;
		align-items: center;
		gap: 12px;
	}

.hero-grid,
	.about-grid {
		grid-template-columns: 1fr;
	}

	.features-grid,
	.posts-grid {
		grid-template-columns: 1fr;
	}

	.hero-section,
	.features-section,
	.about-section,
	.latest-posts-section,
	.cta-section {
		padding: 60px 0;
	}

}
/* --------------------------------------------------
   WordPress Core Required Classes
-------------------------------------------------- */

.alignleft {
	float: left;
	margin: 0.5em 1.5em 1em 0;
}

.alignright {
	float: right;
	margin: 0.5em 0 1em 1.5em;
}

.aligncenter {
	display: block;
	margin-left: auto;
	margin-right: auto;
	clear: both;
}

.alignnone {
	margin: 0.5em 0 1em 0;
}

.alignwide {
	max-width: 100%;
	width: 100%;
}

.alignfull {
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
}

.wp-caption {
	max-width: 100%;
	margin-bottom: 1.5em;
	text-align: center;
}

.wp-caption img[class*="wp-image-"] {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

.wp-caption-text,
.gallery-caption,
.wp-block-image figcaption {
	padding: 0.5em 0;
	font-size: 0.85rem;
	color: #666;
	font-style: italic;
	text-align: center;
}

.sticky {
	position: relative;
}

.bypostauthor {
	display: block;
}

/* --------------------------------------------------
   Content & Sidebar Layout
-------------------------------------------------- */

.site-content-layout {
	display: flex;
	flex-wrap: wrap;
	gap: 40px;
	padding-top: 50px;
	padding-bottom: 50px;
}

.content-area {
	flex: 1 1 65%;
	min-width: 0;
}

.site-content-layout .sidebar {
	flex: 0 0 300px;
}

@media (max-width: 900px) {
	.site-content-layout {
		flex-direction: column;
	}
	.site-content-layout .sidebar {
		flex: 1 1 100%;
		width: 100%;
	}
}

/* Sidebar Widgets */
.sidebar .widget {
	margin-bottom: 35px;
	padding: 25px;
	background: #fdfdfd;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
}

.sidebar .widget-title {
	margin-bottom: 15px;
	font-size: 1.2rem;
	font-weight: 700;
	padding-bottom: 8px;
	border-bottom: 2px solid #2563eb;
}

.sidebar .widget ul {
	list-style: disc;
	padding-left: 20px;
}

.sidebar .widget ul li {
	margin-bottom: 8px;
}

/* --------------------------------------------------
   Single Post & Page Styles
-------------------------------------------------- */

.single-post-entry,
.page-entry {
	margin-bottom: 50px;
}

.entry-header {
	margin-bottom: 25px;
}

.entry-title {
	font-size: 2.5rem;
	line-height: 1.2;
	margin-bottom: 15px;
	overflow-wrap: break-word;
	word-wrap: break-word;
}

.post-thumbnail {
	margin-bottom: 30px;
}

.post-thumbnail img {
	border-radius: 8px;
	width: 100%;
}

.entry-content {
	font-size: 1.05rem;
	line-height: 1.8;
	color: #2d3748;
	overflow-wrap: break-word;
	word-wrap: break-word;
}

.entry-content p,
.entry-content ul,
.entry-content ol,
.entry-content blockquote,
.entry-content table {
	margin-bottom: 1.5em;
}

.entry-content ul {
	list-style: disc;
	padding-left: 25px;
}

.entry-content ol {
	list-style: decimal;
	padding-left: 25px;
}

.entry-content blockquote {
	padding: 15px 25px;
	border-left: 4px solid #2563eb;
	background: #f8f9fa;
	font-style: italic;
}

.entry-footer {
	margin-top: 30px;
	padding-top: 20px;
	border-top: 1px solid #e5e7eb;
}

.entry-tags a {
	display: inline-block;
	padding: 4px 10px;
	margin: 2px 4px;
	background: #f1f5f9;
	border-radius: 4px;
	font-size: 0.85rem;
}

.page-links {
	clear: both;
	margin: 25px 0;
	font-weight: 700;
}

.page-links a,
.page-links > span {
	display: inline-block;
	padding: 6px 12px;
	margin: 0 4px;
	border: 1px solid #ddd;
	border-radius: 4px;
}

.page-links > .post-page-numbers.current {
	background: #2563eb;
	color: #fff;
	border-color: #2563eb;
}

/* Post Navigation */
.post-navigation {
	margin: 40px 0;
	padding: 20px 0;
	border-top: 1px solid #e5e7eb;
	border-bottom: 1px solid #e5e7eb;
}

.post-navigation .nav-links {
	display: flex;
	justify-content: space-between;
	gap: 20px;
	flex-wrap: wrap;
}

.nav-previous,
.nav-next {
	flex: 1 1 45%;
}

.nav-next {
	text-align: right;
}

.nav-subtitle {
	display: block;
	font-size: 0.8rem;
	text-transform: uppercase;
	color: #666;
}

.nav-title {
	font-weight: 700;
	color: #2563eb;
}

/* Comments Area */
.comments-area {
	margin-top: 50px;
	padding-top: 30px;
	border-top: 2px solid #e5e7eb;
}

.comments-title {
	margin-bottom: 25px;
	font-size: 1.5rem;
}

.comment-list {
	margin-bottom: 40px;
}

.comment-list .comment {
	margin-bottom: 25px;
	padding-bottom: 20px;
	border-bottom: 1px solid #f1f5f9;
}

.comment-body,
.comment-content {
	margin-bottom: 15px;
	overflow-wrap: break-word;
	word-wrap: break-word;
}

.comment-author {
	font-weight: 700;
	margin-bottom: 5px;
}

.comment-metadata {
	font-size: 0.85rem;
	color: #666;
	margin-bottom: 10px;
}

.comment-metadata a {
	color: inherit;
}

.comment-list .children {
	margin-left: 30px;
	padding-left: 15px;
	border-left: 2px solid #e5e7eb;
}

.comment-respond {
	margin-top: 40px;
}

.comment-reply-title {
	font-size: 1.4rem;
	margin-bottom: 20px;
}

.comment-form p {
	margin-bottom: 15px;
}

.comment-form label {
	display: block;
	font-weight: 600;
	margin-bottom: 5px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	padding: 10px 14px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-family: inherit;
	font-size: 1rem;
}

.comment-form input[type="submit"] {
	background: #2563eb;
	color: #fff;
	border: 0;
	padding: 12px 24px;
	border-radius: 4px;
	cursor: pointer;
	font-weight: 700;
}

/* Search Form */
.search-form {
	display: flex;
	gap: 8px;
	max-width: 450px;
	margin-top: 15px;
}

.search-form input[type="search"] {
	flex: 1;
	padding: 10px 14px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 1rem;
}

.search-submit {
	background: #2563eb;
	color: #fff;
	border: 0;
	padding: 10px 20px;
	border-radius: 4px;
	cursor: pointer;
	font-weight: 700;
}

.post-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	border: 1px solid #ddd;
	border-radius: 8px;
	overflow: hidden;
	background: #fff;
}

.post-card-image img {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
}

.post-card-content {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 25px;
}

.post-category {
	margin-bottom: 10px;
	font-size: 0.8rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.post-category a {
	color: #2563eb;
}

.post-card-title {
	margin-bottom: 12px;
	font-size: 1.4rem;
	line-height: 1.3;
	overflow-wrap: break-word;
	word-wrap: break-word;
}

.post-card-title a {
	color: inherit;
}

.post-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 15px;
	font-size: 0.85rem;
	color: #666;
}

.post-excerpt {
	margin-bottom: 20px;
}

.post-excerpt p {
	margin: 0;
}

.read-more {
	margin-top: auto;
	font-weight: 700;
	color: #2563eb;
}

.navigation.pagination {
	margin-top: 50px;
}

.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 8px;
}

.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	min-height: 42px;
	padding: 8px 12px;
	border: 1px solid #ddd;
	border-radius: 4px;
	text-decoration: none;
}

.pagination .page-numbers.current {
	background: #2563eb;
	border-color: #2563eb;
	color: #fff;
}

.pagination a.page-numbers:hover {
	background: #f1f5f9;
}

.pagination .dots {
	border: 0;
}

.woocommerce .site-main {
	padding-block: 60px;
}

.woocommerce ul.products {
	margin: 0;
	padding: 0;
}

.woocommerce div.product {
	max-width: 100%;
}

.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
	background: var(--coreflex-primary);
	color: #fff;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
	background: var(--coreflex-dark);
	color: #fff;
}