/* ==========================================================================
   Newageanaesthesia - base theme styles
   Kept intentionally minimal so Elementor controls the design.
   ========================================================================== */

/* Reset and base */
*,
*::before,
*::after { box-sizing: border-box; }

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

body {
	margin: 0;
	font-size: 16px;
	line-height: 1.6;
	color: #333;
	background: #fff;
	-webkit-font-smoothing: antialiased;
}

img, video, svg { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4, h5, h6 { margin: 0 0 .5em; line-height: 1.25; }
p { margin: 0 0 1em; }

/* Accessibility */
.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,
.skip-link:focus {
	background: #fff; clip: auto !important; clip-path: none; color: #000;
	display: block; height: auto; left: 8px; top: 8px; padding: 12px 20px;
	width: auto; z-index: 100000;
}

/* Layout helpers */
.site-container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 40px 20px; }
.site-main { display: block; }
.fullwidth-page, .page-content { width: 100%; }

/* Default header (not shown when an Elementor header exists) */
.site-header { background: #fff; border-bottom: 1px solid #eee; }
.site-header__inner {
	max-width: 1140px; margin: 0 auto; padding: 14px 20px;
	display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.site-title { font-size: 1.4rem; font-weight: 700; }
.site-navigation .menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 24px; }
.site-navigation .menu a { display: block; padding: 6px 0; }
.menu-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.menu-toggle__bar { display: block; width: 24px; height: 2px; background: #333; margin: 5px 0; }

/* Default footer */
.site-footer { background: #111; color: #ddd; }
.site-footer__inner { max-width: 1140px; margin: 0 auto; padding: 30px 20px; text-align: center; }
.footer-navigation .menu { list-style: none; margin: 0 0 12px; padding: 0; display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }
.site-info { margin: 0; font-size: .9rem; }

/* Blog grid */
.posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.post-card { border: 1px solid #eee; border-radius: 8px; overflow: hidden; background: #fff; }
.post-card__thumb img { display: block; width: 100%; }
.post-card__body { padding: 20px; }
.post-card__title { font-size: 1.2rem; }
.entry-meta { font-size: .85rem; color: #777; margin-bottom: 10px; }
.read-more { font-weight: 600; }

/* Single entry */
.single-entry { max-width: 800px; margin: 0 auto; }
.entry-thumbnail { margin: 20px 0; }

/* Pagination */
.pagination { margin-top: 40px; }
.pagination .nav-links { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.pagination .page-numbers { padding: 8px 14px; border: 1px solid #ddd; border-radius: 4px; }
.pagination .page-numbers.current { background: #111; color: #fff; border-color: #111; }

/* Search form */
.search-form { display: flex; gap: 8px; max-width: 480px; }
.search-field { flex: 1; padding: 10px 12px; border: 1px solid #ccc; border-radius: 4px; }
.search-submit { padding: 10px 18px; border: 0; border-radius: 4px; background: #111; color: #fff; cursor: pointer; }

/* Comments */
.comments-area { margin-top: 50px; }
.comment-list { list-style: none; padding: 0; }
.comment-list .children { list-style: none; padding-left: 24px; }
.comment-body { padding: 16px 0; border-bottom: 1px solid #eee; }

/* WordPress core alignment classes */
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { display: block; margin: 0 auto 1em; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: .85rem; color: #777; }

/* Elementor compatibility: avoid theme spacing leaking into Elementor pages */
.elementor-page .site-main { padding: 0; }
.elementor-page .page-content { margin: 0; }

/* Responsive */
@media (max-width: 1024px) {
	.posts-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
	.posts-grid { grid-template-columns: 1fr; }
	.menu-toggle { display: block; }
	.site-navigation { display: none; width: 100%; order: 3; }
	.site-navigation.is-open { display: block; }
	.site-navigation .menu { flex-direction: column; gap: 0; }
	.site-header__inner { flex-wrap: wrap; }
}

.pwmn-menu-desktop .sub-menu a:hover {
    border-radius: 20px;
    background-color: #fff;
    color: var( --e-global-color-accent );
}

