/* =========================================================
   Header
   ========================================================= */
.agh-header {
	background: var(--agh-teal);
	color: var(--agh-text-on-teal);
	position: sticky;
	top: 0;
	z-index: 999;
	box-shadow: 0 2px 16px rgba(0, 0, 0, .08);
}

.agh-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding-block: 16px;
}

.agh-header__brand {
	flex-shrink: 0;
}

.agh-header__logo {
	display: inline-flex;
	align-items: center;
	justify-content: flex-start;
	font-size: 22px;
	font-weight: 700;
	color: var(--agh-text-on-teal);
}

.agh-header__logo-img {
	max-height: 38px;
	width: auto;
}

.agh-header__nav {
	display: flex;
	align-items: center;
	gap: 16px;
}

/* Hamburger toggle - mobile only by default */
.agh-menu-toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 38px;
	height: 38px;
	background: transparent;
	border: 1px solid rgba(255, 255, 255, .5);
	border-radius: 8px;
	cursor: pointer;
	order: 2;
}

.agh-menu-toggle__bar {
	display: block;
	width: 18px;
	height: 2px;
	background: var(--agh-text-on-teal);
	margin-inline: auto;
	transition: transform .2s ease, opacity .2s ease;
}

.agh-menu-toggle[aria-expanded="true"] .agh-menu-toggle__bar:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}
.agh-menu-toggle[aria-expanded="true"] .agh-menu-toggle__bar:nth-child(2) {
	opacity: 0;
}
.agh-menu-toggle[aria-expanded="true"] .agh-menu-toggle__bar:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

.agh-nav {
	display: flex;
	align-items: center;
	gap: 24px;
}

.agh-nav__list {
	display: flex;
	align-items: center;
	gap: 24px;
	flex-wrap: wrap;
}

.agh-nav__list a {
	font-weight: 600;
	font-size: 15px;
	color: var(--agh-text-on-teal);
	padding-block: 6px;
	opacity: .9;
	transition: opacity .2s ease;
}

.agh-nav__list a:hover,
.agh-nav__list .current-menu-item > a {
	color: var(--agh-text-on-teal);
	opacity: 1;
	text-decoration: underline;
	text-underline-offset: 6px;
	text-decoration-thickness: 2px;
}

/* nested submenus */
.agh-nav__list li {
	position: relative;
}

.agh-nav__list .menu-item-has-children > a::after {
	content: '';
	display: inline-block;
	width: 6px;
	height: 6px;
	border-inline-end: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg);
	margin-inline-start: 6px;
	vertical-align: middle;
	transition: transform .2s ease;
}

.agh-nav__list .menu-item-has-children:hover > a::after,
.agh-nav__list li.is-open > a::after {
	transform: rotate(225deg);
}

.agh-nav__list .sub-menu {
	display: none;
}

@media (min-width: 881px) {
	.agh-nav__list .sub-menu {
		position: absolute;
		inset-inline-start: 0;
		top: 100%;
		min-width: 220px;
		background: var(--agh-teal-dark);
		border-radius: 8px;
		padding: 10px;
		box-shadow: 0 12px 28px rgba(0, 0, 0, .18);
		z-index: 10;
		flex-direction: column;
		gap: 4px;
	}

	.agh-nav__list li:hover > .sub-menu,
	.agh-nav__list li.is-open > .sub-menu,
	.agh-nav__list li:focus-within > .sub-menu {
		display: flex;
	}

	.agh-nav__list .sub-menu a {
		padding: 8px 10px;
		border-radius: 6px;
		display: block;
	}

	.agh-nav__list .sub-menu a:hover {
		background: rgba(255, 255, 255, .12);
		text-decoration: none;
	}
}

@media (max-width: 880px) {
	.agh-nav__list .sub-menu {
		position: static;
		padding-inline-start: 16px;
		margin-top: 10px;
		flex-direction: column;
		gap: 10px;
	}

	.agh-nav__list li.is-open > .sub-menu {
		display: flex;
	}
}

.agh-lang-switcher {
	display: flex;
	align-items: center;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .3px;
}

.agh-lang-switcher li {
	display: flex;
	align-items: center;
}

.agh-lang-switcher li:not(:last-child)::after {
	content: '';
	width: 1px;
	height: 12px;
	background: rgba(255, 255, 255, .4);
	margin-inline: 8px;
}

.agh-lang-switcher a {
	color: var(--agh-text-on-teal);
	opacity: .6;
	transition: opacity .2s ease;
}

.agh-lang-switcher a:hover {
	opacity: 1;
}

.agh-lang-switcher .is-current a {
	opacity: 1;
}

@media (max-width: 880px) {
	.agh-menu-toggle {
		display: flex;
		position: relative;
		z-index: 2; /* keep the toggle/X above the drawer so it stays clickable */
	}

	.agh-header__logo-img {
		max-height: 28px; /* smaller logo on mobile */
	}

	.agh-header__nav {
		flex-grow: 1;
		justify-content: flex-end;
	}

	.agh-nav {
		position: fixed;
		inset-inline-end: 0;
		top: 0;
		height: 100vh;
		height: 100dvh;
		width: min(320px, 84vw);
		background: var(--agh-teal-dark);
		flex-direction: column;
		align-items: flex-start;
		justify-content: flex-start;
		padding: 84px 24px 28px;
		gap: 4px;
		transform: translateX(100%);
		transition: transform .25s ease;
		overflow-y: auto;
		z-index: 1;
		box-shadow: -8px 0 30px rgba(0, 0, 0, .25);
	}

	html[dir="rtl"] .agh-nav {
		transform: translateX(-100%);
		box-shadow: 8px 0 30px rgba(0, 0, 0, .25);
	}

	/* Open state — listed after, and matched for RTL too, so it wins the
	   specificity battle against `html[dir="rtl"] .agh-nav`. */
	.agh-nav.is-open,
	html[dir="rtl"] .agh-nav.is-open {
		transform: translateX(0);
	}

	.agh-nav__list {
		flex-direction: column;
		align-items: stretch;
		gap: 2px;
		width: 100%;
	}

	.agh-nav__list > li {
		width: 100%;
		border-bottom: 1px solid rgba(255, 255, 255, .08);
	}

	.agh-nav__list a {
		display: block;
		width: 100%;
		padding-block: 12px;
	}

	.agh-nav__cta {
		width: 100%;
		text-align: center;
		margin-top: 16px;
	}

	/* Dimmed backdrop behind the open drawer (lives inside the header's
	   stacking context so it sits above page content but below the drawer). */
	.agh-header.is-nav-open::before {
		content: '';
		position: fixed;
		inset: 0;
		background: rgba(0, 0, 0, .5);
		z-index: 0;
	}

	body.agh-nav-open {
		overflow: hidden;
	}
}

/* =========================================================
   Footer
   ========================================================= */
.agh-footer {
	background: var(--agh-teal);
	color: var(--agh-text-on-teal);
	margin-top: 64px;
}

.agh-footer__inner {
	display: grid;
	grid-template-columns: 1.2fr 1fr auto;
	gap: 40px;
	padding-block: 56px 40px;
}

.agh-footer__heading {
	font-size: 18px;
	margin-bottom: 18px;
	color: var(--agh-text-on-teal);
}

.agh-footer__contact-list {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.agh-footer__contact-list li {
	display: flex;
	align-items: center;
	gap: 12px;
	color: var(--agh-text-on-teal-muted);
	transition: color .2s ease;
}

.agh-footer__contact-list li:hover {
	color: var(--agh-text-on-teal);
}

.agh-footer__contact-list a {
	color: inherit;
	transition: color .2s ease;
}

.agh-footer__contact-list a:hover {
	color: var(--agh-text-on-teal);
}

/* Feather icon chip for footer contact rows */
.agh-footer__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .08);
	color: var(--agh-text-on-teal);
	transition: background-color .2s ease;
}

.agh-footer__contact-list li:hover .agh-footer__icon {
	background: rgba(255, 255, 255, .16);
}

.agh-footer__address {
	align-items: flex-start;
}

.agh-footer__nav-list,
.agh-footer__nav-list .sub-menu {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.agh-footer__nav-list .sub-menu {
	margin-top: 12px;
}

.agh-footer__nav-list a {
	display: inline-block;
	color: var(--agh-text-on-teal-muted);
	font-weight: 600;
	white-space: nowrap;
	transition: color .2s ease, transform .2s ease;
}

.agh-footer__nav-list a:hover {
	color: var(--agh-text-on-teal);
}

.agh-footer__brand {
	display: flex;
	align-items: flex-start;
	justify-content: flex-start;
}

.agh-footer__logo-img {
	max-height: 42px;
	width: auto;
}

.agh-footer__bottom {
	border-top: 1px solid rgba(255, 255, 255, .25);
}

.agh-footer__bottom-inner {
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	padding-block: 18px;
}

.agh-footer__copyright {
	margin: 0;
	font-size: 14px;
	color: var(--agh-text-on-teal-muted);
	text-align: center;
}

.agh-back-to-top {
	position: fixed;
	inset-inline-end: 24px;
	bottom: 24px;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	border: none;
	background: var(--agh-teal-dark);
	color: var(--agh-text-on-teal);
	cursor: pointer;
	display: none;
	align-items: center;
	justify-content: center;
	box-shadow: 0 6px 18px rgba(0, 0, 0, .22);
	z-index: 998;
	transition: background-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.agh-back-to-top:hover {
	background: var(--agh-text-on-teal);
	color: var(--agh-teal-dark);
	transform: translateY(-3px);
	box-shadow: 0 10px 24px rgba(0, 0, 0, .28);
}

.agh-back-to-top.is-visible {
	display: flex;
}

/* Inline Feather icons */
.agh-icon {
	display: inline-block;
	vertical-align: middle;
	flex-shrink: 0;
}

@media (max-width: 880px) {
	.agh-footer__inner {
		grid-template-columns: 1fr;
		gap: 32px;
	}

	.agh-footer__logo-img {
		max-height: 32px; /* smaller footer logo on mobile */
	}
}

/* =========================================================
   404
   ========================================================= */
.agh-error-page {
	max-width: 640px;
	margin: 100px auto;
	text-align: center;
	padding-inline: 24px;
}

.agh-error-page h1 {
	font-size: 84px;
	color: var(--agh-teal);
	margin-bottom: 0;
}

.agh-error-page p {
	color: var(--agh-text-muted);
	font-size: 18px;
	margin-bottom: 32px;
}

.agh-error-page .agh-btn {
	background: var(--agh-teal);
	color: #fff;
}

.agh-error-page .agh-btn:hover {
	background: var(--agh-teal-dark);
}

/* =========================================================
   Blog: cards, archive, single
   ========================================================= */
.agh-page-header {
	background: var(--agh-bg-alt);
	padding-block: 48px;
	margin-bottom: 48px;
	text-align: center;
}

.agh-page-header__title {
	font-size: 34px;
	margin-bottom: 8px;
}

.agh-page-header__desc {
	color: var(--agh-text-muted);
	max-width: 640px;
	margin-inline: auto;
}

.agh-blog-grid {
	display: grid;
	grid-template-columns: repeat(var(--agh-grid-cols, 3), 1fr);
	gap: 32px;
	padding-block: 0 64px;
}

/* When used as an Elementor widget, let the section control vertical spacing. */
.agh-blog-grid--widget {
	padding-block: 0;
}

@media (max-width: 980px) {
	.agh-blog-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 640px) {
	.agh-blog-grid {
		grid-template-columns: 1fr;
	}
}

.agh-card {
	border: 1px solid var(--agh-border);
	border-radius: var(--agh-radius);
	overflow: hidden;
	background: #fff;
	display: flex;
	flex-direction: column;
	transition: box-shadow .2s ease, transform .2s ease;
}

.agh-card:hover {
	box-shadow: 0 10px 30px rgba(0, 0, 0, .08);
	transform: translateY(-3px);
}

.agh-card__thumb {
	aspect-ratio: 3 / 2;
	overflow: hidden;
	background: var(--agh-bg-alt);
}

.agh-card__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.agh-card__body {
	padding: 20px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	flex-grow: 1;
}

.agh-card__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	font-size: 13px;
	color: var(--agh-text-muted);
}

.agh-card__title {
	font-size: 19px;
	margin: 0;
}

.agh-card__title a {
	color: var(--agh-text);
}

.agh-card__title a:hover {
	color: var(--agh-teal-dark);
}

.agh-card__excerpt {
	color: var(--agh-text-muted);
	font-size: 15px;
	margin: 0;
}

.agh-card__readmore {
	margin-top: auto;
	font-weight: 700;
	color: var(--agh-teal-dark);
}

.agh-pagination ul {
	display: flex;
	justify-content: center;
	gap: 8px;
	flex-wrap: wrap;
}

.agh-pagination a,
.agh-pagination span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 38px;
	height: 38px;
	padding-inline: 10px;
	border-radius: 8px;
	border: 1px solid var(--agh-border);
	font-weight: 600;
	font-size: 14px;
}

.agh-pagination .current {
	background: var(--agh-teal);
	color: #fff;
	border-color: var(--agh-teal);
}

.agh-single {
	max-width: 900px;
	margin-inline: auto;
	margin-block: 64px;
}

@media (max-width: 1366px) {
	.agh-single {
		margin-block: 32px;
	}
}

.agh-single__thumb {
	border-radius: var(--agh-radius);
	overflow: hidden;
	margin-bottom: 32px;
}

.agh-single__title {
	font-size: 36px;
	margin-bottom: 12px;
}

.agh-single__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	color: var(--agh-text-muted);
	font-size: 14px;
	margin-bottom: 32px;
}

.agh-single__content {
	font-size: 17px;
}

.agh-single__content > * + * {
	margin-top: 1.2em;
}

.agh-post-nav {
	display: flex;
	justify-content: space-between;
	gap: 24px;
	margin-top: 48px;
	padding-top: 32px;
	border-top: 1px solid var(--agh-border);
}

.agh-post-nav a {
	font-weight: 600;
	color: var(--agh-teal-dark);
}

.agh-page-content {
	padding-block: 48px;
}
