/*
Theme Name:   EthiopiaList Child
Theme URI:    https://ethiopialist.com/
Description:  Lightweight GeneratePress child theme for EthiopiaList.com: directory layout, GeoDirectory card styling, flag-inspired accents. No external fonts or scripts.
Author:       EthiopiaList
Template:     generatepress
Version:      1.0.0
Requires at least: 6.3
Requires PHP: 7.4
License:      GPL-2.0-or-later
Text Domain:  ethiopialist-child
*/

/* =========================================================================
   1. Tokens
   ====================================================================== */
:root {
	--el-green: #0b6e3b;
	--el-green-700: #08572e;
	--el-green-50: #e9f4ee;
	--el-yellow: #f4b400;
	--el-yellow-50: #fff7dc;
	--el-red: #c0272d;
	--el-red-50: #fdecec;
	--el-ink: #17202a;
	--el-ink-2: #3d4752;
	--el-muted: #5f6b76;
	--el-line: #e3e7ea;
	--el-bg: #f5f6f4;
	--el-surface: #ffffff;
	--el-radius: 12px;
	--el-radius-sm: 8px;
	--el-shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .08);
	--el-shadow-lg: 0 10px 24px -8px rgba(16, 24, 40, .18);
	--el-font: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Ethiopic", "Nyala", Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
	--el-max: 1200px;

	/* GeneratePress global colours */
	--contrast: var(--el-ink);
	--contrast-2: var(--el-muted);
	--contrast-3: #b9c0c7;
	--base: #eceff1;
	--base-2: var(--el-bg);
	--base-3: #ffffff;
	--accent: var(--el-green);
}

/* =========================================================================
   2. Base typography
   ====================================================================== */
html { -webkit-text-size-adjust: 100%; }
body,
button,
input,
select,
textarea,
.bsui {
	font-family: var(--el-font);
}
body {
	background: var(--el-bg);
	color: var(--el-ink);
	font-size: 17px;
	line-height: 1.65;
	text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, h5, h6,
.bsui h1, .bsui h2, .bsui h3, .bsui h4, .bsui h5, .bsui h6 {
	font-family: var(--el-font);
	color: var(--el-ink);
	font-weight: 700;
	letter-spacing: -0.01em;
	line-height: 1.2;
}
h1, .entry-title { font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.5rem); }
h2 { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 1.85rem); margin-bottom: .6em; }
h3 { font-size: clamp(1.15rem, 1rem + .6vw, 1.35rem); }
p { margin-bottom: 1.1em; }

a { color: var(--el-green); text-underline-offset: .15em; text-decoration-thickness: 1px; }
a:hover, a:focus { color: var(--el-green-700); }
:focus-visible { outline: 3px solid var(--el-yellow); outline-offset: 2px; border-radius: 4px; }

.screen-reader-text:focus { background: #fff; color: var(--el-ink); }

/* Buttons (WordPress, GeneratePress, our own) */
button,
input[type="submit"],
input[type="button"],
a.button,
.wp-block-button__link,
a.wp-block-button__link:not(.has-background),
.el-btn {
	display: inline-block;
	background: var(--el-green);
	color: #fff;
	border: 0;
	border-radius: 999px;
	padding: .7em 1.35em;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	transition: background-color .15s ease, transform .15s ease;
}
button:hover, button:focus,
input[type="submit"]:hover, input[type="submit"]:focus,
a.button:hover, a.button:focus,
a.wp-block-button__link:not(.has-background):hover,
a.wp-block-button__link:not(.has-background):focus,
.el-btn:hover, .el-btn:focus {
	background: var(--el-green-700);
	color: #fff;
}
.el-btn--yellow,
.wp-block-button.is-style-el-yellow .wp-block-button__link { background: var(--el-yellow); color: var(--el-ink) !important; }
.el-btn--yellow:hover, .el-btn--yellow:focus { background: #e0a500; color: var(--el-ink); }
.el-btn--ghost,
.wp-block-button.is-style-outline .wp-block-button__link {
	background: transparent;
	color: var(--el-green) !important;
	box-shadow: inset 0 0 0 2px var(--el-green);
}
.el-btn--ghost:hover, .el-btn--ghost:focus,
.wp-block-button.is-style-outline .wp-block-button__link:hover { background: var(--el-green-50); color: var(--el-green-700) !important; }

/* Forms */
input[type="text"], input[type="email"], input[type="url"], input[type="password"],
input[type="search"], input[type="tel"], input[type="number"], textarea, select {
	background: #fff;
	border: 1px solid #cfd6dc;
	border-radius: var(--el-radius-sm);
	color: var(--el-ink);
	padding: .65em .9em;
}
input:focus, textarea:focus, select:focus { border-color: var(--el-green); }

/* =========================================================================
   3. Layout shell
   ====================================================================== */
.grid-container { max-width: var(--el-max); }
.site.grid-container { max-width: var(--el-max); }
.one-container .site-content { padding: 24px 18px; }
.one-container .container { background: transparent; }
.one-container .inside-article,
.one-container.archive .site-main > .page-header,
.one-container .comments-area {
	background: var(--el-surface);
	border: 1px solid var(--el-line);
	border-radius: var(--el-radius);
	padding: 22px 18px;
}
.one-container .site-main { margin: 0; }
.site-content .content-area { width: 100%; }
.no-sidebar .entry-content > :where(p, ul, ol, h2, h3, h4, blockquote, figure:not(.alignwide):not(.alignfull)) {
	max-width: 760px;
}
.ethlist-gd .entry-content > *,
.ethlist-front .entry-content > * { max-width: none; }

/* Articles: readable measure, centred */
.ethlist-article .inside-article { max-width: 860px; margin: 0 auto; }
.ethlist-article .entry-content > * { margin-left: auto; margin-right: auto; }
.entry-meta { color: var(--el-muted); font-size: .9rem; }
.post-image img, .featured-image img, .entry-content img { border-radius: var(--el-radius-sm); }

/* =========================================================================
   4. Header + nav
   ====================================================================== */
.site-header {
	background: #fff;
	border-bottom: 1px solid var(--el-line);
	position: relative;
	z-index: 50;
}
.inside-header { padding: 12px 18px; }
.main-title { font-size: 1.5rem; font-weight: 800; line-height: 1; letter-spacing: -0.02em; }
.main-title a {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	color: var(--el-ink) !important;
	text-decoration: none;
}
.main-title a::before {
	content: "";
	width: 30px;
	height: 30px;
	flex: 0 0 30px;
	background: url("assets/mark.svg") center / contain no-repeat;
}
.site-description { display: none; }

.main-navigation, .main-navigation ul ul { background: transparent; }
.main-navigation .main-nav ul li a {
	color: var(--el-ink-2);
	font-weight: 600;
	font-size: .98rem;
	padding-left: 14px;
	padding-right: 14px;
}
.main-navigation .main-nav ul li:not([class*="current-menu-"]):hover > a,
.main-navigation .main-nav ul li:not([class*="current-menu-"]):focus > a { color: var(--el-green); }
.main-navigation .main-nav ul li[class*="current-menu-"] > a {
	color: var(--el-green);
	box-shadow: inset 0 -3px 0 var(--el-yellow);
}
.main-navigation ul ul {
	background: #fff;
	border: 1px solid var(--el-line);
	border-radius: var(--el-radius-sm);
	box-shadow: var(--el-shadow-lg);
}
/* "Add a Listing" menu button (menu item CSS class: el-nav-cta) */
.main-navigation .main-nav ul li.el-nav-cta > a {
	background: var(--el-green);
	color: #fff !important;
	border-radius: 999px;
	line-height: 2.5em;
	padding: 0 1.1em;
	margin: 0 0 0 8px;
	box-shadow: none !important;
}
.main-navigation .main-nav ul li.el-nav-cta > a:hover,
.main-navigation .main-nav ul li.el-nav-cta > a:focus { background: var(--el-green-700); }
@media (min-width: 769px) {
	.main-navigation .main-nav ul li.el-nav-cta { display: flex; align-items: center; }
}

/* Mobile menu */
.menu-toggle,
.mobile-menu-control-wrapper .menu-toggle,
.mobile-menu-control-wrapper .menu-toggle:hover,
.mobile-menu-control-wrapper .menu-toggle:focus {
	background: var(--el-green-50) !important;
	color: var(--el-green-700) !important;
	border-radius: 999px;
	padding: 0 16px;
	line-height: 42px;
}
@media (max-width: 768px) {
	.inside-header { padding: 10px 14px; }
	.main-title { font-size: 1.3rem; }
	.main-navigation.toggled .main-nav > ul,
	.has-inline-mobile-toggle #site-navigation.toggled { background: #fff !important; }
	.main-navigation.toggled .main-nav ul li a { line-height: 48px; border-top: 1px solid var(--el-line); }
	.main-navigation.toggled .main-nav ul li.el-nav-cta > a {
		margin: 10px 0 14px;
		text-align: center;
		line-height: 46px;
		border-top: 0;
	}
}

/* Flag stripe under the header */
.el-flag-stripe { display: flex; height: 4px; }
.el-flag-stripe span { flex: 1; }
.el-flag-stripe span:nth-child(1) { background: var(--el-green); }
.el-flag-stripe span:nth-child(2) { background: var(--el-yellow); }
.el-flag-stripe span:nth-child(3) { background: var(--el-red); }

/* Search band under header (inner pages) */
.el-searchband {
	background: linear-gradient(180deg, #fff 0%, var(--el-bg) 100%);
	border-bottom: 1px solid var(--el-line);
	padding: 14px 0 4px;
}
.el-searchband__inner { padding: 0 18px; }
.el-searchband .geodir-search-container,
.el-searchband .search-form { max-width: 920px; margin: 0 auto; }

/* =========================================================================
   5. GeoDirectory (AyeCode UI / Bootstrap 5 scoped to .bsui)
   ====================================================================== */
body .bsui {
	--bs-primary: #0b6e3b;
	--bs-primary-rgb: 11, 110, 59;
	--bs-link-color: #0b6e3b;
	--bs-link-hover-color: #08572e;
	--bs-body-font-family: var(--el-font);
}
body .bsui .btn-primary {
	--bs-btn-color: #fff;
	--bs-btn-bg: #0b6e3b;
	--bs-btn-border-color: #0b6e3b;
	--bs-btn-hover-color: #fff;
	--bs-btn-hover-bg: #08572e;
	--bs-btn-hover-border-color: #08572e;
	--bs-btn-active-color: #fff;
	--bs-btn-active-bg: #08572e;
	--bs-btn-active-border-color: #08572e;
	--bs-btn-focus-shadow-rgb: 11, 110, 59;
	--bs-btn-disabled-bg: #0b6e3b;
	--bs-btn-disabled-border-color: #0b6e3b;
}
body .bsui .btn-outline-primary {
	--bs-btn-color: #0b6e3b;
	--bs-btn-border-color: #0b6e3b;
	--bs-btn-hover-bg: #0b6e3b;
	--bs-btn-hover-border-color: #0b6e3b;
	--bs-btn-active-bg: #0b6e3b;
}
body .bsui .text-primary { color: var(--el-green) !important; }
body .bsui .bg-primary { background-color: var(--el-green) !important; }
body .bsui a:not(.btn):not(.badge):not(.nav-link) { color: var(--el-green); }

/* Search bar: one solid pill on desktop, stacked on mobile */
.geodir-search-container .geodir-listing-search { margin: 0; }
.geodir-search-container .form-control,
.geodir-search-container .form-select {
	min-height: 48px;
	border-color: #cfd6dc;
	border-radius: 10px;
	font-size: 1rem;
}
.geodir-search-container .form-control:focus { border-color: var(--el-green); box-shadow: 0 0 0 3px rgba(11, 110, 59, .15); }
.geodir-search-container .btn,
.geodir-search-container button.geodir_submit_search {
	min-height: 48px;
	border-radius: 10px;
	padding-left: 1.2rem;
	padding-right: 1.2rem;
	font-weight: 600;
}

/* Archive header and toolbar */
.ethlist-gd .page-header,
.ethlist-gd .entry-header { margin-bottom: 8px; }
.geodir-loop-actions-container .btn { border-radius: 8px; }

/* Listing cards */
.geodir-loop-container .geodir-post > .card,
.geodir-widget-posts .geodir-post > .card,
.geodir-listing-posts .geodir-post > .card {
	border: 1px solid var(--el-line) !important;
	border-radius: var(--el-radius) !important;
	box-shadow: var(--el-shadow);
	overflow: hidden;
	transition: box-shadow .15s ease, transform .15s ease, border-color .15s ease;
	background: #fff;
}
.geodir-post > .card:hover,
.geodir-post > .card:focus-within {
	box-shadow: var(--el-shadow-lg);
	border-color: #cfe3d7 !important;
	transform: translateY(-2px);
}
.geodir-post > .card::before {
	/* thin flag-colour top edge on each card */
	content: "";
	display: block;
	height: 3px;
	background: linear-gradient(90deg, var(--el-green) 0 33.3%, var(--el-yellow) 33.3% 66.6%, var(--el-red) 66.6% 100%);
	opacity: .9;
}
.geodir-post .card > .card { border: 0 !important; border-radius: 0 !important; box-shadow: none; }

/* No photo: let the badges sit in a normal row instead of floating over text */
.geodir-post .card-img-top:not(:has(img)) {
	position: static !important;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	align-items: center;
	padding: 12px 14px 0;
	min-height: 0;
}
.geodir-post .card-img-top:not(:has(img)) > .gd-badge-meta .gd-badge,
.geodir-post .card-img-top:not(:has(img)) > .gd-badge-meta a.gd-badge {
	position: static !important;
	margin: 0 !important;
	transform: none !important;
}
.geodir-post .card-img-top:not(:has(img)) .gd-fav-info-wrap {
	position: static !important;
	margin: 0 0 0 auto !important;
}
.geodir-post .card-img-top img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }

/* Badges */
.geodir-post .gd-badge,
.geodir_post_taxomomies .gd-badge,
.geodir_post_taxomomies a {
	border-radius: 999px !important;
	font-weight: 600;
	font-size: .75rem;
	letter-spacing: .01em;
	padding: .35em .7em;
}
.geodir-post .gd-badge[data-badge="default_category"] {
	background: var(--el-green-50) !important;
	border-color: var(--el-green-50) !important;
	color: var(--el-green-700) !important;
}
.geodir-post .gd-badge[data-badge="post_date"] {
	background: var(--el-yellow-50) !important;
	border-color: var(--el-yellow-50) !important;
	color: #7a5200 !important;
}
.geodir-post .gd-badge[data-badge="featured"],
.geodir-post .gd-badge[data-badge="is_featured"] {
	background: var(--el-red) !important;
	border-color: var(--el-red) !important;
	color: #fff !important;
}

/* Hide the generic author avatar on every card: it is always the admin */
.geodir-post .card-body .row:has(> .col > a > img.rounded-circle) { display: none !important; }

.geodir-post .card-body { padding: 10px 14px 12px !important; }
.geodir-post .geodir-entry-title {
	font-size: 1.05rem !important;
	font-weight: 700;
	line-height: 1.3;
	margin: 4px 0 6px;
}
.geodir-post .geodir-entry-title a { color: var(--el-ink) !important; text-decoration: none; }
.geodir-post .geodir-entry-title a:hover,
.geodir-post .geodir-entry-title a:focus { color: var(--el-green) !important; text-decoration: underline; }
.geodir-post .geodir-field-post_content {
	text-align: left !important;
	color: var(--el-muted);
	font-size: .9rem;
	line-height: 1.5;
	display: -webkit-box;
	-webkit-line-clamp: 4;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.geodir-post .card-footer {
	background: #fbfcfb !important;
	border-top: 1px solid var(--el-line) !important;
	padding: 8px 14px !important;
	font-size: .85rem;
}

/* Grid: use the width we gained by dropping the sidebar */
@media (min-width: 1025px) {
	.geodir-listing-posts.geodir-gridview.row-cols-md-2 > .col,
	.geodir-loop-container .geodir-gridview.row-cols-md-2 > .col {
		flex: 0 0 auto;
		width: 33.3333%;
	}
}
body .bsui .pagination {
	--bs-pagination-color: #0b6e3b;
	--bs-pagination-hover-color: #08572e;
	--bs-pagination-focus-color: #08572e;
	--bs-pagination-active-bg: #0b6e3b;
	--bs-pagination-active-border-color: #0b6e3b;
}
/* GeneratePress prints an empty comments wrapper on listings; reviews live in the listing tabs */
.single-gd_place .site-main > .comments-area:not(:has(form)):not(:has(.comment)) { display: none; }
.geodir-loop-paging-container .pagination .page-link,
.geodir-pagination .page-link { border-radius: 8px; margin: 0 2px; color: var(--el-green); }
.geodir-loop-paging-container .pagination .active > .page-link,
.geodir-pagination .active > .page-link { background: var(--el-green); border-color: var(--el-green); color: #fff; }

/* Categories widget */
.geodir-categories-container .card,
.gd-cptcat-rows .card { border-radius: var(--el-radius) !important; border-color: var(--el-line) !important; }
.geodir-categories-container .gd-cptcat-cat-left .card,
.geodir-categories-container .badge { font-weight: 600; }

/* =========================================================================
   6. Single listing
   ====================================================================== */
.single-gd_place .inside-article { padding: 22px 18px 26px; }
.single-gd_place .entry-title { margin-bottom: .35em; }
.single-gd_place .geodir_post_taxomomies { color: var(--el-muted); font-size: .9rem; }
.single-gd_place .geodir_post_taxomomies a {
	display: inline-block;
	background: var(--el-green-50) !important;
	border: 0 !important;
	color: var(--el-green-700) !important;
	text-decoration: none;
	margin: 0 4px 4px 0;
}
.geodir-single-tabs-container .nav-tabs,
.geodir-tabs .nav { border-bottom: 1px solid var(--el-line); gap: 4px; flex-wrap: nowrap; overflow-x: auto; }
.geodir-tabs .nav-link,
.geodir-single-tabs-container .nav-link {
	border: 0 !important;
	border-radius: 0 !important;
	color: var(--el-muted) !important;
	font-weight: 600;
	background: transparent !important;
	box-shadow: none !important;
	white-space: nowrap;
	padding: .65rem .9rem;
}
.geodir-tabs .nav-link.active,
.geodir-single-tabs-container .nav-link.active {
	color: var(--el-green) !important;
	box-shadow: inset 0 -3px 0 var(--el-green) !important;
}
.geodir-tabs-content { padding-top: 14px; }
.single-gd_place .geodir-field-post_content {
	font-size: 1.02rem;
	background: var(--el-bg);
	border: 1px solid var(--el-line);
	border-radius: var(--el-radius-sm);
	padding: 14px 16px;
}
/* GeoDirectory list-style sections (when tabs are shown as a list) */
.geodir-single-tabs-container .geodir-tab-head,
.geodir-single-tabs-container h2.gd-tab-list-title,
.geodir-single-tabs-container .gd-tab-list-title {
	font-size: 1.15rem;
	margin: 1.4em 0 .5em;
	padding-bottom: .35em;
	border-bottom: 1px solid var(--el-line);
}
.geodir-post-map-wrap,
.geodir-wgt-map .geodir_map_container {
	border-radius: var(--el-radius);
	overflow: hidden;
	border: 1px solid var(--el-line);
}
.geodir-wgt-map::after {
	content: "Map pin marks the city center, not the exact address.";
	display: block;
	font-size: .8rem;
	color: var(--el-muted);
	margin-top: 6px;
}
.geodir-map-directions-wrap { font-size: .9rem; }
.geodir-pos_navigation { border-top: 1px solid var(--el-line); padding-top: 14px; font-weight: 600; }
.geodir-comments-area .comment-reply-title,
.geodir-comments-area .comments-title { font-size: 1.2rem; }

/* Add listing page */
.geodir-page-add .inside-article { max-width: 860px; margin: 0 auto; }

/* =========================================================================
   7. Front page sections (classes used in the homepage content)
   ====================================================================== */
.ethlist-front .site-content { padding: 0 !important; }
.ethlist-front .inside-article { background: transparent; border: 0; border-radius: 0; padding: 0 !important; }
.ethlist-front .entry-content { margin-top: 0; }
.ethlist-front .entry-content > .el-section,
.ethlist-front .entry-content > .wp-block-group.el-section { margin: 0; }

.el-wrap { max-width: var(--el-max); margin: 0 auto; padding: 0 18px; }

.el-hero {
	background:
		radial-gradient(1200px 300px at 10% -10%, rgba(244, 180, 0, .18), transparent 60%),
		radial-gradient(900px 260px at 100% 0%, rgba(192, 39, 45, .10), transparent 60%),
		linear-gradient(180deg, #0b6e3b 0%, #095a31 100%);
	color: #fff;
	padding: 44px 0 38px !important;
	margin: 0 !important;
	max-width: none !important;
}
.el-hero .wp-block-group__inner-container,
.el-hero > .el-wrap { max-width: var(--el-max); margin: 0 auto; padding: 0 18px !important; }
.el-hero h1, .el-hero h2 { color: #fff; font-size: clamp(1.9rem, 1.2rem + 3vw, 3rem); max-width: 18ch; margin-bottom: .3em; }
.el-hero p { color: rgba(255, 255, 255, .9); font-size: clamp(1rem, .95rem + .3vw, 1.15rem); max-width: 60ch; }
.el-hero .el-hero__note { font-size: .92rem; color: rgba(255, 255, 255, .8); margin: 10px 0 0; }
.el-hero .el-hero__note a { color: #fff; }
.el-hero .geodir-search-container {
	background: #fff;
	border-radius: 14px;
	padding: 10px 10px 0;
	box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .5);
	max-width: 900px;
	margin-top: 18px;
}
.el-hero .geodir-search-container .form-control { color: var(--el-ink); }
.el-hero .geodir-search-container .btn-primary {
	--bs-btn-bg: #f4b400;
	--bs-btn-border-color: #f4b400;
	--bs-btn-color: #17202a;
	--bs-btn-hover-bg: #e0a500;
	--bs-btn-hover-border-color: #e0a500;
	--bs-btn-hover-color: #17202a;
}

.el-section { padding: 38px 0 !important; max-width: none !important; }
.el-section .wp-block-group__inner-container { max-width: var(--el-max); margin: 0 auto; padding: 0 18px !important; }
.el-section--white { background: #fff; border-top: 1px solid var(--el-line); border-bottom: 1px solid var(--el-line); }
.el-section__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; margin-bottom: 14px; }
.el-section__head h2 { margin: 0; }
.el-section__head a { font-weight: 600; text-decoration: none; }
.el-kicker {
	display: inline-block;
	font-size: .78rem;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--el-red);
	margin: 0 0 4px;
}
.el-section .el-lead { color: var(--el-muted); margin-top: -4px; }

/* Category tiles */
.el-cat-grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
}
.el-cat-grid li { margin: 0; }
.el-cat-grid a {
	display: flex;
	align-items: center;
	gap: 10px;
	height: 100%;
	background: #fff;
	border: 1px solid var(--el-line);
	border-radius: var(--el-radius);
	padding: 12px 14px;
	color: var(--el-ink);
	font-weight: 600;
	font-size: .95rem;
	line-height: 1.3;
	text-decoration: none;
	box-shadow: var(--el-shadow);
	transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.el-cat-grid a:hover, .el-cat-grid a:focus { border-color: var(--el-green); box-shadow: var(--el-shadow-lg); transform: translateY(-1px); color: var(--el-green-700); }
.el-cat-grid a::before {
	content: "";
	flex: 0 0 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--el-green);
	box-shadow: 0 0 0 4px var(--el-green-50);
}
.el-cat-grid li:nth-child(3n+2) a::before { background: var(--el-yellow); box-shadow: 0 0 0 4px var(--el-yellow-50); }
.el-cat-grid li:nth-child(3n) a::before { background: var(--el-red); box-shadow: 0 0 0 4px var(--el-red-50); }
.el-cat-group-title { font-size: 1rem; color: var(--el-muted); margin: 18px 0 8px; font-weight: 700; }

/* City cards */
.el-city-grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: 1fr;
	gap: 12px;
}
.el-city-grid li { margin: 0; }
.el-city-grid a {
	position: relative;
	display: block;
	height: 100%;
	padding: 18px 16px 16px 22px;
	border-radius: var(--el-radius);
	background: #fff;
	border: 1px solid var(--el-line);
	text-decoration: none;
	color: var(--el-ink);
	box-shadow: var(--el-shadow);
	overflow: hidden;
	transition: box-shadow .15s ease, transform .15s ease, border-color .15s ease;
}
.el-city-grid a::after {
	content: "";
	position: absolute;
	left: 0; top: 0; bottom: 0;
	width: 5px;
	background: linear-gradient(180deg, var(--el-green) 0 33.3%, var(--el-yellow) 33.3% 66.6%, var(--el-red) 66.6% 100%);
}
.el-city-grid a:hover, .el-city-grid a:focus { box-shadow: var(--el-shadow-lg); transform: translateY(-2px); border-color: #cfe3d7; }
.el-city-grid strong { display: block; font-size: 1.12rem; margin-bottom: 2px; }
.el-city-grid span { display: block; color: var(--el-muted); font-size: .9rem; }
.el-city-grid em { display: inline-block; margin-top: 8px; font-style: normal; color: var(--el-green); font-weight: 600; font-size: .9rem; }

/* Latest news (core latest-posts block) */
.el-news .wp-block-latest-posts { margin: 0; padding: 0; }
.el-news .wp-block-latest-posts.is-grid { gap: 14px; }
.el-news .wp-block-latest-posts.is-grid li,
.el-news .wp-block-latest-posts li {
	background: #fff;
	border: 1px solid var(--el-line);
	border-radius: var(--el-radius);
	box-shadow: var(--el-shadow);
	padding: 0 0 14px;
	margin: 0 0 14px;
	overflow: hidden;
	list-style: none;
}
.el-news .wp-block-latest-posts__featured-image { margin: 0 0 10px !important; }
.el-news .wp-block-latest-posts__featured-image img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 0; display: block; }
.el-news .wp-block-latest-posts__post-title { display: block; padding: 0 14px; font-weight: 700; color: var(--el-ink); text-decoration: none; line-height: 1.35; }
.el-news .wp-block-latest-posts__post-title:hover { color: var(--el-green); text-decoration: underline; }
.el-news .wp-block-latest-posts__post-date,
.el-news .wp-block-latest-posts__post-author { padding: 0 14px; color: var(--el-muted); font-size: .82rem; }
.el-news .wp-block-latest-posts__post-excerpt { padding: 0 14px; color: var(--el-ink-2); font-size: .92rem; margin: 6px 0 0; }
.el-pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 0; padding: 0; list-style: none; }
.el-pills li { margin: 0; }
.el-pills a {
	display: inline-block;
	padding: .35em .9em;
	border-radius: 999px;
	background: var(--el-green-50);
	color: var(--el-green-700);
	font-weight: 600;
	font-size: .88rem;
	text-decoration: none;
}
.el-pills a:hover, .el-pills a:focus { background: var(--el-green); color: #fff; }

/* Call to action band */
.el-cta {
	background: var(--el-ink) !important;
	color: #fff;
	padding: 40px 0 !important;
	max-width: none !important;
	position: relative;
}
.el-cta::before {
	content: "";
	position: absolute;
	left: 0; right: 0; top: 0;
	height: 4px;
	background: linear-gradient(90deg, var(--el-green) 0 33.3%, var(--el-yellow) 33.3% 66.6%, var(--el-red) 66.6% 100%);
}
.el-cta .wp-block-group__inner-container { max-width: var(--el-max); margin: 0 auto; padding: 0 18px !important; }
.el-cta h2 { color: #fff; margin-bottom: .3em; }
.el-cta p { color: rgba(255, 255, 255, .85); max-width: 62ch; }
.el-cta .wp-block-button__link { background: var(--el-yellow) !important; color: var(--el-ink) !important; }
.el-cta .is-style-outline .wp-block-button__link { background: transparent !important; color: #fff !important; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .7); }

/* =========================================================================
   8. Article CTA box, comments
   ====================================================================== */
.el-article-cta {
	margin: 34px auto 0;
	max-width: 760px;
	padding: 18px 20px;
	border-radius: var(--el-radius);
	background: var(--el-green-50);
	border: 1px solid #cfe3d7;
}
.el-article-cta p { margin: 0 0 .6em; }
.el-article-cta__title { font-weight: 700; font-size: 1.1rem; color: var(--el-green-700); }
.el-article-cta__links { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 !important; }

/* =========================================================================
   9. Footer
   ====================================================================== */
.el-footer {
	background: #10181f;
	color: #c9d1d8;
	padding: 40px 0 18px;
	font-size: .95rem;
	position: relative;
}
.el-footer::before {
	content: "";
	position: absolute;
	left: 0; right: 0; top: 0;
	height: 4px;
	background: linear-gradient(90deg, var(--el-green) 0 33.3%, var(--el-yellow) 33.3% 66.6%, var(--el-red) 66.6% 100%);
}
.el-footer__inner {
	display: grid;
	grid-template-columns: 1fr;
	gap: 26px;
	padding: 0 18px;
}
.el-footer a { color: #e8edf1; text-decoration: none; }
.el-footer a:hover, .el-footer a:focus { color: var(--el-yellow); text-decoration: underline; }
.el-footer__brand { font-size: 1.4rem; font-weight: 800; letter-spacing: -0.02em; margin-bottom: .4em; }
.el-footer__brand span { color: var(--el-yellow); }
.el-footer__heading {
	color: #fff;
	font-weight: 700;
	font-size: .82rem;
	letter-spacing: .08em;
	text-transform: uppercase;
	margin-bottom: .7em;
}
.el-footer__list { list-style: none; margin: 0; padding: 0; }
.el-footer__list li { margin: 0 0 .45em; }
.el-footer .el-btn--yellow { color: var(--el-ink) !important; text-decoration: none !important; }
.site-footer .site-info {
	background: #0b1116;
	color: #9aa6b1;
	font-size: .85rem;
}
.site-footer .site-info a { color: #c9d1d8; }
.inside-site-info { padding: 16px 18px; }

/* =========================================================================
   10. Breakpoints (mobile first)
   ====================================================================== */
@media (min-width: 600px) {
	.el-cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.el-city-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.el-footer__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 769px) {
	.one-container .site-content { padding: 32px 24px; }
	.one-container .inside-article { padding: 32px 36px; }
	.inside-header { padding: 14px 24px; }
	.el-hero { padding: 64px 0 56px !important; }
	.el-section { padding: 52px 0 !important; }
}
@media (min-width: 1025px) {
	.el-cat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.el-city-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
	.el-footer__inner { grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
	.el-hero h1, .el-hero h2 { max-width: 22ch; }
}
@media (max-width: 575px) {
	.el-hero .geodir-search-container { padding: 8px 8px 0; }
	.geodir-search-container .btn { width: 100%; }
	.el-section__head { display: block; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
	.geodir-post > .card:hover, .el-city-grid a:hover, .el-cat-grid a:hover { transform: none; }
}

/* Print */
@media print {
	.el-searchband, .el-flag-stripe, .el-footer, .main-navigation, .el-cta { display: none !important; }
}

/* Featured image caption (photo credits) on single posts */
.el-featured-caption {
	text-align: left;
	font-size: .8rem;
	line-height: 1.45;
	color: var(--el-muted);
	margin: 6px 0 0;
}
.el-featured-caption a { color: var(--el-muted); text-decoration: underline; }
.featured-image .el-featured-caption,
.page-header-image-single .el-featured-caption { margin-bottom: 1.2em; }

/* Tables in articles and rankings */
.entry-content table {
	width: 100%;
	border-collapse: collapse;
	font-size: .95rem;
	margin: 0 0 1.4em;
	background: #fff;
}
.entry-content th, .entry-content td { border: 1px solid var(--el-line); padding: .55em .7em; text-align: left; vertical-align: top; }
.entry-content thead th, .entry-content tr:first-child th { background: var(--el-green-50); color: var(--el-green-700); font-weight: 700; }
.entry-content tbody tr:nth-child(even) td { background: #fafbfa; }
.entry-content .wp-block-table { overflow-x: auto; }
@media (max-width: 600px) {
	.entry-content table { display: block; overflow-x: auto; white-space: nowrap; }
}
